:root {
    /* Текст */
    --light-font-color: #795235;

    /* Кнопки */
    --light-button-color: rgb(118, 190, 195);
    --light-button-hover-color: rgb(106, 176, 181);
    --light-button-text-color: #f0f0f0;
    --light-button-hover-text-color: #f3f3f3;
    --light-green-button-color: rgb(96, 181, 121);

    /* Иконки */
    --light-icon-color: rgb(118, 190, 195);
    --url-icon-tg: url("/wp-content/themes/natura/assets/images/social/tg.svg");
    /* Бэкграунд */
    --ligt-bg1-color: #eefafa;
    --dark-bg1-color: #d9ebeb;
    --ligt-bg2-color: #f2fdfd9f;
    --ligt-bg3-color: rgb(125, 213, 221);
    --ligt-bg4-color: #eefafa;
    --ligt-bg5-color: #f2fdfd9f;

    /* Футер */
    --footer-bg-color: rgba(158, 212, 216, 0.719);

    /* Хэдер */
    --header-bg-color: #F1F6F6;
    --header-height: 85px;
    /* Тени */

    /* Краточки */
    --card-shadow: 0px 10px 15px rgba(0, 0, 0, 0.10),
        0px 4px 6px rgba(0, 0, 0, 0.10);
    /* Кнопки */
    --button-hover-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    /* Текс */
    --title-text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.6);
    --other-text-shadow: 0.5px 0.5px 1px rgba(94, 94, 94, 0.6);

    /* Закругления */
    /* Хэдер */
    --header-br: 9999px;
    /* Кнопки */
    --button-br: 9999px;
    /* Карточки */
    --card-br: 16px;
    /* Инпуты */
    --input-br: 12px;
}



* {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    color: #2c2c2c;
}

footer {
    background-color: var(--footer-bg-color);
    padding: clamp(40px, 7dvh, 80px);

}

.text-responsive-footer {
    font-size: clamp(0.8rem, 3.6vw, 1rem);
}


/* ===== Иконки стили ===== */
.tg-icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    background-color: var(--bs-secondary-color) !important;
    -webkit-mask: var(--url-icon-tg) no-repeat center;
    mask: var(--url-icon-tg) no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.vk-icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    background-color: var(--bs-secondary-color) !important;
    -webkit-mask: url("/wp-content/themes/natura/assets/images/social/vk.svg") no-repeat center;
    mask: url("/wp-content/themes/natura/assets/images/social/vk.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ins-icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    background-color: var(--bs-secondary-color) !important;
    -webkit-mask: url("/wp-content/themes/natura/assets/images/social/ins.svg") no-repeat center;
    mask: url("/wp-content/themes/natura/assets/images/social/ins.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.whatsapp-icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    background-color: var(--bs-secondary-color) !important;
    -webkit-mask: url("/wp-content/themes/natura/assets/images/social/whatsapp.svg") no-repeat center;
    mask: url("/wp-content/themes/natura/assets/images/social/whatsapp.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

a {
    text-decoration: none;
}


/* ===== Хедер ===== */
.site-header {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 90%;
    /* на мобилке пусть будет всю ширину */
    max-width: 650px;
    /* на ПК ограничиваем */
}

.link-header {
    font-size: 1.2rem;
}

.phone {
    color: var(--light-font-color);
}

nav {
    display: flex;
    gap: 15px;
}

/* ===== Внутренний блок ===== */
.inner-block {
    width: 100%;
    height: var(--header-height);
    background-color: var(--header-bg-color);
    flex-wrap: wrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: var(--header-br);
    padding: 0 20px;
}

/* ===== Текстовые элементы ===== */

.logo-header {
    height: clamp(40px, 10vw, 65px);
    padding-bottom: 5px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

/* ===== Модалка ===== */
.natura-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999
}

.natura-modal {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 520px;
    width: 95%;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .15)
}

.natura-modal .form-row {
    margin-bottom: 12px
}

.natura-modal .btn {
    margin-top: 8px
}

.natura-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--light-button-color) !important;
    color: var(--light-button-text-color) !important;
    /* зелёное для успеха */
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.natura-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.natura-toast.error {
    background: #dc3545;
    color: var(--light-button-text-color) !important;
}


/* ===== Кнопка ===== */
.btn-natura {
    padding: 15px 30px;
    background-color: var(--light-button-color);
    border-radius: var(--button-br);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: var(--light-button-text-color);
}

.btn-natura:disabled {
    opacity: 0.7 !important;
    border: none !important;
    color: var(--light-button-text-color) !important;
    cursor: not-allowed !important;
}

.btn-natura:focus-visible {
    background-color: var(--light-button-color) !important;
    color: var(--light-button-text-color) !important;
}

.btn-natura:hover {
    box-shadow: var(--button-hover-shadow) !important;
    color: var(--light-button-hover-text-color);
    background-color: var(--light-button-hover-color);
    transform: translateY(-2px);
}

/* ===== Блок с фоном ===== */
.hero-section {
    position: relative;
    /* чтобы псевдоэлемент позиционировался относительно блока */
    width: 100%;
    min-height: 100dvh;
    background-image: url('../assets/images/bg/bg-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(40px, 8vw, 120px) 0;
    /* адаптивные вертикальные отступы */
    color: #2c2c2c;
    overflow: hidden;
    /* чтобы псевдоэлемент не выходил за блок */
}

/* ===== Линейный блюр/градиент слева ===== */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #e5e7ebd2 0%, rgba(0, 0, 0, 0.118) 95%);
    pointer-events: none;
    /* чтобы блоки внутри были кликабельны */
    z-index: 1;
    /* поверх картинки, под контентом */
}

/* ===== Центровщик контента ===== */
.page-center {
    display: flex;
    flex-direction: row;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 60px);
}

