/* Стили посадочных страниц.
   Лендинги отдаёт API, а PWA живёт своей сборкой, поэтому файл самодостаточный:
   переменные оформления продублированы из wwwroot/css/app.css клиента. Меняете палитру —
   меняйте в обоих местах, иначе шапка лендинга разойдётся с шапкой приложения. */

:root {
    --brand: #0f9d58;
    --brand-dark: #0b7d45;
    --brand-soft: #e8f6ee;
    --ink: #131a26;
    --ink-soft: #4a5462;
    --ink-muted: #737d8c;
    --content-width: 1080px;
    --line: #e6e9ee;
    --surface: #ffffff;
    --field: #f4f6f9;
    --canvas: #eef1f5;
    --radius: 16px;
    --shadow: 0 2px 10px rgb(19 26 38 / 5%), 0 14px 40px rgb(19 26 38 / 7%);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a {
    color: var(--brand-dark);
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Каркас */
.shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.shell-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.bar {
    display: flex;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.nav {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.nav a:hover {
    color: var(--brand-dark);
}

.shell-body {
    flex: 1;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.shell-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 32px 20px;
}

.footer-about {
    display: flex;
    gap: 12px;
    max-width: 36ch;
}

.footer-about p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
}

.footer-links > div {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.footer-links h2 a {
    color: inherit;
    text-decoration: none;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand-dark);
}

/* Крошки */
.crumbs {
    padding: 6px 0 2px;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.crumbs li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--line);
}

.crumbs a {
    color: var(--ink-soft);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--brand-dark);
}

/* Первый экран */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: 40px;
    align-items: start;
    padding: 12px 0 20px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
    line-height: 1.15;
}

.lead {
    margin: 0 0 22px;
    max-width: 52ch;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.pluses {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.pluses li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
}

.pluses li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 12px;
    height: 6px;
    border-left: 2.5px solid var(--brand);
    border-bottom: 2.5px solid var(--brand);
    transform: rotate(-45deg);
}

.hero-aside {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.flag {
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
    line-height: 1;
}

.hero-aside dl {
    margin: 0;
    display: grid;
    gap: 10px;
}

.hero-aside dl > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.9rem;
}

.hero-aside dt {
    color: var(--ink-muted);
}

.hero-aside dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

/* Секции */
.section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
}

.text {
    margin: 0 0 14px;
    max-width: 78ch;
    color: var(--ink-soft);
}

.muted {
    margin: 0 0 18px;
    font-size: 0.88rem;
    color: var(--ink-muted);
}

.marks {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
}

/* Курс */
.boards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.board {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.board-head h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--ink-muted);
    font-weight: 600;
}

.board-headline {
    margin: 0 0 4px;
    font-size: 1.4rem;
    font-weight: 700;
}

.board-rate {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

/* Таблицы */
.table-scroll {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
}

.table tbody th {
    font-weight: 600;
}

.table tbody td:last-child {
    font-weight: 600;
}

.table tr:last-child th,
.table tr:last-child td {
    border-bottom: none;
}

/* Кнопка */
.cta {
    display: inline-grid;
    place-items: center;
    margin-top: auto;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.cta:hover {
    background: var(--brand-dark);
}

.cta-wide {
    padding: 14px 28px;
}

/* Шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 800;
}

.steps h3 {
    margin: 0 0 5px;
    font-size: 0.98rem;
}

.steps p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Карточки банков и направлений */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
}

.card:hover {
    border-color: var(--brand);
}

.card-title {
    font-weight: 700;
}

.card-note {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* Вопросы */
.faq {
    display: grid;
    gap: 10px;
    max-width: 82ch;
}

.faq details {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style-position: outside;
}

.faq summary::marker {
    color: var(--brand);
}

.faq p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 720px) {
    .bar {
        gap: 16px;
        padding: 10px 16px;
    }

    .nav {
        gap: 16px;
    }

    .shell-body {
        padding: 16px 16px 32px;
    }

    .section {
        padding: 28px 0;
    }
}
