@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/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("/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("/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;
}

/* Iris — Saif oilasi uslubi (oltin + to'q ko'mir + krem), UI/UX yaxshilangan:
   aniq birlamchi/iklamchi tugma, xaritali manzil kartasi, mobil tezkor panel. */
:root {
  --gold: #edab18;
  --gold-deep: #c98f0b;
  --gold-tint: #fdf3dc;
  --ebony: #24231d;
  --ebony-soft: #3c3a31;
  --ebony-hover: #3d3b31;
  --cream: #fffaf0;
  --card: #ffffff;
  --line: #ece1cd;
  --ring: #f1e3c4;
  --text: #24231d;
  --text-muted: #665c4c;
  --shadow: 0 1px 2px rgba(36, 35, 29, .06), 0 6px 18px rgba(36, 35, 29, .05);

  --radius: 18px;
  --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(--cream);
  color: var(--text);
  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 naqsh: halqalar to'ri */
.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, .5) 32%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 32%, transparent 92%);
}

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

/* Til: ixcham segmented tugma */
.topbar { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(4px);
}
.lang {
  min-width: 48px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, color .15s ease;
}
.lang:hover { color: var(--text); }
.lang[aria-current="page"] { background: var(--ebony); color: #fff; }

/* Logotip: klinikaning o'z belgisi (Instagram logotipi) */
.brand { padding: 26px 0 26px; text-align: center; }
.brandmark { margin: 0; }
.brandmark img {
  width: min(46vw, 140px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ring), 0 8px 24px rgba(36, 35, 29, .1);
}
.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
@media (min-width: 768px) { .brandmark img { width: 160px; } }
.logo { width: min(72%, 300px); margin: 0 auto; line-height: 0; }
.logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.logo__eyes {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: blink .32s ease-in-out .9s 1;
}
.logo__ink { fill: var(--ebony); }
@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  45%, 55% { transform: scaleY(.08); }
}

.tagline {
  max-width: 24em;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}

/* Tugmalar: birlamchi (to'q) > iklamchi (ko'chirilgan) > yorliqli kartalar */
.actions { display: grid; gap: var(--gap); }

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 12px 54px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--ebony);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-wrap: balance;
  box-shadow: var(--shadow);
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:hover { background: var(--ebony-hover); }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn__icon { position: absolute; left: 19px; width: 24px; height: 24px; color: var(--gold); flex: none; }
.btn__icon--gold { color: var(--gold); }

/* iklamchi: huddi shu og'irlikda ko'rinmaydi — aniq «ichkarisi bo'sh» ko'rinish */
.btn--ghost {
  background: rgba(255, 255, 255, .74);
  border-color: var(--line);
  color: var(--ebony);
  box-shadow: none;
}
.btn--gold { background: var(--ebony); }

/* Bo'lim sarlavhasi */
.caption {
  margin: 18px 0 2px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
}
.phones {
  margin: 6px 0 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
}
.nw { white-space: nowrap; }
.phones a { color: var(--ebony); text-decoration: none; border-bottom: 2px solid var(--gold); }
.phones a:hover { color: var(--gold-deep); }

/* Kontakt kartalari: ikon + izoh (nega bosilishi aniq) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ebony);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(36, 35, 29, .09); }
.tile:active { transform: translateY(0); }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tile svg { width: 28px; height: 28px; color: var(--gold-deep); flex: none; }
.tile span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 359px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* Manzil kartasi: xarta + manzil + yo'lga chiqish */
.place {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.place__map {
  position: relative;
  height: clamp(280px, 78vw, 360px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--gold-tint);
}
.place__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.place__body { padding: 12px 4px 4px; }
.place__title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.place__note { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.place .btn { margin-top: 12px; width: 100%; }

/* Mobil tezkor panel: doim qo'ng'iroq/telegram qo'l ostida */
.quickbar { display: none; }
@media (max-width: 640px) {
  .page { padding-bottom: 96px; }
  .quickbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 250, 240, .94);
    backdrop-filter: blur(8px);
  }
  .quickbar .btn { min-height: 54px; padding: 0 8px 0 42px; font-size: 13px; letter-spacing: .04em; }
  .quickbar .btn__icon { left: 14px; width: 22px; height: 22px; }
}

/* Pastki qism */
.footer {
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 13px;
  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(--gold); outline-offset: 2px; border-radius: 4px; }
.footer p { margin: 6px 0 0; }

/* Yuklanishda yumshoq paydo bo'lish */
.reveal { animation: rise .4s ease backwards; }
.reveal--2 { animation-delay: .06s; }
.reveal--3 { animation-delay: .12s; }
.reveal--4 { animation-delay: .18s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 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: 40px; }
  .pattern { height: 560px; }
  .btn { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo__eyes { animation: none; }
  .reveal { animation: none; }
  .btn, .tile { transition: none; }
  .btn:active, .tile:active, .tile:hover { transform: none; }
}
