:root {
    --wine-main: #7a1230;
    --wine-main-dark: #3b0717;
    --wine-main-white: #fff;
    --wine-main-soft: #fff;

    --bg-page: #ffffff;
    --bg-hero: #f2d3d3;
    --bg-accent: var(--wine-main-soft);
    --bg-accent-strong: var(--wine-main);
    --bg-dark: var(--wine-main-dark);
    --bg-white: var(--wine-main-white);

    --color-accent: var(--wine-main);
    --color-accent-soft: #e39bb3;

    --text-main: #211017;
    --text-muted: #7b5767;
    --text-light: #fff9fb;

    --radius-xl: 28px;
    --radius-l: 18px;
    --radius-m: 12px;

    --shadow-soft: 0 14px 32px rgba(59, 11, 31, 0.18);
    --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.35);

    --max-width: 1140px;
    --transition-fast: 0.25s ease;
}

/* БАЗА */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

/* ЛЕЙАУТ */

.page {
    min-height: 100vh;
}

.shell {
    width: min(var(--max-width), 100% - 32px);
    margin-inline: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: radial-gradient(circle at 0% 0%, #3b0717 0, #120108 55%);
    border-bottom: 1px solid rgba(244, 198, 216, 0.18);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 10px;
}

.brand-mark {
    display: flex;
    flex-direction: column;
}

.brand-mark__title {
    font-weight: 700;
    font-size: 20px;
}

.brand-mark__tagline {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* NAV */

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-menu {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.site-header,
.site-header a,
.nav-link {
    color: #fff9fb !important;
}

.nav-link {
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    padding-block: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--primary {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--text-light);
    box-shadow: 0 10px 26px rgba(122, 18, 48, 0.4);
}

/* burger */

.nav-toggle {
    display: none;
    border: none;
    background: none;
    padding: 4px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    margin: 4px 0;
}

/* БЛОКИ */

.block {
    padding: 60px 0;
}

/* белый герой — теперь с живым фоном */
.block--hero {
    padding: 80px 0 70px;
    background: radial-gradient(circle at 0% 0%, #ffeef4 0, #f8d6de 38%, #f2d3d3 70%, #f5dbe1 100%);
    position: relative;
    overflow: hidden;
}

/* большие "облака" и светящиеся пятна на фоне героя */
.block--hero::before,
.block--hero::after {
    content: "";
    position: absolute;
    inset: -80px;
    pointer-events: none;
    z-index: 0;
}

/* мягкий движущийся фон */
.block--hero::before {
    background:
        radial-gradient(circle at 4% 12%, rgba(255, 255, 255, 0.95) 0, transparent 56%),
        radial-gradient(circle at 88% 0%, rgba(255, 207, 231, 0.9) 0, transparent 58%),
        radial-gradient(circle at 100% 82%, rgba(255, 255, 255, 0.85) 0, transparent 60%);
    opacity: 0.9;
    animation: heroBgClouds 6s ease-in-out infinite alternate;
}

/* более чёткие "объекты" — блики/кружки */
.block--hero::after {
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0, transparent 65%),
        radial-gradient(circle, rgba(244, 198, 216, 0.68) 0, transparent 65%),
        radial-gradient(circle, rgba(255, 255, 255, 0.75) 0, transparent 65%),
        radial-gradient(circle, rgba(240, 170, 202, 0.85) 0, transparent 65%);
    background-size: 220px 220px, 180px 180px, 200px 200px, 150px 150px;
    background-repeat: no-repeat;
    background-position:
        -60px 40px,
        92% -40px,
        108% 100%,
        10% 100%;
    mix-blend-mode: soft-light;
    opacity: 0.9;
    animation: heroBubbles 6s ease-in-out infinite alternate;
}

/* чисто белый */
.block--light {
    background: #ffffff;
}

/* мягкий винный фон */
.block--soft {
    background: var(--bg-accent);
}

/* плотный винный блок */
.block--accent {
    background: var(--bg-accent-strong);
    color: var(--text-light);
}

/* светлый винный пояс */
.block--strip {
    background: var(--bg-accent);
}

/* тёмный винный блок */
.block--dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* форма на белом */
.block--form {
    background: #ffffff;
}

/* SEO-подвал на мягком винном */
.block--seo {
    background: var(--bg-accent);
    padding: 32px 0 38px;
}

/* HERO */

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 38px;
    align-items: center;
    position: relative;
    z-index: 1; /* контент поверх анимированного фона */
}

/* небольшие плавающие объекты вокруг героя */
.hero-layout::before,
.hero-layout::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0 14px 26px rgba(122, 18, 48, 0.32));
}

