/* edu.asops.group — лендинг «Переподготовка операторов БПЛА».
   Макет: Figma «Clean Лендинг Переподготовка Асопс», сетка 1196px по центру. */

:root {
    --ink: #20211f;
    --ink-2: #252723;
    --cream: #fffdf7;
    --sand: #f3f1e9;
    --orange: #f28a32;
    --orange-text: #e77525;
    --lime: #d7f23c;
    --card-dark: #2b2d28;
    --muted: #6e7068;
    --muted-2: #777871;
    --line: rgba(32, 33, 31, 0.14);
    --line-strong: rgba(32, 33, 31, 0.18);
    --line-light: rgba(255, 255, 255, 0.2);

    --f-head: "Liberation Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
    --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --container: 1196px;
    --gutter: 24px;
    --header-h: 76px;

    --h1: clamp(2.25rem, 0.5rem + 8.6vw, 5.25rem);
    --h2: clamp(2.25rem, 1.2rem + 4.4vw, 4.75rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; }

.container {
    width: min(var(--container), 100% - var(--gutter) * 2);
    margin-inline: auto;
}

/* === Типографика === */
h1, h2, h3 {
    font-family: var(--f-head);
    font-weight: 400;
    text-wrap: balance;
}

h1 .accent { color: var(--lime); }

h1 {
    font-weight: 700;
    font-size: var(--h1);
    line-height: 0.93;
    letter-spacing: -0.065em;
    color: var(--cream);
}

h2 {
    font-size: var(--h2);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 15px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

.kicker--orange { color: var(--orange-text); }
.kicker--lime { color: var(--lime); }

.kicker--pulse {
    color: var(--lime);
    gap: 14px;
}

.kicker--pulse::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(215, 242, 60, 0.28);
    margin-left: 4px;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    50% { box-shadow: 0 0 0 7px rgba(215, 242, 60, 0.08); }
}

/* === Кнопки и ссылки === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 47px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: none;
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn i { font-size: 15px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #e4f96a; }
.btn--lime:active { transform: translateY(1px); }
.btn--line { border-color: rgba(255, 255, 255, 0.32); color: var(--cream); gap: 12px; }
.btn--line:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--cream); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; }

.link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    transition: gap 0.2s;
}

.link:hover { gap: 18px; }
.link i { font-size: 15px; }
.link--lime { color: var(--lime); }

/* === Шапка === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: var(--sand);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.logo-asops { width: 77px; }
.logo-sakhgu { width: 130px; }

.logo-divider {
    width: 1px;
    height: 28px;
    background: var(--ink);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.header-nav a:not(.header-cta) {
    position: relative;
    padding-block: 6px;
}

.header-nav a:not(.header-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.header-nav a.active::after,
.header-nav a:not(.header-cta):hover::after { transform: scaleX(1); }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    height: 44px;
    padding: 0 16px;
    border-radius: 2px;
    background: var(--orange);
    color: var(--cream);
    transition: background-color 0.2s;
}

.header-cta:hover { background: var(--orange-text); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    background: none;
    font-size: 24px;
    cursor: pointer;
}

/* === Секции: общие правила === */
.sec--sand { background: var(--sand); }
.sec--cream { background: var(--cream); }
.sec--dark { background: var(--ink); color: var(--cream); }
.sec--lime-rule { border-top: 1px solid rgba(215, 242, 60, 0.42); }

.sec__rule,
.format {
    position: relative;
}

.sec__rule {
    border-top: 1px solid var(--line-strong);
    padding-block: 125px;
}

.sec--dark .sec__rule { border-top: 0; }

/* Маркер на линии-разделителе */
.sec__rule::before,
.format::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(215, 242, 60, 0.22);
    border-radius: 50%;
    z-index: 2;
}

.sec--dark .sec__rule::before { top: -4px; }

.sec__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 395px);
    align-items: end;
    gap: 40px 70px;
    margin-top: 10px;
}

.sec__lead {
    font-size: 15px;
    line-height: 24px;
    color: var(--muted);
    padding-bottom: 14px;
}

