:root {
  --bg: #f4efe6;
  --bg2: #fffdf8;
  --ink: #1c1916;
  --muted: #5c564e;
  --line: rgba(28, 25, 22, 0.1);
  --card: #ffffff;
  --accent: #2f5d4a;
  --accent-2: #c4a574;
  --accent-ink: #fffdf8;
  --warn: #8a3d2a;
  --ok: #2a6b45;
  --shadow: 0 18px 50px rgba(40, 28, 16, 0.08);
  --radius: 20px;
  --pattern: none;
  --font: "Manrope", "Noto Sans", system-ui, sans-serif;
}

html[data-theme="uz"] {
  --accent: #0e7a6b;
  --accent-2: #c9a24a;
  --bg: #eef6f2;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 4 L28 20 L44 24 L28 28 L24 44 L20 28 L4 24 L20 20 Z' fill='none' stroke='%230e7a6b' stroke-width='.6' opacity='.18'/%3E%3C/svg%3E");
}
html[data-theme="tg"] {
  --accent: #8b1e2d;
  --accent-2: #2d6b3a;
  --bg: #f7f1ee;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 32 Q30 8 60 32 T120 32' fill='none' stroke='%238b1e2d' stroke-width='.7' opacity='.16'/%3E%3C/svg%3E");
}
html[data-theme="kk"] {
  --accent: #0b7ea8;
  --accent-2: #d4a017;
  --bg: #eef6fa;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='28' cy='28' r='10' fill='none' stroke='%230b7ea8' stroke-width='.6' opacity='.16'/%3E%3Ccircle cx='28' cy='28' r='3' fill='%230b7ea8' opacity='.12'/%3E%3C/svg%3E");
}
html[data-theme="ky"] {
  --accent: #b4232c;
  --accent-2: #d4a017;
  --bg: #f8f1ef;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Ccircle cx='32' cy='32' r='14' fill='none' stroke='%23b4232c' stroke-width='.7' opacity='.16'/%3E%3Ccircle cx='32' cy='32' r='6' fill='none' stroke='%23b4232c' stroke-width='.6' opacity='.16'/%3E%3C/svg%3E");
}
html[data-theme="ko"] {
  --accent: #1d3557;
  --accent-2: #b4232c;
  --bg: #f3f4f7;
  --pattern: none;
}
html[data-theme="zh"] {
  --accent: #9b2c2c;
  --accent-2: #c4a574;
  --bg: #f7f3ee;
}
html[data-theme="hi"] {
  --accent: #c05621;
  --accent-2: #2f6b45;
  --bg: #f7f2ea;
}
html[data-theme="vi"] {
  --accent: #b4232c;
  --accent-2: #d4a017;
  --bg: #f7f3ee;
}
html[data-theme="az"] {
  --accent: #0b6e8a;
  --accent-2: #b4232c;
  --bg: #eef5f7;
}
html[data-theme="hy"] {
  --accent: #9a3412;
  --accent-2: #1d4e4a;
  --bg: #f6f0ea;
}
html[data-theme="tr"] {
  --accent: #b4232c;
  --accent-2: #1c1916;
  --bg: #f6f1ee;
}

html[lang="ko"] body { font-family: "Noto Sans KR", var(--font); }
html[lang="zh"] body { font-family: "Noto Sans SC", var(--font); }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", var(--font); }
html[lang="hy"] body { font-family: "Noto Sans Armenian", var(--font); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--pattern);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 20; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}
.logo img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; }
.nav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.phone {
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  color: var(--accent);
}
.lang-btn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lang-box {
  position: relative;
}
.lang-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 220px;
  max-height: 360px;
  overflow: auto;
  z-index: 12;
}
.lang-box.open .lang-list { display: grid; }
.lang-list a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.lang-list a:hover, .lang-list a[aria-current="true"] { background: color-mix(in srgb, var(--accent) 10%, white); }

.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid var(--line);
}
.hero-card b { display: block; font-size: 28px; margin-bottom: 4px; }
.hero-card span { color: var(--muted); }

.section { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; margin-bottom: 10px; }
.sub { color: var(--muted); margin-bottom: 28px; max-width: 60ch; }

.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  font-weight: 600;
}
.check input { width: auto; }
.hidden { display: none !important; }

.result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.result-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.price-box {
  background: color-mix(in srgb, var(--accent) 8%, white);
  border-radius: 18px;
  padding: 18px;
}
.price-line { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.price-line strong { font-size: 22px; }
.docs { margin: 16px 0 0; padding-left: 18px; }
.docs li { margin: 6px 0; }
.note {
  background: color-mix(in srgb, var(--warn) 8%, white);
  color: var(--warn);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  font-weight: 600;
}
.pack-name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.step em { display: block; color: var(--accent); font-style: normal; font-weight: 800; margin-bottom: 8px; }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pack {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pack.best { border-color: var(--accent); box-shadow: var(--shadow); }
.pack .sum { font-size: 28px; font-weight: 800; }
.pack ul { padding-left: 18px; color: var(--muted); }

.firm {
  background: var(--ink);
  color: #f6f1e8;
  border-radius: 28px;
  padding: 36px;
}
.firm p { color: #d7cfc3; max-width: 56ch; margin: 10px 0 20px; }
.firm .btn-main { background: var(--accent-2); color: #1c1916; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin-top: 8px; color: var(--muted); }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-ok { display: none; padding: 28px 0; font-size: 20px; font-weight: 800; color: var(--ok); }

.foot {
  padding: 36px 0 80px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--accent); }
.mob-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 11;
}

.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--accent); }
.article { max-width: 74ch; }
.article p { margin: 0 0 14px; color: var(--ink); line-height: 1.65; }
.article h2 { font-size: 26px; margin: 28px 0 10px; }
.article h3 { font-size: 20px; margin: 22px 0 8px; }
.article ul { margin: 0 0 16px 1.2em; color: var(--ink); }
.article li { margin: 6px 0; }
.hub-grid, .link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 0;
}
.hub-grid a, .link-grid a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--ink);
}
.price-note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 16px 0; }
@media (max-width: 860px) {
  .hero-grid, .result-top, .grid-2, .grid-3, .steps, .packs, .form-grid, .hub-grid, .link-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding-top: 28px; }
  .mob-cta { display: block; }
  .mob-cta .btn { width: 100%; }
  .top-in { min-height: 64px; }
  .phone { font-size: 14px; }
}
