/*
Theme Name: ВкусноДар ТЦ
Theme URI: https://vkusnodar.ru
Author: WordPress Developer
Author URI: https://vkusnodar.ru
Description: Тема для торгового центра ВкусноДар с BEM-вёрсткой
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vkusnodar
*/

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */

@font-face {
    font-family: "BloggerSans";
    src: url("./assets/fonts/Blogger_Sans.eot");
    src: local("☺"), url("./assets/fonts/Blogger_Sans.woff") format("woff"), url("./assets/fonts/Blogger_Sans.ttf") format("truetype"), url("./assets/fonts/Blogger_Sans.svg") format("svg");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "BloggerSansBold";
    src: url("./assets/fonts/Blogger_Sans-Bold.eot");
    src: local("☺"), url("./assets/fonts/Blogger_Sans-Bold.woff") format("woff"), url("./assets/fonts/Blogger_Sans-Bold.ttf") format("truetype"), url("./assets/fonts/Blogger_Sans-Bold.svg") format("svg");
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Цвета */
    --color-primary: #7CB342;
    --color-primary-dark: #689F38;
    --color-primary-light: #9CCC65;
    --color-secondary: #558B2F;
    --color-accent: #FDD100;
    --color-accent-dark: #dbbe16;
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray: #757575;
    --color-gray-light: #F5F5F5;
    --color-bg-dark: #2E3B1F;
    
    /* Шрифты */
    --font-a: 'BloggerSansBold';
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Размеры */
    --header-height: 80px;
    --container-max: 1400px;
    --container-padding: 20px;
    
    /* Отступы */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-xxl: 100px;
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Сброс стилей */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* Контейнер */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.white-text{
    color: #fff;
}

/* ========================================
   ШАПКА (header)
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-primary);
    z-index: 1000;
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.header--scrolled {
    background: rgba(124, 179, 66, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header__logo-icon {
    padding: 10px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    font-family: var(--font-a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header__menu-item {
    position: relative;
}

.header__menu-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-xs) 0;
    position: relative;
}

.header__menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: width var(--transition-normal);
}

.header__menu-link:hover::after,
.header__menu-link--active::after {
    width: 100%;
}
.header__contacts-wrap{
    display: flex;
    gap: var(--space-sm);
}
.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.header__soc{
    display: flex;
    gap: var(--space-sm);
    margin-right: 20px;
    align-items: center;
}
.header__social-link{

}
.header__social-link svg{
    width: 25px;
    height: 25px;
}

.header__phone {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
}

.header__callback {
    font-size: 12px;
    color: var(--color-white);
    text-decoration: underline;
    opacity: 0.9;
}

.header__callback:hover {
    opacity: 1;
}

.h2_block {
    font-size: clamp(28px, 3vw, 40px);
    font-family: var(--font-a);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

/* ========================================
   HERO БЛОК
   ======================================== */

.hero {
    min-height: 100vh;
    width: 100%;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-secondary) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.hero__logo{
    width: 220px;
    margin-right: 30px;
    display: flex;
    align-items: center;
    height: 100%;
}
.hero__logo img{
    width: 100%;
}
.hero:before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(0,0,0,0.6);
}
.hero__container {
    display: flex;
    gap: var(--space-xl);
    align-items: stretch;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative;
    z-index: 2;
}

.hero__content {
    color: var(--color-white);
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(50% - var(--space-lg));
    padding-right: 100px;
}

.hero__right{
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 50%;
    background: rgba(255,255,255,0.7);
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-family: var(--font-a);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.hero__title span {
    color: var(--color-accent);
}

.hero__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.hero__info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    opacity: 0.85;
    font-weight: bold;
}

.hero__info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-std {
    background: rgba(255, 255, 255, 0.7);
    color: #000;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.form-std__wrap {
    border: 3px solid var(--color-primary);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
}

.form-std__title {
    font-size: 170%;
    line-height: 1.2;
    font-family: var(--font-a);
    margin-bottom: var(--space-xs);
    text-align: center;
    text-transform: uppercase;
}
.form-std__desc {
    font-size: 100%;
    font-weight: 400;
    margin-bottom: var(--space-md);
    text-align: center;
}

