/* styles.css */
/* Modern Navbar Template Styles */

/* Google Font Import */
/*
@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*/
@import url('https://fonts.googleapis.com/css2?family=Advent+Pro:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css");

/* Regular (400) */
@font-face {
  font-family: 'PT Root UI';
  src: url('/static/fonts/pt-root-ui_regular.woff2') format('woff2'),
       url('/static/fonts/pt-root-ui_regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: 'PT Root UI';
  src: url('/static/fonts/pt-root-ui_medium.woff2') format('woff2'),
       url('/static/fonts/pt-root-ui_medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'PT Root UI';
  src: url('/static/fonts/pt-root-ui_bold.woff2') format('woff2'),
       url('/static/fonts/pt-root-ui_bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
    /* Dark #2c3e50 or #006994 */
    --navi-blue: #006994;
    /* Light cards background, etc. */
    --primary-light: #e1f0f7;
    --accent-teal: #1abc9c;
    --text-white: rgba(255, 255, 255, 0.9);
    --background-l1: #F5F5F5;
    --background-l2: #EAEAEA;
    --background-l3: #E0E0E0;
    /* --background-selected: #4d4d4d; */
    --background-selected: #CACACA;
    --text-selected: #000;
    --primary-text: #000;
    --primary-background: #ffffff;
}

/* Page titles */
.section-title {
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0,0,0,0.3);
    padding: 10px 20px;
    /* text-transform: uppercase; */
}

.navi-blue-bg {
    background-color: var(--navi-blue) !important;
}

.navbar {
    font-family: 'Roboto Flex', sans-serif;
    height: 115px;
    transition: all 0.3s;
    background-color: #006994 !important;
    padding: 0;
}

.navbar-brand {
    width: 300px;
    height: 100px;
    padding: 10px 20px;
    transition: all 0.3s;
    overflow: hidden;
    order: 1;
}

.navbar-brand object {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    /* Make svg logo clickable */
    pointer-events: none;
}

.navbar-placeholder {
    width: 300px;
    height: 100px;
    padding: 10px 20px;
    visibility: hidden;
    order: 3;
}

.contacts-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    align-items: center;
    z-index: 1000;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-family: 'Roboto Flex', sans-serif;
    text-decoration: none;
    font-size: 1.0rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    /* color: #FFD700 !important; */
    text-shadow: 0 0 8px rgba(255,255,0,1.6);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Основное меню */
.nav-menu-container {
    position: relative;
    width: calc(100% - 400px);
    margin: 70px auto 0;
    order: 2;
}

.navbar .navbar-nav {
    justify-content: center;
    gap: 1.5rem;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 1.2rem;
    white-space: nowrap;
}

/*
.navbar-nav .nav-link:hover {
    color: var(--accent-teal) !important;
    transform: translateY(-2px);
}
*/

.navbar .nav-link.active {
    font-weight: 600;
    /* background-color: rgba(255,255,255,0.4); */
    color: rgba(255,255,255,1.0) !important;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,0,1.6);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* Стили для скролла */
.navbar.scrolled {
    height: 40px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-placeholder {
    height: 40px;
    width: 300px;
    padding: 2px 15px;
}

.navbar.scrolled .contacts-bar {
    opacity: 0;
    visibility: hidden;
    top: -40px;
}

.navbar.scrolled .nav-menu-container {
    margin-top: 0;
}

/* Подменю продукции */
.dropdown-menu-sub {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 600px;
    background: rgba(0, 105, 148, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    margin-top: 0.5rem !important;
}

.product-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1rem;
    min-width: 300px;
    text-decoration: none;
}

.product-item:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

.product-type {
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

.product-desc {
    font-size: 1.0rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.4;
}

.product-liquid {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

body {
    padding-top: 125px;
    min-height: 100vh;
    background-color: var(--primary-background) !important;
    color: var(--primary-text) !important;
}

/* Мобильная версия */
@media (max-width: 992px) {
    .navbar {
        height: 50px !important;
        min-height: 50px !important;
        justify-content: space-between;
    }

    .navbar-brand {
        width: 160px;
        height: 50px !important;
        padding: 8px 15px;
    }

    .navbar-placeholder {
        display: none;
    }

    .contacts-bar {
        display: none;
    }

    .nav-menu-container {
        width: 100%;
        margin-top: 0;
        order: 3;
    }

    .navbar-toggler {
        order: 2;
        padding: 0.35rem;
        border: none;
        margin-right: 10px;
    }

    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }

    .navbar-collapse {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #004b6b;
        padding: 0.5rem 1rem;
        overflow-y: auto;
        z-index: 1050;
    }

    .nav-item {
        /* margin: 0.0rem 20px;*/
        margin: -5px 20px;
    }

    .nav-link {
        padding: 0.2rem 10px !important;
    }

    .dropdown-menu-sub {
        width: 100%;
        left: 0 !important;
        transform: none !important;
        background: transparent;
        border: none;
        padding: 0 20px;
        max-height: none;
        overflow-x: auto;
    }

    .product-item {
        grid-template-columns: 100px 1fr auto;
        gap: 0.8rem;
        padding: 0.5rem;
        min-width: 100%;
        font-size: 0.9em;
    }

    .product-type {
        font-size: 1em;
    }

    .product-desc {
        font-size: 0.85em;
    }

    .product-liquid {
        font-size: 0.8em;
        padding: 0.2rem 0.8rem;
    }

    body {
        padding-top: 60px;
    }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.footer {
    font-family: 'Roboto Flex', sans-serif;
    background-color: #006994;
    color: white;
    padding: 1rem 0 0;
}
.footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 1.0rem;
}
.footer-link:hover {
    color: #cce5ff;
    text-shadow: 0 0 8px rgba(255,215,0,0.3);
}
.footer-link i {
    font-size: 1rem;
    margin-right: 8px;
    width: 20px;
    text-align: center;
}
.footer-copyright-section {
    font-size: 0.75rem;
    opacity: 0.9;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-copyright-text {
    margin-bottom: 0;
    line-height: 1.4;
}
.footer-disclaimer {
    font-size: 0.65rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.2rem;
    line-height: 1.3;
}
.footer-policy-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.75rem;
    display: inline-block;
    padding-top: 0;
}
.footer-policy-link:hover {
    color: white;
    text-decoration: underline;
}
.align-top-md {
    align-items: flex-start !important;
}
.footer-contact-phone {
    justify-content: flex-start;
}
.footer-contact-email {
    justify-content: center;
}
.footer-contact-telegram {
    justify-content: flex-end;
}
@media (max-width: 767.98px) {
    .footer-copyright-section .row > div {
        text-align: center !important;
        margin-bottom: 0.3rem;
    }
    .footer-policy-container {
        padding-top: 0.5rem;
    }
    .footer-copyright-text {
        margin-bottom: 0.3rem;
    }
    .footer-disclaimer {
        font-size: 0.7rem;
    }
    .footer-link {
        justify-content: center;
    }
}
