* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}
:root {
    /* ============= TYPOGRAPHY TOKENS ============= */
    --font-display: "Playpen Sans Hebrew", "Rubik Spray Paint", system-ui,
        -apple-system, "Segoe UI", sans-serif;
    --font-sans: "Heebo", "Roboto", system-ui, -apple-system, "Segoe UI",
        sans-serif;

    --green-900: #042425; /* фон тела сайта (глубокий изумрудно-темный фон) */
    --green-800: #143831; /* тени, градиенты и нижние секции */
    --green-700: #1b4a43; /* акцентный тёмный фон или hover состояния */
    --green-600: #24584e; /* второстепенный тёмно-зелёный элемент — кнопки или рамки */

    --gold-600: #c59a4f; /* тайтлы, лого, акценты на светлом фоне (золотистый с теплотой) */
    --gold-500: #d9b26e; /* основной акцент — текст в шапке и заголовки */
    --gold-300: #e8c987; /* подсветки, иконки, hover и декоративные элементы */

    --cream-100: #fff3e1; /* фон шапки (светлый, теплый, слегка золотистый) */
    --cream-50: #fff9ec; /* вспомогательный фон, карточки, hover состояния */
    --sand-200: #e9dfcf; /* нейтральный подложечный цвет, для баланса или разделителей */

    --text-on-dark: #f4f8f6; /* основной текст на зелёном фоне */
    --text-muted: #c7d5ce; /* второстепенный текст, описания */
    --text-strong: #17211d; /* основной текст на светлом фоне */

    --green-500: #2e6a60; /* hover/active состояние зелёных кнопок */
    --gold-700: #a47e37; /* насыщенные декоративные акценты или заголовки */

    --shadow-gold: 0 4px 14px rgba(213, 169, 88, 0.25); /* мягкая тень под золотые блоки */
    --shadow-green: 0 4px 18px rgba(4, 36, 37, 0.4); /* глубокие тени на зелёном фоне */

    /* базовая шкала размеров (rem) – легко подкручивать на весь проект */
    --fs-xxs: 0.75rem; /* 12px  – подписи, метки */
    --fs-xs: 0.875rem; /* 14px  – вторичный текст */
    --fs-sm: 1rem; /* 16px  – основной текст P */
    --fs-md: 1.125rem; /* 18px  – крупный абзац/лид */
    --fs-lg: 1.375rem; /* 22px  – h5 */
    --fs-xl: 1.75rem; /* 28px  – h4 */
    --fs-2xl: 2.25rem; /* 36px  – h3 */
    --fs-3xl: 3rem; /* 48px  – h2 */
    --fs-4xl: 4rem; /* 60px  – h1 (герой) */

    /* межстрочные и трекинг под «деревенский» характер */
    --lh-tight: 1.1;
    --lh-snug: 1.25;
    --lh-normal: 1.8;
    --track-tight: -0.01em;
    --track-wide: 0.02em;
}

/* ================== BASE ================== */

html,
body {
    font-size: 110%;
    scroll-behavior: smooth; /* Плавная прокрутка */
}

/* ================== FLUID HEADINGS & TEXT ================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: var(--track-wide);
    color: var(--gold-500); /* инверсия: заголовки на тёмном — золотые */
    margin: 0 0 0.6em;
}

/* ===== Заголовки ===== */

h1 {
    font-size: clamp(3rem, 6vw, var(--fs-4xl));
    line-height: clamp(1.1, 1.2vw + 1, var(--lh-tight));
}

h2 {
    font-size: clamp(1.75rem, 3.2vw + 0.4rem, var(--fs-3xl));
    line-height: clamp(1.15, 1.5vw + 1, var(--lh-tight));
}

h3 {
    font-size: clamp(1.5rem, 2.8vw + 0.3rem, var(--fs-2xl));
    line-height: clamp(1.2, 1.5vw + 1, var(--lh-snug));
}

h4 {
    font-size: clamp(1.25rem, 2.2vw + 0.2rem, var(--fs-xl));
    line-height: clamp(1.25, 1.4vw + 1, var(--lh-snug));
}

h5 {
    font-size: clamp(1.1rem, 1.8vw + 0.2rem, var(--fs-lg));
    line-height: clamp(1.3, 1.2vw + 1, var(--lh-snug));
}

h6 {
    font-size: clamp(1rem, 1.4vw + 0.15rem, var(--fs-md));
    line-height: clamp(1.35, 1.1vw + 1, var(--lh-snug));
}