/* ===== Контент ===== */
.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* по левому краю на десктопе */
    gap: 20px;
}

.title-hero {
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 400;
    margin-bottom: 10px;
    text-shadow: var(--title-text-shadow) !important;
}

.content-hero {
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.6;
    max-width: 60%;
    text-shadow: var(--other-text-shadow) !important;
}

.content-hero p,
.opa-0 {
    opacity: 0;
}

/* ===== Современная Галерея ===== */
.gallery-modern-section {
    background-color: var(--ligt-bg2-color);
    padding: clamp(40px, 7dvh, 80px);
    overflow: hidden;
    /* Важно для мобильного скролла */
}

.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
    grid-auto-flow: dense;
    /* Ключевая правка: заполняет пустоты */
}


.gallery-card {
    position: relative;
    border-radius: var(--card-br);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

/* Специфические размеры для "стиля" */
.gallery-card.tall {
    grid-row: span 2;
    /* Растяжка на 2 строки */
}

.gallery-card.wide {
    grid-column: span 2;
    /* Растяжка на 2 колонки */
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

/* ===== ЗАМЕТНАЯ ССЫЛКА С ГАЛЕРЕИ ===== */
.all-works-link {
    color: var(--light-font-color); /* твой --light-font-color */
    font-size: 1.25rem; /* крупнее стандартного текста */
    font-weight: 600; /* жирнее, чтобы бросалась в глаза */
    display: inline-flex;
    align-items: center;
    gap: 15px; /* отступ до стрелочки */
    transition: all 0.3s ease-in-out;
    text-decoration: none !important; /* убираем подчеркивание */
    position: relative; /* для эффекта подчеркивания */
}

/* Эффект стрелочки */
.all-works-link .arrow {
    font-size: 1.5rem; /* стрелка еще крупнее текста */
    transition: transform 0.3s ease-in-out;
}

/* АНИМАЦИЯ ПРИ НАВЕДЕНИИ */
.all-works-link:hover {
    color: var(--light-button-hover-color); /* твой --light-button-hover-color */
}

/* Стрелочка "отлетает" вправо */
.all-works-link:hover .arrow {
    transform: translateX(10px);
}

/* Необязательный, но стильный эффект: тонкое подчеркивание, которое "вырастает" при наведении */
.all-works-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--light-button-hover-color); /* твой --light-button-hover-color */
    transition: width 0.3s ease-in-out;
}

.all-works-link:hover::after {
    width: calc(100% - 30px); /* подчеркиваем только текст, без стрелки */
}

/* ===== АДАПТИВ (на мобилке чуть мельче, но так же заметно) ===== */
@media (max-width: 768px) {
    .all-works-link {
        font-size: 1.1rem; /* чуть меньше на маленьких экранах */
        gap: 10px;
    }
    .all-works-link .arrow {
        font-size: 1.3rem;
    }
}

/* ===== АДАПТИВ (Главная магия) ===== */

@media (max-width: 992px) {
    .gallery-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 1. Скрываем лишнее */
    .d-mobile-none {
        display: none !important;
    }

    /* 2. Настраиваем сетку под 3 фото */
    .gallery-grid-modern {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        grid-auto-rows: 150px; /* Высота мелких плиток */
        gap: 10px;
    }

    /* 3. Магия расстановки */
    .gallery-card {
        grid-column: span 1; /* Первые две по умолчанию займут по половинке */
    }

    .gallery-card.wide {
        grid-column: span 2; /* Широкая встанет под ними на всю ширину */
        grid-row: span 2;    /* Можно сделать её побольше, чтобы акцент был мощнее */
    }

    /* Если была tall, на мобилке сделаем её обычной */
    .gallery-card.tall {
        grid-row: span 1 !important;
    }
}

/* ===== Блок о студии ===== */
.title-about {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 300;
    margin-bottom: 10px;
}

.about-section {
    background-color: var(--ligt-bg1-color);
    padding: clamp(40px, 7dvh, 80px);
}

.content-about {
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.6;
    max-width: 85%;
}

.bg-room {
    border-radius: var(--card-br);
    width: clamp(300px, 30vw, 460px);
    height: 100%;
    object-fit: cover
}

.about-icons {
    display: flex;
    flex-direction: row;
}

.icon-30 {
    width: 30px;
    height: 30px;
    background-color: var(--light-icon-color);
}

