/* Страница «НКТ в re:Kassa» (ru/nkt, kz/nkt). Префикс классов — nk-.
   Шрифты страницы: текст — Golos Text (400/500/600), заголовки — Mabry Pro (700, H1 — 900). */

@font-face { font-family: 'NkGolos'; src: url('../fonts/golos-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'NkGolos'; src: url('../fonts/golos-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'NkGolos'; src: url('../fonts/golos-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'NkMabry'; src: url('../fonts/mabry-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'NkMabry'; src: url('../fonts/mabry-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

.nk {
    --fg: #1b2722;
    --muted: #627069;
    --line: #d9e0dd;
    --surface: #f3f8f6;
    --surface-2: #e6efeb;
    --brand: #2bb985;
    --brand-soft: rgba(43, 185, 133, .1);
    --shot: #15baaa;
    display: block;
    padding-top: 70px; /* место под фиксированную шапку, как в прежней версии */
    overflow-x: clip;
    background: #fff;
    color: var(--fg);
    font-family: 'NkGolos', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
:where(.nk) ol { margin: 0; padding: 0; list-style: none; }
.nk-sprite { display: none; }
.nk svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nk-i16 { width: 16px; height: 16px; }
.nk-i20 { width: 20px; height: 20px; }
.nk-i24 { width: 24px; height: 24px; }

/* ---------- сетка и отступы ---------- */
.nk-wrap { width: 100%; max-width: 1152px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.nk-sec { padding-bottom: 56px; }
.nk-sec--top { padding-top: 56px; }

/* ---------- типографика ---------- */
.nk-h1, .nk-h2, .nk-h2s, .nk-h3 { padding-bottom: .05em; font-family: 'NkMabry', 'NkGolos', Arial, sans-serif; font-weight: 700; }
.nk-h1 { font-size: 32px; font-weight: 900; line-height: 1.05; letter-spacing: -.025em; }
.nk-h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.025em; }
.nk-h2s { font-size: 20px; line-height: 28px; letter-spacing: -.025em; } /* заголовок внутри карточки */
.nk-h3 { font-size: 18px; line-height: 28px; letter-spacing: -.01em; }
.nk-lead { font-size: 16px; line-height: 1.625; color: var(--muted); }
.nk-sub { max-width: 672px; margin-top: 16px; }
.nk-sub--wide { max-width: 768px; }
.nk-text { font-size: 14px; line-height: 1.625; }
.nk-small { font-size: 14px; line-height: 1.625; }
.nk-muted { color: var(--muted); }
.nk-label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--brand); }

/* отступы сверху — после типографики, чтобы перекрывать её */
.nk-mt4 { margin-top: 4px; }
.nk-mt8 { margin-top: 8px; }
.nk-mt12 { margin-top: 12px; }
.nk-mt16 { margin-top: 16px; }
.nk-mt20 { margin-top: 20px; }

/* ---------- элементы ---------- */
.nk-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand);
    font-size: 14px; line-height: 20px; font-weight: 500;
}
.nk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 24px;
    background: var(--brand); color: #fff;
    font-size: 14px; line-height: 20px; font-weight: 600;
    transition: transform .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1);
}
.nk-btn:hover { transform: translateY(-2px); }
.nk-btn--ghost { border: 1px solid var(--line); background: transparent; color: var(--fg); }
.nk-btn--ghost:hover { transform: none; background: var(--surface-2); }
.nk-pill {
    padding: 8px 16px; border-radius: 999px;
    background: var(--brand); color: #fff;
    font-size: 14px; line-height: 20px; font-weight: 600;
    transition: filter .15s cubic-bezier(.4, 0, .2, 1);
}
.nk-pill:hover { filter: brightness(110%); }
.nk-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--brand); }
.nk-link:hover { text-decoration: underline; }
.nk-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; background: var(--brand-soft); color: var(--brand); }

