@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Rubik:wght@500;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
html {
    -webkit-text-size-adjust: 100%;
}
img {
    max-width: 100%;
    display: block;
    height: auto;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

/* =========================
   Design tokens (Zman LeHufsha)
========================= */
:root {
    /* Brand */
    --brand-white: #ffffff;
    --brand-turquoise: #21c6c6; /* טורקיז מותגי */
    --brand-navy: #2e4a68; /* כחול כהה */
    --brand-secondary: #cbe6f3; /* светло-голубой, подходит к бренду */

    /* Accent (choose one) */
    --accent-sun: #ffd65c; /* צהוב שמש */
    --accent-coral: #ff6b4a; /* קורל */
    --accent: var(--accent-sun);

    /* Greys */
    --gray-050: #f4f6fa;
    --gray-200: #e8edf4;
    --gray-400: #7a8394;
    --gray-700: #555a65;

    /* Text & Background */
    --color-text-main: #1f2a37;
    --color-text-secondary: var(--gray-700);
    --color-bg-main: #ffffff;
    --color-bg-secondary: var(--brand-secondary); /* header/footer */
    --color-bg-contrast: var(--brand-navy); /* header/footer */
    --color-bg-turquoise: var(--brand-turquoise); /* header/footer */
    --color-bg-contact: #cbe6f3; /* фон секции צור קשר */

    /* Surfaces */
    --radius-xl: 16px;
    --shadow-sm: 0 6px 20px rgba(28, 42, 74, 0.08);
    --shadow-md: 0 12px 28px rgba(28, 42, 74, 0.12);

    /* Layout */
    --container: 1150px;
    --gutter: 20px;
    --header-h: 120px;
    --header-h-mobile: 80px;

    --cards-gap: 24px; /* зазор между карточками */

    /* Typography */
    --font-main: "Heebo", system-ui, -apple-system, Segoe UI, Roboto,
        "Noto Sans", sans-serif;
    --font-heading: "Rubik", "Heebo", system-ui, sans-serif;

    --h1-size: clamp(2rem, 5vw + 1rem, 2.75rem);
    --h2-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    --text-size: clamp(0.95rem, 1vw + 0.5rem, 1.05rem);
}

/* Quick accent switch (optional) */
body.accent-coral {
    --accent: var(--accent-coral);
}

/* =========================
   Base typography & layout
========================= */
body {
    direction: rtl;
    font-family: var(--font-main);
    font-size: var(--text-size);
    line-height: 1.65;
    color: var(--color-text-main);
    background: var(--color-bg-main);
    background-image: url("../images/bg-images/beach-background.jpg");
    background-size: cover;
    background-attachment: fixed;
    background-position: bottom;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.2px;
}
h1 {
    font-size: var(--h1-size);
}
h2 {
    font-size: var(--h2-size);
}

p {
    color: var(--color-text-secondary);
}

.container {
    width: min(100%, var(--container));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* =========================
   Theme helpers
========================= */
.on-dark {
    --color-text-main: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    color: var(--color-text-main);
    background: var(--color-bg-contrast);
}
.on-tourquoise {
    --color-text-main: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    color: var(--color-text-main);
    background: var(--color-bg-turquoise);
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.3rem;
    font-weight: 800;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease, filter 0.18s ease;
    font-family: var(--font-heading);
    white-space: nowrap;
}
.btn:active {
    transform: translateY(0);
}
.btn--outline {
    color: var(--brand-navy);
    background: transparent;
    border-color: var(--brand-navy);
}
.btn--outline:hover {
    background-color: #2e4a68;
    filter: brightness(0.96);
    box-shadow: var(--shadow-md);
}
.btn--accent {
    background: var(--accent);
    color: #1b1b1b;
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.btn--accent:hover {
    filter: brightness(0.96);
    box-shadow: var(--shadow-md);
}

/* =========================
   Header + Nav (flex only)
========================= */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: var(--header-h);
    z-index: 1300;
    background: #fff;
    transition: background 0.3s, backdrop-filter 0.3s;
    /* убери blur и прозрачность по умолчанию */
}

.site-header.is-blur {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 2px 16px 0 rgba(60, 60, 60, 0.07);
}

.header__row {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.brand__img {
    border: 2px solid #f4f6fa;
    border-radius: 50rem;
    height: 5rem;
    width: auto;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}
.brand__img img {
    height: 100%;
    width: auto;
    border-radius: 50rem;
    object-fit: contain;
}

.nav {
    display: none; /* mobile: hidden */
    align-items: center;
    gap: 20px;
}
.nav a {
    color: var(--brand-navy);
    font-weight: 700;
    opacity: 0.95;
}
.nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 44px;
    color: var(--brand-navy);
    font-size: 1.4rem;
}
.nav .btn:hover {
    color: #fff;
}

/* =========================
   HERO (full viewport)
========================= */
.hero {
    position: relative;
    min-height: 90svh; /* учитывает мобильные панели */
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 24px); /* не прячем под фикс-хедер */
    padding-bottom: 24px;
    isolation: isolate;
    background: transparent;
}

/* LIGHT overlay — делаем фон светлее */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Светлая вуаль: меньше затемнения = светлее фон */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08),
        rgba(255, 255, 255, 0.2)
    );
}

