/* Andijon Fuqaroloyiha — "Tun": a finished building at blue hour, lights on.
   Character: quiet, assured, exact. Signature: a small amber lit-window square. */
:root {
  --bg: #0b0d14;
  --card: #11141c;
  --raised: #1a1e28;
  --text: #eef0f5;
  --text-2: #a3a9b8;
  --muted: #7a8296;
  --line: rgba(238, 240, 245, .08);
  --line-2: rgba(238, 240, 245, .2);
  --accent: #e3a857;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
img, iframe { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.lit { display: inline-block; width: 8px; height: 12px; background: var(--accent); border-radius: 1px; flex: none; }

/* Navigation */
.nav { position: absolute; inset: 0 0 auto; z-index: 3; }
.nav__row { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 17px; text-decoration: none; white-space: nowrap; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { font-size: 15px; color: var(--text-2); text-decoration: none; transition: color .15s var(--ease); }
.links a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; }
.lang button {
  font: 400 13px/1 var(--mono); color: var(--muted); background: none; border: 0;
  padding: 8px; border-radius: 6px; cursor: pointer;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--text); background: rgba(238, 240, 245, .1); }

/* Hero: dusk scene, headline on the empty sky */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 20, 0) 60%, var(--bg) 100%); }
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; padding-top: 80px; width: 100%; }
.hero__text { margin: auto 0; padding-bottom: 80px; max-width: 560px; }
.eyebrow { font-size: 15px; color: var(--text-2); }
h1 { font: 400 clamp(48px, 5.6vw, 76px)/1.02 var(--sans); letter-spacing: -.03em; margin-top: 20px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 28px; color: var(--text-2); margin-top: 24px; max-width: 30rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 8px;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #ffffff; }
.btn--quiet { border: 1px solid var(--line-2); background: rgba(11, 13, 20, .3); }
.btn--quiet:hover { border-color: rgba(238, 240, 245, .5); }
.btn--small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn:active { transform: scale(.98); }

/* Title block, rising from the bottom edge of the hero */
.block {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
  margin-top: auto; width: max-content; max-width: 100%;
}
.block > div { padding: 16px 24px; border-left: 1px solid var(--line); }
.block > div:first-child { border-left: 0; }
.block dt { font-size: 13px; color: var(--muted); }
.block dd { font-size: 15px; margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { opacity: 0; animation: fade 1.2s var(--ease) forwards; }
  .hero__text > * { opacity: 0; transform: translateY(8px); animation: rise .5s var(--ease) .2s forwards; }
  .hero__text > :nth-child(2) { animation-delay: .25s; }
  .hero__text > :nth-child(3) { animation-delay: .3s; }
  .hero__text > :nth-child(4) { animation-delay: .35s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Sections */
.section { padding: 128px 0; border-top: 1px solid var(--line); }
.section--card { background: var(--card); }
.head { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: baseline; margin-bottom: 64px; }
.label { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
h2 { font: 400 clamp(32px, 3.6vw, 48px)/1.1 var(--sans); letter-spacing: -.02em; text-wrap: balance; }
h3 { font-weight: 400; }

.rows > li { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 32px; align-items: baseline; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.services > li { padding: 28px 0; }
.services h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; }
.services p { color: var(--text-2); }
.services .mono { color: var(--muted); text-align: right; }
.works > li { padding: 24px 0; }
.works .mono { color: var(--muted); }
.works h3 { font-size: 18px; line-height: 1.5; }
.works p { color: var(--text-2); text-align: right; }

.about { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.about__text { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; letter-spacing: -.01em; max-width: 34em; }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.figure { font-size: 32px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts dd { color: var(--text-2); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 96px; }
.steps li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.steps .mono { color: var(--accent); }
.steps h3 { font-size: 20px; line-height: 1.3; margin-top: 16px; }
.steps p { color: var(--text-2); margin-top: 8px; }

.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.phone {
  display: inline-block; font: 400 clamp(36px, 4vw, 56px)/1 var(--sans); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; text-decoration: none; transition: color .15s var(--ease);
}
.phone:hover { color: var(--accent); }
.details { margin-top: 40px; }
.details > div { padding: 16px 0; border-top: 1px solid var(--line); }
.details dt { font-size: 13px; color: var(--muted); }
.details dd { margin-top: 4px; }
.details a { text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .15s var(--ease); }
.details a:hover { border-color: var(--text); }
.map iframe {
  width: 100%; height: 400px; border: 1px solid var(--line); border-radius: 12px;
  filter: grayscale(1) invert(.9) contrast(.9);
}
.map__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 1020px) {
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}

/* Phone */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { position: absolute; }
  .nav__row { flex-wrap: wrap; height: auto; padding-top: 16px; gap: 12px 16px; }
  .lang { margin-left: auto; }
  .links { order: 3; width: 100%; margin: 0 -20px; padding: 0 20px; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .links::-webkit-scrollbar { display: none; }
  .links a { white-space: nowrap; padding: 4px 0; }
  .hero { min-height: 0; }
  .hero__media { position: relative; order: 2; aspect-ratio: 4 / 3; }
  .hero__media img { object-position: 85% center; }
  .hero__inner { order: 1; padding-top: 120px; }
  .hero__text { padding-bottom: 32px; }
  h1 { font-size: 40px; }
  .actions .btn { flex: 1 1 140px; }
  .block { display: none; }
  .section { padding: 80px 0; }
  .head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .rows > li { grid-template-columns: 1fr; gap: 4px; }
  .services .mono, .works p { text-align: left; }
  .services .mono { order: -1; }
  .works h3 { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .map iframe { height: 300px; }
}

@media print {
  .nav, .map, .hero__media { display: none; }
  body { background: #fff; color: #000; }
}
