/* finntella.su — фирменный стиль FINNTELLA
   Цвета: тёмно-синий #2D4779, красный #A51C13, много белого. */

:root {
    --blue: #2D4779;
    --blue-dark: #22345A;
    --red: #A51C13;
    --red-dark: #8A1710;
    --text: #23272E;
    --muted: #4A5060;
    --line: #E3E6EC;
    --bg-alt: #F4F6FA;
    --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--red); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

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

.container--text { max-width: 760px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn--ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { color: var(--red); border-color: var(--red); }

.btn--big { padding: 14px 26px; font-size: 17px; }
.btn--small { padding: 6px 14px; font-size: 14px; }

/* ---------- Шапка ---------- */

.header { background: #fff; border-bottom: 1px solid var(--line); }

.header__top { background: var(--blue); color: #fff; font-size: 14px; }
.header__top-in {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
}
.header__top-note { opacity: .92; }
.header__top-link { color: #fff; text-decoration: none; font-weight: 600; margin-left: auto; }
.header__top-link--mail { margin-left: 0; font-weight: 400; }
.header__top-link:hover { text-decoration: underline; color: #fff; }

.header__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.header__logo img { width: 170px; height: auto; }
.header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 15px;
}
.header__nav a { color: var(--text); text-decoration: none; }
.header__nav a:hover { color: var(--red); text-decoration: underline; }
.header__cta { margin-left: auto; }

/* ---------- Первый экран ---------- */

.hero { background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%); border-bottom: 1px solid var(--line); }

.hero__in {
    display: grid;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 36px;
}

.hero__kicker {
    margin: 0 0 8px;
    color: var(--red);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero__title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2;
    color: var(--blue-dark);
}

.hero__lead { margin: 0 0 20px; font-size: 17px; color: var(--muted); }

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

.hero__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.hero__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}
.hero__facts li {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.hero__facts strong { display: block; font-size: 26px; color: var(--blue); line-height: 1.1; }
.hero__facts span { font-size: 13px; color: var(--muted); }

/* ---------- Секции ---------- */

.section { padding: 44px 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.25;
    color: var(--blue-dark);
}

.section__lead { margin: -8px 0 22px; max-width: 720px; color: var(--muted); }
.section__more { margin: 22px 0 0; color: var(--muted); }

/* ---------- Карточки ---------- */

.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: 1fr; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.section--alt .card { background: #fff; }

.card__title { margin: 0 0 10px; font-size: 19px; color: var(--blue-dark); }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

.card__link { font-weight: 600; }

/* ---------- Категории каталога ---------- */

.cards--cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

.cat {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
}
.cat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.cat__name {
    display: block;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--blue-dark);
    background: #fff;
}
.cat:hover .cat__name { color: var(--red); }

/* ---------- Преимущества ---------- */

.adv {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}
.adv__item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    background: #fff;
}
.adv__item h3 { margin: 0 0 6px; font-size: 17px; color: var(--blue-dark); }
.adv__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Шаги ---------- */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    counter-reset: step;
}
.steps__item {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px 18px 64px;
}
.steps__num {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.steps__item h3 { margin: 4px 0 6px; font-size: 17px; color: var(--blue-dark); }
.steps__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Блок заявки ---------- */

.section--lead { background: var(--blue); color: #fff; }
.section--lead .section__title { color: #fff; }
.section--lead-in { display: grid; gap: 24px; }
.lead-side p { color: #DCE3F0; }
.lead-side a { color: #fff; font-weight: 600; }

.lead-box {
    background: #fff;
    color: var(--text);
    border-radius: var(--radius);
    padding: 22px;
}

/* ---------- Форма ---------- */

.lead-form__grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }

.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.req { color: var(--red); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #C4CAD4;
    border-radius: 6px;
    font: inherit;
    color: var(--text);
    background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(45, 71, 121, .35); outline-offset: 0; }

.field textarea { resize: vertical; }

.field--consent { margin-top: 4px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.checkbox input { width: auto; margin-top: 3px; }

.hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form__status { margin: 0 0 10px; min-height: 1.2em; font-size: 14px; }
.lead-form__status.is-error { color: var(--red); }
.lead-form__status.is-ok { color: #1C6E3C; }

.lead-form .btn--big { width: 100%; }

.lead-form__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Спасибо / 404 ---------- */

.thanks { padding-top: 20px; }
.thanks h1 { font-size: 30px; color: var(--blue-dark); margin: 0 0 14px; }
.thanks__lead { font-size: 18px; color: var(--muted); }
.thanks__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- Подвал ---------- */

.footer { background: var(--blue-dark); color: #C9D2E4; font-size: 14px; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 24px; grid-template-columns: 1fr; }
.footer__logo { width: 170px; height: auto; background: #fff; border-radius: 6px; padding: 6px 10px; margin-bottom: 14px; }
.footer__about { max-width: 340px; }
.footer__title { margin: 0 0 10px; font-size: 16px; color: #fff; }
.footer__requisites { font-size: 13px; opacity: .85; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 13px;
}

/* ---------- Уведомление о cookie ---------- */

.cookie {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(35, 39, 46, .18);
    font-size: 13px;
    line-height: 1.35;
}
.cookie p { margin: 0; flex: 1 1 auto; }
.cookie .btn { flex: 0 0 auto; }
.cookie[hidden] { display: none; }

/* ---------- Телефон: компактная шапка ---------- */

@media (max-width: 639px) {
    .header__top-note,
    .header__top-link--mail { display: none; }
    .header__top-in { padding-top: 4px; padding-bottom: 4px; }
    .header__logo img { width: 132px; }
    .header__main { gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
    .header__nav { order: 3; width: 100%; font-size: 13px; gap: 2px 14px; }
    .header__cta { margin-left: auto; padding: 8px 14px; font-size: 14px; }
}

/* ---------- Планшет и компьютер ---------- */

@media (min-width: 640px) {
    .cards--3 { grid-template-columns: repeat(2, 1fr); }
    .adv { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .lead-form__grid { grid-template-columns: 1fr 1fr; }
    .cat__name { font-size: 15px; padding: 12px 14px; }
}

@media (min-width: 960px) {
    .container { padding: 0 24px; }
    .hero__in { grid-template-columns: 1.4fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
    .hero__title { font-size: 40px; }
    .section { padding: 64px 0; }
    .section__title { font-size: 32px; }
    .cards--3, .cards--cats { grid-template-columns: repeat(3, 1fr); }
    .adv { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .section--lead-in { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
    .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}

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