/* Dentaliya — site styles. Mobile first; no frameworks. */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-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: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-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;
}

:root {
    /* Brand palette */
    --bg: #F1F8F7;
    --ink: #0F3B3A;
    --accent: #178A75;
    --soft: #D3ECE7;
    --on: #FFFFFF;

    /* Derived tones (accent-strong keeps small text and buttons above WCAG AA contrast) */
    --accent-strong: #11735F;
    --muted: #4A6B69;
    --line: #DCEBE8;
    --soft-2: #E6F4F1;
    --star: #E2A23B;
    --danger: #B42318;

    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --shadow: 0 18px 40px -24px rgba(15, 59, 58, .28), 0 2px 6px rgba(15, 59, 58, .04);
    --shadow-lg: 0 30px 60px -30px rgba(15, 59, 58, .35), 0 4px 12px rgba(15, 59, 58, .05);

    --container: 1200px;
    --gutter: 20px;
    --header-h: 68px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 72px; /* room for the mobile action bar */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.18; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.05rem, 6.2vw, 3.6rem); letter-spacing: -.03em; }
h2, .h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }
.h4 { font-size: 1.1rem; }
.h5 { font-size: .95rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 60ch; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on); padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; color: var(--on); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 48px; padding: .7em 1.4em;
    border: 1px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); color: var(--on); box-shadow: 0 10px 24px -12px rgba(17, 115, 95, .8); }
.btn-primary:hover { background: var(--ink); color: var(--on); }
.btn-ghost { background: var(--on); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .85em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; color: var(--accent-strong); white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(241, 248, 247, .88);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 59, 58, .35); }
.header-bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: none; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--on); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--accent-strong); }
.lang-switch .is-active { background: var(--soft); color: var(--ink); }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--ink); color: var(--on); border: 0; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close, .is-nav-open .nav-toggle .icon-open { display: none; }
.is-nav-open .nav-toggle .icon-close { display: block; }

.main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
}
.is-nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
.main-nav ul { list-style: none; display: grid; gap: 4px; }
.main-nav ul a {
    display: flex; align-items: center; min-height: 52px; padding: 0 18px;
    border-radius: 18px; font-weight: 650; font-size: 1.1rem; text-decoration: none; color: var(--ink);
}
.main-nav ul a:hover, .main-nav ul a[aria-current] { background: var(--on); color: var(--accent-strong); }
.nav-extra { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.nav-phone { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 18px; font-weight: 700; text-decoration: none; color: var(--ink); }

/* ---------- Sections & grid ---------- */

.section { padding-block: clamp(56px, 9vw, 104px); }
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.section-soft { background: var(--on); border-radius: var(--radius-xl); margin-inline: 8px; }
.section-soft .card { background: var(--bg); box-shadow: none; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin-bottom: .25em; }
.section-head p { color: var(--muted); max-width: 62ch; margin: 0; }

.grid { display: grid; gap: 18px; }
.card {
    position: relative;
    background: var(--on);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.icon-badge {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--soft); color: var(--accent-strong);
}
.icon-badge .icon { width: 28px; height: 28px; stroke-width: 1.4; }
.icon-badge-sm { width: 42px; height: 42px; }
.icon-badge-sm .icon { width: 22px; height: 22px; }
.icon-badge-lg { width: 84px; height: 84px; }
.icon-badge-lg .icon { width: 40px; height: 40px; }

.chip { display: inline-flex; align-items: center; gap: .4em; margin: 0; padding: .35em .85em; border-radius: 999px; background: var(--soft-2); color: var(--accent-strong); font-size: .82rem; font-weight: 700; }
.chip .icon { width: 1.1em; height: 1.1em; }

.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched { text-decoration: none; color: inherit; }
.stretched:hover { color: var(--accent-strong); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(24px, 5vw, 64px) clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5em; margin-bottom: 18px;
    padding: .45em 1em .45em .75em; border-radius: 999px;
    background: var(--on); border: 1px solid var(--line);
    font-size: .85rem; font-weight: 700; color: var(--accent-strong);
}
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 220px; }