/* вытянутая "плашка" слева сверху */
.hero-layout::before {
    width: 120px;              /* было 170px */
    height: 120px;             /* было 80px */
    border-radius: 50%;        /* было 999px */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 198, 216, 0.9));
    border: 1px solid rgba(122, 18, 48, 0.18);
    top: -50px;
    left: -40px;
    transform-origin: center;
    animation: heroChipFloat 8s ease-in-out infinite alternate;
}

/* круг с обводкой справа снизу */
.hero-layout::after {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0, transparent 60%);
    border: 1px solid rgba(122, 18, 48, 0.25);
    bottom: -60px;
    right: 12%;
    transform-origin: center;
    animation: heroCircleFloat 4s ease-in-out infinite alternate;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* маленький маркер над текстом героя */
.hero-info::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;        /* было 6px */
    background: linear-gradient(135deg, #ffffff, rgba(255, 218, 234, 0.95));
    border: 1px solid rgba(122, 18, 48, 0.24);
    top: -16px;
    right: 40%;
    box-shadow: 0 12px 22px rgba(122, 18, 48, 0.35);
    animation: heroMiniFloat 4s ease-in-out infinite alternate;
}

.hero-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a45a76;
    margin: 0;
}

.hero-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.25;
}

.hero-points {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-points li + li {
    margin-top: 3px;
}

.hero-cta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-note {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* HERO WIDGET */

.hero-widget {
    max-width: 390px;
    justify-self: end;
    border-radius: var(--radius-xl);
    padding: 18px 18px 16px;
    background: var(--bg-dark);
    color: var(--text-light);
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 1;
}

/* плавающие объекты вокруг карточки справа */
.hero-widget::before,
.hero-widget::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* небольшая "таблетка" сверху справа от виджета */
.hero-widget::before {
    width:60px;               /* было 80px */
    height: 60px;              /* было 30px */
    border-radius: 50%;        /* было 999px */
    background: linear-gradient(135deg, #ffeef7, #f4c6d8);
    border: 1px solid rgba(244, 198, 216, 0.85);
    top: -18px;
    right: -20px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
    animation: heroWidgetFloat1 6s ease-in-out infinite alternate;
}

/* маленькое кольцо снизу */
.hero-widget::after {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(244, 198, 216, 0.8);
    bottom: -22px;
    left: -10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    animation: heroWidgetFloat2 10s ease-in-out infinite alternate;
}

.hero-widget__header {
    margin-bottom: 10px;
}

.hero-widget__pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-accent);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero-widget__title {
    margin: 7px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.hero-widget__rows {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: var(--radius-l);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(244, 198, 216, 0.6);
}

.widget-row__badge {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: var(--bg-accent);
    color: var(--wine-main-dark);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-row__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-row__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.widget-row__desc {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 240, 248, 0.9);
}

/* SECTION HEAD */

.section-heading {
    max-width: 520px;
    margin-bottom: 22px;
}

.section-heading--light .section-title,
.section-heading--light .section-subtitle {
    color: var(--text-light);
}

.section-title {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--text-main);
}

.section-title--light {
    color: var(--text-light);
}

.section-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.section-subtitle--light {
    color: rgba(255, 235, 245, 0.9);
}

/* INFO CARDS */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--radius-l);
    padding: 14px 14px 12px;
    background: #ffffff;
    border: 1px solid rgba(122, 18, 48, 0.18);
    box-shadow: var(--shadow-soft);
}

