/* ============================================
   Fonts
   ============================================ */
@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/static/Montserrat-Bold.ttf') format("truetype");
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/static/Montserrat-Light.ttf') format("truetype");
    font-weight: 300;
    font-display: swap; 
}

@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/static/Montserrat-Medium.ttf') format("truetype");
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/static/Montserrat-Regular.ttf') format("truetype");
    font-weight: 500;
    font-display: swap
}

@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/static/Montserrat-SemiBold.ttf') format("truetype");
    font-weight: 600;
    font-display: swap;
}


@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/static/Montserrat-Italic.ttf') format("truetype");
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url('../fonts/Montserrat/static/Montserrat-BoldItalic.ttf') format("truetype");
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary-color: #B9FF66;
    --secondary-color: #191A23;
    --body-color: #F3F3F3;
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Montserrat, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
}

/* Ограничения для мобильных устройств */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
        /* Предотвращение горизонтальной прокрутки на мобильных */
        touch-action: pan-y pinch-zoom;
    }
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Container Utility
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header Block
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    padding: 10px;
    background-color: var(--body-color);
    justify-content: space-around;
    align-items: center;
    box-shadow: 7px 5px 15px -4px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 7px 5px 15px -4px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 7px 5px 15px -4px rgba(0, 0, 0, 0.75);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Скрытие хэдера при скролле вниз */
.header--hidden {
    transform: translateY(-100%);
}

/* Sticky состояние - показывается при скролле вверх */
.header--sticky {
    position: fixed;
    top: 0;
    transform: translateY(0);
}

/* В самом верху страницы хэдер всегда виден */
.header--top {
    position: fixed;
    top: 0;
    transform: translateY(0);
}