.hero-visual { position: relative; width: min(100%, 460px); margin-inline: auto; padding: 18px 26px 28px; }
.hero-blob {
    position: absolute; inset: 6% -4% 0 10%;
    border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
    background: radial-gradient(120% 90% at 30% 20%, var(--on) 0%, var(--soft) 55%, #BFE3DB 100%);
}
.hero-oval {
    position: relative; aspect-ratio: 4 / 5; border-radius: 50%; overflow: hidden;
    background: var(--soft);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .7), var(--shadow-lg);
}
.hero-oval img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 20px; background: var(--on); box-shadow: var(--shadow-lg);
    font-size: .85rem; line-height: 1.3; max-width: 210px;
}
.float-card-rating { left: 0; bottom: 18%; flex-direction: column; align-items: flex-start; gap: 2px; }
.float-card-exp { right: 0; top: 12%; }
.float-value { display: inline-flex; align-items: center; gap: .25em; font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.float-value .icon { color: var(--star); fill: var(--star); stroke: var(--star); width: .9em; height: .9em; }
.float-label { display: block; color: var(--muted); font-weight: 600; }

/* ---------- Services ---------- */

.service-card { display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card h3 { margin: 4px 0 0; }
.service-card p { color: var(--muted); margin: 0; }
.service-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line); padding-right: 52px; }
.service-meta div { display: grid; }
.service-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.service-meta dd { margin: 0; font-weight: 700; }
.price { color: var(--accent-strong); font-weight: 800; white-space: nowrap; }
.card-arrow {
    position: absolute; right: 22px; bottom: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-strong);
    transition: background-color .2s, color .2s, transform .2s;
}
.service-card:hover .card-arrow { background: var(--accent-strong); color: var(--on); border-color: transparent; transform: rotate(-45deg); }

/* ---------- Doctors ---------- */

.doctor-card { text-align: center; padding: 24px 20px 26px; transition: transform .25s, box-shadow .25s; }
.doctor-card:hover { transform: translateY(-4px); }
.doctor-photo { width: min(200px, 70%); aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 6px var(--on), 0 0 0 7px var(--line); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor-card h3, .doctor-card .h3 { margin-bottom: 2px; font-size: 1.15rem; }
.doctor-specialty { color: var(--accent-strong); font-weight: 650; margin-bottom: 12px; }
.doctor-card .muted { font-size: .92rem; }

/* ---------- Why us ---------- */

.why-grid { display: grid; gap: 28px; }
.why-intro p { color: var(--muted); }
.why-list { list-style: none; display: grid; gap: 16px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--on); box-shadow: var(--shadow); }
.why-item h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Before / after ---------- */

.compare-card { padding: 12px 12px 20px; }
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 8px); overflow: hidden; background: var(--soft); user-select: none; touch-action: pan-y; }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--on); pointer-events: none; }
.compare-handle::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border-radius: 50%; background: var(--on) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311735F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
    box-shadow: var(--shadow-lg);
}
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible ~ .compare-handle::after, .compare:focus-within .compare-handle::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.compare-tag { position: absolute; top: 12px; padding: .25em .75em; border-radius: 999px; background: rgba(15, 59, 58, .78); color: var(--on); font-size: .78rem; font-weight: 700; pointer-events: none; }
.compare-tag-before { left: 12px; }
.compare-tag-after { right: 12px; background: var(--accent-strong); }
.compare-card figcaption { display: grid; gap: 4px; padding: 16px 10px 0; }
.compare-card figcaption span { color: var(--muted); font-size: .92rem; }

/* ---------- Reviews ---------- */