.info-card__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-card__title {
    margin: 0;
    font-size: 14px;
}

/* ПОДХОДИТ ДЛЯ КОГО */

.pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.info-card,
.pill-card {
    display: flex;
    align-items: center; /* было flex-start */
    gap: 10px;
    border-radius: var(--radius-l);
    padding: 14px 14px 12px;
    background: #ffffff;
    border: 1px solid rgba(122, 18, 48, 0.18);
    box-shadow: var(--shadow-soft);
}

/* Иконки — ровно по центру своего квадрата */
.info-card__icon,
.pill-card__icon {
    width: 44px;
    height: 44px;
    font-size: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* чтобы эмодзи не прыгало вверх/вниз */
}

.pill-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    font-size: 30px;
    border-radius: 12px;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ПРОГРАММА */

.program-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* фиксированно 3 колонки */
    gap: 18px;
}

.program-item {
    border-radius: var(--radius-l);
    padding: 16px 16px 14px;
    background: var(--bg-white);
    border: 1px solid rgba(243, 202, 218, 0.9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.program-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 99px;
    background: rgba(117, 32, 33, 0.99);
    border: 1px solid rgba(244, 198, 216, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 20px;
}

.program-item__title {
    margin: 0 0 5px;
    font-size: 15px;
    color: #9c2c2d
}

.program-item__text {
    margin: 0;
    font-size: 13px;
    color: #c23639
}

/* TEAM */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.team-card {
    border-radius: var(--radius-l);
    padding: 18px 18px 16px;
    background: #ffffff;
    border: 1px solid rgba(122, 18, 48, 0.18);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.team-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    overflow: hidden;
    border: 3px solid var(--bg-accent);
    margin: 0 auto 10px;
}

.team-card__name {
    margin: 0 0 4px;
    font-weight: 600;
}

.team-card__role {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--color-accent);
}

.team-card__text {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* SUPPORT STRIP */

.support-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: center;
}

.support-strip__text p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.support-strip__card {
    max-width: 320px;
    justify-self: end;
    border-radius: var(--radius-xl);
    padding: 16px 16px 14px;
    background: var(--bg-dark);
    color: var(--text-light);
    box-shadow: var(--shadow-soft);
}

.support-strip__icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(244, 198, 216, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
}

.support-strip__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.support-strip__subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* REVIEWS */

.reviews-slider {
    position: relative;
}

/* плавный "сдвиг" при перелистывании */
.reviews-grid--slide-next {
    opacity: 0;
    transform: translateX(-24px);
}

.reviews-grid--slide-prev {
    opacity: 0;
    transform: translateX(24px);
}

/* навигация под слайдером — кнопки больше НЕ перекрывают сами отзывы */
.reviews-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 150px;
}

.reviews-grid--dragging {
    cursor: grabbing;
    transition: none !important;
}

/* трек-лента */
.reviews-grid {
    display: flex;                 /* было grid → делаем flex */
    gap: 18px;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.reviews-grid--fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.reviews-grid--fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.review-card {
    border-radius: var(--radius-l);
    padding: 0;
    background: var(--bg-dark);
    border: 1px solid rgba(243, 202, 218, 0.9);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.88);
    overflow: hidden;

    display: flex;
    align-items: center;      /* центр по вертикали */
    justify-content: center;  /* центр по горизонтали */
    min-height: 250px;
    cursor: pointer;
}

/* обёртка картинки */
.review-photo--single {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;       /* центрирование по вертикали */
    justify-content: center;   /* по горизонтали */
}

