/* ==========================================================================
   MySubs — лендинг. Тот же визуальный мир, что и кабинет:
   бумажное поле, чернильная типографика, волосяные линии, крупная сетка.
   ========================================================================== */

.landing {
    font-size: 16px;
    line-height: 1.55;
    scroll-behavior: smooth;
}

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.wrap-narrow { max-width: 760px; }

/* ---------- Заголовочная полоса ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 64px;
}
.brand,
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon {
    display: inline-grid;
    place-items: center;
    color: var(--ink);
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }

.site-nav { display: flex; gap: 22px; }
.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .12s ease;
}
.site-nav a:hover { color: var(--ink); }

.site-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}
.hero-title {
    font-size: clamp(38px, 5.2vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero-lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-points li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--ink-soft);
}
.hero-points li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-green);
}

/* Превью нагрузки */
.hero-visual { min-width: 0; }
.preview-card {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 18px;
}
.preview-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.preview-title { font-weight: 700; font-size: 14px; }
.preview-tag {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.preview-cal { margin-bottom: 16px; }
.pc-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 5px; }
.pc-head span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.pc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pc-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 5px;
    border-radius: 4px;
    background: var(--panel-2);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
}
.pc-blank { background: transparent; }
.pc-cell.l1 { background: #f7cfc9; }
.pc-cell.l2 { background: #ee9387; }
.pc-cell.l3 { background: #d84c37; color: #fff; }
.pc-cell.l4 { background: #a81c10; color: #fff; }
.pc-cell.today { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.pc-num { line-height: 1; }
.pc-val { align-self: flex-end; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.preview-rows { display: flex; flex-direction: column; }
.preview-row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 13px;
}
.preview-row:last-child { border-bottom: none; }
.pr-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-sum { color: var(--ink-soft); font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding: 84px 0; border-top: 1px solid var(--rule); }
.section-alt { background: var(--panel-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-title {
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin-bottom: 16px;
    max-width: 20ch;
}
.section-lead {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 62ch;
    margin-bottom: 36px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.about-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-item p { color: var(--ink-soft); font-size: 15px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.feature {
    background: var(--panel);
    padding: 26px 24px 30px;
}
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 14px; }

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* ---------- Цена ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}
#pricing .section-title { max-width: none; text-align: center; }
.price-card {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.price-card-featured { border: 1px solid var(--ink); box-shadow: var(--shadow); position: relative; }
.price-flag {
    position: absolute;
    top: -12px;
    left: 28px;
    background: var(--ink);
    color: var(--paper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.price-name { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.billing-toggle {
    display: inline-flex;
    gap: 4px;
    width: fit-content;
    padding: 3px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--paper);
}
.billing-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.billing-btn.active { background: var(--ink); color: var(--paper); }
.billing-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--danger); }
.billing-btn.active .billing-badge { color: var(--paper); }
.price-value { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.price-value .price-per { margin-left: 6px; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-permo { margin-top: -6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 6px 0 10px; }
.price-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-soft); }
.price-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: 700;
}
.price-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { padding-top: 6px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 40px 20px 0;
    font-size: 17px;
    font-weight: 600;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--muted);
    transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 40px 22px 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-section { border-top: 1px solid var(--rule); }
.cta-inner {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
}
.cta-inner .section-title { color: var(--paper); margin: 0 auto 10px; max-width: none; }
.cta-inner .section-lead { color: color-mix(in srgb, var(--paper) 72%, transparent); margin: 0 auto 26px; }
.cta-inner .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-inner .btn-primary:hover { background: #fff; border-color: #fff; }

/* ---------- Подвал ---------- */
.site-footer { padding: 34px 0; border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-note { color: var(--muted); font-size: 13px; }
.footer-link { color: var(--ink-soft); font-size: 13px; font-weight: 600; text-decoration: none; }
.footer-link:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Вход / регистрация ---------- */
.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 18px 0;
}
.auth-tab {
    flex: 1;
    padding: 9px 12px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.auth-tab.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.auth-tab:hover:not(.active) { border-color: var(--ink); color: var(--ink); }

.auth-message {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule);
    background: var(--panel-2);
    color: var(--ink-soft);
}
.auth-message.error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--rule)); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); }
.auth-message.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--rule)); background: color-mix(in srgb, var(--ok) 8%, var(--panel)); }

.form-actions-stack { flex-direction: column; align-items: stretch; gap: 4px; }
.btn-link {
    background: none;
    border: none;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px;
    height: auto;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn-link:hover { color: var(--ink); }
.auth-offline {
    margin: 0 18px 18px;
    font-size: 13px;
    color: var(--ink-soft);
    background: color-mix(in srgb, var(--line-amber) 14%, var(--panel));
    border: 1px solid color-mix(in srgb, var(--line-amber) 40%, var(--rule));
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .about-grid, .features-grid, .steps { grid-template-columns: 1fr; }
    .features-grid { gap: 1px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .hero { padding: 48px 0 40px; }
    .section { padding: 60px 0; }
}
@media (max-width: 560px) {
    .site-actions .btn-glass { display: none; }
    .cta-inner { padding: 36px 22px; }
    .wrap { padding: 0 18px; }
}