.vertical__form{
    display: flex;
    flex-direction: column;
}
.vertical__form .form__row{
    margin-bottom: var(--space-sm);
}

.hero__slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    width: 100%;
}


/* Slick: чтобы слайды растягивались на высоту контейнера */
.hero__slider .slick-list,
.hero__slider .slick-track,
.hero__slider .slick-slide,
.hero__slider .slick-slide > div {
    height: 100%;
}

.hero__slider-item {
    position: relative;
    height: 100%;
}


.hero__slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__slider-nav {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.hero__slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.hero__slider-dot--active {
    background: var(--color-white);
}

/* ========================================
   ФОРМЫ
   ======================================== */

.form__input {
    width: 100%;
    padding: var(--space-sm) var(--space-sm);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-black);
    font-size: 14px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form__input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}
.form__input:focus {
    outline: none;
    border-color: var(--color-white);
    background: rgba(0, 0, 0, 0.15);
}

.form--white .form__input{
    border-color: #999;
    background: #fefefe;
}
.form--white .form__input::placeholder{
    color: #999;
}
.form--white .form__input:focus{
    border-color: #000;
    background: #fff;
}

.form__row{
    display: flex;
    flex-wrap: wrap;
}
.form__row.form__row--two_col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}


.form__button {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.form__button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   ПРЕИМУЩЕСТВА
   ======================================== */

.advantages {
    padding: var(--space-xxl) 0;
    background: var(--color-bg-dark);
}

.advantages__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.advantages__slider {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Slick: растягиваем трек на высоту */
.advantages__slider .slick-list,
.advantages__slider .slick-track,
.advantages__slider .slick-slide,
.advantages__slider .slick-slide > div {
    height: 100%;
}

.advantages__slider-item {
    position: relative;
    height: 100%;
}


.advantages__slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advantages__content {
    color: var(--color-white);
}


.advantages__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.advantages__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.advantages__item-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantages__item-content {
    flex: 1;
}

.advantages__item-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 10px;
}

.advantages__item-text {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

/* ========================================
   ПЛАН-СХЕМА
   ======================================== */

.floor-plan {
    padding: var(--space-xxl) 0;
    background: var(--color-primary);
}

.floor-plan__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    text-align: center;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
}

.floor-plan__container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.floor-plan__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.floor-plan__image {
    width: 100%;
    height: auto;
    display: block;
}

.floor-plan__modules {
    position: absolute;
    inset: 0;
}

.floor-plan__module {
    position: absolute;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.floor-plan__module:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(124, 179, 66, 0.5);
}

.floor-plan__module--1 {
    top: 15%;
    left: 10%;
    width: 35%;
    height: 30%;
    background: rgba(124, 179, 66, 0.3);
}

.floor-plan__module--2 {
    top: 15%;
    right: 10%;
    width: 35%;
    height: 30%;
    background: rgba(255, 193, 7, 0.3);
}

.floor-plan__module--3 {
    bottom: 15%;
    left: 25%;
    width: 50%;
    height: 30%;
    background: rgba(33, 150, 243, 0.3);
}

.floor-plan__module-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    text-align: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.floor-plan__module:hover .floor-plan__module-label {
    opacity: 1;
}

/* Модальное окно плана */
.floor-plan__modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.floor-plan__modal--active {
    display: flex;
}

.floor-plan__modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.floor-plan__modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--color-gray-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background var(--transition-fast);
    z-index: 10;
}

.floor-plan__modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.floor-plan__modal-image {
    width: 100%;
    height: auto;
}

.floor-plan__modal-info {
    padding: var(--space-lg);
}

.floor-plan__modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.floor-plan__modal-text {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.floor-plan__modal-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.floor-plan__modal-button:hover {
    background: var(--color-primary-dark);
}

/* ========================================
   МАГАЗИНЫ (бегущая строка)
   ======================================== */

.stores {
    padding: var(--space-xl) 0;
    background: var(--color-white);
    overflow: hidden;
}

.stores__title {
    text-align: center;
    color: var(--color-black);
}

.stores__marquee {
    position: relative;
    overflow: hidden;
}

.stores__marquee-track {
    display: flex;
    gap: var(--space-xl);
    animation: marquee 30s linear infinite;
}

.stores__marquee:hover .stores__marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stores__item {
    flex-shrink: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-gray-light);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stores__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stores__item-logo {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}

.stores__item-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
}