.sec__lead--light { color: rgba(255, 253, 247, 0.85); }
.sec__lead--dark { color: var(--ink); }
.sec__lead--small { font-size: 14px; line-height: 22.4px; color: #70736b; padding-bottom: 0; }

/* === Hero === */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink);
    color: var(--cream);
    min-height: 844px;
}

.hero__bg,
.hero__grid,
.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bg {
    inset: auto;
    top: -170px;
    left: 50%;
    width: max(100%, 1920px);
    aspect-ratio: 16 / 9;
    transform: translateX(-50%);
    background: url("../images/hero-bg.webp") center / 100% 100% no-repeat;
    opacity: 0.7;
}

.hero__grid {
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M14 14l4 4m0-4l-4 4' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E");
}

.hero__shade {
    background:
        linear-gradient(180deg, rgba(21, 24, 20, 0) 58%, rgba(21, 24, 20, 0.65) 100%),
        linear-gradient(90deg, rgba(21, 24, 20, 0.97) 0%, rgba(21, 24, 20, 0.83) 39%, rgba(21, 24, 20, 0.19) 73%, rgba(21, 24, 20, 0.62) 100%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 48px;
    padding-top: 65px;
    padding-bottom: 130px;
}

.hero h1 { margin-top: 14px; }

.hero__lead {
    max-width: 513px;
    margin-top: 15px;
    font-size: 16px;
    line-height: 26.4px;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 29px;
}

.hero__chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 37px;
    padding: 0 12px;
    border: 1px solid rgba(255, 253, 247, 0.22);
    border-radius: 999px;
    font-size: 11px;
    line-height: 16.5px;
}

.hero__chips i { color: var(--lime); font-size: 15px; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 15px;
    margin-top: 31px;
}

.hero__note {
    margin-top: 23px;
    font-size: 10px;
    line-height: 15px;
    color: rgba(255, 253, 247, 0.85);
}

.hero__visual {
    position: relative;
    margin-top: 155px;
    align-self: start;
}

.hero__frame {
    position: absolute;
    width: 800px;
    height: 260px;
    border-top: 1px dashed rgba(215, 242, 60, 0.44);
    border-right: 1px dashed rgba(215, 242, 60, 0.44);
    transform-origin: 0 0;
    pointer-events: none;
}

.hero__frame::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 709px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(215, 242, 60, 0.2);
}

.hero__frame--a { top: 49px; left: 340px; opacity: 0.6; transform: rotate(-12deg); }
.hero__frame--b { top: 44px; left: 476px; opacity: 0.25; transform: rotate(8deg); }

.hero__coords {
    position: absolute;
    top: -28px;
    right: 0;
    font-family: var(--f-mono);
    font-size: 9px;
    line-height: 13.5px;
    color: var(--lime);
    white-space: pre;
}

.doc-card {
    position: relative;
    padding: 29px;
    border-radius: 2px;
    background: var(--cream);
    color: var(--ink-2);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26), 18px 20px 0 rgba(215, 242, 60, 0.92);
}

.doc-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--line);
    pointer-events: none;
}

.doc-card__tag {
    font-family: var(--f-mono);
    font-size: 9px;
    line-height: 13.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-text);
}

.doc-card__seal {
    position: absolute;
    top: 25px;
    right: 28px;
    font-size: 20px;
    color: var(--orange-text);
}

.doc-card__title {
    margin-top: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--f-head);
    font-size: 29px;
    line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 264px;
    box-sizing: content-box;
    width: 100%;
}

.doc-card__title strong {
    display: block;
    font-size: 39px;
    line-height: 1;
    margin-bottom: 4px;
}

.doc-card__rows {
    display: grid;
    gap: 14px;
    margin-top: 19px;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
}

.doc-card__rows li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 11px;
}

.doc-card__rows i { color: var(--orange-text); font-size: 15px; line-height: 15px; }

.doc-card__foot {
    display: flex;
    align-items: center;
    gap: 37px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid var(--line-strong);
    font-size: 9px;
    line-height: 13px;
    color: var(--muted-2);
}

.doc-card__foot i { font-size: 15px; }

.doc-badge {
    position: absolute;
    left: -49px;
    top: 313px;
    width: 105px;
    height: 105px;
    padding: 51px 15px 0;
    transform: rotate(-8deg);
    background: var(--orange);
    color: var(--cream);
    font-family: var(--f-mono);
    box-shadow: 8px 8px 0 #212120;
}