/* Card / glass panel */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

/* Полупрозрачная “стеклянная” подложка */
.on-glass {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--gray-200);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* HERO content layout */
.hero__container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__card {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    background: rgba(30, 45, 70, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.hero__title {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.hero__subtitle {
    color: #f8f8f8;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__cta {
    margin-top: 0.35rem;
}
/* ===== Wave separator (нижняя волна у героя) ===== */
.section-wave {
    position: absolute;
    inset-inline: 0;
    bottom: -1px; /* перекрыть стык на 1px */
    width: 100%;
    height: 90px; /* можно 120-160 на десктопе */
    display: block;
    z-index: 1; /* над фоном героя */
    color: var(--wave-fill, var(--color-bg-main)); /* цвет заливки волны */
}
.section-wave path {
    fill: currentColor;
}
/* ===== Sections spacing ===== */
.section {
    padding-block: clamp(48px, 6vw, 84px);
}

.section,
.hero {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ===== About (Flex Only) ===== */
.about {
    position: relative;
    background: var(--color-bg-main); /* белый */
}

.about__wrap {
    display: flex;
    flex-direction: column; /* мобайл: фото сверху */
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
}
.about__sun-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
    margin-bottom: 2rem;
    pointer-events: none;
    user-select: none;
}
.about__sun {
    width: 100%;
    max-width: 320px;
    height: 60px;
    display: block;
}

/* медиа справа на десктопе */
.about__media {
    height: 600px;
    margin: 0;
    flex: 0 0 auto;
    max-width: 680px;
    width: 100%;
    order: -1; /* мобайл: первое — фото */
}
.about__media img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.about__content {
    flex: 1 1 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.about__sun-bg {
    position: absolute;
    bottom: 25%;
    left: 20%;
    transform: translateX(-50%);
    width: 50%;
    max-width: 600px;
    z-index: 0;
    opacity: 0.25; /* чтобы текст был читаем */
    pointer-events: none;
    overflow-x: hidden;

    transition: transform 1s ease;
}

.about__sun-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 3s cubic-bezier(0.4, 1.6, 0.6, 1);
    will-change: transform;
}

.about__title {
    text-align: center;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
    margin-bottom: 0.75rem;
}
.about__content .lead {
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.about__list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.about__list li {
    position: relative;
    padding-inline-start: 1.25rem;
    color: var(--color-text-secondary);
    margin-block: 0.25rem;
}
.about__list li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-turquoise);
}
.about__content .btn {
    width: 100%;
}
.about .section-wave {
    --wave-fill: #cbe6f3; /* более заметный голубой */
}
/* ===== Packages ===== */
.packages {
    background: var(--color-bg-secondary);
    position: relative;
}

.packages__title {
    text-align: center;
    margin-bottom: clamp(28px, 3vw, 28px);
}

.packages__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--cards-gap);
    align-items: stretch;
}

