/* Service landing pages (/uslugi/…, /en/services/…, /tj/khizmatho/…).
   Generated pages share this one stylesheet; the look follows the homepage:
   Google Sans, white paper, ink text, hairlines, pill buttons, soft cards.
   Font and image URLs are root-absolute because the pages live in folders. */

@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/google-sans-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/google-sans-latin-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/google-sans-cyrillic.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/google-sans-cyrillic-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

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

:root {
    --sans: 'Google Sans', system-ui, sans-serif;
    --ink: #12151b;
    --ink-soft: rgba(18, 21, 27, 0.78);
    --muted: rgba(18, 21, 27, 0.62);
    --line: rgba(18, 21, 27, 0.14);
    --paper: #ffffff;
    --card: #fafafa;
    --night: #111318;
    --accent: #2f7cc0;
    --edge: clamp(1.25rem, 7vw, 8rem);
    --gap: clamp(0.75rem, 1.4vw, 1.5rem);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
    font-family: var(--sans);
    font-weight: 400;
    font-variation-settings: 'wdth' 500;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.sp-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 0.75rem var(--edge);
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.sp-pill {
    pointer-events: auto;
    width: 100%;
    max-width: 78rem;
    min-height: 3.5rem;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.sp-logo { display: flex; align-items: center; flex: none; }
.sp-logo img { height: 22px; width: auto; display: block; }
.sp-links {
    list-style: none;
    display: flex;
    gap: clamp(1rem, 2.2vw, 2rem);
    margin: 0 auto;
}
.sp-links a {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: #111111;
    opacity: 0.86;
    transition: opacity 0.25s ease;
    white-space: nowrap;
}
.sp-links a:hover, .sp-links a[aria-current] { opacity: 1; }
.sp-links a[aria-current] { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.sp-lang { display: flex; gap: 0.15rem; margin-left: auto; flex: none; }
.sp-links + .sp-lang { margin-left: 0; }
.sp-lang a {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 510;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: rgba(17, 17, 17, 0.6);
    transition: background-color 0.25s ease, color 0.25s ease;
}
.sp-lang a:hover { color: #111111; background: rgba(17, 17, 17, 0.06); }
.sp-lang a.is-active { color: #111111; background: rgba(17, 17, 17, 0.08); }

.btn {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--dark { background: #111111; color: #ffffff; }
.btn--dark:hover { background: #333333; }
.btn--line { border-color: rgba(18, 21, 27, 0.28); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: #ffffff; color: #000000; }
.btn--light:hover { background: #f0f0f0; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: #ffffff; }
.btn--ghost:hover { border-color: #ffffff; }
.btn--sm { font-size: 0.8rem; flex: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.sp-hero {
    position: relative;
    padding: clamp(7.5rem, 17vh, 11rem) var(--edge) clamp(3rem, 6vw, 5.5rem);
    background:
        radial-gradient(62rem 30rem at 88% -12%, rgba(201, 217, 255, 0.6), transparent 62%),
        radial-gradient(40rem 26rem at 108% 34%, rgba(235, 211, 255, 0.5), transparent 62%),
        var(--paper);
}
.sp-crumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    font-size: 0.85rem;
    color: var(--muted);
}
.sp-crumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.5; }
.sp-crumbs a { text-decoration: none; transition: color 0.25s ease; }
.sp-crumbs a:hover { color: var(--ink); }
.sp-crumbs [aria-current] { color: var(--ink); }
.sp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
}
.sp-eyebrow {
    display: block;
    margin-bottom: clamp(0.75rem, 1.3vw, 1.4rem);
    font-size: clamp(0.95rem, 1.15vw, 1.3rem);
    font-weight: 500;
}
.sp-h1 {
    font-size: clamp(2.1rem, 4.4vw, 4.75rem);
    font-weight: 500;
    font-variation-settings: 'wdth' 520;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.sp-lead {
    max-width: 34em;
    font-size: clamp(1rem, 1.25vw, 1.3rem);
    line-height: 1.55;
    color: var(--muted);
}
.sp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.5rem, 2.4vw, 2.25rem); }

/* ── Shared section frame ────────────────────────────────────────────────── */
.sp-section { padding: clamp(3.5rem, 7vw, 6.5rem) var(--edge); }
.sp-h2 {
    margin-bottom: clamp(1.75rem, 3.2vw, 3.25rem);
    font-size: clamp(1.75rem, 3.1vw, 3.25rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* ── What's included: soft cards, title on top, copy at the bottom ───────── */
.sp-cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--gap);
}
/* Six tracks so every count fills its rows: 3 per row by default, 4 cards as
   2 x 2, 5 cards as 2 wide + 3. */
.sp-cards > li { grid-column: span 2; display: flex; }
.sp-cards > li > .sp-card, .sp-cards > li.sp-card { width: 100%; }
.sp-cards[data-n="4"] > li { grid-column: span 3; }
.sp-cards[data-n="5"] > li:nth-child(-n+2) { grid-column: span 3; }
.sp-card {
    min-height: 13.5rem;
    padding: clamp(1.15rem, 1.6vw, 1.6rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
    border-radius: 1.25rem;
    background: var(--card);
    box-shadow:
        0 0 0 1px rgba(18, 21, 27, 0.06),
        0 1px 2px -1px rgba(18, 21, 27, 0.06),
        0 2px 4px 0 rgba(18, 21, 27, 0.04);
}
.sp-card h3 {
    font-size: clamp(1.1rem, 1.35vw, 1.4rem);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.sp-card p { font-size: clamp(0.9rem, 1vw, 1.02rem); line-height: 1.45; color: var(--ink-soft); }
a.sp-card { text-decoration: none; transition: transform 0.45s var(--ease), box-shadow 0.45s ease; }
a.sp-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(18, 21, 27, 0.08),
        0 10px 24px -12px rgba(18, 21, 27, 0.22);
}
.sp-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sp-arrow { flex: none; width: 1.25rem; height: 1.25rem; opacity: 0.55; transition: transform 0.45s var(--ease), opacity 0.3s ease; }
a.sp-card:hover .sp-arrow { transform: translateX(3px); opacity: 1; }

/* ── How we work: three numbered steps on hairlines ──────────────────────── */
.sp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 4.5rem);
    counter-reset: step;
}
.sp-steps li { padding-top: 1.25rem; border-top: 1px solid var(--line); counter-increment: step; }
.sp-steps li::before {
    content: '0' counter(step);
    display: block;
    margin-bottom: clamp(1.5rem, 3.5vw, 3.5rem);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.sp-steps h3 { margin-bottom: 0.6rem; font-size: clamp(1.25rem, 1.7vw, 1.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.sp-steps p { max-width: 30em; font-size: clamp(0.95rem, 1.05vw, 1.05rem); color: var(--muted); }

/* ── Why NavTech: the one dark band on the page ──────────────────────────── */
.sp-why { background: var(--night); color: #ffffff; }
.sp-why-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 5vw, 6rem);
}
.sp-why-grid li { padding: clamp(1.25rem, 2.2vw, 2rem) 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.sp-why-grid h3 { margin-bottom: 0.5rem; font-size: clamp(1.15rem, 1.5vw, 1.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.sp-why-grid p { max-width: 34em; font-size: clamp(0.95rem, 1.05vw, 1.05rem); color: rgba(255, 255, 255, 0.66); }

/* ── FAQ: big title left, questions right (same as the homepage) ─────────── */
.sp-faq {
    display: grid;
    grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(2rem, 8vw, 9rem);
    align-items: start;
}
.sp-faq .sp-h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4.6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.045em; }
.sp-qs { border-top: 1px solid var(--line); }
.sp-q { border-bottom: 1px solid var(--line); }
.sp-q summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1rem, 2.2vh, 1.35rem) 0;
    font-size: clamp(1.02rem, 1.25vw, 1.25rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    cursor: pointer;
}
.sp-q summary::-webkit-details-marker { display: none; }
.sp-q-mark { flex: none; position: relative; width: 1.15rem; height: 1.15rem; opacity: 0.72; }
.sp-q-mark::before, .sp-q-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    margin-top: -0.5px;
    background: currentColor;
    transition: transform 0.22s ease;
}
.sp-q-mark::after { transform: rotate(90deg); }
.sp-q[open] .sp-q-mark::after { transform: rotate(0deg); }
.sp-q p { padding: 0 2.5rem clamp(1rem, 2.4vh, 1.4rem) 0; font-size: clamp(0.95rem, 1.05vw, 1.05rem); color: var(--muted); }
.sp-q p a { color: var(--ink); text-underline-offset: 0.2em; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.sp-contact { text-align: center; padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.sp-contact h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.sp-contact > p { margin: 1rem auto 0; max-width: 30em; font-size: clamp(1rem, 1.2vw, 1.2rem); color: var(--muted); }
.sp-contact .sp-actions { justify-content: center; }
.sp-contact-meta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; font-size: 0.95rem; color: var(--muted); }
.sp-contact-meta a { text-decoration: none; transition: color 0.25s ease; }
.sp-contact-meta a:hover { color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.sp-footer { overflow: hidden; padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.sp-footer-inner { padding: 0 var(--edge); }
.sp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.sp-footer-logo { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; text-decoration: none; font-size: 1.3rem; font-weight: 525; letter-spacing: -0.02em; }
.sp-footer-logo img { height: 22px; width: auto; }
.sp-footer-tagline { font-size: 0.95rem; color: #6b7280; }
.sp-footer-copy { margin-top: 0.5rem; font-size: 0.8rem; color: #9ca3af; }
.sp-footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.sp-footer-label { margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 525; text-transform: uppercase; letter-spacing: 0.06em; color: #9ca3af; }
.sp-footer-col a { width: fit-content; font-size: 0.95rem; color: #6b7280; text-decoration: none; transition: color 0.3s ease; }
.sp-footer-col a:hover { color: var(--ink); }
.sp-footer-col address { max-width: 26ch; font-size: 0.95rem; font-style: normal; line-height: 1.5; color: #6b7280; }
.sp-watermark { display: block; width: 100%; height: auto; margin-top: clamp(1.25rem, 4vw, 3rem); user-select: none; pointer-events: none; }
.sp-watermark text { font-family: var(--sans); font-weight: 560; font-size: 248px; fill: var(--ink); opacity: 0.06; }

/* ── Smaller screens ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .sp-links { display: none; }
    .sp-links + .sp-lang { margin-left: auto; }
    .sp-hero-grid { grid-template-columns: 1fr; row-gap: 1.5rem; }
    .sp-cards > li, .sp-cards[data-n="4"] > li, .sp-cards[data-n="5"] > li:nth-child(-n+2) { grid-column: span 3; }
    .sp-cards[data-n="5"] > li:last-child, .sp-cards[data-n="9"] > li:last-child { grid-column: span 6; }
    .sp-steps { grid-template-columns: 1fr; row-gap: 2rem; }
    .sp-steps li::before { margin-bottom: 1rem; }
    .sp-faq { grid-template-columns: 1fr; row-gap: 1.75rem; }
    .sp-footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .sp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .sp-pill { padding-left: 1rem; gap: 0.5rem; }
    .sp-cards > li, .sp-cards[data-n] > li { grid-column: span 6 !important; }
    .sp-card { min-height: 0; }
    .sp-why-grid { grid-template-columns: 1fr; }
    .sp-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .sp-q p { padding-right: 0; }
}
@media (max-width: 400px) {
    .sp-lang a { min-width: 2rem; padding: 0 0.3rem; }
    .btn--sm { padding: 0.625rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