.review-card__photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.review-photo {
    border-radius: var(--radius-m);
    overflow: hidden;
    position: relative;
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-photo figcaption {
    position: absolute;
    left: 8px;
    bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.review-card__name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-soft);
}

.review-card__text {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 237, 248, 0.92);
}

/* FORM */

.form-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 26px;
    align-items: flex-start;
}

.form-text .section-title {
    color: var(--text-main);
}

.form-text .section-subtitle {
    color: var(--text-muted);
}

.form-list {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-list li + li {
    margin-top: 4px;
}

.form-panel {
    max-width: 420px;
    justify-self: end;
    align-self: center;
}

.form {
    border-radius: var(--radius-xl);
    padding: 18px 18px 16px;
    background: #ffffff;
    border: 1px solid rgba(122, 18, 48, 0.18);
    box-shadow: var(--shadow-soft);
}

.form__row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 11px;
}

.form__row label {
    font-size: 13px;
}

.form__row input,
.form__row textarea {
    border-radius: 12px;
    border: 1px solid rgba(122, 18, 48, 0.22);
    padding: 9px 11px;
    font-size: 14px;
    outline: none;
    background: #fdf6f9;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form__row input::placeholder,
.form__row textarea::placeholder {
    color: #a87088;
}

.form__row input:focus,
.form__row textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(122, 18, 48, 0.35);
    background: #ffffff;
}

.form__row--check {
    margin-top: 4px;
    margin-bottom: 13px;
}

.checkbox {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.checkbox input {
    margin-top: 3px;
}

.form-note {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.form-message {
    margin: 6px 0 0;
    font-size: 13px;
}

.form-message--success {
    color: #1c8c44;
}

.form-message--error {
    color: #ff4f60;
}

/* honeypot */

.form__hp {
    display: none;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn--accent {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(122, 18, 48, 0.28);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn--accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 58px rgba(122, 18, 48, 0.38);
    filter: brightness(1.03);
}

.btn--accent:active {
    transform: translateY(1px);
    box-shadow: 0 14px 40px rgba(122, 18, 48, 0.46);
}

.btn--full {
    width: 100%;
}

/* SEO */

.seo-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* FOOTER */

.site-footer {
    padding: 18px 0 22px;
    background: var(--bg-accent);
    border-top: 1px solid rgba(122, 18, 48, 0.22);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(122, 18, 48, 0.66);
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ */

.js-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* АНИМАЦИИ ФОНА ГЕРОЯ */

@keyframes heroBgClouds {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-18px, 10px, 0) scale(1.03);
    }
    100% {
        transform: translate3d(16px, -8px, 0) scale(1);
    }
}

@keyframes heroBubbles {
    0% {
        background-position:
            -60px 40px,
            92% -40px,
            108% 100%,
            10% 100%;
    }
    50% {
        background-position:
            -40px 60px,
            90% -20px,
            104% 96%,
            14% 94%;
    }
    100% {
        background-position:
            -80px 20px,
            96% -60px,
            100% 104%,
            6% 106%;
    }
}

@keyframes heroChipFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(-1deg);
    }
    50% {
        transform: translate3d(6px, -6px, 0) rotate(3deg);
    }
    100% {
        transform: translate3d(-4px, 4px, 0) rotate(-2deg);
    }
}

@keyframes heroCircleFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-8px, 10px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(6px, -6px, 0) scale(0.97);
    }
}

@keyframes heroMiniFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(3px, -5px, 0);
    }
    100% {
        transform: translate3d(-2px, 2px, 0);
    }
}

@keyframes heroWidgetFloat1 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(-4px, 6px, 0) rotate(-4deg);
    }
    100% {
        transform: translate3d(6px, -4px, 0) rotate(3deg);
    }
}

@keyframes heroWidgetFloat2 {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(3px, -5px, 0) scale(1.04);
    }
    100% {
        transform: translate3d(-4px, 4px, 0) scale(0.97);
    }
}

