/* PTO SMART marketing sayti. Ranglar desktop dasturidagi ACCENT (#0B4F9C) dan olingan. */

@font-face { font-family: "Plex"; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Plex"; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Plex"; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Plex Condensed"; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: "Plex Condensed"; font-weight: 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-condensed-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #ffffff;
  --surface: #f3f5f8;
  --ink: #18202b;          /* grafit — asosiy matn */
  --muted: #566170;
  --rule: #d8dee6;
  --rule-strong: #9aa5b3;
  --accent: #0b4f9c;       /* PTO SMART brend ko'ki */
  --accent-dark: #083d7a;
  --accent-soft: #e8f0fa;
  --warn-soft: #fff6e0;
  --warn-ink: #6b4a00;

  --font: "Plex", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Plex Condensed", "Plex", "Segoe UI", system-ui, sans-serif;

  /* tipografik shkala (1.25) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.625rem;
  --t-2xl: 2.125rem;
  --t-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.625rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--font);
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--t-3xl); letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); line-height: 1.2; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------------ tugmalar (yagona tizim) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); border-color: var(--rule); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); } }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 600 1.1875rem/1 var(--font-display); letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.96875rem; border-radius: 4px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .header-row { gap: 12px; }
  .site-nav { display: none; }
  .header-actions .btn-secondary { display: none; }
  .menu-toggle { display: inline-flex; margin-left: 4px; background: none; border: 1px solid var(--rule-strong);
    border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
  .menu-toggle svg { width: 22px; height: 22px; }
  .site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(24,32,43,.08); }
  .site-nav.is-open .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .site-nav.is-open .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .site-nav .nav-login { display: block; }
}
@media (min-width: 961px) { .site-nav .nav-login { display: none; } }
@media (max-width: 420px) { .header-actions .btn-primary { padding: 0 14px; } }

/* ------------------------------------------------------------------ bo'limlar */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tint { background: var(--surface); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head p { color: var(--muted); font-size: var(--t-lg); line-height: 1.5; }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lead { font-size: var(--t-lg); color: var(--muted); line-height: 1.5; max-width: 34ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; color: var(--muted); font-size: var(--t-sm); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy .lead { max-width: 46ch; } }

/* Chizma varag'i: ramka + shtamp (qurilish chizmalaridagi asosiy yozuv). Saytning yagona "ovozli" elementi. */
.sheet { position: relative; background: var(--paper); border: 1px solid var(--ink); padding: 10px 10px 10px 26px; }
.sheet::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule-strong); pointer-events: none; }
.sheet picture { display: block; position: relative; }
.sheet img { border: 1px solid var(--rule); }
.stamp { position: absolute; right: -1px; bottom: -1px; background: var(--paper); border: 1px solid var(--ink); border-collapse: collapse;
  font-size: 0.75rem; line-height: 1.25; min-width: 250px; }
.stamp th, .stamp td { border: 1px solid var(--ink); padding: 5px 8px; text-align: left; font-weight: 400; }
.stamp th { color: var(--muted); width: 38%; }
.stamp td { font-weight: 500; }
.stamp .stamp-title td { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 600; }
@media (max-width: 560px) {
  .sheet { padding: 6px 6px 6px 14px; }
  .stamp { position: static; width: 100%; margin-top: 6px; min-width: 0; }
}

/* ------------------------------------------------------------------ modullar */
.module { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.module + .module { margin-top: clamp(56px, 8vw, 96px); }
.module-copy { display: grid; gap: 16px; position: sticky; top: 100px; }
.module-copy .code { font: 600 var(--t-sm)/1 var(--font); color: var(--accent); }
.module-copy p { color: var(--muted); }
.module-points { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.module-points li { padding-left: 20px; position: relative; }
.module-points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--ink); }
.module-figure { margin: 0; }
.module-figure picture { display: block; }
.module-figure img { border: 1px solid var(--rule); border-radius: 4px; }
.module-figure figcaption { margin-top: 10px; font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 900px) { .module { grid-template-columns: 1fr; } .module-copy { position: static; } }

/* ------------------------------------------------------------------ afzalliklar */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.benefit { padding: 24px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.benefit + .benefit { padding-left: 24px; border-left: 1px solid var(--rule); }
.benefit h3 { font-size: var(--t-lg); }
.benefit p { color: var(--muted); font-size: 0.96875rem; }
@media (max-width: 900px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit, .benefit + .benefit { padding: 20px 0; border-left: 0; }
  .benefit + .benefit { border-top: 1px solid var(--rule); }
}

/* ------------------------------------------------------------------ tariflar jadvali */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plans { width: 100%; border-collapse: collapse; font-size: 0.96875rem; }
.plans caption { text-align: left; }
.plans th, .plans td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.plans thead th { font-size: var(--t-sm); font-weight: 500; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.plans tbody th { font: 600 var(--t-lg)/1.2 var(--font-display); white-space: nowrap; }
.plans .price { font-weight: 600; }
.plans .price small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-sm); margin-top: 2px; }
.plans .plan-note { display: block; margin-top: 4px; font: 400 var(--t-sm)/1.4 var(--font); color: var(--muted); white-space: normal; }
.plans tr.is-featured th, .plans tr.is-featured td { background: var(--accent-soft); }
.footnote { margin-top: 14px; font-size: var(--t-sm); color: var(--muted); }

/* Mobil: jadval o'rniga tarif bloklari */
@media (max-width: 760px) {
  .plans thead { display: none; }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: 100%; }
  .plans tr { border-top: 2px solid var(--ink); padding: 14px 0 6px; }
  .plans tr.is-featured { background: var(--accent-soft); padding-left: 12px; padding-right: 12px; }
  .plans th, .plans td { border: 0; padding: 4px 0; }
  .plans tbody th { padding-bottom: 8px; }
  .plans td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--muted); }
}

/* ------------------------------------------------------------------ matnli sahifalar */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem); }
.page-head p { margin-top: 16px; font-size: var(--t-lg); color: var(--muted); max-width: 60ch; line-height: 1.5; }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--t-xl); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-lg); margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.notice { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.notice-warn { border-left-color: #b7791f; background: var(--warn-soft); color: var(--warn-ink); }
.notice strong { display: block; margin-bottom: 4px; color: var(--ink); }
.notice-warn strong { color: var(--warn-ink); }

.panel { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; background: var(--paper); display: grid; gap: 14px; }
.panel h2, .panel h3 { font-size: var(--t-lg); }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; font-weight: 500; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border: 1px solid var(--ink);
  border-radius: 50%; display: grid; place-items: center; font: 600 0.875rem/1 var(--font); }
.steps li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 4px; width: 1px; background: var(--rule-strong); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; margin-bottom: 2px; }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--muted); max-width: 70ch; display: grid; gap: 10px; }

.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: #c3cad4; margin-top: 10px; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #7d8896; }
.cta-band .btn-secondary:hover { border-color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--accent-soft); color: var(--ink); }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font: 600 0.9375rem/1.3 var(--font); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about .brand { color: var(--ink); }
.footer-about p { color: var(--muted); margin-top: 12px; max-width: 36ch; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta-band { display: none; } }

/* ------------------------------------------------------------------ yordamchi */
.gap-top { margin-top: 20px; }
.gap-top-lg { margin-top: 56px; }
.hash { word-break: break-all; font-size: 0.8125rem; }