.doc-badge__mark { position: absolute; top: 17px; left: 15px; width: 28px; height: auto; }
.doc-badge__name { display: block; font-size: 12px; line-height: 13px; }
.doc-badge__sub { display: block; margin-top: 6px; font-size: 8px; line-height: 10px; }

.hero__bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.07em;
    color: #fff;
}

.hero__bar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero__bar-mid { color: var(--lime); display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 6px; }
.hero__scroll:hover { color: var(--lime); }

/* === Полоса доверия === */
.trust {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.trust__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.trust__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.trust__star { width: 22px; height: 22px; flex: none; }

.trust__brand-text { display: grid; gap: 2px; }

.trust__brand-text span {
    font-family: var(--f-mono);
    font-size: 10px;
    line-height: 15px;
    text-transform: uppercase;
    color: var(--ink);
}

.trust__brand-text strong {
    font-family: var(--f-head);
    font-size: 12px;
    line-height: 18px;
    color: var(--ink);
}

.trust__cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    min-height: 105px;
    padding: 34px 25px 24px;
    border: 0;
    border-left: 1px solid var(--line);
    background: none;
    text-align: left;
    line-height: 1.35;
}


.trust__cell strong {
    font-family: var(--f-head);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.trust__cell span { font-size: 10px; line-height: 13.5px; color: var(--muted-2); }

.trust__docs {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.trust__cell--brand { align-items: flex-end; border-left: 0; }
.trust__cell--brand .trust__docs { justify-content: flex-end; }
.trust__cell--diploma strong { align-self: center; text-align: center; }
.trust__cell--diploma .trust__docs { position: relative; justify-content: center; gap: 40px; }
.trust__cell--diploma .trust__docs::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: -24px;
    border-left: 1px solid var(--line);
}

.trust__doc {
    display: block;
    box-sizing: border-box;
    height: 128px;
    width: auto;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    cursor: zoom-in;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}


.trust__doc img { width: auto; height: 100%; display: block; }

.trust__doc:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 33, 31, 0.14);
}

/* === 01 Программа === */
.topics {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 50px;
    margin-top: 46px;
    border-block: 1px solid rgba(32, 33, 31, 0.2);
    font-family: var(--f-mono);
    font-size: 10px;
    line-height: 15px;
}

.topics__label { flex: none; color: var(--orange-text); }

.topics ul {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: 6px 22px;
    padding-block: 10px;
    font-weight: 500;
    color: #64675e;
}

.topics__icon { flex: none; font-size: 18px; }

.steps {
    display: grid;
    grid-template-columns: 493fr 340fr 340fr;
    gap: 12px;
    margin-top: 28px;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 385px;
    padding: 25px;
}

.step--dark { background: var(--ink); color: var(--cream); }
.step--orange { background: var(--orange); color: var(--ink); }
.step--lime { background: var(--lime); color: var(--ink); }

.step__num { font-family: var(--f-mono); font-size: 12px; line-height: 18px; }

.step__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 49px;
    font-family: var(--f-mono);
    font-size: 9px;
    line-height: 13.5px;
    letter-spacing: 0.1em;
}

.step__tag { padding: 6px 9px; border: 1px solid currentColor; }

.step h3 {
    margin-top: 13px;
    font-size: 30px;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.step__text {
    margin-top: 12px;
    max-width: 300px;
    font-size: 12px;
    line-height: 19.2px;
}

.step__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
}

.step__foot i { font-size: 16px; }
.step__arrow { margin-left: auto; transition: transform 0.2s; }
.step:hover .step__arrow { transform: translate(3px, -3px); }

/* === 02 Формат === */
.format {
    display: grid;
    grid-template-columns: 598px minmax(0, 1fr);
    column-gap: 173px;
}

.format__photo {
    position: relative;
    min-height: 746px;
    overflow: hidden;
    background: #151814;
}

.format__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.format__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 24, 20, 0) 50%, rgba(21, 24, 20, 0.7) 100%);
}

