/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --primary-red: #DC2626;
    --dark-red: #B91C1C;
    --darker-red: #991B1B;
    --light-red: #FEE2E2;
    --off-white: #FEF2F2;
    --white: #FFFFFF;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --gray-600: #4B5563;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
    --section-padding: 80px;
    --shadow-red-md: 0 4px 12px rgba(220, 38, 38, 0.2);
    --shadow-red-lg: 0 8px 24px rgba(220, 38, 38, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   UTILITIES
   ======================================== */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-padding) 0; }
.section__title {
    font-size: 36px; font-weight: 700; margin-bottom: 48px;
    position: relative; display: inline-block; color: var(--gray-900);
}
.section__title::after {
    content: ''; display: block; width: 80px; height: 4px;
    background: var(--primary-red); margin-top: 8px; border-radius: 2px;
}
.section__title--left::after { margin-left: 0; }
.section--red-bg { background: var(--off-white); }
.bg-light { background: var(--gray-100); }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 8px; font-weight: 600; font-size: 16px;
    text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
    transition: all 0.3s ease; border: none; font-family: var(--font-main); line-height: 1.2;
}
.btn--red {
    background: linear-gradient(180deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white); box-shadow: var(--shadow-red-md);
}
.btn--red:hover {
    background: linear-gradient(180deg, var(--dark-red) 0%, var(--darker-red) 100%);
    box-shadow: var(--shadow-red-lg); transform: translateY(-2px);
}
.btn--outline-red { background: transparent; border: 2px solid var(--primary-red); color: var(--primary-red); }
.btn--outline-red:hover { background: var(--primary-red); color: var(--white); }
.btn--full { width: 100%; }

/* ========================================
   HEADER
   ======================================== */
.header {
    background: var(--white); border-bottom: 2px solid var(--light-red);
    padding: 20px 0; position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header__container { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.logo { font-size: 22px; font-weight: 700; color: var(--primary-red); letter-spacing: -0.5px; }
.nav { display: flex; gap: 32px; }
.nav__link { font-weight: 500; color: var(--gray-800); position: relative; }
.nav__link:hover { color: var(--primary-red); }
.header__contacts { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.phone { font-weight: 700; font-size: 18px; color: var(--primary-red); display: block; }
.socials { display: flex; gap: 12px; justify-content: flex-end; }
.socials--footer{
    justify-content: flex-start;
}
.header__content-burger {display: none;}
.social-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: var(--gray-100);
    color: var(--gray-600); transition: all 0.3s ease;
}
.social-link:hover { background: var(--primary-red); color: var(--white); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }


/* Мобильное меню — исправленная версия */
.mobile-menu {
    position: fixed;          /* вместо absolute — перекрывает весь экран */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;            /* скрыто по умолчанию, показываем через JS */
    background: rgba(255, 255, 255, 0.96);  /* плотный фон, можно с лёгким размытием */
    backdrop-filter: blur(10px);            /* мягкое размытие, не нагружает */
    overflow-y: auto;         /* прокрутка внутри, если контент не влезает */
    -webkit-overflow-scrolling: touch;      /* плавный скролл на iOS */
}

/* Оверлей (затемнение) — если нужен, можно добавить отдельно, но здесь фон уже полупрозрачный */
.mobile-menu__content {
    padding: 30px 20px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;         /* растягиваем на всю высоту */
    justify-content: space-between;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 0 40px 0;
    padding: 0;
    list-style: none;
}

.mobile-menu__list a {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    color: #1f2937;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
    display: inline-block;
}

.mobile-menu__list a:hover,
.mobile-menu__list a:active {
    color: #dc2626;           /* акцентный цвет как у вас в бургере */
}

.mobile-menu__info {
    text-align: center;
    margin-top: auto;
}

.mobile_btn {
    margin-bottom: 30px;
}

.mobile_btn button,
.header-btn--mb {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: auto;
    min-width: 200px;
}

.mobile_btn button:active {
    transform: scale(0.97);
}

/* Контакты внизу */
.mobile-menu__info-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.mobile-menu__info-contact-item {
    font-weight: 500;
    font-size: 16px;
    color: #374151;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu__info-contact-item--phone {
    border-bottom: 1px solid #9ca3af;
    padding-bottom: 4px;
}

/* Мессенджеры (иконки) */
.mobile-menu__messangers {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.mobile-menu__messangers a {
    color: #4b5563;
    transition: color 0.2s;
}

.mobile-menu__messangers a:hover {
    color: #dc2626;
}

/* Плавная анимация появления/исчезновения (если используете не slide, а fade+transform) */
.mobile-menu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 991px) {
    .mobile-menu {
        top: 77px;
        height: calc(100vh - 77px);
    }
}



/* ========================================
   HERO SECTION
   ======================================== */
.hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/images/hero-bg.jpg'); background-size: cover;
    background-position: center; background-repeat: no-repeat; z-index: 1;
}
.hero__bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%); */
    background: url('/fs_image.jpg');
    background-repeat: no-repeat;
    background-position: center center;
}
.hero__container { position: relative; z-index: 2; padding: 100px 0; width: 100%; }
.hero__card {
    max-width: 700px; padding: 56px 48px; background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}