.icon-scissors {
    -webkit-mask: url("../assets/images/svg/scissors.svg") no-repeat center;
    mask: url("../assets/images/svg/scissors.svg") no-repeat center;
}

.icon-heart {
    -webkit-mask: url("../assets/images/svg/heart.svg") no-repeat center;
    mask: url("../assets/images/svg/heart.svg") no-repeat center;
}


.about-icon {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    text-align: center;
}

.p-size {
    font-size: clamp(18px, 1.5vw, 20px);
}

/* ===== Карточку переписал ===== */
.card {
    background-color: #ffffff !important;
    border-radius: var(--card-br) !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #f5f1eb !important;
    box-shadow: var(--card-shadow) !important;
}

.card-title {
    font-size: clamp(14px, 1.7rem, 24px);
    font-weight: 400;
}

.card-text {
    font-size: clamp(12px, 1.3rem, 18px);
}

/* ===== Блок наши курсы ===== */
.courses-section {
    background-color: var(--ligt-bg2-color);
    padding: clamp(40px, 7dvh, 80px);
}

.text-price {
    color: var(--light-font-color);
}

.courses-description {
    min-height: 190px;
}

.title-courses {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 300;
    margin-bottom: 10px;
}

/* ===== Блок отзывы ===== */
.reviews-section {
    background-color: var(--ligt-bg4-color);
    padding: clamp(40px, 7dvh, 80px);
}

.reviews-card {
    box-shadow: var(--card-shadow) !important;
    border-radius: var(--card-br);
}

/* ===== Блок информации ===== */
.info-section {
    background-color: var(--ligt-bg3-color);
}

.title-info,
.title-operator {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 300;
    margin-bottom: 10px;
}

/* ===== Блок обратного звонка ===== */
.call-section {
    padding: clamp(40px, 7dvh, 80px);
    background-color: var(--ligt-bg5-color);
}

.callback-card {
    max-width: 848px;
    background-color: #ffffff;
    border-radius: var(--card-br);
    border: 1px solid #e5e7eb;
    box-shadow: var(--card-shadow) !important;
}

input {
    border-radius: var(--input-br) !important;
}

/* Общий стиль для иконок */
.decor-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 2;
}

/* Верхняя правая с поворотом вправо */
.decor-icon.top-right {
    top: -15px;
    right: -35px;
    transform: rotate(15deg);
}

/* Нижняя левая с поворотом влево */
.decor-icon.bottom-left {
    bottom: -15px;
    left: -35px;
    transform: rotate(-15deg);
}

/* Верхняя левая с поворотом влево */
.decor-icon.top-left {
    top: -15px;
    left: -35px;
    transform: rotate(15deg);
}

/* Нижняя правая с поворотом влево */
.decor-icon.bottom-right {
    bottom: -15px;
    right: -35px;
    transform: rotate(-15deg);
}

.custom-icon-reviews {
    top: 45px !important;
    left: 55px !important;
}

/* ===== Куки ===== */
#natura-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--ligt-bg1-color);
    color: var(--light-font-color);
    padding: 16px 24px;
    border-radius: var(--card-br);
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    z-index: 99999;
    max-width: 95%;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 1s ease;
}

#natura-cookie-banner.show {
    opacity: 1;
    pointer-events: all;
}

#natura-cookie-banner p {
    margin: 0;
    font-size: 14px;
}

#natura-cookie-banner .btn-natura {
    padding: 8px 16px;
    font-size: 14px;
}

/* ===== Адаптив ===== */
@media (max-width: 1380px) {
    .about-icon {
        display: flex;
        gap: 1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 1210px) {
    .page-center {
        flex-direction: column;
        align-items: center;
    }

    .bg-room {
        width: clamp(250px, 45vw, 400px);
        height: 50%;
    }

    .content {
        align-items: center;
    }

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

    .content-hero {
        max-width: 90%;
        display: flex;
        flex-direction: column;
    }

    .btn-natura {
        padding: 15px 20px;
    }
}


@media (max-width: 768px) {
    .w-sm-100 {
        width: 100% !important;
    }

    .logo-header {
        height: clamp(40px, 15vw, 65px);
    }

    .hero-section {
        justify-content: center;
        text-align: center;
    }

    .about-section,
    .courses-section,
    .call-section,
    .reviews-section,
    footer {
        padding-left: clamp(10px, 1dvh, 30px);
        padding-right: clamp(10px, 1dvh, 30px);
    }

    .link-header {
        font-size: clamp(0.8rem, 3.7dvw, 1.1rem);
    }

    .inner-block {
        flex-direction: column;
        gap: 10px;
    }

    .custom-icon-reviews {
        left: 15px !important;
    }

    #natura-cookie-banner {
        width: 90%;
    }

    .sewing-machine-right {
        right: -5px !important;
    }
}

@media (max-width: 360px) {
    .logo-header {
        height: clamp(40px, 13vw, 65px);
    }

    .safe-text-narrow {
        font-size: clamp(1.1rem, 3.6vw, 1.25rem) !important;
    }
}