/* ==========================================================================
   webmail.tj — Бизнес-почта Navju Cloud. Статический лендинг.
   Один стиль на все языки и страницы. Бренд: Navju Cloud (см. BRANDING.md).
   ========================================================================== */

:root {
  --blue: #0367E4;
  --blue-dark: #0356C0;
  --navy: #0943CC;
  --navy-deep: #062C85;
  --sky: #78D8F0;
  --ink: #15191C;

  --text: #1F2A37;
  --muted: #5B6673;
  --line: #E6ECF2;
  --surface: #F5F9FC;
  --surface-2: #EDF3FA;
  --bg: #FFFFFF;

  --ok: #1E6B33;
  --ok-bg: #E8F5EC;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,32,56,.05), 0 8px 28px rgba(16,32,56,.06);
  --shadow-lg: 0 2px 6px rgba(16,32,56,.08), 0 24px 56px rgba(16,32,56,.12);

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 44ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none; line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: #B9C6D6; color: var(--ink); }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: #EAF1FB; border-color: #EAF1FB; color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--lg { padding: 15px 28px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }
.brand .brand-tld { color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--blue); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langs { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.langs a { font-size: .85rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; color: var(--muted); }
.langs a:hover { background: var(--surface); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--blue); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .container { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero p.lead { max-width: 46ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--ok); flex: 0 0 auto; }
.hero-art { justify-self: end; width: 100%; max-width: 520px; }

/* Browser frame mock */
.browser { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D5DEE8; display: inline-block; }
.browser-bar i:nth-child(1) { background: #F0A6A0; }
.browser-bar i:nth-child(2) { background: #F3D08A; }
.browser-bar i:nth-child(3) { background: #A9D6A6; }
.browser-body { padding: 0; background: #fff; }
.browser-body svg { display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: 56px 0; }
.section-head { max-width: 62ch; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 72px; }
.split--rev .split-media { order: 2; }
.split-media .browser { max-width: 480px; }
.split h2 { margin-bottom: .4em; }
.split .split-text p { color: var(--muted); font-size: 1.1rem; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--blue); margin-top: 2px; }
.check-list b { color: var(--ink); }

/* ---------- Feature grid ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { }
.feature-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--surface-2); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35em; font-size: 1.18rem; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); position: relative; }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: 5px 14px; border-radius: 999px; }
.plan-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.plan-size { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-size: 2.3rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.plan-price .per { color: var(--muted); font-size: .98rem; }
.plan-year { color: var(--muted); font-size: .95rem; margin: 6px 0 2px; }
.plan-save { color: var(--ok); font-weight: 600; font-size: .9rem; background: var(--ok-bg); display: inline-block; padding: 2px 10px; border-radius: 999px; margin-top: 10px; }
.plan-features { list-style: none; margin: 22px 0 26px; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.plan-features svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--blue); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--surface); color: var(--ink); font-weight: 700; }
table.cmp td.num, table.cmp th.num { text-align: center; font-variant-numeric: tabular-nums; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--ok); font-weight: 700; }
table.cmp .no { color: #B9C2CD; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Spec table (IMAP/SMTP, DNS) */
.spec { display: grid; gap: 10px; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--ink); font-weight: 600; }
code { background: var(--surface-2); color: var(--navy-deep); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: 0 0 auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq details[open] summary { color: var(--blue); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 20px; padding: 52px 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 26px; font-size: 1.12rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Dark info section ---------- */
.section--ink { background: var(--ink); color: #D7DEE6; }
.section--ink h2 { color: #fff; }
.section--ink .muted { color: #9BA6B2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9BA6B2; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer img.flogo { height: 28px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #AEB8C4; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer p { color: #8B96A3; font-size: .95rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid #262C33; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #717C89; font-size: .9rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .92rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

/* ---------- Page intro ---------- */
.page-intro { padding: 44px 0 10px; }
.page-intro h1 { margin-bottom: .3em; }
.page-intro p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

/* ---------- Utilities ---------- */
.stack-sm > * + * { margin-top: 10px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .hero-art { justify-self: start; max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split-media { order: 0; }
  .split-media .browser { max-width: 100%; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--featured { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav, .header-right .cabinet { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { gap: 12px; }
  .site-header.open .nav {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .site-header.open .nav a { padding: 12px 10px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-row .k { font-size: .9rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Additions used by the generator ---------- */
.check-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 44px; max-width: 820px; margin: 0 auto; }
.check-list--grid li { font-size: 1.05rem; }
.section-head.left .check-list--grid { margin-left: 0; }

.section--ink .check-list svg { color: var(--sky); }
.section--ink .check-list span { color: #D7DEE6; }

table.cmp .yes { display: inline-flex; align-items: center; justify-content: center; color: var(--ok); }
table.cmp .yes svg { width: 20px; height: 20px; }
table.cmp td.num .btn { padding: 8px 16px; }

.hero-text { min-width: 0; }
.split-text { min-width: 0; }

@media (max-width: 640px) {
  .check-list--grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Mobile header overflow fix ---------- */
@media (max-width: 760px) {
  .brand .brand-tld { display: none; }
  .brand img { height: 26px; }
  .site-header .container { gap: 10px; }
  .header-right { gap: 8px; }
  .langs a { padding: 4px 7px; }
}
@media (max-width: 400px) {
  .brand img { height: 24px; }
  .langs a { padding: 4px 6px; font-size: .8rem; }
}