.format__photo figcaption {
    position: absolute;
    left: 31px;
    bottom: 32px;
    z-index: 1;
    font-family: var(--f-mono);
    font-size: 9px;
    line-height: 13.5px;
    color: var(--lime);
}

.format__cross {
    position: absolute;
    left: 45.5%;
    top: 46%;
    z-index: 1;
    width: 55px;
    height: 55px;
    border: 1px solid rgba(215, 242, 60, 0.8);
    border-radius: 50%;
}

.format__cross::before,
.format__cross::after {
    content: "";
    position: absolute;
    background: var(--lime);
}

.format__cross::before { left: -14px; top: 27px; width: 83px; height: 1px; }
.format__cross::after { top: -14px; left: 27px; height: 83px; width: 1px; }

.format__body { padding-block: 125px; }

.format h2 {
    margin-top: 10px;
    font-size: clamp(2.25rem, 1.1rem + 4vw, 4.375rem);
    line-height: 0.93;
    letter-spacing: -0.06em;
}

.format .sec__lead { margin-top: 40px; max-width: 383px; padding-bottom: 0; line-height: 24.75px; }

.modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 48px;
    max-width: 402px;
    border-top: 1px solid var(--line-light);
    padding-bottom: 8px;
}

.modes li {
    display: grid;
    grid-template-columns: 35px 1fr;
    column-gap: 0;
    padding-top: 23px;
}

.modes__n { font-family: var(--f-mono); font-size: 10px; line-height: 26px; color: var(--lime); }

.modes strong {
    font-family: var(--f-head);
    font-size: 17px;
    line-height: 26px;
}

.modes li > span:last-child {
    grid-column: 2;
    max-width: 150px;
    font-size: 10px;
    line-height: 13px;
    opacity: 0.85;
}

.format .link { margin-top: 36px; }

/* === 03 Аттестация === */
.exam {
    display: grid;
    grid-template-columns: 287px minmax(0, 1fr) 317px;
    gap: 0;
    align-items: stretch;
    margin-top: 46px;
    min-height: 286px;
    border-block: 1px solid rgba(32, 33, 31, 0.2);
}

.exam__hours {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 28px;
    color: var(--orange);
    overflow: hidden;
}

.exam__hours span {
    font-family: "Space Grotesk", var(--f-head);
    font-size: 210px;
    line-height: 168px;
    letter-spacing: -0.1em;
    margin-bottom: 40px;
    margin-left: -6px;
}

.exam__hours small {
    font-family: var(--f-mono);
    font-size: 20px;
    line-height: 1;
}

.exam__body { padding: 34px 0 30px 43px; border-inline: 1px solid rgba(32, 33, 31, 0.2); }

.exam__body h3 {
    font-size: 27px;
    line-height: 1.5;
    letter-spacing: -0.04em;
}

.exam__body p {
    max-width: 440px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 20px;
    color: #6f7169;
}

.exam__body ul { display: grid; gap: 12px; margin-top: 26px; }

.exam__body li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16.5px;
}

.exam__body li i { color: var(--orange-text); font-size: 17px; line-height: 1; }

.exam__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: center;
    margin-left: 18px;
    height: 248px;
    padding: 20px;
    background: var(--ink) url("../images/topo.webp") center / cover;
    color: var(--lime);
}

.exam__card i { font-size: 26px; line-height: 1; }
.exam__card i:last-child { font-size: 22px; align-self: flex-start; }

.exam__card span {
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 13.2px;
    letter-spacing: 0.1em;
    margin-top: auto;
    margin-bottom: 0;
}

/* === 04 Задачи === */
.sec__head--tasks { grid-template-columns: minmax(0, 404px) minmax(0, 1fr); gap: 40px 80px; margin-top: 12px; }
.sec__head--tasks .sec__lead { max-width: 700px; font-size: 16px; padding-bottom: 2px; }
.sec__head--tasks em { font-style: normal; color: var(--lime); }
.sec--dark h2 { color: var(--cream); }

.tabs-nav {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 58px;
    border-block: 1px solid var(--line-light);
}

.tab-btn {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: space-between;
    align-items: end;
    min-height: 97px;
    padding: 25px 0 16px;
    border: 0;
    background: none;
    text-align: left;
    color: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    transition: color 0.2s;
}