/* ========================================
   НОВОСТИ
   ======================================== */

.news {
    padding: var(--space-xxl) 0;
    background: var(--color-bg-dark);
}

.news__container {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.news__image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: calc(50% - 20px);
    aspect-ratio: 1.3;
}

.news__media {
    position: relative;
    width: 100%;
    height: 100%;
}

.news__media-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
    z-index: 1;
}

.news__media-item--active {
    opacity: 1;
    transform: none;
    z-index: 2;
}

.news__media-item--enter-up,
.news__media-item--enter-down {
    opacity: 0;
    z-index: 3;
}

.news__media-item--leave-up,
.news__media-item--leave-down {
    opacity: 1;
    z-index: 2;
}

.news__media-item.is-animating.news__media-item--enter-up,
.news__media-item.is-animating.news__media-item--enter-down {
    opacity: 1;
    transform: none;
    transition: opacity .42s ease, transform .42s ease;
}

.news__media-item.is-animating.news__media-item--leave-up {
    opacity: 0;
    transform: translateY(-18px) scale(1.02);
    transition: opacity .42s ease, transform .42s ease;
}

.news__media-item.is-animating.news__media-item--leave-down {
    opacity: 0;
    transform: translateY(18px) scale(1.02);
    transition: opacity .42s ease, transform .42s ease;
}

.news__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__image--fallback {
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    height: 100%;
}

.news__content {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    width: 50%;
}

.news__list-slider {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.news__list-viewport {
    overflow: hidden;
    transition: height .34s ease;
}

.news__list-viewport--animated {
    transition: height .34s ease;
}

.news__list-track {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    will-change: transform;
}

.news__list-track--animated {
    transition: transform .42s cubic-bezier(.22,.61,.36,1);
}

.news__item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 4px solid var(--color-primary);
    cursor: pointer;
    transition:
        background .25s ease,
        border-color .25s ease,
        opacity .42s ease,
        transform .42s ease,
        box-shadow .25s ease;
}

.news__item:hover,
.news__item--active {
    background: rgba(255, 255, 255, 0.10);
}

