@font-face {
  font-family: Onest;
  src: url("/assets/onest-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url("/assets/onest-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url("/assets/onest-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #19191b;
  --muted: #595b61;
  --rule: #e9e9eb;
  --edge: clamp(1rem, 5vw, 4.5rem);
  --badge-gap: .75rem;
  --badge-height: 3rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font: 400 1rem/1.5 Onest, system-ui, sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid #a94f08; outline-offset: 3px; }
.shell { width: min(73rem, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.site-header {
  min-height: clamp(3.5rem, 9svh, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.brand {
  display: grid;
  /* Scale the cube, spacer, and wordmark from the Flutter splash together. */
  grid-template-columns: minmax(0, 81.2fr) minmax(0, 145.26455fr);
  column-gap: calc(100% * 5.4 / 231.86455);
  align-items: center;
  width: clamp(7.25rem, 12vw, 9rem);
  flex: none;
  border-radius: .35rem;
}
.brand img { display: block; width: 100%; height: auto; }
.languages {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  background: #fff;
}
.languages a {
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  min-height: 2rem;
  padding-inline: .25rem;
  border-radius: 2rem;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
}
.languages a:hover { color: var(--text); background: #f6f6f7; }
.languages a[aria-current] { color: var(--text); background: #f0f0f2; }

.home {
  min-height: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 6vw, 5rem);
  min-height: 0;
  padding-block: clamp(.5rem, 2.2svh, 1.5rem);
}
.hero-copy { min-width: 0; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.9vw, 5.375rem);
  line-height: 1.025;
  letter-spacing: -.066em;
  font-weight: 600;
  text-wrap: balance;
}
html[lang="ru"] .hero h1 { font-size: clamp(2.35rem, 4.85vw, 4.6rem); }
.hero h1 span { display: block; }
.hero-lead {
  max-width: 28ch;
  margin: 1.35rem 0 0;
  color: #3d3e43;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  text-wrap: pretty;
}
.hero-local-data { margin: .55rem 0 0; color: var(--muted); font-size: .9375rem; }
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--badge-gap);
  margin-top: 1.6rem;
}
.store-link {
  display: block;
  flex: none;
  border-radius: .55rem;
  transition: opacity .15s ease;
}
.store-link:hover { opacity: .78; }
.store-link img { display: block; width: auto; height: var(--badge-height); }
.store-status { margin: .5rem 0 0; color: var(--muted); font-size: .8125rem; }
.phone-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
}
.phone-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7% 0;
  background: radial-gradient(ellipse at center, #ffdec780, #fff5ef52 44%, transparent 72%);
}
.phone {
  display: block;
  width: min(100%, 23rem);
  height: min(100%, 38rem);
  object-fit: contain;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  border-top: 1px solid var(--rule);
  padding-block: .55rem;
  color: var(--muted);
  font-size: .8125rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.6rem, 2vw, 1.5rem); }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.domain { white-space: nowrap; }

.legal main { flex: 1; }
.document { margin: clamp(1.5rem, 6vh, 4rem) auto 4rem; max-width: 45rem; line-height: 1.65; }
.document h1, .document h2 { font-weight: 600; }
.document h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 4.6vw, 3.25rem); line-height: 1.1; letter-spacing: -.045em; }
.document h2 { margin: 1.8rem 0 .4rem; font-size: clamp(1.125rem, 3vw, 1.45rem); line-height: 1.3; }
.document p { margin: .65rem 0; color: #44454a; overflow-wrap: anywhere; }
.document a { color: #914002; text-underline-offset: .2em; }
.document strong { font-weight: 600; }
.document .email-address { color: var(--text); }
.document .contact-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-block: .25rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.document .contact-button:hover { background: #38383c; }

@media (max-width: 48rem) and (orientation: portrait), (max-width: 30rem) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    justify-items: center;
    gap: clamp(.5rem, 1.65svh, 1.25rem);
    padding-block: clamp(.7rem, 3svh, 1.7rem) .45rem;
  }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(2.1rem, min(9.7vw, 7.2svh), 4.6rem); }
  html[lang="ru"] .hero h1 { font-size: clamp(1.9rem, min(8.7vw, 6.6svh), 4.35rem); }
  .hero-lead { max-width: 36ch; margin: .75rem auto 0; }
  .hero-local-data { margin-top: .3rem; }
  .stores { justify-content: center; margin-top: .95rem; }
  .phone-stage { width: min(100%, 29rem); }
  .phone { width: min(100%, 18rem); height: min(100%, 33rem); }
  .site-footer { flex-wrap: wrap; justify-content: center; padding-block: .35rem; }
  .site-footer nav { justify-content: center; }
  .site-footer a { min-height: 1.75rem; }
}
@media (max-width: 37.5rem) {
  :root {
    --badge-height: min(2.875rem, calc((100vw - 2 * var(--edge) - var(--badge-gap)) / 6.37));
  }
}
@media (max-height: 37.5rem) {
  .site-header { min-height: 3rem; }
  .hero h1 { font-size: clamp(1.7rem, min(5.8vw, 8svh), 3.7rem); }
  html[lang="ru"] .hero h1 { font-size: clamp(1.55rem, min(5.3vw, 7.5svh), 3.45rem); }
  .hero-lead { margin-top: .6rem; font-size: 1rem; }
  .hero-local-data { margin-top: .2rem; font-size: .875rem; }
  .stores { margin-top: .75rem; }
  .store-status { margin-top: .3rem; }
  .site-footer { padding-block: .25rem; }
  .site-footer a { min-height: 1.75rem; }
}
@media (max-height: 26rem) and (min-width: 30.01rem) {
  .hero { gap: clamp(.5rem, 3vw, 2.5rem); }
  .hero h1 { font-size: clamp(1.7rem, 6.7svh, 2.75rem); }
  html[lang="ru"] .hero h1 { font-size: clamp(1.55rem, 6.35svh, 2.5rem); }
  .phone { width: min(100%, 14rem); }
}
@media (max-height: 21rem) {
  .site-header { min-height: 2.55rem; }
  .brand { width: 6.25rem; }
  .hero { padding-block: .25rem; }
  .hero-lead { margin-top: .35rem; }
  .stores { margin-top: .45rem; }
  .site-footer { row-gap: 0; padding-block: 0; }
  .site-footer a { min-height: 1.45rem; }
}
@media (max-height: 18rem) and (max-width: 30rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .44fr);
    grid-template-rows: minmax(0, 1fr);
    gap: .5rem;
  }
  .hero-copy { text-align: start; justify-self: start; }
  .hero h1, html[lang="ru"] .hero h1 { font-size: clamp(1rem, 6.15vw, 1.5rem); }
  .hero-lead { font-size: .8125rem; line-height: 1.25; }
  .hero-local-data, .store-status { font-size: .75rem; line-height: 1.25; }
  .stores {
    --badge-height: clamp(1.25rem, 8vw, 1.75rem);
    --badge-gap: .375rem;
    justify-content: start;
    margin-top: .35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-link { transition: none; }
}
