/* public/css/style.css */

/* Shriftlar (saytning o'zida saqlanadi) */
@font-face {
  font-family: 'Inter Variable';
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat Variable';
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}

/* Asos */
:root {
  --navy: #0d2e6e;
  --deep: #081d49;
  --red: #b4121b;
  --gold: #f4b400;
  --ink: #16233f;
  --muted: #51607d;
  --mist: #eef3fa;
  --line: #d5dfee;
  --head: 'Montserrat Variable', system-ui, sans-serif;
  --body: 'Inter Variable', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font: 400 17px/1.65 var(--body); color: var(--ink); background: #fff; overflow-wrap: break-word; }
h1, h2, h3, .h { font-family: var(--head); line-height: 1.18; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.55rem); font-weight: 750; color: var(--navy); letter-spacing: -.015em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

/* Yuqori qism va menyu */
header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand b { display: block; font: 800 1.05rem/1.2 var(--head); color: var(--navy); }
.brand small { display: block; font-size: .8rem; color: var(--muted); }
nav { display: flex; align-items: center; gap: 24px; }
nav a { text-decoration: none; font-size: .94rem; font-weight: 550; }
nav a:hover { color: var(--red); }
a[aria-current="page"] { color: var(--red); font-weight: 700; }
.drop > button { display: flex; align-items: center; gap: 6px; padding: 10px 0; border: 0; background: none; font: 550 .94rem var(--body); color: var(--ink); cursor: pointer; }
.drop > button::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.drop > button[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 80px); overflow: auto; background: #fff; border-bottom: 3px solid var(--navy); box-shadow: 0 30px 40px -24px #081d4966; }
.mega .wrap { columns: 4 220px; column-gap: 40px; padding-block: 28px 12px; }
.mega .grp { break-inside: avoid; margin-bottom: 22px; }
.mega h3 { font-size: .95rem; color: var(--red); margin-bottom: 8px; }
nav .mega a { display: block; padding: 6px 0; font-weight: 500; }
nav .mega a.all { font-weight: 700; color: var(--navy); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-size: 1.4rem; cursor: pointer; }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 26px; border: 0; border-radius: 12px; font: 650 1rem var(--body); text-align: center; text-decoration: none; cursor: pointer; }
.btn svg { width: 20px; height: 20px; flex: none; }
.red { background: var(--red); color: #fff; }
.red:hover { background: #930d15; }
.ghost { border: 2px solid var(--navy); color: var(--navy); }
.ghost:hover { background: var(--mist); }

/* Bosh qism */
.hero { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 760px; height: 760px; right: -310px; top: -210px; border: 64px solid var(--gold); }
.hero::after { width: 540px; height: 540px; right: -200px; top: -100px; background: var(--navy); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: center; padding-block: 84px 92px; }
h1 { font-size: clamp(1.75rem, 4.6vw, 3.35rem); font-weight: 800; letter-spacing: -.025em; }
.hero .lead { max-width: 34em; margin: 24px 0 34px; font-size: 1.13rem; color: #cdd9f2; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .ghost { border-color: #7f96c8; color: #fff; }
.hero .ghost:hover { background: #ffffff14; }
.card { background: #fff; color: var(--ink); border-radius: 28px 28px 28px 4px; padding: 34px; box-shadow: 0 30px 60px -20px #000a; }
.card img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 22px; }
.card h2 { font-size: 1.55rem; }
.card p { margin-top: 10px; color: var(--muted); }
.card ul { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.card li a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 750 1.2rem var(--head); color: var(--navy); }
.card li a span { font: 600 .85rem var(--body); color: var(--red); }

/* Umumiy bo'limlar */
.block { padding-block: 88px; }
.head { max-width: 640px; margin-bottom: 44px; }
.head p { margin-top: 14px; color: var(--muted); }
.tint { background: var(--mist); }
.todo { background: #fff1c2; color: #5c4000; border-radius: 4px; padding: 0 4px; }

/* Xizmat kartalari */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-decoration: none; }
.tile:hover { border-color: var(--navy); box-shadow: 0 14px 30px -16px #081d4955; }
.tile img { width: 100%; background: var(--mist); }
.tile div { padding: 18px 20px 22px; }
.tile h3 { margin-bottom: 8px; font-size: 1.08rem; color: var(--navy); }
.tile p { font-size: .92rem; line-height: 1.5; color: var(--muted); }
.also { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 26px 32px; border-radius: 16px; background: var(--navy); color: #fff; }
.also p { max-width: 36em; font-weight: 550; font-size: 1.08rem; }
.also .btn { background: var(--gold); color: var(--deep); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chips button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: 600 .9rem var(--body); color: var(--ink); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.group { margin-bottom: 52px; }
.group h2 { margin-bottom: 22px; font-size: 1.5rem; }

/* Shifokor va afzalliklar */
.doctor { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.doctor .role { margin-top: 16px; font: 700 1.15rem var(--head); color: var(--red); }
.doctor .text { max-width: 32em; margin-top: 20px; color: var(--muted); }
.doctor .btn { margin-top: 30px; }
.why { list-style: none; padding: 10px 32px; border-radius: 20px; background: #fff; }
.why li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 20px 0; }
.why li + li { border-top: 1px solid var(--line); }
.why b { display: block; font-weight: 650; }
.why span.d { display: block; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mist); color: var(--navy); }
.ico svg { width: 26px; height: 26px; }

/* Ogohlantirish */
.alert { padding-block: 60px; background: var(--red); color: #fff; }
.alert .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.alert h2 { margin-bottom: 14px; color: #fff; }
.alert p { max-width: 38em; }
.alert .btn { background: #fff; color: var(--red); }

/* Qabul formasi */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.booking .num { display: block; font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.6 var(--head); color: var(--navy); text-decoration: none; white-space: nowrap; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form input, .form select { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #9fb0cf; border-radius: 10px; background: #fff; font: 400 1rem var(--body); color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form small { color: var(--muted); }
.form .btn:disabled { opacity: .65; cursor: wait; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-status:empty { display: none; }
.form-status { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-status.success { background: #e5f6ea; color: #155c2c; }
.form-status.error { background: #fdeaea; color: #8d1017; }

/* Xizmat sahifasi */
.phead { padding-block: 44px 52px; background: var(--deep); color: #fff; }
.phead h1 { max-width: 20em; font-size: clamp(1.7rem, 4vw, 2.9rem); }
.phead .lead { max-width: 42em; margin-top: 16px; font-size: 1.08rem; color: #cdd9f2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .88rem; color: #b9c8e8; }
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-block: 52px 72px; }
figure img { width: 100%; max-width: 640px; }
.legend { max-width: 640px; margin-top: 18px; list-style: none; counter-reset: n; }
.legend li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); counter-increment: n; }
.legend li::before { content: counter(n); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; }
figcaption { margin-top: 10px; font-size: .84rem; color: var(--muted); }
.info { margin-top: 40px; }
.info h2 { margin-bottom: 14px; font-size: 1.4rem; }
.info ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.info li { position: relative; padding: 14px 16px 14px 40px; border-radius: 12px; background: var(--mist); line-height: 1.5; }
.info li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.warn { margin-top: 40px; padding: 24px; border: 2px solid var(--red); border-radius: 16px; background: #fff5f5; }
.warn h2 { margin-bottom: 8px; font-size: 1.25rem; color: var(--red); }
.note { margin-top: 22px; font-size: .88rem; color: var(--muted); }
.side { position: sticky; top: 100px; display: grid; gap: 20px; }
.callbox { padding: 24px; border-radius: 18px; background: var(--navy); color: #fff; }
.callbox a { display: block; font: 750 1.15rem/2 var(--head); text-decoration: none; }
.callbox .btn { display: flex; margin-top: 12px; line-height: 1.5; background: var(--gold); color: var(--deep); font: 650 1rem var(--body); }
.list { padding: 20px 24px; border: 1px solid var(--line); border-radius: 18px; }
.list h3 { margin-bottom: 8px; font-size: 1rem; color: var(--navy); }
.list a { display: block; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; text-decoration: none; }
.list a:hover { color: var(--red); }

/* Pastki qism */
footer { padding-block: 56px 36px; background: var(--deep); color: #b9c8e8; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
footer .h { margin-bottom: 16px; font-weight: 750; font-size: 1.25rem; color: #fff; }
footer dt { margin-top: 14px; font-weight: 700; color: #fff; }
footer address { font-style: normal; }
footer dd a { display: block; width: fit-content; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 16px; background: var(--navy); }
.map p { margin-top: 10px; font-size: .85rem; }
.disclaimer { margin-top: 36px; padding-top: 20px; border-top: 1px solid #ffffff2b; }
.mcall { display: none; }

/* 404 va javob sahifalari */
.message-page { width: min(640px, 100% - 40px); margin: 0 auto; padding: 96px 0; text-align: center; }
.message-page h1 { color: var(--navy); }
.message-page p { margin: 18px 0 28px; }

/* Moslashuv */
@media (max-width: 1100px) {
  .burger { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 76px); overflow: auto; padding: 8px 20px 20px; background: #fff; border-bottom: 3px solid var(--navy); }
  nav.open { display: flex; }
  nav > a, .drop > button { padding: 12px 0; font-size: 1rem; }
  .mega { position: static; max-height: none; border: 0; box-shadow: none; }
  .mega .wrap { columns: 2 220px; width: 100%; padding-block: 8px; }
  .page { grid-template-columns: 1fr; }
  .side { position: static; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap, .doctor, .booking, .foot { grid-template-columns: 1fr; }
  .hero .wrap { gap: 40px; padding-block: 48px 56px; }
  .hero::before { width: 520px; height: 520px; border-width: 44px; top: auto; right: -330px; bottom: -250px; }
  .hero::after { display: none; }
  .block { padding-block: 60px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 80px; }
  .bar { gap: 10px; min-height: 68px; }
  .bar > .btn { display: none; }
  .brand img { width: 42px; height: 42px; }
  .brand b { font-size: .95rem; }
  .brand small { font-size: .72rem; }
  .grid, .info ul, .form { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .card, .form { padding: 22px; }
  .why { padding: 6px 18px; }
  .page { gap: 36px; padding-block: 32px 48px; }
  .mcall { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; box-shadow: 0 10px 30px #0006; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