/* Карточка: белая, вертикальная колонка; высота задаётся через aspect-ratio,
   чтобы 40% от неё заняла картинка */
.package-card {
    position: relative; /* обязательно для абсолютного позиционирования потомков */
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    /* 3 в ряд на десктопе */
    flex: 1 1 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4; /* делает высоту детерминированной */
}

/* Верхняя картинка — 40% высоты карточки */
.package-card__media {
    position: relative;
    display: block;
    height: 40%;
    overflow: hidden;
}
.package-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    transition: transform 0.25s ease;
}
.package-card__media:hover img {
    transform: scale(1.04);
}

.package-card__body {
    position: relative;
    z-index: 2;
    padding-bottom: 2.5rem; /* чуть больше высоты волны */
    height: 60%; /* остальная часть карточки */
    padding: clamp(14px, 2.4vw, 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
}

.package-card__title {
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.25rem);
}
.package-card__desc {
    color: var(--color-text-secondary);
}

/* Кнопка на всю ширину */
.btn--block {
    width: 100%;
}
.package-card {
    position: relative;
    overflow: hidden;
}

.package-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 160px; /* увеличь высоту, например 160px */
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 500 160" xmlns="http://www.w3.org/2000/svg"><path d="M0,150 Q75,0 150,40 T500,30 L500,180 L0,160 Z" fill="%2321c6c6"/></svg>')
        no-repeat bottom center/cover;
    pointer-events: none;
    z-index: 1;
}
.cityline-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 160px;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    overflow: hidden !important;
}

/* ===== Casino Vacations ===== */
.casino {
    background: var(--color-bg-main); /* белый как в первой секции */
    position: relative;
}

.casino__title {
    text-align: center;
    margin-bottom: clamp(10px, 2vw, 16px);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
    color: var(--color-bg-contrast); /* темно-синий */
}

/* Картинка-баннер: широкая, но не full-screen */
.casino__media {
    display: flex;
    justify-content: center;
    margin: 0;
    width: 100%;
}
.casino__media img {
    width: 60%;
    height: clamp(220px, 42vw, 460px); /* ограничиваем высоту */
    object-fit: cover;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* Текстовый блок с кнопкой — flex-колонка, по центру */
.casino__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: 72ch; /* удобочитаемая ширина текста */
    margin-inline: auto;
    text-align: start; /* нормальная типографика на абзацах */
    background-color: #fff;
}
.casino__content .lead {
    color: var(--color-text-main);
}
.fineprint {
    font-size: 0.92em;
    color: var(--gray-700);
    opacity: 0.9;
}
.casino__cta {
    margin-top: 0.4rem;
}
/* Контент: удобочитаемые интервалы */
.casino__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 2.2vw, 18px);
    max-width: 72ch;
    margin-inline: auto;
    text-align: start; /* RTL: выравнивание по правому краю */
    line-height: 1.85;
}

/* Короткие буллеты */
.casino__points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}
.casino__points li {
    position: relative;
    padding-inline-start: 1.2rem;
    color: var(--color-text-secondary);
}
.casino__points li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    top: 0.15rem;
    color: var(--brand-turquoise);
    font-weight: 800;
}

/* Подзаголовок блока со странами */
.casino__sub {
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.25rem);
    margin-top: 0.25rem;
    text-align: center;
    width: 100%;
}

/* «Чипсы» со странами — flex-wrap */
.casino__destinations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    justify-content: center;
    width: 100%;
}
.casino__destinations li {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--gray-200);
    font-size: 0.98em;
    white-space: nowrap;
}

/* Примечание + центр кнопки */
.fineprint {
    font-size: 0.92em;
    opacity: 0.9;
    color: var(--gray-700);
}
.casino__cta {
    align-self: center;
    margin-top: 0.2rem;
    margin-bottom: 3rem;
}
.casino > .section-wa {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    height: 160px; /* можно 120-160 на десктопе */
    color: #cbe6f3; /* очень светлый голубой */
    z-index: 0;
    pointer-events: none;
    display: block;
}
.casino > .section-wa path {
    fill: currentColor;
}