.tab-btn:not(:last-child) { border-right: 1px solid var(--line-light); }

.tab-btn::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.tab-btn:hover { color: var(--cream); }
.tab-btn[aria-selected="true"] { color: var(--cream); }
.tab-btn[aria-selected="true"]::before { transform: scaleX(1); }

.tab-btn__n {
    grid-column: 1 / -1;
    font-family: var(--f-mono);
    font-size: 9px;
    line-height: 11px;
    color: var(--lime);
}

.tab-btn__name {
    font-family: var(--f-head);
    font-size: 14px;
    line-height: 15.4px;
    padding-right: 8px;
}

.tab-btn i { font-size: 15px; opacity: 0; transition: opacity 0.2s; color: var(--lime); }
.tab-btn[aria-selected="true"] i { opacity: 1; }

.tab-panel { margin-top: 46px; }
.tab-panel:focus-visible { outline-color: var(--lime); }

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

.tab-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 10px;
    line-height: 15px;
    letter-spacing: 0.08em;
    color: var(--lime);
}

.tab-panel__label i { font-size: 20px; }

.tab-panel__title {
    font-family: var(--f-head);
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -0.03em;
    text-align: right;
}

.cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.cases li {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 20px 19px 19px;
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s, background-color 0.2s;
}

.cases li:hover { border-color: var(--lime); background: #30332d; }
.cases li > span { font-family: var(--f-mono); font-size: 10px; line-height: 15px; color: var(--lime); }

.cases strong {
    padding-right: 34px;
    font-family: var(--f-head);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.cases li > i {
    position: absolute;
    right: 19px;
    bottom: 19px;
    font-size: 18px;
    color: rgba(255, 253, 247, 0.55);
    transition: color 0.2s, transform 0.2s;
}

.cases li:hover > i { color: var(--lime); transform: translate(2px, -2px); }

/* === 05 FAQ === */
.faq-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 658px;
    gap: 40px;
    padding-bottom: 100px;
}

.faq-side { display: flex; flex-direction: column; align-items: flex-start; padding-right: 30px; }
.faq-side .kicker { margin-bottom: 10px; }
.faq-side h2 { font-size: clamp(2.25rem, 1.1rem + 3.9vw, 4rem); line-height: 0.9; letter-spacing: -0.065em; }
.faq-side .sec__lead { margin-top: 13px; max-width: 290px; }
.faq-side .link { margin-top: 40px; }

.faq-side__mark {
    margin-top: auto;
    padding-top: 60px;
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #9b9e95;
}

.faq {
    position: relative;
    align-self: start;
    margin-top: -0;
    padding-left: 23px;
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
}

.faq::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 19px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(215, 242, 60, 0.22);
}

.faq-item { border-bottom: 1px solid var(--line-strong); }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 65px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 21px;
    text-align: left;
    cursor: pointer;
}

.faq-q:hover { color: var(--orange-text); }
.faq-q i { flex: none; font-size: 16px; transition: transform 0.25s; }
.faq-q[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-a {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.faq-a__inner { padding: 0 40px 25px 0; }
.faq-a p { font-size: 13px; line-height: 20.8px; color: #6f7169; }

/* === 06 Заявка === */
.sec--cta {
    background:
        linear-gradient(112deg, transparent 49.85%, rgba(32, 33, 31, 0.22) 50%, transparent 50.15%),
        linear-gradient(28deg, transparent 49.85%, rgba(32, 33, 31, 0.28) 50%, transparent 50.15%),
        var(--orange);
    color: var(--ink);
    overflow: hidden;
}

.sec--cta .sec__rule { border-top: 0; padding-top: 115px; padding-bottom: 100px; }
.sec--cta .sec__rule::before { display: none; }

.cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 499px;
    gap: 48px;
    align-items: start;
}

.cta__text { padding-top: 19px; }
.cta__text .kicker { margin-bottom: 12px; }
.cta__text .kicker--lime { color: var(--ink); }

.cta h2 {
    font-size: clamp(2.25rem, 1.2rem + 5vw, 5.1875rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    color: var(--ink);
}

.cta .sec__lead { max-width: 386px; margin-top: 24px; padding-bottom: 0; }

.cta__contacts { display: grid; gap: 11px; margin-top: 34px; }

.cta__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
}

.cta__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta__contacts i { font-size: 16px; }

.form-card {
    padding: 30px 32px 28px;
    background: var(--cream);
    box-shadow: 12px 12px 0 var(--ink);
}

.form-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink-2);
}