.review-card { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.review-card blockquote { margin: 0; }
.review-card blockquote p { margin: 0; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-card figcaption strong { display: block; }
.review-card figcaption small { display: block; color: var(--muted); font-size: .85rem; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--accent-strong); font-weight: 800; flex: none; }
.stars { display: inline-flex; gap: 2px; }
.stars .icon { width: 18px; height: 18px; color: #C9D8D5; }
.stars .icon.is-on { color: var(--star); fill: var(--star); }

.masonry { columns: 1; column-gap: 18px; }
.masonry > * { break-inside: avoid; margin-bottom: 18px; }
.rating-summary { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; max-width: 520px; }
.rating-summary p { margin: 4px 0 0; }
.rating-big { font-size: 3.2rem; font-weight: 800; line-height: 1; color: var(--accent-strong); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-sm); background: var(--bg); padding: 0 22px; transition: background-color .2s; }
.faq-item[open] { background: var(--soft-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 22px; height: 22px; color: var(--accent-strong); transition: transform .25s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding-bottom: 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Booking ---------- */

.booking-card { display: grid; gap: 0; background: var(--on); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.booking-intro { padding: 30px 24px; background: var(--ink); color: var(--on); position: relative; overflow: hidden; }
.booking-intro::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(23, 138, 117, .55), transparent 70%); pointer-events: none; }
.booking-intro h2 { color: var(--on); }
.booking-intro p { color: #CFE6E1; }
.booking-intro .contact-list a, .booking-intro .contact-list span { color: var(--on); }
.booking-intro .contact-list .icon { color: #8FD3C3; }
.booking-form { padding: 26px 22px 30px; }

.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: .2em; color: var(--accent-strong); }
.contact-list a { text-decoration: none; font-weight: 650; }

.form-grid { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.field label span { color: var(--accent-strong); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 12px 16px;
    font: inherit; font-size: 1rem; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3B3A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E8987; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--on); box-shadow: 0 0 0 4px rgba(23, 138, 117, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF7F6; }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .85rem; font-weight: 600; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: grid; gap: 12px; margin-top: 22px; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }
.form-alert { margin-bottom: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: #FFF1EF; color: var(--danger); font-size: .9rem; }
.form-alert ul { margin: 6px 0 0 18px; }

/* ---------- Inner pages ---------- */

.page-hero { position: relative; padding-block: clamp(28px, 5vw, 56px) clamp(8px, 2vw, 16px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, var(--soft), transparent 70%); pointer-events: none; }
.page-hero .container { position: relative; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 10px; color: #A7C2BE; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 22ch; }

.detail-grid, .profile-grid { display: grid; gap: 28px; align-items: start; }
.detail-image { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1em; }
.detail-main h2, .profile-main h2 { margin-top: 36px; margin-bottom: 16px; }
.summary-card { display: grid; gap: 16px; }
.summary-card dl { display: grid; gap: 12px; margin: 0; }
.summary-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; font-weight: 700; text-align: right; }
.summary-card h2 { margin: 6px 0 0; }

.steps { list-style: none; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--on); box-shadow: var(--shadow); font-weight: 600; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--soft); color: var(--accent-strong); font-weight: 800; }

.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.price-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.price-table th { padding: 0 0 10px; text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.price-table th:last-child, .price-table td:last-child { text-align: right; padding-left: 16px; }
.price-table td { padding: 14px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table small { display: block; color: var(--muted); font-size: .85rem; }

.prices-layout { display: grid; gap: 24px; }
.price-nav ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.price-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--on); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; font-size: .9rem; white-space: nowrap; }
.price-nav a:hover { border-color: var(--accent); color: var(--accent-strong); }
.price-groups { display: grid; gap: 18px; }
.price-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 14px; }
.price-group-head h2 { margin: 0; }

.profile-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); margin-bottom: 18px; max-width: 420px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.schedule { width: 100%; border-collapse: collapse; font-size: .95rem; }
.schedule th { text-align: left; font-weight: 600; padding: 7px 0; }
.schedule td { text-align: right; font-weight: 700; padding: 7px 0; }
.schedule tr + tr th, .schedule tr + tr td { border-top: 1px dashed var(--line); }
.schedule .is-off td, .schedule .is-off th { color: var(--muted); font-weight: 500; }
.check-list, .cert-list { list-style: none; display: grid; gap: 10px; }
.check-list li, .cert-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon, .cert-list .icon { margin-top: .2em; color: var(--accent-strong); }
.cert-list li { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--on); box-shadow: var(--shadow); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--on); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; }
.tag-list a:hover { border-color: var(--accent); color: var(--accent-strong); }
.tag-list .icon { color: var(--accent-strong); }

