/* ─────────────  Лендинг  ───────────── */

/* header */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 10, .72); backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent; transition: .25s;
}
.header.scrolled { border-bottom-color: var(--line-soft); background: rgba(10, 10, 10, .92); }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 74px; }

.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { color: var(--muted); font-size: 14px; transition: .15s; }
.nav a:hover, .nav a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

/* мобильное меню */
.mobile-menu {
    position: fixed; inset: 74px 0 auto 0; z-index: 99; background: #0d0d0d;
    border-bottom: 1px solid var(--line); padding: 18px 24px 26px;
    display: none; flex-direction: column; gap: 4px; animation: slideDown .22s ease;
}
.mobile-menu.open { display: flex; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu a {
    padding: 13px 4px; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: 15px;
}
.mobile-menu .btn { margin-top: 14px; }

/* hero */
.hero { position: relative; padding: 100px 0 60px; text-align: center; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.hero p { color: var(--muted); margin: 22px auto 0; max-width: 560px; font-size: 15.5px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* пробный период */
.trial-note {
    margin-top: 16px; color: var(--muted-2); font-size: 13px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.trial-note::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 10px rgba(74, 222, 128, .8);
}
.cta-btns { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* секции */
.section { padding: 90px 0; position: relative; z-index: 2; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 14.5px; }

/* преимущества */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
    background: linear-gradient(180deg, #151515, #101010);
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: .22s;
}
.feature:hover { border-color: #333; transform: translateY(-3px); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-line);
    margin-bottom: 20px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--muted-2); font-size: 13.5px; line-height: 1.6; }

/* тарифы */
/* Карточки одной высоты: строка тянется по самой длинной, но не выше экрана —
   что не поместилось, прокручивается внутри .plan-body. */
/* Именно flex, а не grid: высота строки берётся как максимум высот карточек
   с учётом их max-height, поэтому ограничение не оставляет пустоты под ними. */
.plans { display: flex; align-items: stretch; gap: 22px; }
.plan {
    background: linear-gradient(180deg, #141414, #0f0f0f);
    border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; position: relative;
    display: flex; flex-direction: column; gap: 18px; transition: .22s;
    flex: 1 1 0; min-width: 0; min-height: 0; max-height: calc(100vh - 140px);
}
.plan-body {
    display: flex; flex-direction: column; gap: 18px;
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #3a3a3a transparent;
    margin-right: -8px; padding-right: 8px;   /* полоса прокрутки не режет контент */
}
.plan-body::-webkit-scrollbar { width: 6px; }
.plan-body::-webkit-scrollbar-track { background: transparent; }
.plan-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.plan-body::-webkit-scrollbar-thumb:hover { background: var(--accent-line); }
.plan.popular { border-color: rgba(245, 166, 35, .3); box-shadow: 0 0 44px rgba(245, 166, 35, .07); }
.plan-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-head h3 { font-size: 19px; }
.plan-sub { color: var(--muted-2); font-size: 12.5px; margin-top: -10px; }

.period-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.plan-price {
    background: linear-gradient(135deg, rgba(245,166,35,.14), rgba(245,166,35,.04));
    border: 1px solid var(--accent-line); border-radius: var(--r); padding: 16px 18px;
    display: flex; align-items: baseline; gap: 10px;
}
.plan-price .big { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.plan-price .per { color: var(--muted-2); font-size: 12.5px; }

.plan-feats { display: flex; flex-direction: column; gap: 11px; }
.plan-feats li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #c9c9c9; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
    width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
    padding: 22px 4px; display: flex; align-items: center; gap: 16px; font-size: 14.5px;
    color: #ddd; transition: .15s;
}
.faq-q:hover { color: #fff; }
.faq-q svg { margin-left: auto; flex: none; color: var(--muted-2); transition: .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--muted); font-size: 13.5px; max-width: 92%; }

/* CTA */
.cta { text-align: center; padding: 100px 0; position: relative; z-index: 2; }
.cta p { color: var(--muted); max-width: 620px; margin: 20px auto 0; font-size: 14.5px; }

/* footer */
.footer { border-top: 1px solid var(--line-soft); background: #0c0c0c; padding: 60px 0 28px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: 14px; margin-bottom: 18px; }
.footer p, .footer a { color: var(--muted-2); font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--muted-2); font-size: 13px; }
.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a { color: var(--accent); opacity: .85; transition: .15s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.footer-bottom {
    margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-soft);
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    color: var(--muted-2); font-size: 12.5px;
}
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* адаптив */
@media (max-width: 980px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    /* В одну колонку выравнивать нечего: карточки раскрываются целиком, без прокрутки.
       flex:1 1 0 обязательно сбросить — в колонке он задаёт нулевую ВЫСОТУ,
       из-за чего карточки схлопывались и содержимое налезало друг на друга. */
    .plans { flex-direction: column; max-width: 460px; margin: 0 auto; }
    .plan { flex: 0 0 auto; max-height: none; }
    .plan-body { overflow: visible; margin-right: 0; padding-right: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
    .nav, .header-actions .btn-ghost { display: none; }
    .burger { display: grid; }
    .header .wrap { justify-content: space-between; gap: 12px; }
    .hero { padding: 64px 0 40px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 34px; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta { padding: 70px 0; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-btns .btn { flex: 1; }
    .cta-btns .btn { flex: 1; }
}
