/* =========================================================
   Web Fonts от Wybex — бенто-интерфейс (общий стиль с TinyIMG)
   Палитра взята из sass/_vars.sass (бренд wybex)
   ========================================================= */

:root {
    --font: sofia-pro, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --text: #002933;
    --text-sub: #617276;
    --text-muted: #6B7280;

    --accent: #FFDD2D;
    --accent-hover: #FFC321;
    --accent-soft: #FFE666;
    --accent-pale: #FFF6CC;

    --bg: #F3F4F6;
    --card: #FFFFFF;
    --line: #E4E6E7;
    --dark: #002933;
    --dark-2: #0B3A45;
    --success: #12B76A;
    --danger: #F04438;

    --r-xl: 32px;
    --r-lg: 24px;
    --r-md: 16px;
    --r-sm: 12px;
    --gap: 16px;

    --shadow: 0 1px 2px rgba(0, 41, 51, .04), 0 8px 24px rgba(0, 41, 51, .06);
    --shadow-hover: 0 4px 8px rgba(0, 41, 51, .05), 0 24px 48px -12px rgba(0, 41, 51, .18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-width: 320px;
    overflow-x: hidden;
    overflow-wrap: break-word;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

code {
    font-family: var(--mono);
    font-size: .88em;
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 6px;
}
.card--dark code { background: rgba(255, 255, 255, .12); }
.card--soft code { background: rgba(255, 255, 255, .7); }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 244, 246, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    letter-spacing: -.02em;
}

.logo__mark {
    width: 36px; height: 36px;
    border-radius: 11px;
    background: var(--accent);
    display: grid;
    place-items: center;
}

.logo__mark svg { width: 20px; height: 20px; }

.logo__text { white-space: nowrap; }
.logo__text small { font-size: 14px; font-weight: 500; color: var(--text-sub); letter-spacing: 0; margin-left: 2px; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color .2s;
}

.nav a:hover { background: #fff; }
.nav a.btn--dark:hover { background: var(--dark-2); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .1s, opacity .2s;
    white-space: nowrap;
}

.btn:active:not(:disabled) { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn--secondary { background: var(--bg); color: var(--dark); }
.btn--secondary:hover:not(:disabled) { background: var(--line); }

.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover:not(:disabled) { background: var(--dark-2); }

.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }

.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.is-busy { cursor: progress; opacity: .85; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Bento base ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
}

.card {
    background: var(--card);
    border-radius: var(--r-xl);
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
    min-width: 0;
}

.card--yellow { background: var(--accent); }
.card--dark { background: var(--dark); color: #fff; }
.card--soft { background: var(--accent-pale); }

.card__text { color: var(--text-sub); font-size: 15px; }
.card__text + .card__text { margin-top: -4px; }
.card--dark .card__text { color: rgba(255, 255, 255, .72); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-sub);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.section { padding: 16px 0; }
.section--seo { padding-top: 48px; }
.section--fonts { padding-top: 48px; padding-bottom: 32px; }

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section__head .eyebrow { margin-bottom: 12px; }

.section__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
}

.section__lead {
    max-width: 520px;
    color: var(--text-sub);
}

/* ---------- Hero ---------- */

.hero { padding: 24px 0 16px; }

.hero__main {
    grid-column: span 8;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
}

.hero__title {
    font-size: clamp(34px, 5.2vw, 64px);
    font-weight: 800;
    letter-spacing: -.035em;
    max-width: 720px;
}

.hero__title mark {
    background: var(--accent);
    color: inherit;
    padding: 0 .12em;
    border-radius: .18em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero__lead {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 580px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__side {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.stat {
    padding: 24px;
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    min-height: 150px;
}

.stat--wide { grid-column: span 2; }

.stat__value {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

.stat__label { font-size: 14px; color: var(--text-sub); line-height: 1.35; }
.card--dark .stat__label { color: rgba(255, 255, 255, .7); }
.card--yellow .stat__label { color: rgba(0, 41, 51, .75); }

.stat__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--bg);
    display: grid;
    place-items: center;
}
.card--dark .stat__icon { background: rgba(255, 255, 255, .12); }
.card--soft .stat__icon { background: #fff; }
.stat__icon svg { width: 22px; height: 22px; }

.format-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.format-chips span {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Service ---------- */

.service__drop { grid-column: span 7; grid-row: span 2; padding: 12px; }
.service__formats { grid-column: span 5; }
.service__connect { grid-column: span 5; }
.service__results { grid-column: span 12; }

.drop-zone {
    height: 100%;
    min-height: 380px;
    border: 2px dashed #C9CED1;
    border-radius: calc(var(--r-xl) - 8px);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s, border-color .25s;
    outline: none;
}

.drop-zone:hover,
.drop-zone:focus-visible { background: var(--accent-pale); border-color: var(--accent-hover); }

.drop-zone.is-dragover {
    background: var(--accent-soft);
    border-color: var(--dark);
    border-style: solid;
}

.drop-zone__icon {
    width: 88px; height: 88px;
    border-radius: 28px;
    background: var(--accent);
    display: grid;
    place-items: center;
    transition: transform .3s;
    box-shadow: 0 16px 32px -12px rgba(255, 195, 33, .9);
}

.drop-zone:hover .drop-zone__icon,
.drop-zone.is-dragover .drop-zone__icon { transform: translateY(-4px) rotate(-6deg); }

.drop-zone__icon svg { width: 40px; height: 40px; }

.drop-zone__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.drop-zone__sub { color: var(--text-sub); font-size: 15px; }
.drop-zone__hint { font-size: 13px; color: var(--text-muted); }

/* настройки */

.setting__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.setting__title { font-size: 20px; font-weight: 700; }

.hint { font-size: 13px; color: var(--text-muted); margin-top: 16px; line-height: 1.45; }

/* чекбоксы форматов */
.checks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: var(--bg);
    border-radius: var(--r-md);
}

.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }

.check span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 8px 6px 8px 6px;
    border-radius: var(--r-sm);
    text-align: center;
    line-height: 1.2;
    transition: background-color .2s, box-shadow .2s;
    position: relative;
}

.check b { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.check b::before {
    content: "";
    width: 16px; height: 16px;
    border-radius: 5px;
    border: 2px solid #A7B0B3;
    background: #fff center / 10px no-repeat;
    transition: background-color .2s, border-color .2s;
}
.check small { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.check:hover span { background: rgba(255, 255, 255, .6); }
.check input:checked + span { background: #fff; box-shadow: 0 2px 8px rgba(0, 41, 51, .1); }
.check input:checked + span b::before {
    border-color: var(--dark);
    background-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002933' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.check input:focus-visible + span { outline: 3px solid var(--accent-hover); }

.field {
    display: block;
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 10px 16px 8px;
    border: 2px solid transparent;
    transition: border-color .2s, background-color .2s;
    cursor: text;
}

.field--text { margin-top: 12px; }
.field:focus-within { border-color: var(--dark); background: #fff; }

.field__label { display: block; font-size: 12px; color: var(--text-muted); }

.field input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 2px 0 0;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    font-family: var(--mono);
}

/* сегменты */
.segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: var(--bg);
    border-radius: var(--r-md);
}

.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }

.segmented span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 6px 8px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    line-height: 1.2;
    transition: background-color .2s, box-shadow .2s;
}

.segmented small { font-weight: 400; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.segmented label:hover span { background: rgba(255, 255, 255, .6); }
.segmented input:checked + span { background: #fff; box-shadow: 0 2px 8px rgba(0, 41, 51, .1); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent-hover); }

/* результаты */

.results__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.results__title { font-size: 24px; font-weight: 700; }

.controls { display: flex; flex-wrap: wrap; gap: 8px; }

.status {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-sub);
    min-height: 21px;
}

.status.is-error { color: var(--danger); }

.progress { margin-top: 12px; }

.progress__bar {
    height: 10px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 999px;
    transition: width .25s ease;
}

.progress__text { margin-top: 6px; font-size: 13px; color: var(--text-muted); }

.totals {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.total {
    background: var(--bg);
    border-radius: var(--r-lg);
    padding: 18px 20px;
}

.total--accent { background: var(--accent); }
.total__label { font-size: 13px; color: var(--text-sub); }
.total--accent .total__label { color: rgba(0, 41, 51, .75); }
.total__value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.total__value small { font-size: 15px; font-weight: 700; opacity: .7; }

.empty {
    margin-top: 20px;
    padding: 32px;
    border-radius: var(--r-lg);
    background: var(--bg);
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

/* список шрифтов */
.font-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    max-height: 860px;      /* при 100+ начертаниях список прокручивается внутри карточки */
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.font-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr) minmax(0, 1fr) 30px;
    align-items: center;
    gap: 20px;
    padding: 16px 16px 16px 20px;
    background: var(--bg);
    border-radius: var(--r-lg);
    transition: background-color .2s, box-shadow .2s;
}

.font-row:hover { background: #fff; box-shadow: var(--shadow-hover); }

.font-row__preview { min-width: 0; line-height: 1.15; }
.font-row__big { display: block; font-size: 34px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-row__sample { display: block; font-size: 15px; color: var(--text-sub); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.font-row__fields { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 8px; }

.mini {
    display: block;
    background: #fff;
    border-radius: var(--r-sm);
    padding: 6px 10px 4px;
    border: 2px solid transparent;
    transition: border-color .2s;
    min-width: 0;
}
.font-row:hover .mini { background: var(--bg); }
.mini:focus-within { border-color: var(--dark); }
.mini span { display: block; font-size: 11px; color: var(--text-muted); }
.mini input, .mini select {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    text-overflow: ellipsis;
}
.mini input:disabled { color: var(--text-sub); }

.font-row__info { min-width: 0; font-size: 13px; color: var(--text-sub); }
.font-row__file { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-row__sizes { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.font-row__sizes s { color: var(--text-muted); }
.font-row__sizes b { color: var(--text); }
.font-row__note { margin-top: 4px; font-size: 12px; }

.tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
}
.font-row:hover .tag { background: var(--bg); }

.badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
}
.badge--zero { background: #fff; color: var(--text-muted); }

.delete-file {
    width: 30px; height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    transition: background-color .2s, color .2s;
}

.delete-file:hover { background: var(--danger); color: #fff; }
.delete-file svg { width: 14px; height: 14px; }

/* код подключения */
.code {
    margin-top: 20px;
    background: var(--dark);
    border-radius: var(--r-lg);
    color: #E6EEF0;
    overflow: hidden;
}

.code__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 12px 0;
}

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }

.tab {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tab.is-active { background: var(--accent); color: var(--dark); }

.code .btn--secondary { background: rgba(255, 255, 255, .1); color: #fff; }
.code .btn--secondary:hover { background: rgba(255, 255, 255, .18); }

.code__pre {
    margin: 0;
    padding: 16px 20px 20px;
    max-height: 420px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.6;
}

.code__pre code { background: none; padding: 0; font-size: inherit; color: inherit; white-space: pre; }

/* ---------- Лицензии ---------- */

.notice {
    grid-column: span 6;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 36px;
}

.notice__icon {
    flex: none;
    width: 52px; height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--dark);
}
.notice--ok .notice__icon { background: var(--dark); color: var(--accent); }
.notice__icon svg { width: 28px; height: 28px; }

.notice__title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.notice__text { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.notice--ok .notice__text { color: rgba(0, 41, 51, .82); }

/* ---------- Ad banner ---------- */

.ad {
    background: var(--card);
    border-radius: var(--r-xl);
    padding: 16px;
    box-shadow: var(--shadow);
}

.ad__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin: 0 8px 8px;
}

.ad__slot {
    min-height: 250px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* заглушка — уберите класс .ad__slot--placeholder, когда вставите код рекламы */
.ad__slot--placeholder {
    background: repeating-linear-gradient(135deg, var(--bg) 0 14px, #ECEEF0 14px 28px);
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

/* ---------- Подборка шрифтов ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.chip {
    border: 0;
    background: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color .2s;
}

.chip:hover { background: var(--accent-pale); }
.chip.is-active { background: var(--dark); color: #fff; }

.font-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
}

.font-card {
    padding: 24px;
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s, transform .2s;
}

.font-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.font-card__top { display: flex; flex-wrap: wrap; gap: 6px; }
.font-card__top span {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg);
}
.font-card__top .is-cyr { background: var(--accent-pale); }
.font-card__top .is-nocyr { color: var(--text-muted); }

.font-card__preview {
    margin: 8px 0 2px;
    font-size: 54px;
    line-height: 1;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
}

.font-card__sample {
    font-size: 16px;
    line-height: 1.35;
    color: var(--text-sub);
    min-height: 2.7em;
}

.font-card__name { font-size: 20px; font-weight: 700; margin-top: 6px; }
.font-card__about { font-size: 14px; color: var(--text-sub); line-height: 1.4; }
.font-card__meta { font-size: 12px; color: var(--text-muted); margin-top: auto; padding-top: 6px; }

.font-card__actions { display: flex; gap: 8px; margin-top: 6px; }
.font-card__actions .btn--dark { flex: 1; }
.font-card__actions .btn--secondary { padding: 0 12px; }
.font-card__actions .btn--secondary svg { width: 16px; height: 16px; }

/* ---------- SEO ---------- */

.seo-intro { grid-column: span 7; padding: 40px; }
.seo-intro p + p { margin-top: 14px; }
.seo-intro p { color: var(--text-sub); font-size: 17px; line-height: 1.6; }
.seo-intro h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; margin-bottom: 20px; }

.seo-why { grid-column: span 5; padding: 40px; }
.seo-why h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; line-height: 1.45; }
.check-list li::before {
    content: "";
    flex: none;
    width: 24px; height: 24px;
    border-radius: 8px;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002933' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.card--dark .check-list li { color: rgba(255, 255, 255, .85); }

.step { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.step__num {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--accent-hover);
}
.card--yellow .step__num { color: var(--dark); }
.step h3 { font-size: 20px; font-weight: 700; margin-top: auto; }
.step p { color: var(--text-sub); font-size: 15px; }
.card--yellow .step p { color: rgba(0, 41, 51, .8); }

.formats-title { grid-column: span 12; padding-top: 32px; }

.fmt { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.fmt__tag {
    align-self: flex-start;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.02em;
    padding: 6px 16px;
    border-radius: var(--r-md);
    background: var(--bg);
}
.fmt--webp .fmt__tag { background: var(--accent); }
.fmt h3 { font-size: 19px; font-weight: 700; }
.fmt p { color: var(--text-sub); font-size: 15px; line-height: 1.55; }
.fmt__meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.fmt__meta span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); }
.fmt--webp .fmt__meta span { background: var(--accent-pale); }

.seo-text { grid-column: span 8; padding: 40px; }
.seo-text h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.seo-text h3:not(:first-child) { margin-top: 28px; }
.seo-text p { color: var(--text-sub); font-size: 16px; line-height: 1.65; }
.seo-text p + p { margin-top: 12px; }

.snippet {
    margin: 16px 0 0;
    padding: 18px 20px;
    background: var(--dark);
    color: #E6EEF0;
    border-radius: var(--r-md);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}
.snippet code { background: none; padding: 0; color: inherit; font-size: inherit; }

.seo-privacy { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; padding: 40px; }
.seo-privacy h3 { font-size: 24px; font-weight: 700; }

/* FAQ */
.faq { grid-column: span 12; padding: 40px; }
.faq h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; margin-bottom: 20px; }

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: "";
    flex: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002933' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: transform .25s, background-color .2s;
}

.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--accent); }
.faq__item summary:hover::after { background-color: var(--accent-soft); }

.faq__answer { padding: 0 60px 22px 0; color: var(--text-sub); line-height: 1.6; }

/* ---------- Footer ---------- */

.footer { padding: 48px 0 40px; }

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__inner a { text-decoration: none; }
.footer__inner a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .font-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .font-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 30px; }
    .font-row__info { grid-column: 1 / 3; grid-row: 2; }
}

@media (max-width: 1100px) {
    .hero__main { grid-column: span 12; }
    .hero__side { grid-column: span 12; grid-template-columns: repeat(4, 1fr); }
    .stat--wide { grid-column: span 2; }
    .seo-intro, .seo-why { grid-column: span 12; }
    .seo-text, .seo-privacy { grid-column: span 12; }
}

@media (max-width: 992px) {
    .service__drop, .service__formats, .service__connect { grid-column: span 12; grid-row: auto; }
    .drop-zone { min-height: 280px; }
    .step, .fmt { grid-column: span 12; min-height: 0; }
    .notice { grid-column: span 12; }
    .totals { grid-template-columns: repeat(2, 1fr); }
    .nav a:not(.nav__cta) { display: none; }
    .font-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .font-row { grid-template-columns: minmax(0, 1fr) 30px; gap: 14px; padding: 16px; }
    .font-row__preview { grid-column: 1; grid-row: 1; }
    .font-row__fields { grid-column: 1 / 3; grid-row: 2; }
    .font-row__info { grid-column: 1 / 3; grid-row: 3; }
    .delete-file { grid-column: 2; grid-row: 1; align-self: start; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .header__inner { height: 64px; }
    .logo__text small { display: none; }
    .card { padding: 24px; border-radius: var(--r-lg); }
    .hero__main { padding: 28px 24px; }
    .hero__lead { font-size: 16px; }
    .hero__side { display: none; }
    .hero__actions .btn--secondary { display: none; }
    .service__drop { padding: 8px; }
    .drop-zone { min-height: 240px; padding: 28px 16px; }
    .drop-zone__icon { width: 72px; height: 72px; border-radius: 22px; }
    .drop-zone__title { font-size: 20px; }
    .checks, .segmented { grid-template-columns: 1fr; }
    .check span, .segmented span { flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 48px; padding: 8px 14px; }
    .check small, .segmented small { margin-top: 0; }
    .controls { width: 100%; }
    .controls .btn { flex: 1 1 100%; white-space: normal; text-align: center; padding: 8px 16px; }
    .total__value { font-size: 21px; }
    .font-row__fields { grid-template-columns: 1fr 1fr; }
    .font-row__fields .mini:first-child { grid-column: 1 / 3; }
    .font-row__big { font-size: 28px; }
    .notice { flex-direction: column; padding: 24px; }
    .font-grid { grid-template-columns: minmax(0, 1fr); }
    .seo-intro, .seo-why, .seo-text, .seo-privacy, .faq { padding: 24px; }
    .faq__item summary { font-size: 16px; }
    .faq__answer { padding-right: 0; }
    .ad__slot { min-height: 280px; }
    .section__head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
