/* ---------------------------------------------------------------------------
   dream-team.uz — landing
   Recreated from "Landing v2.dc.html" (desktop) and "Landing Mobile.dc.html".
   Every colour, size and spacing value below is taken from those files.
   --------------------------------------------------------------------------- */

:root {
  --ink: #0a1220;
  --accent: #1b6fe0;
  --accent-dark: #0a4fae;
  --text-muted: #4a5566;
  --text-soft: #7a8494;
  --hero-dim: #5c6879;
  --line: #e2e6ec;
  --surface: #f5f7fa;
  --field-line: #c7ceda;
  --selection: #cfe1fb;
  --dark-lead: #a9b4c4;
  --dark-line: #23304a;
  --dark-label: #7a8aa3;
  --dark-value: #dce3ed;
  --ok-bg: #eaf6ee;
  --ok-line: #bfe3cb;
  --ok-text: #1e5a32;
  --err-bg: #fdecec;
  --err-line: #f0c2c2;
  --err-text: #a32d2d;

  --shell: 1240px;
  --gutter: 40px;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

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

::selection {
  background: var(--selection);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

/* ---------------------------------------------------------- header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--ink);
}

/* The design has no language switch — added because the site ships in UZ/RU/EN. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch a {
  color: var(--text-soft);
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="true"] {
  color: var(--ink);
}

.lang-switch .sep {
  color: var(--line);
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-nav {
  background: var(--ink);
  color: #fff;
  padding: 11px 20px;
  white-space: nowrap;
}

/* Only one of the two nav-CTA labels is ever visible — see the 900px breakpoint. */
.cta-compact {
  display: none;
}

.btn-nav:hover {
  background: var(--accent);
  color: #fff;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--surface);
  color: var(--ink);
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 76px 0 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 104px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.hero h1 .dim {
  color: var(--hero-dim);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink);
}

.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.stat-row .stat {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.stat-row .stat:first-child {
  padding-left: 0;
}

.stat-row .stat:last-child {
  padding-right: 0;
  border-right: none;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.stat:last-child b {
  color: var(--accent);
}

.stat span {
  font-size: 13px;
  color: var(--text-soft);
}

/* -------------------------------------------------------------- ticker */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  padding: 16px 0;
  background: var(--surface);
}

.ticker-track {
  display: flex;
  gap: 34px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  animation: ticker-marquee 30s linear infinite;
  will-change: transform;
}

.ticker-track .diamond {
  color: var(--accent);
}

@keyframes ticker-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------- sections */

.section {
  padding: 64px 0 20px;
}

.section-last {
  padding: 64px 0 72px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-head p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  justify-self: end;
}

.section-head-inline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head-inline h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* The hairline grid: 1px gaps over a rule-coloured background draw the lines. */
.rule-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.rule-grid > * {
  background: #fff;
}

.rule-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rule-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Outer cells lose their outer padding so content aligns with the shell edge. */
.rule-grid-3 > *:nth-child(3n + 1) {
  padding-left: 0;
}

.rule-grid-3 > *:nth-child(3n) {
  padding-right: 0;
}

.rule-grid-4 > *:nth-child(4n + 1) {
  padding-left: 0;
}

.rule-grid-4 > *:nth-child(4n) {
  padding-right: 0;
}

/* ------------------------------------------------------------- services */

.service {
  padding: 30px 26px;
}

.service .num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 12px 0 8px;
}

.service p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- cases */

.case-index {
  border-top: 1px solid var(--ink);
}

.case-row {
  display: grid;
  grid-template-columns: 56px 1.05fr 1.5fr 210px;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.case-row:last-child {
  border-bottom: 1px solid var(--ink);
}

.case-row:hover {
  background: var(--surface);
}

.case-row .num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.case-row .name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.case-row .summary {
  font-size: 14px;
  color: var(--text-muted);
}

.case-row .client {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: right;
}

.case-row .head {
  display: contents;
}

/* ----------------------------------------------------------------- team */

.team-list {
  border-top: 1px solid var(--ink);
}

.team-row {
  display: grid;
  grid-template-columns: 140px 1fr 1.2fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.team-row:last-child {
  border-bottom: 1px solid var(--ink);
}

.team-row .avatar {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--line);
  line-height: 0.9;
}

.team-row .avatar-photo {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 999px;
}

.team-row h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.team-row .role {
  font-size: 14px;
  color: var(--text-muted);
}

.team-row .experience {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

.team-row .bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

/* -------------------------------------------------------------- process */

.step {
  padding: 28px 22px;
}

.step .num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 6px;
}

.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.step .duration {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
}

/* ---------------------------------------------------------------- stack */

.tech-group {
  padding: 26px 22px;
}

.tech-group .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.tech-group .items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.tech-group .items .sep {
  display: none;
}

/* -------------------------------------------------------------- contact */

.contact {
  padding: 72px 0;
  background: var(--ink);
  color: #fff;
}

/* Intro and contact list stack in the left column, the form fills the right one.
   Named areas keep the DOM order (intro, list, form) free to change per breakpoint. */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "intro form"
    "list  form";
  /* The form column is the taller one; the slack belongs at the bottom of the list
     row, otherwise it is shared out and the list drifts away from the lead. */
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  row-gap: 0;
  align-items: start;
}

.contact-intro {
  grid-area: intro;
}

.contact-split .contact-list {
  grid-area: list;
}

.contact-split .lead-form {
  grid-area: form;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 20px;
  white-space: pre-line;
}

.contact-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark-lead);
  margin-bottom: 36px;
  max-width: 460px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
}