/* адаптация анимации фона на маленьких экранах */

@media (max-width: 640px) {
    .block--hero::before,
    .block--hero::after {
        inset: -40px;
        opacity: 0.7;
    }

    .block--hero::after {
        opacity: 0.55;
    }

    .hero-layout::before,
    .hero-layout::after,
    .hero-widget::before,
    .hero-widget::after,
    .hero-info::before {
        animation-duration: 14s;
    }
}

@media (max-width: 600px) {
    .program-layout {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    
    .program-layout {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .hero-widget {
        justify-self: stretch;
        max-width: 100%;
    }

    .support-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .support-strip__card {
        justify-self: flex-start;
    }

    .form-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-panel {
        justify-self: stretch;
        max-width: 100%;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        inset-inline: 0;
        top: 90px;
        background: #321011;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 18px 16px;
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-fast), opacity var(--transition-fast);
        z-index: 25;
    }

    .nav-menu.nav-menu--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 640px) {
    .block {
        padding: 50px 0;
    }

    .block--hero {
        padding-top: 70px;
    }

    .reviews-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.brand-logo {
    height: 70px; /* можно подправить под нужный размер */
    width: auto;
    display: block;
}

/* PRELOADER */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: radial-gradient(circle at 0% 0%, #3b0717 0, #120108 55%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 26px 20px;
    border-radius: var(--radius-xl);
    background: rgba(51, 3, 21, 0.92);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(244, 198, 216, 0.35);
}

.preloader__logo img {
    height: 100px;
    width: auto;
    display: block;
}

.preloader__text {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 235, 245, 0.9);
    text-align: center;
}

.preloader__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(227, 155, 179, 0.25);
    border-top-color: #fff9fb;
    animation: preloaderSpin 0.9s linear infinite;
}

.preloader--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* пока страница "под прелоадером" — не даём скроллить и показывать контент */
body:not(.page--ready) {
    overflow: hidden;
}

body:not(.page--ready) .page {
    opacity: 0;
}

body.page--ready .page {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* анимация спиннера */
@keyframes preloaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* POPUP ОТЗЫВА */

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
}

.review-modal--open {
    display: flex;
    animation: reviewModalFadeIn 0.25s ease;
}

.review-modal__backdrop {
    position: absolute;
    inset: 0;
}

.review-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: min(720px, 100% - 40px); /* ПОМЕНЬШЕ ширина */
    max-height: 80vh;                   /* ПОМЕНЬШЕ высота */
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: #000;
}

.review-modal__image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}

.review-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--wine-main-dark);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.review-modal__close:hover {
    transform: translateY(-1px);
}

/* лёгкая анимация появления */
@keyframes reviewModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* блокируем скролл, когда открыт попап */
body.review-modal-open {
    overflow: hidden;
}

.reviews-arrow:active {
    transform: translateY(1px);
    box-shadow: 0 10px 26px rgba(122, 18, 48, 0.6);
}

/* на очень маленьких экранах чуть уменьшим кнопки */
@media (max-width: 640px) {
    .reviews-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* стрелки слайдера */
/* сами кнопки */
.reviews-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 12px 30px rgba(122, 18, 48, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.reviews-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(122, 18, 48, 0.55);
    filter: brightness(1.05);
}

.reviews-arrow--left {
    left: -20px;
}

.reviews-arrow--right {
    right: -20px;
}

/* мобайл: стрелки ближе */
@media (max-width: 640px) {
    .reviews-arrow--left {
        left: 4px;
    }
    .reviews-arrow--right {
        right: 4px;
    }
}

/* TEAM extras */
.team-card__list {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
}

.team-card__list li + li {
    margin-top: 4px;
}

.team-card__quote {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(122, 18, 48, 0.25);
    font-weight: 600;
    color: var(--text-main);
}

.hero-custom-image {
    margin-top: 20px;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(59, 11, 31, 0.18);
    width: 500px;
}