/* SAKRAM Oʻzbekiston — стили страниц. Бренд-система SAKRAM: Graphite #1F2933, Light Neutral #F6F8FA, белый;
   акцент мастер-бренда — Teal #0BB3A7, у продуктов Edu — Gold #F4B400 (только метки направлений).
   Шапка и подвал — общий кит sakram-chrome.css, здесь не переопределяются. */

@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); 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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --graphite: #1f2933;
  --neutral: #f6f8fa;
  --white: #fff;
  --teal: #0bb3a7;
  --teal-ink: #08756d;   /* текст и фокус на светлом: 5,3:1 на #F6F8FA */
  --teal-hover: #12c9bc;
  --gold: #f4b400;
  --gold-ink: #8a6500;

  --pale: #eef1f4;
  --muted: #52606d;
  --line: #dde3e9;
  --line-strong: #c3ccd5;
  --night-900: #171f27;
  --night-800: #26313c;
  --night-line: #36424e;
  --night-muted: #a9b5c0;

  --font: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-body: clamp(16px, 0.94rem + 0.18vw, 17.5px);
  --fs-h1: clamp(2.2rem, 1.2rem + 3vw, 4rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.1rem, 1.02rem + 0.35vw, 1.35rem);
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1240px;
  --section-y: clamp(64px, 8vw, 116px);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(31 41 51 / 0.05), 0 16px 40px -24px rgb(31 41 51 / 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --sk-site-container: var(--container);
  --sk-site-gutter: var(--gutter);
  --sk-site-font: var(--font);
}

[data-theme='light'] { --fg: var(--graphite); --fg-muted: var(--muted); --rule: var(--line); --accent: var(--teal-ink); --bg: var(--neutral); --surface: var(--white); }
[data-theme='dark'] { --fg: var(--neutral); --fg-muted: var(--night-muted); --rule: var(--night-line); --accent: var(--teal); --bg: var(--graphite); --surface: var(--night-800); }
[data-division='edu'] { --mark: var(--gold); --mark-ink: var(--gold-ink); }
[data-division='security'], [data-division='master'] { --mark: var(--teal); --mark-ink: var(--teal-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--sk-header-h, 72px) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--neutral); color: var(--graphite); font: 400 var(--fs-body)/1.6 var(--font); font-feature-settings: 'cv11', 'ss01'; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent, var(--teal-ink)); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 620; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--graphite); color: var(--white); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

main > section { background: var(--bg); color: var(--fg); }
.section { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.section--pale { --bg: var(--pale); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-intro { margin-top: 16px; color: var(--fg-muted); font-size: 1.06em; }
.note { margin-top: 16px; font-size: 14px; color: var(--fg-muted); }

/* ---------- кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn--accent { background: var(--teal); color: var(--graphite); }
.btn--accent:hover { background: var(--teal-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
[data-theme='dark'] .btn--ghost { border-color: var(--night-line); }
.btn--ghost:hover { border-color: var(--fg); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow::after { content: '→'; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- первый экран ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero--text .hero__grid { grid-template-columns: minmax(0, 860px); }
.hero .kicker { color: var(--mark-ink); }
.hero__lead { margin-top: 20px; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--fg-muted); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.hero__media img { width: 100%; height: 100%; object-fit: contain; }
.hero__media .img--cover, .prod__media .img--cover { object-fit: cover; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: var(--fg-muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 18px 20px 0 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 13px; color: var(--fg-muted); order: 2; }
.facts dd { margin: 0 0 4px; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.facts--compact { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.facts--compact dd { font-size: 1.15rem; }
.facts--compact > div { padding-top: 12px; }

/* ---------- продукты на главной ---------- */
.prods { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.prod { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule); align-items: center; }
.prod__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.prod__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.prod:hover .prod__media img { transform: scale(1.03); }
.prod__index { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mark-ink); margin-bottom: 12px; }
.prod__index span { font-variant-numeric: tabular-nums; color: var(--fg-muted); }
.prod__index::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--mark); order: -1; }
.prod h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: 12px; }
.prod h3 a { text-decoration: none; }
.prod h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prod__body > p { color: var(--fg-muted); }