.hero__title { font-size: 44px; font-weight: 800; line-height: 1.15; color: var(--gray-900); margin-bottom: 32px; letter-spacing: -1px; }
.hero__title span { color: var(--primary-red); font-weight: 900; }
.hero__benefits { margin-bottom: 40px; }
.hero__benefits li { padding: 10px 0; padding-left: 32px; position: relative; font-size: 18px; color: var(--gray-800); font-weight: 500; }
.hero__benefits li::before {
    content: '✓'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    color: var(--primary-red); font-weight: 700; font-size: 22px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========================================
   CATALOG
   ======================================== */
.catalog { background: var(--white); }
.category-block { margin-bottom: 72px; }
.category__title {
    font-size: 26px; font-weight: 700; margin-bottom: 32px;
    border-bottom: 3px solid var(--primary-red); display: inline-block; padding-bottom: 8px;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
    display: flex; flex-direction: column; align-items: center; padding: 20px;
    border: 1px solid var(--gray-200); border-radius: 12px; transition: all 0.3s ease;
    background: var(--white); text-align: center;
}
.card:hover { border-color: var(--primary-red); box-shadow: 0 8px 24px rgba(220,38,38,0.15); transform: translateY(-6px); }
.card__img-placeholder {
    width: 100%; height: 180px; background: var(--off-white); display: flex;
    align-items: center; justify-content: center; color: var(--gray-400);
    font-weight: 600; margin-bottom: 16px; border-radius: 8px;
}
.card__name { font-weight: 600; font-size: 16px; color: var(--gray-900); transition: color 0.3s; }
.card:hover .card__name { color: var(--primary-red); }
.card__img-placeholder img{
    max-height: 100%;
}
/* ========================================
   OPT FORM
   ======================================== */
.opt-container { display: flex; justify-content: space-between; align-items: center; gap: 80px; }
.opt-info { flex: 1; }
.opt-text { font-size: 20px; color: var(--gray-800); line-height: 1.6; max-width: 600px; }
.opt-form {
    flex: 0 0 420px; background: var(--white); padding: 40px; border-radius: 16px;
    border-left: 6px solid var(--primary-red); box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; gap: 24px;
}
.form__title { font-size: 26px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.input {
    width: 100%; padding: 14px 0; border: none; border-bottom: 2px solid var(--gray-300);
    font-size: 16px; outline: none; transition: border-color 0.3s; font-family: var(--font-main);
    background: transparent;
}
.input:focus { border-bottom-color: var(--primary-red); }
.input::placeholder { color: var(--gray-400); }
.textarea { resize: vertical; min-height: 100px; }
.form__note { color: var(--gray-400); font-size: 12px; text-align: right; margin-top: -12px; }

/* Checkbox */
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--gray-600); }
.checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom {
    flex: 0 0 20px; width: 20px; height: 20px; border: 2px solid var(--gray-300);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; margin-top: 2px; position: relative;
}
.checkbox-custom::after {
    content: ''; width: 6px; height: 10px; border: solid white; border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: opacity 0.3s ease;
}
.checkbox:checked + .checkbox-custom { background: var(--primary-red); border-color: var(--primary-red); }
.checkbox:checked + .checkbox-custom::after { opacity: 1; }
.checkbox-text { flex: 1; }
.checkbox-link { color: var(--primary-red); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-link:hover { color: var(--dark-red); }

/* ========================================
   ABOUT & SLIDER
   ======================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { margin-bottom: 24px; font-size: 16px; line-height: 1.7; color: var(--gray-800); }
.about-slider { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-red-md); }
.slider-container { position: relative; overflow: hidden; border-radius: 12px; }
.slider-wrapper { display: flex; transition: transform 0.5s ease; }
.slider-slide { min-width: 100%; height: 350px; }
.slider-slide .image-placeholder {
    width: 100%; height: 100%; margin: 0; border-radius: 0;
    background: linear-gradient(135deg, var(--light-red) 0%, var(--off-white) 100%);
    border: none; box-shadow: none;
}
.slider-slide .image-placeholder img {
    width: 100%; height: 100%; object-fit: cover;
}
.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
    border: none; background: rgba(255,255,255,0.9); color: var(--primary-red);
    border-radius: 50%; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all 0.3s ease; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.slider-btn:hover { background: var(--primary-red); color: var(--white); }
.slider-btn--prev { left: 20px; }
.slider-btn--next { right: 20px; }
.slider-btn svg { width: 24px; height: 24px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white);
    background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.slider-dot.active { background: var(--primary-red); border-color: var(--primary-red); }

/* ========================================
   DELIVERY & CONTACTS
   ======================================== */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card { background: var(--white); padding: 40px; border-radius: 12px; border: 1px solid var(--light-red); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.info-card h4 { font-size: 22px; margin-bottom: 20px; color: var(--primary-red); font-weight: 700; }
.info-card ul li { padding: 12px 0; padding-left: 28px; position: relative; font-size: 16px; color: var(--gray-800); }
.info-card ul li::before { content: '•'; color: var(--primary-red); position: absolute; left: 0; font-weight: bold; font-size: 24px; line-height: 1; }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-item { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; font-size: 16px; color: var(--gray-800); }
.contact-item strong { font-size: 20px; color: var(--gray-900); }
.phone-big { font-size: 26px; font-weight: 700; color: var(--primary-red); margin: 24px 0; text-wrap: nowrap;}
.map-placeholder { width: 100%; height: 100%; min-height: 350px; background: var(--gray-300); border-radius: 12px; overflow: hidden; border: 3px solid var(--primary-red); }
.map-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-600); font-size: 18px; font-weight: 600; }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 60px 0 30px; }
.footer__content { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer__links { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.footer__link { font-size: 15px; color: var(--gray-400); transition: color 0.3s; text-align: center; }
.footer__link:hover { color: var(--white); }
.divider { height: 3px; background: var(--primary-red); width: 80px; border-radius: 2px; }
.copyright { text-align: center; font-size: 14px; color: var(--gray-600); }

/* ========================================
   COOKIE
   ======================================== */

.cookieagry {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
}
.cookieagry-alert {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: 6rem;
    pointer-events: auto;
    padding: 1rem 2rem 1rem 2rem;
    margin: 0 0 1rem;
    position: relative;
    border-radius: 10px;
    animation: alertpopupShow 0.5s forwards;
    background: #343434;
    color: #fff;
    max-width: 1090px;
    margin: 0 auto 2rem auto;
}
.cookieagry__text {
    margin: 0 3rem 0 0;
}

.cookieagry__text a{
    text-decoration: underline;
}

.ui-btn--38, .ui-code__btn {
    padding: 0.5rem 2rem;
    height: 38px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.ui-btn--white {
    background: #fff;
    color: #343434;
}
/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .header__container { gap: 20px; }
    .nav { display: none; }
    .header__contacts { display: none; }
    .header__content-burger {
        display: flex;
    }
    .header__content-burger .is-open {
        display: block;
    }
    .header__content-burger .is-close{
        display: none;
    }
}
@media (max-width: 900px) {
    .socials { justify-content: center; }
    .socials--footer{justify-content: flex-start;}
    .hero { min-height: 500px; }
    .hero__card { padding: 40px 32px; max-width: 100%; }
    .hero__title { font-size: 34px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .opt-container { flex-direction: column; gap: 48px; }
    .opt-form { width: 100%; flex: auto; }
    .about-grid, .info-grid, .contacts-grid { grid-template-columns: 1fr; gap: 48px; }
    .slider-slide { height: 300px; }
}

@media(max-width:767px){
    .cookieagry-alert {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        align-items: stretch;
    }
    .ui-btn--38, .ui-code__btn{
        width: 100%;
        max-width: 100%;
    }
    .cookieagry__text{
        text-align: center;
        margin: 0;
    }

}

@media (max-width: 600px) {
    :root { --section-padding: 60px; }
    .section__title { font-size: 28px; margin-bottom: 32px; }
    .hero { min-height: auto; }
    .hero__container { padding: 60px 0; }
    .hero__card { padding: 32px 24px; border-radius: 16px; }
    .hero__title { font-size: 28px; margin-bottom: 24px; }
    .hero__buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; padding: 14px 24px; }
    .grid-4 { grid-template-columns: 1fr; gap: 16px; }
    .opt-form { padding: 32px 24px; }
    .slider-slide { height: 250px; }
    .slider-btn { display: none; }
    .footer__links { gap: 12px; }
}