/* homepassport.css */

/* Базовые переменные — подобраны в тон оригиналу */
:root{
    --hero-bg: #f0eefc;              /* светлый лавандовый фон секции */
    --hero-bg-gradient: radial-gradient(1200px 600px at 85% -10%, #f6f4fe 0%, #ebe9fb 55%, #e6e4f7 100%);
    --text: #0f172a;                 /* почти-черный (slate-900) */
    --muted: #475569;                /* slate-600 */
    --brand: #5b5bf0;                /* фиолетовый CTA */
    --brand-hover: #4a4ad9;
    --accent: #1dd370;               /* зелёный кружок ползунка */
    --card: #ffffff;
    --border: #e5e7eb;
    --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:#fff;
    -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.85);
    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;
    text-decoration:none;
    color:inherit;
    gap:10px;
    min-width: 210px;
}

.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:#fff; text-decoration:none; font-weight:600;
    border:1px solid transparent;
}
.header-cta:hover{ background: var(--brand-hover); }

/* Моб. поведение меню */
@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);
}

.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:700; text-decoration:none;
    border:1px solid transparent; white-space:nowrap;
}
.hero-btn--primary{ background:var(--brand); color:#fff; }
.hero-btn--primary:hover{ background:var(--brand-hover); }

.hero-trust{
    display:flex; align-items:center; gap:10px; color:#111827;
    font-size:14px;
}
.hero-trust-label{ font-weight:700; }
.hero-stars{ letter-spacing:2px; color:#14b8a6; font-weight:800; }
.hero-trust-brand{ color:#14b8a6; font-weight:700; }

/* Правая колонка — сравнение фото */
.hero-col--visual{
    min-width:0;
    padding-right: 60px;
}

.hero-compare{
    position:relative;
    background:#fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(20, 20, 43, 0.2);
    overflow:hidden;
    aspect-ratio: 0.75 / 0.82;          /* квадратная область, как на скрине */
    border: 5px #fff solid;
}

/* Размерные метки «2 in» */
.hero-size-tag{
    position:absolute;
    z-index:5;
    font-size:12px; font-weight:700;
    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.9);
    mix-blend-mode: normal;
    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(29,211,112,0.4);
}
.hero-handle:active{ transform: translate(-50%, -50%) scale(0.98); }
.hero-handle:focus-visible{ outline: 3px solid #22c55e; }

/* Паспорт */
.hero-passport{
    position:absolute;
    right: 35px; bottom: 10px;
    width: 120px; height:auto;
    z-index: 5;
    pointer-events:none;
    background-color: #6d2627;
    border-radius: 4px;
    box-shadow: rgba(0,0,0,0.2) -2px -2px 10px;
}

.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{ text-align:center; }
    .hero-subtitle{ text-align:center; margin-left:auto; margin-right:auto; }
    .hero-cta-row{ justify-content:center; }
    .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 {
        justify-content: center;
        align-items: center;
        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; }
    .hero-container{ padding: 28px 14px 46px; }
    .hero-handle{ width:56px; height:56px; font-size:16px; }
    .hero-passport{ width: 96px; }
}

.hero-download {
    border: 3px solid #ffffff;
    padding: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-radius: 20px;
}



/* SECTION: hp-guarantee */
.hp-guarantee{
    --hp-brand: var(--brand-primary, #6F5DFF);        /* фиолетовый как на сайте */
    --hp-text:  var(--text-primary, #0F172A);         /* тёмный текст */
    --hp-muted: var(--text-secondary, #475569);       /* вторичный текст */
    --hp-bg:    var(--page-bg, #FFFFFF);

    background: var(--hp-bg);
    padding: clamp(28px, 4vw, 48px) 0;
}

.hp-guarantee__container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: clamp(16px, 4vw, 40px);
}

.hp-guarantee__title{
    margin: 0 0 12px 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hp-guarantee__title-accent{
    color: var(--hp-brand);
    font-weight: 800;
    font-size: clamp(28px, 5.2vw, 56px);
}

.hp-guarantee__title-strong{
    color: var(--hp-text);
    font-weight: 900;
    font-size: clamp(32px, 6vw, 64px);
}

.hp-guarantee__lead{
    margin: 14px 0 6px 0;
    color: var(--hp-text);
    font-weight: 700;
    font-size: clamp(14px, 1.8vw, 18px);
}

.hp-guarantee__sub{
    margin: 0 0 20px 0;
    color: var(--hp-muted);
    font-weight: 500;
    font-size: clamp(13px, 1.6vw, 16px);
}

.hp-guarantee__cta{
    display: inline-block;
    margin-top: 4px;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--hp-brand);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(111,93,255,0.25);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.hp-guarantee__cta:hover{ transform: translateY(-1px); box-shadow: 0 8px 22px rgba(111,93,255,0.33); }
.hp-guarantee__cta:active{ transform: translateY(0);  box-shadow: 0 4px 14px rgba(111,93,255,0.22); }

.hp-guarantee__logos{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items: center;
    gap: clamp(12px, 2.8vw, 28px);
    justify-items: center;
}

.hp-guarantee__logo{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(10px, 1.8vw, 16px);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(2,6,23,0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.hp-guarantee__logo:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(2,6,23,0.12); }
.hp-guarantee__logos img{
    width: 100%;
    max-width: 180px;
    height: auto;
    filter: saturate(1.05) contrast(1.02);
}

/* Mobile-first tweaks */
@media (max-width: 900px){
    .hp-guarantee__container{
        grid-template-columns: 1fr;
        text-align: left;
    }
    .hp-guarantee__logos{
        order: 3;                 /* логотипы сверху на мобильных */
        /*grid-template-columns: repeat(3, 1fr);*/
        margin-bottom: 8px;
        display: flex;
        gap: 10px;

    }
    .hp-guarantee__cta{ width: 100%; }
    .hp-guarantee__logos img{
        width: calc(100% / 3 - 20px);
    }
    .hp-guarantee__copy {
        order: 2;
    }
}

@media (max-width: 560px){
    .hp-guarantee__logos{
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .hp-guarantee__logo img{
        max-width: 150px;
    }
    .hp-guarantee__br{ display: none; }  /* компактнее текст */
}



/* SECTION: hp-steps */
.hp-steps{
    --hp-brand: var(--brand-primary, #6F5DFF);          /* ваш фиолетовый */
    --hp-text:  var(--text-primary, #0F172A);
    --hp-muted: var(--text-secondary, #475569);
    --hp-card:  #ffffff;
    --hp-soft:  rgba(111,93,255,0.10);                  /* мягкая подсветка */
    --hp-radius: 16px;

    background: var(--page-bg, #F8FAFC);
    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;
}

.hp-steps__media{
    /* Плейсхолдер под изображение 16:9 */
    aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, #EEF2FF 0%, #F5F3FF 100%);
    border-bottom: 1px solid rgba(2,6,23,0.06);
    position: relative;
}

/* Если захочешь вставить реальную картинку — просто добавь внутрь <img> */
.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: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    /* box-shadow: 0 0px 14px rgb(224 220 255); */
    border: 6px solid rgb(224 220 255);
}

.hp-steps__item-title{
    grid-area: title;
    margin: 0;
    font-family: var(--font-head, serif);
    font-weight: 300;
    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;
}

/* Hover (десктоп) */
@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: hp-faq */
.hp-faq{
    --hp-brand: var(--brand-primary, #6F5DFF);
    --hp-text:  var(--text-primary, #0F172A);
    --hp-muted: var(--text-secondary, #475569);
    --hp-card:  #FFFFFF;
    --hp-border: rgba(2,6,23,0.08);
    --hp-radius: 16px;

    background: var(--page-bg, #F8FAFC);
    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) ===== */
.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-primary, #6F5DFF);
        color: #fff;
        font-weight: 800;
        text-align: center;
        border: 0;
    }
}





/* === Fonts: headings/body pair (Source Serif 4 + Urbanist) === */
: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; /* тонкий sans */
    --fw-thin: 200;      /* очень тонкий */
    --fw-regular: 400;
    --fw-bold: 700;
    --fw-black: 800;
}

/* Базовый текст — очень тонкий sans */
body{
    font-family: var(--font-body);
    font-weight: var(--fw-thin);
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Заголовки — простые засечки, тонко */
h1, h2, h3, h4, h5, h6,
.hero-title,
.hp-guarantee__title{
    font-family: var(--font-head);
    font-weight: 300; /* тонко, но устойчиво */
    letter-spacing: -0.01em;
}

/* Акцентные части заголовков — можно оставлять плотнее */
.hero-title-brand,
.hp-guarantee__title-strong{
    font-weight: var(--fw-black);
}

/* Кнопки остаются читабельными */
.hero-btn,
.hp-guarantee__cta{
    font-family: var(--font-body);
    font-weight: var(--fw-bold);

}
#hpMobileCtaUpload {
    width: 100%;
}




/* Инпут в DOM (не display:none), но невидим визуально */
.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 styles ===== */
.footer {
    --footer-bg: #0d1b20;          /* приглушённый тёмный */
    --footer-fg: #e9eef1;          /* спокойный светлый */
    --footer-fg-dim: #b9c6cc;      /* вторичный текст */
    --footer-link: #e6f0f4;        /* ссылки */
    --footer-link-hover: #ffffff;
    --footer-border: rgba(255,255,255,0.06);
    --footer-accent: #f6c646;      /* мягкий жёлтый акцент */
    --footer-gap: 28px;

    background: var(--footer-bg);
    color: var(--footer-fg);
    width: 100%;
}

.footer a { color: var(--footer-link); text-decoration: none; }
.footer a:hover { color: var(--footer-link-hover); text-decoration: underline; }

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 36px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: var(--footer-gap);
}

.footer-col { min-width: 0; }

.footer-brand .footer-lead {
    margin: 12px 0 16px;
    color: var(--footer-fg-dim);
    line-height: 1.55;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--footer-fg);
}
.footer-logo-text { font-size: 18px; text-transform: lowercase; }
.footer-logo-text span { font-weight: 900; }

.footer [data-lucide],
.footer svg {
    width: 20px;
    height: 20px;
    stroke-width: .75;   /* тонкие линии иконок */
}

.footer-contacts {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-fg);
    margin: 8px 0;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    margin: 4px 0 10px;
    color: var(--footer-fg);
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-list li { margin: 8px 0; }
.footer-list a { color: var(--footer-fg-dim); }
.footer-list a:hover { color: var(--footer-link-hover); }

.footer-rekv .footer-list li {
    color: var(--footer-fg-dim);
}
.footer-link.more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: 600;
}

/* Bottom strip */
.footer-bottom {
    background:
            linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0)) 0 0/100% 100% no-repeat,
            var(--footer-bg);
    border-top: 4px solid var(--footer-accent); /* жёлтая полоска */
}
.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}
.footer-copy {
    margin: 0;
    color: var(--footer-fg-dim);
    font-size: 13px;
}
.footer-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--footer-fg);
}
.footer-top:hover { color: var(--footer-link-hover); }

/* Responsive */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 28px 16px 22px;
    }
    .footer-title { margin-top: 14px; }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-copy { font-size: 12px; }
}

/* Subtle separators on wide screens (optional) */
@media (min-width: 901px) {
    .footer-col + .footer-col {
        border-left: 1px solid var(--footer-border);
        padding-left: 22px;
    }
}



/* === Paid dialog (overlay + top-centered sheet) === */
.hp-paid-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18,20,35,.48); /* серый фон */
    opacity: 0;
    transition: opacity .22s ease;
    z-index: 9998;
}

.hp-paid-overlay.is-visible { opacity: 1; }

.hp-paid-dialog {
    position: absolute;
    left: 50%;
    top: 16px; /* центр сверху */
    transform: translate(-50%, -16px); /* старт выше */
    width: min(560px, calc(100vw - 24px));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(18,20,35,.20);
    padding: 16px 16px 20px;
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.hp-paid-dialog.is-visible {
    transform: translate(-50%, 0); /* выплывает вниз */
    opacity: 1;
}

.hp-paid-title {
    font-weight: 600;
    text-align: center;
    margin: 4px 32px 12px 32px;
}

.hp-paid-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hp-paid-actions a {
    text-decoration: none;
}

.hp-paid-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #2a273f;
}

@media (max-width: 480px) {
    .hp-paid-dialog { top: 12px; width: min(460px, calc(100vw - 16px)); padding: 14px 12px 16px; }
    .hp-paid-actions .ppd-btn { width: 100%; text-align: center; }
}

/* блокируем прокрутку страницы при показе модалки */
.hp-paid-modal-open { overflow: hidden; }