.contact-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--dark-value);
}

.contact-list .label {
  color: var(--dark-label);
}

.contact-list a:hover {
  color: #fff;
}

.lead-form {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 32px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font-size: 15px;
  padding: 13px 0;
  border: none;
  border-bottom: 1px solid var(--field-line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field-last {
  margin-bottom: 26px;
}

.lead-form .btn-primary {
  width: 100%;
  border: none;
  font-size: 15px;
  padding: 16px 24px;
}

.form-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 14px;
  text-align: center;
}

.form-alert {
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 16px;
}

.form-alert-ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ok-text);
}

.form-alert-error {
  background: var(--err-bg);
  border: 1px solid var(--err-line);
  color: var(--err-text);
}

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: var(--dark-label);
  border-top: 1px solid var(--dark-line);
  padding: 28px 0 40px;
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ============================ tablet ==================================== */

@media (max-width: 1100px) {
  :root {
    --gutter: 28px;
  }

  .hero h1 {
    font-size: clamp(56px, 8.6vw, 104px);
  }

  .contact h2 {
    font-size: clamp(38px, 5vw, 52px);
  }

  .section-head h2,
  .section-head-inline h2 {
    font-size: clamp(32px, 4.4vw, 44px);
  }

  .rule-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* With two columns the 3-column edge rules no longer line up — reset and re-apply. */
  .rule-grid-3 > * {
    padding-left: 26px;
    padding-right: 26px;
  }

  .rule-grid-3 > *:nth-child(2n + 1) {
    padding-left: 0;
  }

  .rule-grid-3 > *:nth-child(2n) {
    padding-right: 0;
  }

  .case-row {
    grid-template-columns: 40px 1fr 1.2fr;
  }

  .case-row .client {
    grid-column: 2 / -1;
    text-align: left;
  }

  .team-row {
    grid-template-columns: 96px 1fr 1fr;
    gap: 20px;
  }

  .team-row .avatar-photo {
    width: 88px;
    height: 88px;
  }
}

/* ===================== narrow: nav collapses ============================ */
/* Below this the section links plus the full CTA no longer fit on one line,
   so the links go and the CTA falls back to its short label. */

@media (max-width: 900px) {
  .site-nav a.nav-link {
    display: none;
  }

  .site-nav {
    gap: 14px;
  }

  .cta-full {
    display: none;
  }

  .cta-compact {
    display: inline;
  }
}

