:root {
  --bx-ink: #20222a;
  --bx-paper: #ffffff;
  --bx-muted: #626775;
  --bx-line: #dadee6;
  --bx-amber: #ff973e;
  --bx-coral: #ff514b;

  --bx-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bx-paper);
  color: var(--bx-ink);
  font-family: var(--bx-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: 100%;
  min-height: 100svh;
  padding: 0 clamp(24px, 5vw, 96px);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 27px 14px 33px 0;
  border-bottom: 1px solid var(--bx-line);
}

.brand {
  display: inline-block;
  margin-top: 5px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.36px;
  color: var(--bx-ink);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-switcher__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--bx-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.05;
  width: 58px;
  height: 40px;
  padding: 0;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-switcher__btn:hover:not(.lang-switcher__btn--active) {
  color: var(--bx-ink);
}

.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--bx-ink);
  outline-offset: 2px;
}

.lang-switcher__btn--active {
  background-color: var(--bx-ink);
  color: var(--bx-paper);
  cursor: default;
}

/* Hero */
.hero {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 2.5vw, 64px);
  padding: 61px 0 84px;
}

.hero__content {
  flex: 1 1 0;
  min-width: 0;
  max-width: clamp(710px, 49.306vw, 960px);
  padding-top: 80px;
}

.hero__title {
  margin: 0;
  font-size: clamp(46px, 5.694vw, 104px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--bx-ink);
  overflow-wrap: break-word;
}

html[data-lang="uz"] .hero__title,
html[data-lang="uz-cyrl"] .hero__title {
  font-size: clamp(40px, 4.444vw, 82px);
}

.hero__title-line {
  display: block;
}

.hero__subtitle {
  margin: 32px 0 0;
  max-width: clamp(570px, 39.583vw, 760px);
  font-size: clamp(18px, 1.667vw, 30px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--bx-muted);
  overflow-wrap: break-word;
}

.hero__media {
  flex: 0 0 auto;
  width: clamp(320px, min(38.194vw, calc(68svh * 550 / 594)), 720px);
}

.hero__picture {
  display: block;
  width: 100%;
}

.hero__signal {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 550 / 594;
}

/* Tablet refinement */
@media (max-width: 1024px) and (min-width: 768px) {
  .header {
    padding-right: 0;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero__content {
    padding-top: 48px;
  }
}

/* Mobile (Figma 390x844 target) */
@media (max-width: 767px) {
  .page {
    padding: 0 24px;
  }

  .header {
    align-items: flex-start;
    padding: 17px 3px 18px 0;
    gap: 8px;
  }

  .brand {
    margin-top: 5px;
    font-size: 25px;
    letter-spacing: 0;
  }

  .lang-switcher {
    gap: 2px;
  }

  .lang-switcher__btn {
    width: 44px;
    height: 40px;
    font-size: 15px;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 46px 0 46px;
  }

  .hero__content {
    flex: 0 0 auto;
    max-width: none;
    padding-top: 0;
  }

  .hero__title,
  html[data-lang="uz"] .hero__title,
  html[data-lang="uz-cyrl"] .hero__title {
    font-size: 37px;
    line-height: 1.05;
    letter-spacing: -1.48px;
  }

  .hero__subtitle {
    margin-top: 23px;
    max-width: 336px;
    font-size: 19px;
    line-height: 1.05;
  }

  .hero__media {
    width: 100%;
    max-width: 420px;
    margin: auto auto 0;
    padding-top: 48px;
  }

  .hero__signal {
    aspect-ratio: 342 / 360;
  }
}

/* Extra-narrow screens (< 360px) */
@media (max-width: 359px) {
  .page {
    padding: 0 16px;
  }

  .header {
    padding-right: 0;
  }

  .brand {
    font-size: 21px;
  }

  .lang-switcher__btn {
    width: 38px;
    height: 36px;
    font-size: 14px;
  }

  .hero__title,
  html[data-lang="uz"] .hero__title,
  html[data-lang="uz-cyrl"] .hero__title {
    font-size: 32px;
    letter-spacing: -1.28px;
  }

  .hero__subtitle {
    font-size: 17px;
  }
}