.news__item--active {
    border-left-color: var(--color-accent);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.news__item--leave-up {
    opacity: 0;
    transform: translateY(-28px) scale(.96);
    pointer-events: none;
}

.news__item--leave-down {
    opacity: 0;
    transform: translateY(28px) scale(.96);
    pointer-events: none;
}

.news__item--enter-bottom {
    opacity: 0;
    transform: translateY(28px) scale(.96);
    animation: newsCardEnterUp .42s forwards;
}

.news__item--enter-top {
    opacity: 0;
    transform: translateY(-28px) scale(.96);
    animation: newsCardEnterDown .42s forwards;
}

@keyframes newsCardEnterUp {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes newsCardEnterDown {
    to {
        opacity: 1;
        transform: none;
    }
}

.news__item-date {
    font-size: 12px;
    color: var(--color-primary-light);
    margin-bottom: var(--space-xs);
}

.news__item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.news__item-excerpt {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.news__item-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-sm);
}

.news__slider-nav {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.news__slider-arrow {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: background var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.news__slider-arrow:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.news__slider-arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 1023px) {
    .news__container {
        grid-template-columns: 1fr;
        flex-wrap: wrap;
    }
    .news__content{
        width: 100%;
    }

    .news__image-wrapper {
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 767px) {
}
/* ========================================
   КОНТАКТЫ
   ======================================== */

.contacts {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-secondary) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.contacts:before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(0,0,0,0.6);
}

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

.contacts__header {
    text-align: center;
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.contacts__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.contacts__subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contacts__info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: var(--color-white);
}

.contacts__info-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacts__info-content {
    flex: 1;
}

.contacts__info-label {
    font-size: 14px;
    opacity: 1;
    color: #f2f2f2;
    margin-bottom: var(--space-xs);
    text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; /* Черная обводка */
}

.contacts__info-value {
    font-size: 18px;
    font-weight: 600;
    text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; /* Черная обводка */
}

.contacts__info-value a {
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.contacts__info-value a:hover {
    color: var(--color-primary-light);
}

.contacts__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contacts__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.contacts__form-wrapper{
    max-width: 560px;
    margin: 0 auto;
}

/* ========================================
   ФУТЕР
   ======================================== */

.footer {
    background: #33691E;
    padding: var(--space-xl) 0 var(--space-lg);
    color: var(--color-white);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer__logo-icon {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
}

.footer__logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer__description {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer__column-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    color: var(--color-primary-light);
}

.footer__menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__menu-link {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer__menu-link:hover {
    opacity: 1;
    color: var(--color-primary-light);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    margin-bottom: var(--space-sm);
}

.footer__contact-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.footer__bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: 12px;
    opacity: 0.6;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-primary);
}

/* ========================================
   МОДАЛЬНОЕ ОКНО
   ======================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal--active {
    display: flex;
}

.modal__content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--color-gray-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background var(--transition-fast);
    z-index: 10;
    border: none;
}

.modal__close:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.modal__body {
    padding: var(--space-xl);
}

.modal__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-black);
    text-align: center;
}

.modal__text {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* ========================================
   УТИЛИТЫ
   ======================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ
   ======================================== */

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.header__mobile-line {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: transform var(--transition-fast);
}

.header__mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-primary);
    z-index: 2000;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
}

.header__mobile-menu--active {
    right: 0;
}

.header__mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.header__mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: pointer;
    border: none;
}

.header__mobile-close span {
    width: 20px;
    height: 2px;
    background: var(--color-white);
}

.header__mobile-close span:first-child {
    transform: rotate(45deg) translateY(1px);
}

.header__mobile-close span:last-child {
    transform: rotate(-45deg) translateY(-1px);
}

.header__mobile-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.header__mobile-list a {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header__mobile-contacts {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.header__mobile-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    text-align: center;
}

.header__mobile-button {
    padding: var(--space-md);
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background var(--transition-fast);
}

.header__mobile-button:hover {
    background: var(--color-gray-light);
}

/* ========================================
   УВЕДОМЛЕНИЯ
   ======================================== */

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    z-index: 5000;
    transform: translateX(150%);
    transition: transform var(--transition-normal);
}

.notification--visible {
    transform: translateX(0);
}

.notification__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.notification--success .notification__content {
    background: var(--color-primary);
    color: var(--color-white);
}

.notification--error .notification__content {
    background: #e53935;
    color: var(--color-white);
}

.notification__message {
    font-size: 14px;
    font-weight: 500;
}

.notification__close {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: inherit;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   СТРАНИЦА КОНТЕНТА
   ======================================== */

.page-content {
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
    min-height: 60vh;
}

.page-content__article {
    max-width: 800px;
    margin: 0 auto;
}

.page-content__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--color-black);
}

.page-content__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray);
}

.page-content__text h2,
.page-content__text h3,
.page-content__text h4 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.page-content__text p {
    margin-bottom: var(--space-md);
}

.page-content__text ul,
.page-content__text ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.page-content__text ul {
    list-style: disc;
}

.page-content__text ol {
    list-style: decimal;
}

.page-content__text li {
    margin-bottom: var(--space-xs);
}

.page-content__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-content__text a:hover {
    color: var(--color-primary-dark);
}

.page-content__text img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

/* ========================================
   СТРАНИЦА 404
   ======================================== */

.error-404 {
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-dark);
}

.error-404__container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-404__content {
    text-align: center;
    color: var(--color-white);
}