.form-card h3 {
    font-size: 25px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.05em;
}

.form-card__head i { font-size: 24px; }

.lead-form {
    display: grid;
    grid-template-columns: 204fr 217fr;
    gap: 19px 14px;
    margin-top: 30px;
}

.field--full,
.lead-form .btn,
.form-note,
.form-status { grid-column: 1 / -1; }

.field label {
    display: block;
    font-family: var(--f-head);
    font-size: 10px;
    line-height: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.field input {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 0 10px;
    border: 0;
    border-bottom: 1px solid rgba(32, 33, 31, 0.3);
    border-radius: 0;
    background: none;
    font-family: var(--f-body);
    font-size: 14px;
    line-height: 20px;
    color: var(--ink);
    transition: border-color 0.2s;
}

.field input::placeholder { color: #bbbab4; opacity: 1; }
.field input:hover { border-bottom-color: rgba(32, 33, 31, 0.6); }
.field input:focus { outline: none; border-bottom-color: var(--orange-text); box-shadow: 0 1px 0 var(--orange-text); }
.field.is-invalid input { border-bottom-color: #c0392b; box-shadow: 0 1px 0 #c0392b; }

.field__error { margin-top: 6px; font-size: 11px; line-height: 15px; color: #c0392b; }
.field__error[hidden], .form-status[hidden] { display: none; }

.lead-form .btn { margin-top: 12px; min-height: 47px; }

.form-note { font-size: 10px; line-height: 20px; color: #a6a59d; }

.form-status {
    padding: 12px 14px;
    background: rgba(215, 242, 60, 0.35);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.form-status--error { background: rgba(192, 57, 43, 0.12); color: #9b2c20; }

/* === Футер === */
.site-footer {
    background: var(--ink);
    color: #fff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 95px;
    padding-block: 20px;
}

.logo-lockup--light .logo-divider { background: #a6a6a5; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 25px;
    font-size: 11px;
    line-height: 16.5px;
}

.footer-nav a { opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.footer-nav a:hover { color: var(--lime); opacity: 1; }

.footer-copy {
    justify-self: end;
    font-family: var(--f-mono);
    font-size: 9px;
    line-height: 13.5px;
}

/* === Лайтбокс === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
}

.lightbox[hidden] { display: none; }

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 24, 20, 0.86);
    animation: lb-fade 0.2s ease-out;
    cursor: zoom-out;
}

.lightbox__dialog {
    position: relative;
    max-width: 100%;
    animation: lb-rise 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* max-*, а не width: браузер сам сохраняет пропорции и не растягивает
   картинку выше её разрешения */
.lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1400px);
    max-height: calc(100vh - 7rem);
    max-height: calc(100dvh - 7rem);
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox__caption {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--lime);
    color: var(--ink);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lightbox__close:hover { background: var(--cream); }

@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* === Адаптив === */
@media (max-width: 1240px) {
    .format { column-gap: 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hero__frame { display: none; }
}

@media (max-width: 1100px) {
    .hero { min-height: 0; }
    .hero__bg { inset: 0; width: auto; aspect-ratio: auto; transform: none; background-size: cover; background-position: 65% 50%; }
    .hero__inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 150px; gap: 0; }
    .hero__visual { margin-top: 64px; width: min(470px, 100% - 22px); margin-left: 22px; }
    .hero__coords { top: -26px; }

    .sec__head,
    .sec__head--tasks { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .sec__lead { padding-bottom: 0; max-width: 560px; }

    .steps { grid-template-columns: minmax(0, 1fr); }
    .step { min-height: 340px; }

    .format { grid-template-columns: minmax(0, 1fr); column-gap: 0; width: 100%; }
    .format::before { display: none; }
    .format__photo { min-height: 0; aspect-ratio: 4 / 3; }
    .format__body { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; padding-block: 72px; }

    .exam { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .exam__hours { padding-top: 24px; }
    .exam__hours span { font-size: clamp(120px, 26vw, 210px); line-height: 0.8; margin-bottom: 0; }
    .exam__body { padding: 8px 0 24px; border-inline: 0; }
    .exam__card { align-self: stretch; height: 220px; margin: 0 0 24px; }

    .tabs-nav { grid-template-columns: repeat(3, 1fr); }
    .tab-btn:not(:last-child) { border-right: 0; }
    .cases { grid-template-columns: repeat(2, 1fr); }

    .faq-wrap { grid-template-columns: minmax(0, 1fr); }
    .faq-side { padding-right: 0; }
    .faq-side__mark { display: none; }
    .faq { align-self: stretch; }

    .cta { grid-template-columns: minmax(0, 1fr); }
    .form-card { max-width: 499px; margin-right: 12px; }

    .trust__inner { grid-template-columns: 1fr 1.5fr; }
    .trust__cell--partner { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--sand);
        border-bottom: 1px solid var(--line-strong);
        font-size: 14px;
    }

    .header-nav.is-open { display: flex; }
    .header-nav a:not(.header-cta) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .header-nav a:not(.header-cta)::after { display: none; }
    .header-nav a.active { color: var(--orange-text); }
    .header-cta { justify-content: space-between; margin-top: 16px; height: 48px; }

    .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 20px; padding-block: 32px; }
    .footer-copy { justify-self: start; }
}

@media (max-width: 640px) {
    :root { --gutter: 20px; }

    .logo-asops { width: 62px; }
    .logo-sakhgu { width: 104px; }
    .logo-lockup { gap: 10px; }

    .sec__rule { padding-block: 64px; }
    .sec--cta .sec__rule { padding-block: 64px; }
    .format__body { padding-block: 56px; }
    .cta__text { padding-top: 0; }

    .hero__inner { padding-top: 40px; padding-bottom: 110px; }
    .hero__lead { font-size: 15px; line-height: 24px; }
    .hero__visual { margin-top: 56px; margin-left: 0; width: calc(100% - 18px); }
    .doc-card { padding: 24px 22px; box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26), 10px 12px 0 rgba(215, 242, 60, 0.92); }
    .doc-card__title { max-width: none; }
    .doc-card__title strong { font-size: 34px; }
    .doc-card__title { font-size: 24px; }
    .doc-badge { left: auto; right: 14px; top: auto; bottom: -34px; width: 92px; height: 92px; padding: 42px 12px 0; box-shadow: 6px 6px 0 #212120; }
    .doc-card__foot { gap: 12px; padding-right: 88px; }
    .hero__bar-mid { display: none; }

    .trust__inner { grid-template-columns: minmax(0, 1fr); }
    .trust__cell { border-left: 0; padding-left: 0; min-height: 0; padding-block: 16px; border-top: 1px solid var(--line); }
    .trust__cell--brand { border-top: 0; align-items: center; }
    .trust__cell--brand .trust__docs { justify-content: center; }
    .trust__cell--diploma, .trust__cell--partner { align-items: center; text-align: center; }
    .trust__cell--diploma .trust__docs, .trust__cell--partner .trust__docs { justify-content: center; flex-wrap: wrap; }
    .trust__cell--diploma .trust__docs { gap: 10px; }
    .trust__cell--diploma .trust__docs::before { display: none; }

    .topics { flex-wrap: wrap; gap: 0 16px; padding-block: 12px; }
    .topics__icon { display: none; }

    .exam__body h3 { font-size: 24px; line-height: 1.2; }

    .tabs-nav { grid-template-columns: repeat(2, 1fr); gap: 0 14px; margin-top: 40px; }
    .tab-btn { min-height: 84px; }
    .tab-panel__head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .tab-panel__title { text-align: left; }
    .cases { grid-template-columns: minmax(0, 1fr); }
    .cases li { min-height: 132px; }

    .faq { padding-left: 16px; }
    .faq-a__inner { padding-right: 0; }

    .lead-form { grid-template-columns: minmax(0, 1fr); }
    .form-card { padding: 24px 20px; box-shadow: 8px 8px 0 var(--ink); margin-right: 8px; }
}