.cityline-bg {
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 100svw;
    height: 150px;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}
/* ===== North Customers ===== */
.north {
    background: var(--color-bg-secondary); /* белый фон */
}

/* Заголовок + лид — читаемо и по центру */
.north__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    margin-bottom: clamp(12px, 2.5vw, 20px);
}
.north__title {
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
}
.north__emph {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--color-bg-main); /* #e6f4fa */
    border: 1px solid var(--gray-200);
    color: var(--brand-navy);
    font-weight: 800;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.north__lead {
    max-width: 70ch;
    color: var(--color-text-main);
}

/* Картинка секции */
.north__media {
    margin: clamp(10px, 2vw, 16px) 0 clamp(16px, 3vw, 24px);
}
.north__media img {
    width: 100%;
    height: clamp(220px, 40vw, 420px);
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* Ряд с двумя кнопками (flex only) */
.north__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
    justify-content: center;
}

/* Кнопки-плитки: занимают половину секции на десктопе,
   и всю ширину на мобильных */
.north__cta {
    flex: 1 1 420px; /* мобайл: по 100% */
    max-width: 100%;
    padding: 1.1rem 1.25rem;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
    margin-bottom: 1rem;
    margin-top: 1rem;
    box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.5);
}
.north__cta:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.north__cta-row .north__cta:nth-child(2):hover {
    color: #fff;
}
/* ===== Reviews (Testimonials) ===== */
.reviews {
    background: var(--color-bg-main); /* белый фон секции */
    position: relative;
}
.reviews .container {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 32px);
    align-items: center;
    justify-content: center;
}

.reviews__media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 90%;
    border-radius: 1rem;
}
.reviews__media img {
    border-radius: 1rem;
}

.reviews__title {
    text-align: center;
    color: var(--brand-navy);
    margin-bottom: clamp(14px, 2.6vw, 24px);
}

/* Сетка карточек — только flex */
.reviews__list {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--cards-gap, 24px);
    align-items: stretch;
    justify-content: center;
}

/* База карточки */
.review-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: clamp(16px, 2.5vw, 22px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    /* 1 в ряд на мобиле */
    flex: 1 1 100%;
    max-width: 100%;
}
.review__badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

/* Текст отзыва и имя */
.review__text {
    position: relative;
    margin: 0 0 0.25rem;
    line-height: 1.85;
}
.review__name {
    font-style: normal;
    font-weight: 700;
}

/* Чередуем фон карточек для лучшей читаемости */
.review-card {
    background: var(--color-bg-secondary); /* #e6f4fa */
    color: var(--color-text-main);
}
.contact {
    background: var(--brand-secondary);
}

.contact__wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.8vw, 22px);
    align-items: center;
}

.contact__title {
    text-align: center;
    margin-bottom: 0.2rem;
}
.contact__lead {
    text-align: center;
    color: var(--color-text-secondary);
}

/* Белая карточка формы */
.contact-card {
    background: #fff;
    color: var(--color-text-main);
    border: 1px solid var(--gray-400);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    width: min(100%, 820px);
    padding: clamp(16px, 3vw, 24px);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.2vw, 18px);
}