/* Текст – чистый и современный */
body,
p,
a,
li {
    font-family: var(--font-sans);
    font-weight: 400;
}
/* ===== Параграфы и базовый текст ===== */
p {
    font-size: clamp(0.9rem, 1vw + 0.3rem, var(--fs-md));
    line-height: clamp(1.5, 0.5vw + 1.4, var(--lh-normal));
    color: var(--text-on-dark);
    margin: 0 0 1em;
}

small {
    font-size: var(--fs-xxs);
}
.lead {
    font-size: var(--fs-md);
    line-height: var(--lh-normal);
    color: var(--text-on-dark);
}
.muted {
    color: var(--text-muted);
}

/* ссылки: рустик-акцент золотом, с мягким hover */
a {
    color: var(--gold-300);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover,
a:focus {
    color: var(--gold-500);
    text-shadow: 0 0 0.02em currentColor;
    outline: none;
}

/* списки — комфортные отступы и читабельные маркеры */
ul,
ol {
    margin: 0 0 1em 1.25em; /* RTL браузеры сами переложат маркеры слева/справа */
    padding: 0;
    line-height: var(--lh-normal);
}
li {
    margin-block: 0.25em;
}

/* цитаты — «кафэ/כפרי» карточка */
blockquote {
    margin: 1.25em 0;
    padding: 1em 1.25em;
    border-inline-start: 4px solid var(--gold-600);
    background: rgba(20, 56, 49, 0.35); /* green-800 с прозрачностью */
    border-radius: var(--radius);
    color: var(--text-on-dark);
}

/* код/моно — на всякий случай */
code,
pre,
kbd,
samp {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas,
        "Liberation Mono", monospace;
    font-size: 0.95em;
}

/* ================== FORM & BUTTONS (минимум для текста) ================== */
button,
input,
select,
textarea {
    font: inherit; /* глобально унаследует rem + шрифты */
    color: inherit;
}

/* ========== Вариант 1: зелёная кнопка с золотым текстом ========== */
.btn--green {
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--green-700) 50%, transparent),
        var(--green-600) 85%,
        color-mix(in srgb, var(--green-700) 40%, transparent)
    );
    color: var(--gold-300);
    border: 1px solid color-mix(in srgb, var(--green-600) 30%, transparent);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.btn--green:hover {
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--green-700) 60%, transparent),
        var(--green-500) 85%,
        color-mix(in srgb, var(--green-700) 50%, transparent)
    );
    color: var(--gold-500);
    transform: translateY(-2px);
}

/* ========== Вариант 2: золотая кнопка с зелёным текстом ========== */
.btn--gold {
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--gold-500) 40%, transparent),
        var(--gold-500) 85%,
        color-mix(in srgb, var(--gold-500) 20%, transparent)
    );
    color: var(--green-900);
    border: 1px solid color-mix(in srgb, var(--gold-600) 30%, transparent);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.btn--gold:hover {
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--gold-300) 50%, transparent),
        var(--gold-500) 85%,
        color-mix(in srgb, var(--gold-300) 50%, transparent)
    );
    color: var(--green-900);
    transform: translateY(-2px);
}

/* ========== Общие эффекты для всех вариантов ========== */
.btn {
    display: block;
    width: 100%;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    backdrop-filter: blur(6px);
    font-family: var(--font-sans);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.site-wrapper {
    direction: rtl;
    position: relative;
    font-family: var(--font-display);
    line-height: var(--lh-normal);
    color: var(--text-on-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Фиксированный фон на всём экране */
.site-wrapper::before {
    content: "";
    position: fixed; /* ← ключевое отличие */
    inset: 0;
    background: url("/images/home-page/נורווגיה\(1\).jpg") no-repeat center
        center/cover;
    z-index: -2;
}
/* Полупрозрачный слой для затемнения */
.site-wrapper::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(
        0,
        0,
        0,
        0.5
    ); /* ← уровень затемнения: 0.5 = средне, можно 0.3–0.7 */
    z-index: -1; /* поверх фона, но под контентом */
}

/* ===== HERO / HEADER — цвета на проектных токенах ===== */

.header {
    position: relative;
    width: 100%;
    height: 90vh;
}

.header__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    object-fit: cover;
}

/* тёмное виньетирование поверх видео (на основе зелёной палитры проекта) */
/* .header::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
            60% 60% at 50% 35%,
            color-mix(in srgb, var(--green-900) 40%, transparent) 0%,
            transparent 70%
        ),
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--green-800) 35%, transparent) 0%,
            color-mix(in srgb, var(--green-900) 60%, transparent) 100%
        );
} */

.header__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.header__video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: color-mix(
        in srgb,
        var(--green-900) 50%,
        transparent
    ); /* общий диммер */
}