/* Компенсация высоты хэдера */
.header-spacer {
    height: 60px;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.header--top + .header-spacer {
    height: 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-around;
    align-items: center;
}

.header__logo a {
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    font-size: 32px;
}

.header__logo img {
    height: 65px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header__nav {
    display: block;
}

.header__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header__menu-item {
    position: relative;
    display: inline;
    list-style: none;
    margin: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.header__menu-link {
    font-family: Montserrat, sans-serif;
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
}

.header__menu-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0.17rem;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transform-origin: 0% 100%;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header__menu-item:hover::after {
    transform: scaleX(1);
}

.header__button {
    background-color: transparent;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}

.header__button-layer {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.header__button:hover .header__button-layer {
    width: 100%;
    left: 0;
}

.header__button-link {
    display: block;
    padding: 10px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.header__burger {
    display: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    padding: 0;
}

.header__mobile-menu {
    display: none;
}

/* Mobile Menu Styles */
@media only screen and (max-width: 1052px) {
    .header__mobile-menu {
        background-color: var(--primary-color);
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .header__mobile-menu--open {
        display: flex;
        transform: translateX(0);
    }

    .header__mobile-nav {
        width: 100%;
    }

    .header__mobile-menu-list {
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .header__mobile-menu-item {
        text-align: center;
        position: relative;
        list-style: none;
        margin: 10px;
        padding: 10px 20px;
        cursor: pointer;
    }

    .header__mobile-menu-link {
        color: var(--secondary-color);
        text-decoration: none;
        display: block;
    }

    .header__mobile-menu-item::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 0.17rem;
        background-color: var(--body-color);
        left: 0;
        bottom: 0;
        transform-origin: 0% 100%;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .header__mobile-menu-item:hover::after {
        transform: scaleX(1);
    }

    .header__mobile-button {
        background-color: var(--secondary-color);
        border-radius: 50px;
        position: relative;
        display: inline-block;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid var(--secondary-color);
    }

    .header__mobile-button-layer {
        position: absolute;
        top: 0;
        left: 50%;
        width: 0;
        height: 100%;
        background-color: var(--primary-color);
        transition: width 0.3s ease, left 0.3s ease;
    }

    .header__mobile-button:hover .header__mobile-button-layer {
        width: 100%;
        left: 0;
    }

    .header__mobile-button-link {
        display: block;
        padding: 10px 20px;
        color: var(--body-color);
        text-decoration: none;
        position: relative;
        z-index: 1;
    }

    .header__nav,
    .header__button {
        display: none;
    }

    .header__mobile-close {
        display: block;
        color: var(--secondary-color);
        cursor: pointer;
        font-size: 40px;
        position: absolute;
        top: 20px;
        right: 26px;
        background: none;
        border: none;
        padding: 0;
    }

    .header__burger {
        display: block;
    }
}

/* ============================================
   Footer Block
   ============================================ */
.footer {
    background-color: var(--secondary-color);
    border-top-right-radius: 40px;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-bottom-left-radius: 40px;
    padding: 30px 15px 20px 15px;
    margin: 0 10px 10px 10px;
    color: white;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

@media (min-width: 992px) {
    .footer__content {
        flex-direction: row;
        align-items: flex-start;
        padding: 40px 0;
        gap: 40px;
    }
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__column--logo {
    text-align: center;
}

@media (min-width: 992px) {
    .footer__column--logo {
        text-align: left;
        flex: 0 0 25%;
    }
}

.footer__column--pages {
    text-align: center;
}

@media (min-width: 992px) {
    .footer__column--pages {
        text-align: left;
        flex: 0 0 25%;
    }
}

.footer__column--blog {
    text-align: center;
}

@media (min-width: 992px) {
    .footer__column--blog {
        text-align: left;
        flex: 1;
    }
}

.footer__logo {
    margin-bottom: 15px;
}

.footer__logo img {
    max-width: 250px;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}

.footer__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer__static-pages {
    width: 100%;
}

.footer__static-pages-heading {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: white;
    font-weight: 600;
}

.footer__static-pages-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}

.footer__static-pages-item {
    list-style: none;
}

.footer__static-pages-link {
    color: white;
    text-decoration: none;
    display: block;
    transition: opacity 0.3s ease;
    font-size: 16px;
}

.footer__static-pages-link:hover {
    opacity: 0.8;
}

.footer__blog-section {
    width: 100%;
}

.footer__blog-heading {
    margin: 0 0 20px 0;
    font-size: 20px;
}

.footer__blog-heading-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

.footer__blog-heading-link:hover {
    opacity: 0.8;
}

.footer__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    width: 100%;
}

@media (min-width: 768px) {
    .footer__categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

.footer__category-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.footer__category-link:hover {
    opacity: 0.8;
    color: white;
}

.footer__divider {
    width: 100%;
    height: 1px;
    background-color: white;
    margin: 20px 0;
    opacity: 0.3;
}

@media (min-width: 992px) {
    .footer__divider {
        margin: 40px 0;
    }
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    text-align: center;
}

@media (min-width: 992px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-top: 20px;
    }
}

.footer__copyright {
    color: white;
    margin: 0;
}

.footer__bottom-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

@media (min-width: 992px) {
    .footer__bottom-links {
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }
}

.footer__policy-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.footer__policy-link:hover {
    opacity: 0.8;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 70px 20px 0 20px; /* Отступ сверху для компенсации высоты хэдера */
}

.breadcrumbs {
    padding: 12px 20px;
    text-align: left;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    background-color: var(--body-color);
}

.breadcrumbs__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
}

.breadcrumbs__link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    opacity: 1;
}

.breadcrumbs__separator {
    color: var(--secondary-color);
    opacity: 0.4;
    font-size: 14px;
    font-weight: 300;
    margin: 0 2px;
}

.breadcrumbs__current {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumbs {
        text-align: center;
        padding: 10px 15px;
    }
    
    .breadcrumbs__list {
        justify-content: center;
    }
    
    .breadcrumbs__link {
        font-size: 13px;
        padding: 3px 6px;
    }
    
    .breadcrumbs__current {
        font-size: 13px;
    }
}

/* ============================================
   Contact Block
   ============================================ */
.contact {
    margin: 20px 0 10px 0;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact__heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.contact__heading-title {
    font-size: 24px;
    background-color: var(--primary-color);
    line-height: 1.3;
    min-height: auto;
    border-radius: 10px;
    padding: 10px 15px;
    margin: 0;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    color: var(--secondary-color);
}

.contact__heading-text {
    font-size: 14px;
    margin: 0;
    padding-left: 20px;
}

@media (min-width: 992px) {
    .contact__heading {
        flex-direction: row;
        align-items: center;
    }
}

.contact__wrapper {
    border-radius: 25px;
    padding: 40px 20px;
    background-color: var(--body-color);
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .contact__wrapper {
        padding: 40px 60px;
    }
}

.contact__form {
    position: relative;
    z-index: 1;
}

.contact__radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact__radio {
    display: flex;
    align-items: center;
}

.contact__radio input[type="radio"] {
    display: none;
}

.contact__radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.contact__radio-custom {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    display: inline-block;
    position: relative;
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact__radio input[type="radio"]:checked + .contact__radio-label .contact__radio-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact__field {
    margin-bottom: 20px;
}

.contact__label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 500;
}

.contact__input,
.contact__textarea {
    width: 100%;
    background-color: white;
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 12px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
}

.contact__input:focus,
.contact__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact__textarea {
    min-height: 120px;
    resize: vertical;
}

.contact__submit {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.contact__submit:hover {
    opacity: 0.9;
}

.contact__bg {
    display: none;
    position: absolute;
    right: -190px;
    width: 400px;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 992px) {
    .contact__bg {
        display: block;
    }
}

@media (max-width: 767px) {
    .contact {
        margin: 30px 0;
    }
    
    .contact__container {
        padding: 0 15px;
    }
    
    .contact__heading-title {
        font-size: 20px;
        padding: 8px 12px;
    }
    
    .contact__wrapper {
        padding: 25px 15px;
    }
    
    .contact__radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--secondary-color);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent--hidden {
    transform: translateY(100%);
}

.cookie-consent__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (min-width: 768px) {
    .cookie-consent__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
}

.cookie-consent__text {
    color: white;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    flex: 1;
}

@media (min-width: 768px) {
    .cookie-consent__text {
        text-align: left;
    }
}

.cookie-consent__link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.cookie-consent__link:hover {
    opacity: 0.8;
}

.cookie-consent__button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-consent__button:hover {
    opacity: 0.9;
}

.cookie-consent__button:active {
    transform: scale(0.98);
}

@media (max-width: 767px) {
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-consent__text {
        font-size: 13px;
    }
    
    .cookie-consent__button {
        width: 100%;
        padding: 10px 20px;
    }
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
    font-family: Montserrat, sans-serif;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    opacity: 0.9;
    transform: translateY(0) scale(1.1);
}

.scroll-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.scroll-top:active {
    transform: translateY(0) scale(0.98);
}

.scroll-top__icon {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 767px) {
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-top__icon {
        font-size: 18px;
    }
}
