/* Sherby landing pages. Static, no external requests (fonts, scripts, trackers). */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-ink: #ffffff;
  --brand-soft: #eef2ff;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-soft: #121826;
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --line: #1f2937;
    --brand: #6d8dff;
    --brand-ink: #0b0f17;
    --brand-soft: #172041;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0; }

/* Two languages in one page: the other one is hidden. */
html[data-lang="ru"] [lang="uz"], html[data-lang="uz"] [lang="ru"] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.logo b { color: var(--brand); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; font-size: 14px; }
.lang button { border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; padding: 6px 6px; min-height: 36px; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.login { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font-weight: 650; font-size: 16px; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-line:hover { border-color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 64px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.12; letter-spacing: -.025em; }
.hero .sub { margin-top: 20px; font-size: 19px; color: var(--text); max-width: 34em; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-media { position: relative; margin-right: -120px; padding-bottom: 56px; }
.hero-media .phone { position: absolute; left: -40px; bottom: 0; width: 200px; }

.phones { display: flex; gap: 28px; justify-content: center; padding-bottom: 56px; }
.phones .phone { width: 270px; }
.phones .phone + .phone { margin-top: 56px; }

/* Screens */
.screen { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .28); }
.phone { border: 7px solid #111827; border-radius: 30px; overflow: hidden; background: #111827; box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .45); }
.phone img { border-radius: 22px; }
.caption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: 88px 0; }
.soft { background: var(--bg-soft); }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.02em; max-width: 22em; }
.lead { margin-top: 14px; font-size: 18px; max-width: 40em; }

/* Process strip */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 2px solid var(--ink); }
.flow > div { padding: 18px 20px 0 0; }
.flow b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.flow span.n { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.flow p { font-size: 15px; }

/* Text + screen rows */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.row + .row { margin-top: 96px; }
.row.flip > :first-child { order: 2; }
.row.narrow { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.row.narrow.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.row .phone { max-width: 300px; margin: 0 auto; }
.row h3 { font-size: 26px; line-height: 1.25; letter-spacing: -.015em; }
.row p { margin-top: 12px; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li { padding: 9px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }

/* Pain questions */
.questions { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.questions p { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 18px; }

/* Facts: term + text, no icons */
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.facts h3 { font-size: 18px; margin-bottom: 6px; }
.facts p { font-size: 15px; color: var(--text); }

/* Directions list on the main page */
.dirs { margin-top: 40px; border-top: 1px solid var(--line); }
.dir { display: grid; grid-template-columns: 1.1fr 2fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.dir h3 { font-size: 22px; letter-spacing: -.01em; }
.dir .go { color: var(--brand); font-weight: 650; white-space: nowrap; }
.dir:hover h3 { color: var(--brand); }

.honest { margin-top: 28px; padding: 16px 18px; border-left: 3px solid var(--line); color: var(--muted); font-size: 15px; }

/* Final call */
.final { text-align: left; }
.final .actions { margin-top: 24px; }
[data-contact][hidden] { display: none !important; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Tablet */
@media (max-width: 1000px) {
  .hero .wrap, .row, .row.narrow, .row.narrow.flip { grid-template-columns: 1fr; gap: 36px; }
  .row.flip > :first-child { order: 0; }
  .hero-media { margin-right: 0; }
  .hero-media .phone { left: auto; right: 12px; width: 150px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .flow > div { padding-bottom: 20px; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px 16px 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--brand); }
  .menu-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
  }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding-top: 36px; }
  .hero .sub { font-size: 17px; }
  .hero-media .phone { width: 116px; border-width: 5px; border-radius: 22px; }
  .phones { gap: 12px; }
  .phones .phone { width: 48%; border-width: 5px; border-radius: 22px; }
  .phones .phone img { border-radius: 17px; }
  .phones .phone + .phone { margin-top: 32px; }
  .hero-media .phone img { border-radius: 17px; }
  .facts, .questions { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .dir { grid-template-columns: 1fr; gap: 6px; }
  .row + .row { margin-top: 64px; }
  .top-actions .login { display: none; }
  .actions .btn { flex: 1 1 100%; }
}