/* Сетка полей — только flex */
.fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.field {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field--full {
    flex-basis: 100%;
}

label {
    font-weight: 700;
}
input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text-main);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
input::placeholder,
textarea::placeholder {
    color: color-mix(in oklab, var(--color-text-secondary) 70%, #000 10%);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-turquoise);
    box-shadow: 0 0 0 3px
        color-mix(in oklab, var(--brand-turquoise) 25%, #000 0%);
}

/* Чекбокс + текст ссылок */
.consent-row {
    display: flex;
    align-items: center; /* было flex-start, стало center */
    gap: 0.55rem;
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}
.consent-row input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    accent-color: var(
        --brand-turquoise
    ); /* современный браузер — цвет чекбокса */
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}
.consent-row a {
    color: var(--brand-navy);
    text-decoration: underline;
}
/* Подсказка внизу формы */
.help {
    text-align: center;
    font-size: 0.9em;
    color: var(--gray-700);
    margin-top: -0.25rem;
}
.alt-cta {
    text-align: center;
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* Кнопка на всю ширину (готовый модификатор есть) */
.btn--block {
    width: 100%;
}

/* Доступность: helper класс */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    clip-path: inset(50%);
}
/* ===== Join Us ===== */
.join {
    background: var(--color-bg-contact); /* тот же фон #cbe6f3 */
}

.join .container {
    display: flex;
    flex-direction: column; /* мобайл: колонкой */
    gap: clamp(16px, 3vw, 28px);
    align-items: center;
}
.join__title {
    text-align: center;
    margin-bottom: clamp(12px, 2.5vw, 18px);
}

.join__wrap {
    display: flex;
    background-color: #fff;
    padding: clamp(16px, 3vw, 24px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    width: 100%;
    flex-direction: column; /* мобайл: колонкой */
    gap: clamp(16px, 3vw, 28px);
    align-items: center;
}
.join__wrap h3 {
    text-align: center;
}

/* Контент слева */
.join__content {
    flex: 1 1 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.join__sub {
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.25rem);
    margin-bottom: 0.2rem;
}
.join__intro {
    color: var(--color-text-secondary);
    line-height: 1.85;
}
.join__benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.join__benefits li {
    position: relative;
    padding-inline-start: 1.35rem;
    line-height: 1.85;
    color: var(--color-text-main);
}
.join__benefits li::before {
    content: "✔";
    position: absolute;
    inset-inline-start: 0;
    top: 0.1rem;
    font-weight: 800;
    color: var(--brand-turquoise);
}

/* Картинка справа */
.join__media {
    display: flex;
    margin: 0;
    flex: 0 0 auto;
    max-width: 640px;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.join__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
/* ===== Footer ===== */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #485c7d;
    color: #fff;
    padding-top: clamp(24px, 4vw, 36px);
}

.site-footer a {
    color: #fff;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Верх: 4 колонки (flex only) */
.footer__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: clamp(16px, 3vw, 24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer__col {
    flex: 1 1 220px; /* мобайл: стекается; десктоп: 4 в ряд */
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer__col-title {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

/* списки внутри колонок */
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.footer__link {
    /* элемент с иконкой */
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0;
}
.footer__link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
}
.footer__textlink {
    display: inline-block;
}

/* мелкий текст */
.footer__small {
    font-size: 0.92em;
    opacity: 0.9;
    margin-top: 0.25rem;
    color: #e8edf4;
}

/* Низ футера */
.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(16px, 3vw, 24px) 0;
    width: 100%;
    max-width: 960px;
}

.footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.footer__legal {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 0.92em;
}
.footer__legal .sep {
    opacity: 0.6;
}
.footer__copy {
    color: #e8edf4;
    font-size: 0.92em;
    opacity: 0.9;
}
/* Кредит с выделением Digitalyty */
.footer__credit {
    color: #fff;
}
.footer__brand {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    margin-inline-start: 0.35rem;
    border-radius: 999px;
    background: var(--accent, #ffd65c); /* жёлтый из бренда */
    color: #1f2a37 !important;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.footer__brand:hover {
    background-color: #000;
    color: #fff !important;
}
/* Стрелка вверх */
.scroll-to-top {
    position: fixed;
    z-index: 1000;
    bottom: 20%;
    left: 5px;
    background-color: var(--brand-turquoise);
    color: var(--color-accent);
    font-size: 30px;
    text-decoration: none;
    border: 1px solid var(--color-dark-blue);
    padding: 1px 17px;
    border-radius: 50%;
    opacity: 0.5;
    transition: 0.3s ease, transform 0.3s ease;
    color: #000;
    box-shadow: 0 0 5px var(--color-black);
}

.scroll-to-top:hover,
.scroll-to-top.active {
    opacity: 1;
    scale: 1.2;
    color: var(--brand-white);
    border: 1px solid var(--color-dark-blue);
    background-color: var(--color-bg-contrast);
}
/* SOCIAL */
.social {
    display: flex;
    width: 50%;
    gap: 1rem;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0.5rem 1rem;
    margin: 1rem;
    text-decoration: none;
    color: var(--color-link);
    font-weight: bold;
    cursor: pointer;
    background: var(--button-gradient-background);
}
.email-button img {
    background-color: #f44336;
    border-radius: 50%;
}
.facebok-button img {
    background-color: #1976d2;
    border-radius: 50%;
}

#phone-fixed {
    position: fixed;
    bottom: 200px;
    left: 100px;
    z-index: 50;
    display: none;
}

#phone-fixed img {
    width: 50px;
    height: 50px;
    box-shadow: 0 0 6px var(--color-primary-dark);
}

#whatsApp-fixed {
    position: fixed;
    bottom: 200px;
    right: 100px;
    z-index: 50;
    display: none;
}
#whatsApp-fixed img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-primary-dark);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#phone-fixed,
#whatsApp-fixed {
    position: fixed;
    bottom: 100px;
    z-index: 50;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.call-button img {
    padding: 2px;
    background-color: rgb(108, 220, 45);
    border-radius: 50%;
}

.social img:hover {
    transform: scale(1.2);
    color: #000303;
    transition: all 0.3s ease, color 0.3s ease;
    border: #000000 2px solid;
}
/* ==== PWA Install (footer button + iOS hint) ==== */
.footer__install {
    margin-top: 8px;
    align-self: center;
    min-width: 240px;
    color: #fff !important;
}

/* Диалог-подсказка */
.install-hint[hidden] {
    display: none;
}
.install-hint {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1400; /* выше оверлея/хедера */
}
.install-hint__card {
    background: #fff;
    color: var(--color-text-main);
    width: min(92vw, 520px);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 18px 18px 14px;
}
.install-hint__title {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.25rem);
}
.install-hint__text {
    margin: 0 0 12px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}
.install-hint__actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}
.install-hint__close {
    background: var(--gray-050);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
}
/* ===== FAQ ===== */
.faq {
    background: var(--color-bg-main);
}
.faq__title {
    text-align: center;
    color: var(--brand-navy);
    margin-bottom: clamp(16px, 2.8vw, 24px);
}
.faq__list {
    display: flex; /* только flex */
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden; /* скругление на панели */
}

