@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brendbuk: Saif Optics / Руководство по фирменному стилю, 2026 */
:root {
  --turquoise: #00cff0; /* Bright Turquoise — asosiy, logotip */
  --cerulean: #00bce0;  /* Cerulean — hover, faol elementlar */
  --ebony: #2b3145;     /* Ebony Clay — fon, sarlavhalar */
  --ebony-soft: #3b4360;
  --ebony-hover: #363d56;
  --bali: #809eb1;      /* Bali Hai — matn, strelkalar (dekor) */
  --gold: #edab18;      /* Honeyed Gold — premium aksent */
  --sky: #eaf5ff;       /* brendbuk panellari foni */
  --ring: #d6ebfb;
  --logo-ink: #626262;
  --text-muted: #4d6879;
  --white: #ffffff;

  --radius: 16px;
  --gap: 12px;

  color-scheme: light;
}

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

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

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100svh;
  background: var(--sky);
  color: var(--ebony);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Brend grafikasi: halqalar to'ri (brendbuk, "Фирменная графика") */
.pattern {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 460px;
  background-image: radial-gradient(circle, transparent 7px, var(--ring) 7.5px 11.5px, transparent 12px);
  background-size: 36px 36px;
  background-position: center -6px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 30%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 30%, transparent 92%);
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

/* Tugmalar */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 52px;
  border-radius: var(--radius);
  background: var(--ebony);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-wrap: balance;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--ebony-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid var(--cerulean);
  outline-offset: 3px;
}

.btn__icon {
  position: absolute;
  left: 18px;
  width: 24px;
  height: 24px;
  color: var(--turquoise);
}

.btn__icon--gold {
  color: var(--gold);
}

.btn--soft {
  background: var(--ebony-soft);
}

.btn--soft:hover {
  background: #444d6c;
}

/* Til tanlash */
.langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.btn--lang {
  min-height: 52px;
  padding: 0;
  letter-spacing: 0.08em;
}

.btn--lang[aria-current="page"] {
  background: var(--white);
  color: var(--ebony);
  box-shadow: inset 0 0 0 2px var(--turquoise);
}

/* Logotip */
.brand {
  padding: 40px 0 32px;
  text-align: center;
}

.logo {
  width: min(76%, 300px);
  margin: 0 auto;
  line-height: 0;
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo__eyes {
  fill: var(--turquoise);
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 0.32s ease-in-out 0.9s 1;
}

.logo__ink {
  fill: var(--logo-ink);
}

@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  45%, 55% { transform: scaleY(0.08); }
}

.tagline {
  max-width: 22em;
  margin: 20px auto 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* Havolalar */
.actions {
  display: grid;
  gap: var(--gap);
}

.caption {
  margin: 16px 0 4px;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.btn--tile {
  min-height: 64px;
  padding: 0;
}

.btn--tile .btn__icon {
  position: static;
  width: 28px;
  height: 28px;
}

/* Pastki qism */
.footer {
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.footer a {
  color: var(--ebony);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer a:focus-visible {
  outline: 2px solid var(--cerulean);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer p {
  margin: 6px 0 0;
}

/* 404 */
.notfound {
  padding: 48px 0 0;
  text-align: center;
}

.notfound h1 {
  margin: 32px 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.notfound p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .page {
    padding-top: 48px;
  }

  .pattern {
    height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo__eyes {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