/* ============================ mobile ==================================== */
/* Values below come from "Landing Mobile.dc.html". */

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .site-header .shell {
    height: 60px;
    gap: 10px;
  }

  .brand {
    font-size: 16px;
  }

  .site-nav {
    gap: 12px;
  }

  .lang-switch {
    gap: 6px;
    font-size: 11px;
  }

  .btn-nav {
    font-size: 12px;
    padding: 10px 16px;
  }

  .hero {
    padding: 44px 0 0;
  }

  .eyebrow {
    gap: 12px;
    margin-bottom: 22px;
  }

  .eyebrow::before {
    width: 28px;
  }

  .eyebrow span {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    font-size: 44px;
    line-height: 0.96;
    letter-spacing: -0.045em;
    margin-bottom: 22px;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 32px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
  }

  .hero-actions .btn {
    padding: 15px 24px;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .stat-row .stat {
    padding: 24px 18px;
    border-bottom: 1px solid var(--line);
  }

  .stat-row .stat:nth-child(odd) {
    padding-left: 0;
  }

  .stat-row .stat:nth-child(even) {
    padding-right: 0;
    border-right: none;
  }

  .stat-row .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .stat b {
    font-size: 40px;
  }

  .stat span {
    font-size: 12px;
  }

  .ticker {
    padding: 14px 0;
  }

  .ticker-track {
    gap: 26px;
    font-size: 14px;
    animation-duration: 26s;
  }

  .section,
  .section-last {
    padding: 44px 0 8px;
  }

  .section-last {
    padding-bottom: 48px;
  }

  .section-head,
  .section-head-inline {
    display: block;
    margin-bottom: 26px;
  }

  .section-head h2,
  .section-head-inline h2 {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .section-head p {
    max-width: none;
    font-size: 15px;
  }

  .section-head-inline .kicker {
    display: block;
    font-size: 11px;
    margin-top: 8px;
  }

  /* The hairline grids collapse into stacked rows with a rule between them. */
  .rule-grid {
    display: block;
    background: transparent;
    border-bottom: none;
  }

  .rule-grid > * {
    padding: 22px 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .rule-grid > *:last-child {
    border-bottom: 1px solid var(--ink);
  }

  .service h3 {
    font-size: 21px;
    margin: 8px 0 6px;
  }

  .case-row {
    display: block;
    padding: 22px 0;
  }

  .case-row .head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
  }

  .case-row .num {
    font-size: 12px;
  }

  .case-row .name {
    font-size: 23px;
  }

  .case-row .summary {
    display: block;
    margin-bottom: 10px;
  }

  .case-row .client {
    text-align: left;
    font-size: 11px;
    display: block;
  }

  .team-row {
    display: block;
    padding: 26px 0;
  }

  .team-row .avatar {
    display: block;
    font-size: 40px;
    margin-bottom: 12px;
  }

  .team-row .avatar-photo {
    width: 84px;
    height: 84px;
    margin-bottom: 12px;
  }

  .team-row h3 {
    font-size: 23px;
  }

  .team-row .experience {
    margin: 2px 0 12px;
  }

  .team-row .bio {
    font-size: 14px;
  }

  .step .num {
    font-size: 30px;
  }

  .step h3 {
    margin: 10px 0 6px;
  }

  .tech-group .items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
  }

  .tech-group .items .sep {
    display: inline;
    color: var(--field-line);
  }

  .contact {
    padding: 48px 0;
  }

  /* The phone layout puts the form directly under the intro, ahead of the
     contact list — the order "Landing Mobile.dc.html" uses. */
  .contact-split {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .contact-intro {
    order: 1;
  }

  .contact-split .lead-form {
    order: 2;
  }

  .contact-split .contact-list {
    order: 3;
  }

  .contact h2 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .contact-lead {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .lead-form {
    border-radius: 18px;
    padding: 24px;
  }

  .contact-list {
    padding-top: 22px;
  }

  .site-footer {
    padding: 24px 0 36px;
  }

  .site-footer .shell {
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