.nk-box { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.nk-panel { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.nk-panel--2 { background: var(--surface-2); }
.nk-card { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.nk-grid { display: grid; gap: 20px; margin-top: 32px; }

/* ---------- первый экран ---------- */
.nk-hero {
    background:
        radial-gradient(1100px 620px at 12% -10%, rgba(43, 185, 133, .14), transparent 60%),
        radial-gradient(900px 520px at 88% 10%, rgba(103, 210, 204, .14), transparent 65%),
        #fff;
}
.nk-hero__grid { display: grid; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.nk-hero__text { min-width: 0; }
.nk-hero__badge { display: flex; width: fit-content; margin-bottom: 20px; }
.nk-hero__lead { max-width: 576px; margin-top: 20px; }
.nk-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.nk-hero__note { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.nk-hero__media { display: flex; justify-content: center; }
.nk-hero__media img { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1400 / 1560; object-fit: cover; border-radius: 28px; background: var(--shot); }

/* ---------- Halyk POS ---------- */
.nk-halyk { display: grid; gap: 24px; }
.nk-halyk__title { margin-top: 20px; }
.nk-halyk__more { margin-top: 28px; }
.nk-halyk__side { display: flex; flex-direction: column; gap: 20px; }
.nk-perks { display: grid; gap: 16px; }
.nk-perks li { display: flex; align-items: center; gap: 16px; }
.nk-perks__icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); }
.nk-vlist { display: grid; gap: 12px; margin-top: 20px; }
.nk-vlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.nk-vlist__name { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.nk-vlist__name svg { margin-top: 2px; color: var(--brand); }

/* ---------- сценарии ---------- */
.nk-motto { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); font-size: 16px; line-height: 24px; }
.nk-motto span { color: var(--brand); }

/* ---------- карусели: шаги и видео ---------- */
.nk-carousel { margin-top: 32px; }
.nk-carousel .carousel__track {
    display: flex; margin: 0; padding: 0; list-style: none;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.nk-carousel .carousel__track::-webkit-scrollbar { display: none; }
.nk-carousel .carousel__track > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.nk-carousel .carousel__track > li + li > * { margin-left: 20px; } /* отступ внутри слайда, как в исходной карусели: первая карточка на 20 px шире (padding у слайда сбивает scroll-snap в Chrome) */
.nk-carousel .carousel__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.nk-carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer;
    transition: all .15s cubic-bezier(.4, 0, .2, 1);
}
.carousel__dots button:hover { background: rgba(43, 185, 133, .5); }
.carousel__dots button[aria-current="true"] { width: 32px; background: var(--brand); }
.nk-carousel__nav { display: flex; gap: 12px; }
.nk-carousel__nav button {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 24px; background: transparent; color: var(--fg); cursor: pointer;
    transition: background-color .15s cubic-bezier(.4, 0, .2, 1);
}
.nk-carousel__nav button:hover { background: var(--surface-2); }
.nk-carousel__nav button:disabled { opacity: .4; cursor: default; }

.nk-step { display: flex; height: 100%; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.nk-step__shot { overflow: hidden; border-radius: 24px; background: var(--shot); }
.nk-step__shot img { width: 100%; height: auto; aspect-ratio: 100 / 172; object-fit: contain; }

.nk-videos { margin-top: 24px; }
.nk-videos .nk-carousel__bar { margin-top: 24px; }
.nk-video { overflow: hidden; border-radius: 24px; background: var(--surface-2); }
.nk-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.nk-video--short iframe { max-width: 320px; margin: 0 auto; aspect-ratio: 9 / 16; }
.nk-video__name { margin-top: 16px; font-size: 14px; line-height: 20px; font-weight: 600; }

/* ---------- сканеры ---------- */
.nk-scanner { display: grid; align-items: center; gap: 24px; }
.nk-scanner > div { min-width: 0; }
.nk-scanner img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 24px; }

/* ---------- требование ---------- */
.nk-checks { display: grid; gap: 16px; margin-top: 32px; }
.nk-checks li { display: flex; gap: 12px; padding: 16px 20px; border-radius: 24px; background: var(--surface-2); font-size: 14px; line-height: 1.625; }
.nk-checks svg { margin-top: 2px; color: var(--brand); }

/* ---------- призыв и контакты ---------- */
.nk-cta { padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: #fff; text-align: center; }
.nk-cta--glow { border: 0; background: var(--surface); box-shadow: 0 0 0 1px rgba(43, 185, 133, .18), 0 24px 60px -30px rgba(27, 39, 34, .28); }
.nk-cta .nk-sub { margin-left: auto; margin-right: auto; }
.nk-cta__actions { display: flex; flex-direction: column; justify-content: center; gap: 12px; margin-top: 32px; }
.nk-cta__actions--one { flex-direction: row; }

/* ---------- ≥640px ---------- */
@media (min-width: 640px) {
    .nk-wrap { padding-left: 32px; padding-right: 32px; }
    .nk-sec { padding-bottom: 64px; }
    .nk-sec--top { padding-top: 64px; }
    .nk-h1 { font-size: 44px; }
    .nk-h2 { font-size: 36px; }
    .nk-h2s { font-size: 24px; line-height: 32px; }
    .nk-h3 { font-size: 20px; }
    .nk-h3--sm { font-size: 18px; }
    .nk-lead { font-size: 18px; }
    .nk-text, .nk-checks li { font-size: 16px; }
    .nk-btn { font-size: 16px; line-height: 24px; }
    .nk-hero__grid { gap: 48px; padding-top: 64px; padding-bottom: 64px; }
    .nk-hero__note { font-size: 14px; line-height: 20px; }
    .nk-hero__media img { max-width: 480px; }
    .nk-actions, .nk-cta__actions { flex-direction: row; flex-wrap: wrap; }
    .nk-actions { align-items: center; }
    .nk-box, .nk-halyk__intro { padding: 32px; }
    .nk-panel { padding: 28px; }
    .nk-motto { font-size: 18px; line-height: 28px; }
    .nk-grid--2, .nk-grid--3, .nk-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nk-scanner { grid-column: span 2; }
    .nk-steps .carousel__track > li { flex-basis: 50%; }
    .nk-video--short iframe { max-width: 360px; }
    .nk-video__name { font-size: 16px; line-height: 24px; }
    .nk-cta { padding: 40px; }
}

/* ---------- ≥768px ---------- */
@media (min-width: 768px) {
    .nk-scanner { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
    .nk-scanner img { aspect-ratio: 4 / 3; }
}

/* ---------- ≥1024px ---------- */
@media (min-width: 1024px) {
    .nk-wrap { padding-left: 40px; padding-right: 40px; }
    .nk-sec { padding-bottom: 96px; }
    .nk-sec--top { padding-top: 96px; }
    .nk-h1 { font-size: 52px; }
    .nk-h2 { font-size: 40px; }
    .nk-h2s { font-size: 30px; line-height: 36px; }
    .nk-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; padding-top: 96px; padding-bottom: 96px; }
    .nk-hero__text { max-width: 576px; }
    .nk-hero__media { justify-content: flex-end; }
    .nk-halyk { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .nk-halyk__intro { padding: 36px; }
    .nk-card { padding: 28px; }
    .nk-grid, .nk-carousel { margin-top: 40px; }
    .nk-videos { margin-top: 28px; }
    .nk-grid--3, .nk-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nk-scanner { gap: 40px; padding: 32px; }
    .nk-steps .carousel__track > li { flex-basis: calc(100% / 3); }
    .nk-box--wide { padding: 40px; }
    .nk-box--wider { padding: 48px; }
    .nk-cta { padding: 56px; }
}