/* видео */
.header__bg-video {
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* кнопка управления видео — нейтральная на основе палитры */
.video-toggle {
    position: absolute;
    z-index: 28;
    inset-inline-end: 1rem;
    bottom: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 0;
    background: color-mix(in srgb, var(--green-900) 60%, transparent);
    color: var(--cream-100);
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(4px);
    font-family: var(--font-sans);
}
.video-toggle:focus-visible {
    outline: 3px solid var(--cream-100);
    outline-offset: 2px;
}

/* плавающая карточка-герой (стекло) */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 21;
    text-align: center;
    background: transparent;
    border-radius: 8px;
    /* margin: 5rem 2rem; */
    max-width: 800px;
}
.hero__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    /* padding: clamp(16px, 2.5vw, 32px) clamp(18px, 4vw, 40px); */
    /* border-radius: 18px; */
    /* стекло в цветах сайта */
    /* background: color-mix(in srgb, var(--green-900) 46%, transparent); */
    /* backdrop-filter: blur(1px); */
    /* -webkit-backdrop-filter: blur(1px); */
    /* border: 1px solid color-mix(in srgb, var(--gold-600) 18%, transparent); */
    /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); */
}

.hero__container-img {
    display: flex;
    justify-content: center;
}
.hero__container-img img {
    width: 15%;
    height: auto;
}

/* заголовок и акцент из «золотой» гаммы */
.hero__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 6rem);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--cream-100);
}

.hero__title::after {
    content: "";
    display: block;
    width: 80%; /* длина линии */
    height: 3px; /* толщина */
    background-color: var(--gold-500); /* цвет линии */
    margin: 0 auto 0; /* центрирование */
    border-radius: 3px;
}
.hero__title .accent {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* подзаголовок — светлый текст с тонкой рамкой «золота» */
.hero__subtitle {
    align-self: center;
    margin: 6px 0 0;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0.5rem;
    /* background: color-mix(in srgb, var(--green-900) 46%, transparent); */
    max-width: 90%;
    /* border: 1px solid color-mix(in srgb, var(--gold-600) 22%, transparent); */
    border-radius: 1rem;
}

.main {
    position: relative;
    z-index: 30;
    background: transparent;
}

/* ==== FAQ Accordion (Eden Riboy) ==== */

.faq {
    position: relative;
    background: url("/images/home-page/דומיטור_.jpg") no-repeat center center /
        cover !important;
    overflow: hidden; /* чтобы не выходил за границы */
}
/* затемняем картинку */
.faq::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(
        0,
        0,
        0,
        0.7
    ); /* 0.7 — уровень затемнения (0 = прозрачно, 1 = чёрный) */
    z-index: 0;
}

/* если внутри есть текст — он должен быть поверх */
.faq > * {
    position: relative;
    z-index: 1;
}
.faq .sect__inner {
    max-width: 980px;
    justify-content: center;
    text-align: center;
    margin-inline: auto;
}

.accordion {
    display: grid;
    gap: 0.75rem;
    text-align: right;
}

.accordion__item {
    background: var(--green-800);
    border: 1px solid color-mix(in srgb, var(--gold-600) 20%, transparent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-green, 0 4px 18px rgba(4, 36, 37, 0.25));
}
.accordion__title .accordion__btn {
    font-size: var(--fs-md);
}

/* כפתור שאלה */
.accordion__btn {
    /* вместо all:unset */
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    text-align: inherit;
    font: inherit;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 1rem 1.25rem;

    /* цвет задаём явно, наследуется на .accordion__icon (currentColor) */
    color: var(--gold-500);
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    letter-spacing: var(--track-wide);
}

/* видимый фокус для доступности */
.accordion__btn:focus-visible {
    outline: 2px solid var(--gold-600);
    outline-offset: 2px;
}

.accordion__btn:hover,
.accordion__btn:focus {
    color: var(--gold-300);
    outline: none;
    text-shadow: 0 0 0.02em currentColor;
}

/* ======== Анимация + / × ======== */
.accordion__icon {
    inline-size: 1.2em;
    block-size: 1.2em;
    position: relative;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.accordion__icon::before,
.accordion__icon::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    background: currentColor;
    block-size: 2px;
    inline-size: 14px;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion__icon::after {
    rotate: 90deg;
}

.accordion__item.is-open .accordion__icon {
    transform: rotate(45deg);
}

/* אזור התשובה עם מעבר חלק */
.accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    will-change: max-height;
    background: rgba(4, 36, 37, 0.35); /* var(--green-900) שקוף */
}

.accordion__content {
    padding: 0 1.25rem 1.1rem;
    color: var(--text-on-dark);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}