.contact-grid { display: grid; gap: 18px; }
.contact-cards { list-style: none; display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; min-width: 0; }
.contact-card > div { min-width: 0; overflow-wrap: anywhere; }
.contact-grid > *, .footer-grid > * { min-width: 0; }
.contact-list li { overflow-wrap: anywhere; }
.contact-card h2 { margin: 0 0 2px; color: var(--muted); font-weight: 700; }
.contact-card a, .contact-card p { margin: 0; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.contact-card a:hover { color: var(--accent-strong); }
.map-card { padding: 10px; display: grid; gap: 10px; }
.map-card iframe { width: 100%; height: 360px; border: 0; border-radius: calc(var(--radius) - 8px); background: var(--soft); }
.map-link { justify-self: start; }

.thanks { min-height: 50vh; display: flex; align-items: center; }
.thanks-card { max-width: 640px; margin-inline: auto; text-align: center; padding: clamp(32px, 6vw, 56px); display: grid; justify-items: center; gap: 8px; }
.thanks-card .lead { margin-inline: auto; }
.thanks-card .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--on); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding-top: clamp(40px, 6vw, 64px); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { color: var(--muted); margin: 16px 0; max-width: 34ch; }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col ul:not(.contact-list) a { display: inline-flex; min-height: 34px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; }
.footer-col a:hover { color: var(--accent-strong); }
.social { list-style: none; display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--ink); }
.social a:hover { background: var(--accent-strong); color: var(--on); }
.footer-bottom { margin-top: 36px; padding-block: 22px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- Mobile action bar ---------- */

.mobile-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
}
.mobile-action { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; border-radius: 16px; background: var(--bg); color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.mobile-action-wa { background: #E3F5EE; color: #0B5E45; }
.mobile-action-book { background: var(--accent-strong); color: var(--on); }
.mobile-action:hover { color: inherit; }
.mobile-action-book:hover { color: var(--on); background: var(--ink); }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
    :root { --gutter: 28px; }
    .grid-3, .grid-4, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry { columns: 2; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field-wide { grid-column: 1 / -1; }
    .form-footer { grid-template-columns: auto 1fr; align-items: center; }
    .hero-actions .btn { flex: 0 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .why-list { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .section-soft { margin-inline: 16px; }
}

@media (min-width: 960px) {
    :root { --header-h: 84px; }
    body { padding-bottom: 0; }
    .mobile-actions { display: none; }

    .nav-toggle { display: none; }
    .header-cta { display: inline-flex; }
    .brand img { height: 40px; }
    .main-nav {
        position: static; max-height: none; overflow: visible; padding: 0; margin-inline: auto;
        background: none; box-shadow: none; border-radius: 0;
        transform: none; opacity: 1; visibility: visible;
    }
    .main-nav ul { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: var(--on); border: 1px solid var(--line); }
    .main-nav ul a { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: .92rem; }
    .main-nav ul a:hover, .main-nav ul a[aria-current] { background: var(--soft); color: var(--ink); }
    .nav-extra { display: none; }
    .header-actions { margin-left: 0; }

    .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
    .hero-visual { width: 100%; max-width: 500px; margin-right: 0; padding: 20px 40px 40px; }
    .float-card-rating { left: -6px; }
    .float-card-exp { right: -4px; }

    .grid { gap: 24px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .doctors-grid { grid-template-columns: repeat(3, 1fr); }
    .masonry { columns: 3; column-gap: 24px; }
    .masonry > * { margin-bottom: 24px; }
    .card { padding: 30px; }
    .doctor-card { padding: 28px 22px 30px; }

    .why-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
    .why-intro { position: sticky; top: calc(var(--header-h) + 24px); }
    .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }

    .booking-card { grid-template-columns: .85fr 1.15fr; }
    .booking-intro { padding: 44px 40px; }
    .booking-form { padding: 40px 44px 44px; }

    .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
    .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
    .profile-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 56px; }
    .profile-aside { position: sticky; top: calc(var(--header-h) + 24px); }
    .profile-main h2:first-of-type { margin-top: 12px; }

    .prices-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
    .price-nav { position: sticky; top: calc(var(--header-h) + 24px); }
    .price-nav ul { flex-direction: column; overflow: visible; }
    .price-nav a { width: 100%; white-space: normal; padding-block: 8px; border-radius: 16px; }

    .contact-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
    .contact-cards { grid-template-columns: 1fr; }
    .map-card iframe { height: 460px; }

    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
    .section-soft { margin-inline: 24px; }
}

@media (min-width: 1200px) {
    .main-nav ul a { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