/* ---------- списки свойств, шаги ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features li { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--rule); }
.features li h3 { margin-bottom: 10px; }
.features li p { color: var(--fg-muted); font-size: 0.97em; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding: 24px 24px 24px 0; border-top: 2px solid var(--rule); position: relative; }
.steps li::before { content: ''; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.step__n { display: block; font-size: 13px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--fg-muted); font-size: 0.97em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split .sec-head { margin-bottom: 24px; }
.split__text > p { color: var(--fg-muted); }
.split__text > p + p { margin-top: 14px; }
.split__media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
[data-theme='dark'] .split__media { border-color: var(--night-line); }
.split__media figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--white); }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- характеристики ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule); }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); }
.specs tbody th { font-weight: 500; color: var(--fg-muted); width: 38%; }
.specs--compare { min-width: 620px; }
.specs--compare tbody th { width: auto; }
.specs thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); }
.spec-group th { padding-top: 28px; font-size: 13px; font-weight: 600 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent) !important; }
.specs td { font-variant-numeric: tabular-nums; }

/* ---------- модели ---------- */
.models { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.models li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.model__name p { margin-top: 6px; font-size: 14px; color: var(--fg-muted); }
.model__text { color: var(--fg-muted); }

/* ---------- призыв с действием ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.cta-band .sec-head { margin-bottom: 0; }
.cta-band .ticks { margin-top: 24px; }
.cta-band__actions { display: grid; gap: 12px; justify-items: start; }
.cta-band__actions p { font-size: 14px; color: var(--fg-muted); }
@media (max-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- вопросы ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-weight: 400; font-size: 1.4em; line-height: 1; color: var(--accent); transition: transform 0.25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 22px; color: var(--fg-muted); max-width: 760px; }

/* ---------- ссылки-разделы ---------- */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.links a { display: block; height: 100%; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.links__title { display: block; font-weight: 650; font-size: var(--fs-h3); margin-bottom: 8px; }
.links__title::after { content: ' →'; color: var(--accent); }
.links__text { color: var(--fg-muted); font-size: 0.95em; }
.links a:hover .links__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- отрасли ---------- */
.sectors { border-top: 1px solid var(--rule); }
.sector { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--rule); }
.sector__head p { margin-top: 12px; color: var(--fg-muted); }
.sector__label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); }
.sector__label + .ticks { margin-top: 12px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.contacts li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); }
.contact__label { font-size: 13px; color: var(--fg-muted); margin-bottom: 6px; }
.contacts a { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.contacts a:hover { color: var(--accent); }
.contact__value { font-size: 1.05rem; font-weight: 500; }
.contact__note { margin-top: 6px; font-size: 14px; color: var(--fg-muted); }

/* ---------- заявка ---------- */
.lead { padding: var(--section-y) 0; }
.lead__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.lead__intro > p { margin-top: 16px; color: var(--fg-muted); }
.lead__channels { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.lead__channels a { color: var(--teal); font-weight: 600; text-decoration: none; }
.lead__channels a:hover { text-decoration: underline; }
.lead__box { background: var(--night-800); border: 1px solid var(--night-line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide, .channel, .form__consent, .form__error, .form .btn { grid-column: 1 / -1; }
.field label, .channel legend { font-size: 14px; font-weight: 500; }
.optional { color: var(--night-muted); font-weight: 400; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--night-line); background: var(--night-900); color: var(--neutral); font: inherit; font-size: 16px; }
.input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgb(11 179 167 / 0.25); }
.input[aria-invalid='true'] { border-color: #e2725b; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--night-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--night-muted) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea.input { resize: vertical; min-height: 96px; }
.channel { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.channel legend { margin-bottom: 8px; padding: 0; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; }
.radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.radio input:checked + span { border-color: var(--teal); color: var(--teal); background: rgb(11 179 167 / 0.1); }
.radio input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { font-size: 13px; color: var(--night-muted); }
.form__error { color: #f0a090; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }
.form-state h3 { margin-bottom: 10px; }
.form-state p { color: var(--night-muted); }
.form-state:focus { outline: none; }
.fallback__text { white-space: pre-wrap; font: 14px/1.5 var(--font); background: var(--night-900); border: 1px solid var(--night-line); border-radius: var(--radius-sm); padding: 14px; margin: 16px 0; max-height: 240px; overflow: auto; }
.fallback__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- адаптив ---------- */
@media (max-width: 1023.98px) {
  .features, .features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__grid, .split, .prod, .sector, .lead__grid, .models li { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; }
  .split--reverse .split__media { order: 0; }
  .facts > div + div { border-left: 0; padding-left: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .models li { gap: 8px; }
}
@media (max-width: 640px) {
  .features, .features--2, .features--4 { grid-template-columns: minmax(0, 1fr); }
  .features li { padding-right: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