/* Кнопка раскрытия */
.faq__summary {
    list-style: none; /* скрыть маркер summary */
    cursor: pointer;
    padding: 1rem 1.1rem;
    font-weight: 800;
    color: var(--brand-navy);
    display: flex; /* выравнивание RTL */
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
}
.faq__summary::-webkit-details-marker {
    display: none;
}

/* Иконка-стрелка */
.faq__summary::after {
    content: "▾";
    font-size: 1.15rem;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}
.faq__item[open] .faq__summary::after {
    transform: rotate(180deg);
}

/* Панель */
.faq__panel {
    padding: 0 1.1rem 1rem;
    color: var(--color-text-secondary);
    line-height: 1.85;
    border-top: 1px solid var(--gray-200);
}

/* Focus-visible для доступности */
.faq__summary:focus-visible {
    outline: 3px solid color-mix(in oklab, var(--brand-turquoise) 35%, #000 0%);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Слабая анимация раскрытия (без резких motion) */
@media (prefers-reduced-motion: no-preference) {
    .faq__panel {
        animation: faqFade 0.18s ease;
    }
    @keyframes faqFade {
        from {
            opacity: 0.6;
        }
        to {
            opacity: 1;
        }
    }
}

/* CTA под списком */
.faq__cta {
    margin-top: clamp(12px, 2.4vw, 18px);
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .about__content .btn {
        margin-bottom: 2.5rem; /* или больше, если нужно */
    }
    .cityline-bg {
        position: absolute;
        right: -100px;
        bottom: 0;
        width: 150svw;
        height: 130px;
        z-index: 0;
        pointer-events: none;
        user-select: none;
        overflow: hidden;
    }
    .casino > .section-wa {
        height: 90px; /* можно 120-160 на десктопе */
    }
    .hero__title {
        font-size: 2rem;
    }
    .casino__media {
        width: 100%;
    }
    .casino__media img {
        width: 90%;
    } /* показать бургер на мобиле */
    .nav-toggle {
        display: inline-flex;
    }

    /* оверлей */
    .site-header {
        z-index: 1330;
        height: var(--header-h-mobile);
    } /* хедер ниже оверлея */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 1300; /* оверлей над хедером и всем контентом */
    }
    .nav-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .site-header .nav {
        position: fixed;
        top: calc(var(--header-h-mobile) + 8px);
        left: 12px;
        right: 12px;
        max-height: min(80vh, 560px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px 16px 20px;
        background: #fff; /* без прозрачности, чтобы не просвечивало */
        border: 1px solid var(--gray-200);
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        transform: translateY(-140%); /* прячем выше своей высоты */
        transition: transform 0.28s ease;
        will-change: transform;
        z-index: 1301; /* выше overlay */
    }
    .site-header .nav.is-open {
        transform: translateY(0);
    }

    .nav__close {
        position: absolute;
        top: 10px;
        inset-inline-start: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
        color: var(--brand-navy);
        background: transparent;
    }
    #phone-fixed {
        display: flex;
        position: fixed;
        bottom: 50px;
        left: 10px;
        z-index: 50;
    }
    #whatsApp-fixed {
        display: flex;
        position: fixed;
        bottom: 50px;
        right: 10px;
        z-index: 50;
    }
    .brand__img {
        height: 4rem;
    }
    .brand__img img {
        height: 100%;
        width: auto;
        border-radius: 50rem;
        object-fit: contain;
    }
}
@media (min-width: 600px) and (max-width: 899px) {
    .package-card {
        flex: 1 1 calc(50% - var(--cards-gap));
        max-width: calc(50% - var(--cards-gap));
        aspect-ratio: 3 / 4;
    }

    /* Блокировка прокрутки фона при открытом меню */
    body.nav-open {
        overflow: hidden !important;
    }

    /* Крестик внутри меню */
    .nav__close {
        position: absolute;
        top: 12px;
        left: 12px; /* в RTL это визуально верхне-левый угол дровера */
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.8rem;
        line-height: 1;
        color: var(--brand-navy);
        background: transparent;
    }
}
@media (min-width: 900px) {
    .nav {
        display: inline-flex;
    }
    .nav-toggle {
        display: none;
    }
    .hero__subtitle {
        font-size: 1.35rem;
    }
    .section-wave {
        height: 120px;
    }
    .about__wrap {
        flex-direction: row; /* в ряд */
        align-items: center;
    }
    /* Порядок: текст слева, фото справа */
    .about__content {
        order: 1;
    } /* слева (визуально) */
    .about__media {
        order: 2;
        max-width: 520px;
    }
    .package-card {
        flex: 1 1 calc(33.333% - var(--cards-gap));
        max-width: calc(33.333% - var(--cards-gap));
        aspect-ratio: 3 / 4;
    }
    .package-card__media {
        height: 40%;
    }
    .package-card__body {
        height: 60%;
    }
    .north__cta {
        flex-basis: calc(50% - 8px); /* по половине ширины */
        max-width: calc(50% - 8px);
    }
    .review-card {
        flex: 1 1 calc(50% - var(--cards-gap, 24px));
        max-width: calc(50% - var(--cards-gap, 24px));
    }
    .join__wrap {
        flex-direction: row;
        align-items: center;
    }
    .join__content {
        order: 1;
    } /* слева */
    .join__media {
        max-width: 50%;
    }
    .site-header .nav {
        display: inline-flex;
        position: static;
        transform: none;
        padding: 0;
        background: transparent;
    }
    .nav__close,
    .nav-overlay {
        display: none;
    }
    .nav-toggle {
        display: none;
    }
}

/* =========================
   Utilities
========================= */
/* ===== Lightbox ===== */
.lightbox[hidden] {
    display: none;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 28px);
    z-index: 5000;
}
.lightbox__img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.lightbox__close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--shadow-sm);
}
