/* home-passport.css — палитра приведена к стилю страниц studio (тёплые бежево-золотые тона) */
/* Селекторы и структура сохранены, чтобы существующий JS продолжал работать. */

/* === Палитра (в духе studio) === */
:root{
    /* фоновые */
    --page-bg: #FFF8EF;                 /* мягкий бежевый фон страницы */
    --hero-bg: #FFF6EA;
    --hero-bg-gradient: radial-gradient(1200px 600px at 85% -10%, #FFF6EA 0%, #FFEFD8 55%, #FFE6BD 100%);

    /* текст и границы */
    --text: #1F2937;                    /* тёмно-графитовый */
    --muted: #6B7280;                   /* приглушённый текст */
    --border: #E5E7EB;                  /* светлая граница */
    --card: #FFFFFF;                    /* фон карточек */

    /* брендовые (в стиле studio) */
    --brand: #EAB308;                   /* золотисто-янтарный */
    --brand-hover: #CA8A04;             /* насыщенный янтарный для hover */
    --accent: #22C55E;                  /* положительный акцент (успех/кнопка-хэндл) */

    /* радиусы */
    --radius-lg: 16px;
    --radius-xl: 22px;
}

/* Утилиты */
.hidden { display: none !important; }
*{box-sizing:border-box}
html,body{height:100%}
body.hero-body{
    margin:0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background-color: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
.header-wrap{
    position: sticky; top:0; z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255,255,255,0.9);
    border-bottom:1px solid var(--border);
}
.header-container{
    max-width: 1200px; margin: 0 auto;
    padding: 14px 20px;
    display:flex; align-items:center; gap:16px;
}
.header-logo{ display:flex; align-items:center; gap:10px; min-width: 210px; text-decoration:none; color:inherit; }
.header-logo-icon{ font-size: 22px; line-height: 1; }
.header-logo-text{ font-weight: 600; letter-spacing: -0.01em; }
.header-logo-strong{ font-weight: 800; }
.header-logo-dot{ color:#6b7280; }

.header-nav{ margin-left:auto; display:flex; align-items:center; gap:16px; }
.header-nav-toggle{ display:none; width:40px; height:40px; border-radius:10px; border:1px solid var(--border); background:#fff; }
.header-nav-burger, .header-nav-burger::before, .header-nav-burger::after{
    display:block; position:relative; width:20px; height:2px; background:#111; margin:0 auto; content:"";
}
.header-nav-burger::before{ top:-6px; position:relative; }
.header-nav-burger::after { top: 6px; position:relative; }
.header-nav-list{ display:flex; gap:20px; list-style:none; margin:0; padding:0; }
.header-nav-link{ color:#111827; text-decoration:none; font-weight:500; font-size:14px; }
.header-nav-link:hover{ text-decoration:underline; }
.header-cta{
    margin-left: 6px; padding:10px 14px; border-radius:12px;
    background: var(--brand); color:#111; text-decoration:none; font-weight:700;
    border:1px solid rgba(0,0,0,0.06);
}
.header-cta:hover{ background: var(--brand-hover); color:#111; }
@media (max-width: 960px){
    .header-nav-toggle{ display:flex; align-items:center; justify-content:center; }
    .header-nav-list{ display:none; }
}

/* ===== HERO ===== */
.hero-wrap{ background: var(--hero-bg-gradient); position: relative; }
.hero-container{
    max-width:1200px; margin:0 auto; padding: 54px 20px 72px;
    display:grid; grid-template-columns: 1.1fr 1fr; gap:40px; align-items:center;
}
.hero-col{ min-width:0; }
.hero-title{
    margin: 0 0 16px; font-weight: 800; line-height: 1.07; letter-spacing: -0.02em;
    font-size: clamp(32px, 4.2vw, 54px); color:#0F172A;
}
.hero-subtitle{ margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 52ch; }

.hero-cta-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom: 24px; }
.hero-btn{
    display:inline-flex; align-items:center; justify-content:center;
    height:52px; padding:0 22px; border-radius:14px; font-weight:800; text-decoration:none;
    border:1px solid rgba(0,0,0,0.08); white-space:nowrap;
}
.hero-btn--primary{ background:var(--brand); color:#111; }
.hero-btn--primary:hover{ background:var(--brand-hover); color:#111; }
.hero-trust{ display:flex; align-items:center; gap:10px; color:#1f2937; font-size:14px; }
.hero-trust-label{ font-weight:800; }
.hero-stars{ letter-spacing:2px; color:#16A34A; font-weight:900; }
.hero-trust-brand{ color:#16A34A; font-weight:700; }

.hero-col--visual{ min-width:0; }
.hero-compare{
    position:relative; background:#fff; border-radius: 20px;
    box-shadow: 0 12px 40px rgba(20, 20, 43, 0.18);
    overflow:hidden; aspect-ratio: 0.75 / 0.82; border: 5px #fff solid;
}
.hero-size-tag{
    position:absolute; z-index:5; font-size:12px; font-weight:800; color:#3f3f46;
    background:#fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 4px 8px; box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.hero-size-tag--top{ top: -14px; left: 60px; transform: translateY(-50%); }
.hero-size-tag--left{ left: -14px; bottom: 50%; transform: translate(-50%, 50%); }

.hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hero-img--bottom{ z-index:1; }
.hero-top-clip{ position:absolute; inset:0; z-index:2; width: var(--clip-w, 50%); overflow:hidden; }
.hero-img--top{ position:absolute; inset:0; width:auto; height:100%; object-fit: cover; }

.hero-divider{ position:absolute; top:0; bottom:0; width:0; z-index:3; border-left: 2px dashed rgba(255,255,255,0.95); pointer-events:none; }
.hero-handle{
    position:absolute; top:50%; transform: translate(-50%, -50%); z-index:4;
    width:64px; height:64px; border-radius:999px; border:none; cursor:ew-resize;
    background: var(--accent); color:#fff; font-weight:900; font-size:18px;
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 14px 30px rgba(34,197,94,0.35);
}
.hero-handle:active{ transform: translate(-50%, -50%) scale(0.98); }
.hero-handle:focus-visible{ outline: 3px solid #22c55e; }

.hero-btn.hero-btn--primary.mobile { display: none; }
@media (max-width: 1024px){
    .hero-container{ grid-template-columns: 1fr; gap:28px; padding-top: 36px; }
    .hero-col--visual{ order: 2; }
    .hero-col--text{ order: 1; }
    .hero-title, .hero-subtitle{ text-align:center; }
    .hero-cta-row, .hero-trust{ justify-content:center; }
    .hero-size-tag--top{ left: 50%; transform: translate(-50%, -50%); }
    .hero-size-tag--left{ top: 50%; left: -14px; transform: translate(-50%, -50%); }
    .hero-btn.hero-btn--primary.desktop { display: none; }
    .hero-btn.hero-btn--primary.mobile { display: flex; }
}
@media (max-width: 520px){
    .header-container{ padding: 12px 14px; }
    .header-logo-text{ font-size: 15px; }
    .header-cta{ padding: 9px 12px; border-radius: 10px; font-size: 14px; border: none; background: transparent}
    .hero-container{ padding: 28px 14px 46px; }
    .hero-handle{ width:56px; height:56px; font-size:16px; }
}

/* ===== SECTION: steps ===== */
.hp-steps{
    --hp-brand: var(--brand); --hp-text: #0F172A; --hp-muted: #6B7280;
    --hp-card: #FFFFFF; --hp-soft: rgba(234,179,8,0.12); --hp-radius: 16px;
    background: var(--page-bg); padding: clamp(28px, 4vw, 56px) 0;
}
.hp-steps__container{ max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hp-steps__title{
    margin: 0 0 clamp(16px, 2.4vw, 28px); font-family: var(--font-head, serif);
    font-weight: 300; letter-spacing: -0.01em; color: var(--hp-text);
    font-size: clamp(28px, 4.6vw, 44px);
}
.hp-steps__grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.6vw, 28px); }
.hp-steps__item{
    background: var(--hp-card); border-radius: var(--hp-radius);
    box-shadow: 0 8px 28px rgba(2,6,23,0.06); overflow: hidden; display: flex; flex-direction: column;
    border: 1px solid rgba(234,179,8,0.16);
}
.hp-steps__media{
    aspect-ratio: 16 / 9; background: linear-gradient(180deg, #FFF4DE 0%, #FFEAC0 100%);
    border-bottom: 1px solid rgba(2,6,23,0.06); position: relative;
}
.hp-steps__media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-steps__content{
    padding: clamp(14px, 2vw, 18px);
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "badge title" ".     text";
    column-gap: 12px; row-gap: 6px;
}
.hp-steps__badge{
    grid-area: badge; width: 46px; height: 46px; border-radius: 999px;
    background: var(--hp-brand); color: #111; font-weight: 900;
    display: grid; place-items: center; border: 6px solid rgba(255, 243, 199, 0.9);
}
.hp-steps__item-title{ grid-area: title; margin: 0; font-family: var(--font-head, serif); font-weight: 400; color: var(--hp-text); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.15; }
.hp-steps__text{ grid-area: text; margin: 6px 0 0 0; color: var(--hp-muted); font-family: var(--font-body, sans-serif); font-weight: 300; font-size: clamp(13px, 1.6vw, 16px); line-height: 1.5; }
@media (hover:hover){
    .hp-steps__item{ transition: transform .18s ease, box-shadow .18s ease; }
    .hp-steps__item:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px rgba(2,6,23,0.10); }
}
@media (max-width: 900px){
    .hp-steps__grid{ grid-template-columns: 1fr; }
    .hp-steps__content{ grid-template-columns: auto 1fr; }
}

/* ===== SECTION: faq ===== */
.hp-faq{
    --hp-brand: var(--brand); --hp-text: #0F172A; --hp-muted: #6B7280; --hp-card: #FFFFFF;
    --hp-border: rgba(2,6,23,0.08); --hp-radius: 16px;
    background: var(--page-bg); padding: clamp(28px, 4vw, 56px) 0;
}
.hp-faq__container{ max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.hp-faq__title{
    margin: 0 0 clamp(16px, 2.4vw, 28px); font-family: var(--font-head, serif);
    font-weight: 300; letter-spacing: -0.01em; color: var(--hp-text);
    font-size: clamp(28px, 4.6vw, 44px);
}
.hp-faq__list{ display: grid; gap: 10px; }
.hp-faq__item{ background: var(--hp-card); border: 1px solid var(--hp-border); border-radius: var(--hp-radius); overflow: hidden; }
.hp-faq__question{
    width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center;
    padding: 16px 18px; background: transparent; border: 0; text-align: left; cursor: pointer;
    font-family: var(--font-head, serif); font-weight: 300; color: var(--hp-text);
    font-size: clamp(16px, 2.2vw, 20px);
}
.hp-faq__qtext{ padding-right: 14px; }
.hp-faq__icon{ width: 22px; height: 22px; border-radius: 999px; position: relative; }
.hp-faq__icon::before, .hp-faq__icon::after{
    content: ""; position: absolute; inset: 50% auto auto 50%;
    width: 14px; height: 2px; background: var(--hp-text);
    transform: translate(-50%,-50%); transition: transform .18s ease, opacity .18s ease;
}
.hp-faq__icon::after{ transform: translate(-50%,-50%) rotate(90deg); }
.hp-faq__question[aria-expanded="true"] .hp-faq__icon::after{ transform: translate(-50%,-50%) rotate(0deg); opacity: 0; }
.hp-faq__answer{ padding: 0 18px 16px 18px; color: var(--hp-muted); font-family: var(--font-body, sans-serif); font-weight: 300; font-size: clamp(14px, 1.8vw, 16px); line-height: 1.6; }
.hp-faq__answer p{ margin: 0; }

/* ===== Mobile bottom CTA ===== */
.hp-fab{ display:none; }
@media (max-width: 900px){
    .hp-fab{
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff; border-top-left-radius: 14px; border-top-right-radius: 14px;
        box-shadow: 0 -8px 24px rgba(2,6,23,0.14);
        transform: translateY(100%); transition: transform .22s ease, opacity .22s ease; opacity: 0; display: block;
    }
    .hp-fab.is-visible{ transform: translateY(0); opacity: 1; }
    .hp-fab__btn{
        width: 100%; display: inline-block; padding: 14px 18px; border-radius: 12px;
        background: var(--brand); color: #111; font-weight: 900; text-align: center; border: 0;
    }
}

/* Типографика */
:root{
    --font-head: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
    --font-body: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fw-thin: 200; --fw-regular: 400; --fw-bold: 700; --fw-black: 800;
}
body{ font-family: var(--font-body); font-weight: var(--fw-thin); letter-spacing: 0.005em; }
h1, h2, h3, h4, h5, h6, .hero-title, .hp-steps__title{ font-family: var(--font-head); font-weight: 300; letter-spacing: -0.01em; }
.hero-title-brand{ font-weight: var(--fw-black); }
.hero-btn{ font-family: var(--font-body); font-weight: var(--fw-bold); }

/* Доступность */
.hero-handle:focus-visible{ outline: 3px solid #22c55e; }

/* Вспомогательные */
.hp-visually-file{
    position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;
    clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap;
}





/* ===== FOOTER (в тонах studio) ===== */
.hp-footer{
    --f-bg: #12100B;             /* глубокий тёплый тёмный */
    --f-text: #EAE6D9;           /* мягкий светлый */
    --f-muted: #B8B2A4;
    --f-accent: var(--brand, #EAB308); /* золотой как в studio */
    background:
            radial-gradient(1200px 600px at 80% -20%, rgba(255,216,128,0.06), transparent 60%),
            var(--f-bg);
    color: var(--f-text);
    padding: 28px 0 34px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hp-footer__container{
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
    display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: start;
}
.hp-footer__brand{ display: flex; align-items: center; gap: 12px; }
.hp-footer__logo{
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(180deg, #F4D269 0%, #EAB308 100%);
    color: #1A150B; font-weight: 900;
    box-shadow: 0 6px 22px rgba(234,179,8,0.22);
}
.hp-footer__name strong{ font-weight: 800; letter-spacing: -0.01em; }
.hp-footer__name span{ color: var(--f-muted); font-size: 12px; }

.hp-footer__nav{ }
.hp-footer__list{
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px; list-style: none; margin: 0; padding: 0;
}
.hp-footer__link{
    color: var(--f-text); text-decoration: none; font-size: 14px;
    border-bottom: 1px dashed transparent; transition: color .15s ease, border-color .15s ease;
}
.hp-footer__link:hover{ color: var(--f-accent); border-color: rgba(234,179,8,0.45); }

.hp-footer__contact{ text-align: right; }
.hp-footer__mail{
    color: var(--f-accent); text-decoration: none; font-weight: 800;
}
.hp-footer__copy{
    margin: 8px 0 0; color: var(--f-muted); font-size: 12px;
}

/* Mobile */
@media (max-width: 900px){
    .hp-footer__container{ grid-template-columns: 1fr; gap: 16px; }
    .hp-footer__contact{ text-align: left; }
    .hp-footer__list{ grid-template-columns: 1fr; }
    .hp-footer{
        padding-bottom: 90px;
    }
}