/* מצב פתוח */
.accordion__item.is-open .accordion__panel {
    opacity: 1;
}

/* === FOOTER DARK THEME (Eden Riboy) === */
.site-footer {
    position: relative;
    z-index: 38;
    background: linear-gradient(180deg, #000000 0%, #111111 100%);
    color: #f4f4f4; /* светлый читаемый текст */
    border-top: 1px solid #222;
}
.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}
.footer-col {
    flex: 1 1 33%;
}

.footer-title {
    color: #e8c987; /* золотистый из палитры Eden Riboy */
}

.footer-list a,
.footer__container a {
    color: #d9b26e; /* теплый золотистый */
}

.footer-list a:hover,
.footer__container a:hover {
    color: #fff3e1; /* светлее при наведении */
    text-decoration: underline;
}
.footer-list li a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: bidi-override;
}

/* Бренд+соц */
.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.footer-logo {
    max-width: 160px;
    height: auto;
}
.footer-social {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.social-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.social-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.1);
}
.instagram-button img {
    padding: 5px;
    background: linear-gradient(
        45deg,
        #f58529,
        #f52d52,
        #dd2a7b,
        #8134af,
        #515bd4
    );
    background-size: 200% 200%;
    animation: gradient 6s ease infinite;

    @keyframes gradient {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    border-radius: 50%;
}
.instagram-button img:hover {
    transform: scale(1.05);
}
.facebook-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1976d2;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.facebook-button:hover {
    transform: scale(1.05);
}
.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #25d366;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.call-button:hover {
    transform: scale(1.05);
}
.email-button img {
    background-color: #f44336;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.email-button img:hover {
    transform: scale(1.05);
}

/* Нижняя полоса футера */

.footer-bottom {
    border-top: 1px solid #333;
    color: #ccc;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}
.footer-bottom .social {
    display: flex;
    gap: 0.5rem;
}
.footer__container {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.footer__container a {
    color: var(--cream-100);
}
.footer__container a:hover {
    color: var(--cream-50);
    text-decoration: underline;
}

.footer__author-ref {
    background-color: var(--green-800);
    font-weight: 600;
    color: var(--cream-100);
    padding: 0 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#author-ref {
    color: #d9b26e;
    font-weight: 700;
}
.footer__author-ref:hover {
    transform: scale(1.05);
}
footer {
    --footer-font-size: 1rem; /* Меняешь тут, меняется везде */
    font-size: var(--fs-md);
}
/* Стрелка вверх */
.scroll-to-top {
    position: fixed;
    bottom: 20%;
    left: 5px;
    background-color: #24584e;
    color: #fff3e1;
    border-color: #d9b26e;
    font-size: 30px;
    text-decoration: none;
    padding: 1px 20px;
    border-radius: 50%;
    opacity: 0.8;
    transition: 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0 5px var(--green-900);
}

.scroll-to-top {
    background-color: #24584e;
    color: #fff3e1;
    border-color: #d9b26e;
}
.scroll-to-top:hover,
.scroll-to-top.active {
    background-color: #1b4a43;
    color: #fff;
    border-color: #fff3e1;
}
.scroll-to-top::before {
    content: "↑";
    font-size: 1.5rem;
    line-height: 1;
}

/* ================== MEDIA HELPERS ================== */
/* на очень больших экранах чуть поднимаем масштаб заголовков */
@media (min-width: 1280px) {
    :root {
        --fs-4xl: 4.25rem; /* ~68px */
        --fs-3xl: 3.25rem; /* ~52px */
    }
}

/* на мобильных — сглаживаем контраст, чтобы «рукописный» не ломал сетку */
@media (max-width: 720px) {
    :root {
        --fs-4xl: 3rem; /* 48px */
        --fs-3xl: 2.25rem; /* 36px */
        --fs-2xl: 1.75rem; /* 28px */
    }

    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: 1.2;
    }
    h2 {
        font-size: clamp(1.5rem, 6vw, 1.9rem);
        line-height: 1.25;
    }
    h3 {
        font-size: clamp(1.3rem, 5.5vw, 1.7rem);
        line-height: 1.3;
    }
    p {
        font-size: 1rem;
        line-height: 1.55;
    }
    .header {
        height: 85vh;
    }
    .hero {
        margin: 3rem 1rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }
    .video-toggle {
        padding: 0.1rem 0.3rem;
    }
    .accordion__btn {
        font-size: 1.1rem;
    }
    .site-footer {
        align-items: center;
        justify-content: center;
    }
    .footer-top {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        flex: 1 1 100%;
    }
    .footer-bottom .footer__container {
        display: flex;
        flex-direction: column;
        font-size: var(--fs-sm);
    }
}

/* ===== Sections base (Flexbox) ===== */
.sect {
    padding-block: clamp(36px, 6vw, 88px);
    transition: background 0.3s ease;
    background: transparent;
}

/* Было: display: grid; стало: flex + wrap */
.sect__inner {
    max-width: 90%;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 60px);
}

