:root {
  color-scheme: dark;
  --bg: #12100e;
  --bg-raised: #1b1714;
  --bg-card: #211c18;
  --line: #352d27;
  --text: #f6f0ea;
  --muted: #b9aea4;
  --ember: #f08a4b;
  --ember-deep: #c9561f;
  --on-ember: #1b0f07;
  --radius: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Til almashtirish: <html data-l="en|uz"> ga qarab matn ko'rinadi */
html[data-l="en"] .uz, html[data-l="uz"] .en { display: none !important; }

a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 16, 14, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; text-decoration: none; }
.brand img { width: 32px; height: 32px; display: block; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; transition: color 0.15s; }
.main-nav a:hover { color: var(--text); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  min-width: 42px; min-height: 32px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 700 13px "Manrope", sans-serif; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ember); color: var(--on-ember); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 460px at 82% 58%, rgba(240, 138, 75, 0.2), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 92px 0; }
.eyebrow { color: var(--ember); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin-top: 18px; font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; }
.hero .lead { margin-top: 22px; max-width: 560px; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ember); color: var(--on-ember); }
.btn-primary:hover { background: #f59a60; }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }

.radiator { width: 100%; max-width: 420px; height: auto; display: block; margin-inline: auto; }
.heat path { animation: rise 5s ease-in-out infinite; }
.heat path:nth-child(2) { animation-delay: 1.2s; }
.heat path:nth-child(3) { animation-delay: 2.4s; }
@keyframes rise {
  0%, 100% { opacity: 0.2; transform: translateY(5px); }
  50% { opacity: 0.85; transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .heat path { animation: none; opacity: 0.5; }
  .btn { transition: none; }
}

/* Sections */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.card .icon { width: 30px; height: 30px; color: var(--ember); display: block; }
.card h3 { margin-top: 20px; font-size: 20px; font-weight: 700; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 2px solid var(--line); }
.steps li::before { content: "0" counter(s); color: var(--ember); font-weight: 800; font-size: 15px; }
.steps h3 { margin-top: 8px; font-size: 19px; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Company details */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.contact-grid .section-head { margin-bottom: 0; }
.contact-grid .actions { margin-top: 26px; }
.details { margin: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.details > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 24px; }
.details > div + div { border-top: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 15px; font-weight: 600; }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.details a { text-decoration-color: var(--ember); text-underline-offset: 3px; }

/* Footer */
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
.site-footer a { color: var(--text); text-underline-offset: 3px; }

/* Privacy page */
.doc { max-width: 760px; padding: 72px 0 88px; }
.doc h1 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 42px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.doc p, .doc ul { margin-top: 14px; color: #d9d0c7; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--ember); text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
  .radiator { max-width: 300px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  section.block { padding: 64px 0; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .main-nav { display: none; }
  .lang { margin-left: auto; }
  .details > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 20px; }
  .btn { width: 100%; }
}