.error-404__title {
    font-size: clamp(100px, 20vw, 200px);
    font-weight: 800;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.error-404__subtitle {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.error-404__text {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-404__button {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.error-404__button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* ========================================
   SVG ПЛАН-СХЕМА
   ======================================== */

.floor-plan__module-svg {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.floor-plan__module-svg:hover .floor-plan__module-rect {
    filter: brightness(1.1);
}

/* ========================================
   УТИЛИТЫ
   ======================================== */

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

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }


/* ========================================
   НОВОСТИ - кнопка "Подробнее" и попап
   ======================================== */

.news__item-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: auto;
}

.news__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-white);
    text-decoration: underline;
    transition: transform var(--transition-fast);
}

.news__more:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

/* Контент новости в Magnific Popup */
.news-popup {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.news-popup__content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.news-popup__media {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
}

.news-popup__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-popup__body {
    padding: var(--space-xl);
}

.news-popup__date {
    font-size: 12px;
    color: var(--color-gray);
    margin-bottom: var(--space-sm);
}

.news-popup__title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.news-popup__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray);
}

.news-popup__text h2,
.news-popup__text h3,
.news-popup__text h4 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.news-popup__text p {
    margin-bottom: var(--space-md);
}

/* ========================================
   Magnific Popup - адаптация существующих модалок
   ======================================== */

/* Оставляем старую разметку модалок скрытой на странице */
.modal,
.floor-plan__modal {
    display: none;
}

/* Когда Magnific переносит контент внутрь .mfp-content, показываем его и убираем "оверлейные" стили */
.mfp-content .modal {
    display: block;
    position: relative;
    inset: auto;
    background: transparent;
    padding: 0;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.mfp-content .modal__content {
    animation: none;
}

.mfp-content .floor-plan__modal {
    display: block;
    position: relative;
    inset: auto;
    background: transparent;
    padding: 0;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

.mfp-content .floor-plan__modal-content {
    max-height: 80vh;
}

/* Немного прибрать дефолтный close (можно убрать, если нравится) */
.mfp-close {
    opacity: 0.8;
}
.mfp-close:hover {
    opacity: 1;
}


.checkbox-container {
    display: block;
    text-align: left;
    font-size: 14px;
    padding-left: 25px;
    position: relative; }

.checkbox-container a{
    color: var(--color-bg-dark);
    text-decoration: underline;
}
.checkbox-container input[type="radio"],
.checkbox-container input[type="checkbox"] {
    opacity: 0;
    z-index: 2;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer; }

.psevdo-checkbox {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 2px;
    left: 0;
    z-index: 1; }

.psevdo-checkbox:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    z-index: 0;
    cursor: pointer; }

.psevdo-checkbox:after {
    content: '';
    display: block;
    border-radius: 3px;
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px; }

input[type="checkbox"]:checked ~ .psevdo-checkbox:after {
    text-align: center;
    background: var(--color-primary); }

input[type=checkbox]:checked + span.psevdo-checkbox{
    background: transparent;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 1380px) {
    .hero__container {
        align-items: center;
    }
    .hero__content{
        padding-right: 20px;
    }
}

@media (max-width: 1024px) {
    :root {
        --container-padding: 15px;
    
        /* Отступы */
        --space-xs: 8px;
        --space-sm: 14px;
        --space-md: 21px;
        --space-lg: 36px;
        --space-xl: 50px;
        --space-xxl: 70px;
        
        /* Скругления */
        --radius-sm: 8px;
        --radius-md: 14px;
        --radius-lg: 21px;
        --radius-full: 50%;
    }
    .advantages__container,
    .news__container,
    .contacts__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero__container {
        flex-wrap: wrap;
    }

    .hero__content {
        width: 100%;
        padding-right: 0px;
    }

    .hero__right{
        width: 100%;
        margin-bottom: 20px;
    }
    .hero__slider.slick-dotted.slick-slider{
        padding: 0;
    }
    
    .hero__slider,
    .advantages__slider {
        height: 300px;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .footer__columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hero__logo{
        width: 150px;
    }
    .header__nav {
        display: none;
    }
    
    .header__contacts {
        display: none;
    }
    
    .header__mobile-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
    }
    
    .hero__form {
        padding: var(--space-md);
    }
    
    .contacts__form-row {
        grid-template-columns: 1fr;
    }
    
    .footer__columns {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}