.sect__transparent {
    max-width: 1250px;
    background-color: #fff3e1a7; /* cream-100 с прозрачностью */
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 4vw, 30px);
    padding-bottom: clamp(15px, 6vw, 40px);
    border-radius: 12px;
    justify-self: center;
}

.sect__transparent > .btn {
    width: 100%;
    background-color: var(--green-800);
}

/* Колонки секции: медиа + текст */
.sect__media,
.sect__text {
    display: flex;
    flex-direction: column;
    flex: 1 1 420px; /* базово — занимают по строке, если мало места */
    min-width: 280px;
}
.sect__inner h2,
.sect__inner a {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* На ширине побольше — две колонки рядом */
@media (max-width: 900px) {
    .sect__media {
        flex: 0 1 46%;
    }
    .sect__text {
        flex: 1 1 46%;
    }
    .sect__transparent {
        max-width: 90%;
        text-align: center;
    }
}

.sect__media img {
    width: 100%;
    /* height: clamp(220px, 36vw, 420px); */
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.sect__text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.6em;
}
.sect__text p {
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin-bottom: 0.9em;
}

/* ===== Темы секций — без изменений ===== */
.theme-dark {
    background: var(--green-900);
    color: var(--cream-100);
}
.theme-dark h2 {
    color: var(--gold-300);
}
.theme-dark p strong {
    color: var(--gold-500);
}

.theme-light {
    background: var(--cream-100);
    color: var(--green-900);
}
.theme-light h2,
.theme-light h3 {
    color: var(--green-700);
}
.theme-light p strong {
    color: var(--gold-700);
}
.theme-light .hint {
    color: var(--green-700);
}

.sect__transparent .hint {
    color: var(--green-900);
    text-align: center;
    font-size: var(--fs-md);
}
.sect__transparent h2 {
    color: var(--green-700);
    margin-top: 2rem;
}

/* ===== Галерея 3×3 → Flexbox ===== */
/* Используем кастомную переменную для единого gap */
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    background-color: var(--green-500);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow-green);
}

.photo-title {
    font-weight: 600;
    color: var(--gold-500);
    margin-bottom: 0.25rem;
}

/* Карточка-линк в галерее */
.grid-3x3 a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--gold-600) 15%, transparent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    /* 3 в ряд на десктопе */
    /* flex: 1 1 calc(33.333% - var(--g)); */
}

/* Картинка внутри */
.grid-3x3 img {
    width: 100%;
    /* Стабильные пропорции вместо фиксированной высоты */
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.grid-3x3 a:hover img {
    transform: scale(1.04);
}

/* 2 в ряд */
@media (max-width: 740px) {
    .grid-3x3 a {
        flex-basis: calc(50% - var(--g));
    }
}

.grid-3x3 a {
    flex-basis: auto;
}

/* Плавная «шовная» граница между секциями (оставляем как было) */
main#content section + section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ======== ARTICLES FLEX GRID ======== */
.articles-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 3vw, 32px);
}

/* базовые размеры карточек */
.article-card {
    flex: 1 1 calc(33.333% - 32px);
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--gold-500);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* адаптация под экраны */
@media (max-width: 860px) {
    .article-card {
        flex: 1 1 calc(50% - 24px);
    }
}

@media (max-width: 560px) {
    .article-card {
        flex: 1 1 100%;
    }
}

/* ======== IMAGE ======== */
.article-card__media {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.article-card__media img {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 250px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card__media img {
    transform: scale(1.05);
}

/* ======== TEXT ======== */
.article-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--green-800);
    margin-bottom: 0.5em;
}

.article-card__desc {
    font-size: 1rem;
    color: var(--green-900);
    flex-grow: 1;
    line-height: 1.55;
}

/* ======== BUTTON ======== */
.article-card__cta {
    margin-top: 1rem;
    text-align: center;
}

.article-card .btn {
    background: var(--green-600);
    color: var(--cream-50);
    font-weight: 600;
    border: none;
    padding: 0.6em 1.4em;
    border-radius: var(--radius, 12px);
    transition: background 0.25s ease, transform 0.2s ease;
}
.article-card .btn:hover {
    background: var(--green-500);
    transform: translateY(-2px);
}
