:root {
    --ink: #12313a;
    --muted: #60737a;
    --line: #d9ecef;
    --paper: #f7fbfb;
    --soft: #eaf7f6;
    --teal: #079896;
    --teal-dark: #0a515c;
    --aqua: #2ed3d0;
    --coral: #f27a64;
    --radius-lg: 28px;
    --radius-md: 22px;
    --shadow-soft: 0 24px 70px rgba(10, 81, 92, .12);
    --shadow-card: 0 18px 42px rgba(10, 81, 92, .10);
}

* { box-sizing: border-box; }
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 4%, rgba(46, 211, 208, .18), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(242, 122, 100, .12), transparent 24%),
        var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }

.topbar {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #12333a;
    color: #eef9f8;
    font-size: 14px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 max(16px, calc((100vw - 1180px) / 2));
    background: rgba(251, 252, 251, .94);
    border-bottom: 1px solid var(--line);
}

.brand, .nav-links, .langs, .actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand { min-width: 0; }
.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.nav-links { color: var(--muted); white-space: nowrap; }
.langs { border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: white; }
.langs a { padding: 8px 10px; font-size: 13px; }
.langs .active { background: var(--teal); color: white; }

.choice-hero,
.hero {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 38px;
    align-items: center;
    padding: 80px max(16px, calc((100vw - 1180px) / 2));
}

.choice-hero {
    background: var(--soft);
}

.choice-hero h1 {
    color: var(--ink);
}

.clinic-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.clinic-choice article,
.rating-card,
.review,
.callback {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.clinic-choice article {
    display: grid;
    gap: 10px;
    padding: 24px;
}

.clinic-choice h2 {
    margin: 0;
    font-size: 30px;
}

.text-link,
.phone {
    color: var(--teal-dark);
    font-weight: 800;
}

.hero {
    min-height: calc(100vh - 118px);
    color: white;
    background: #12333a;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
    overflow: hidden;
}
.hero-copy { max-width: 760px; }
.eyebrow, .kicker {
    color: #0b827e;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}
.hero .eyebrow { color: #ace1df; }
h1 {
    margin: 12px 0 18px;
    font-size: clamp(38px, 8vw, 90px);
    line-height: .95;
    overflow-wrap: anywhere;
}
h2 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.hero p, .lead { font-size: 18px; line-height: 1.65; }
.hero p { color: #e7f5f3; }
.lead, .card p, .doctor p, footer p { color: var(--muted); }

.rating-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #ace1df;
    font-weight: 800;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.rating-card {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: grid;
    gap: 4px;
    padding: 16px;
    color: var(--ink);
}

.rating-card strong {
    color: var(--teal-dark);
    font-size: 24px;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}
.primary { background: var(--coral); color: white; }
.secondary { background: white; color: var(--teal-dark); border: 1px solid var(--line); }

.trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 max(16px, calc((100vw - 1180px) / 2)) 24px;
    margin-top: 18px;
    position: relative;
    z-index: 2;
    border-bottom: 0;
}
.trust div {
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.trust strong { display: block; color: var(--teal-dark); font-size: 26px; }
.trust span { color: var(--muted); }

.section {
    padding: 78px max(16px, calc((100vw - 1180px) / 2));
}
.band { background: var(--soft); }
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}
.card, .doctor, .form, .locations article {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 230px;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(46, 211, 208, .13), transparent 46%);
    pointer-events: none;
}
.service-3d-icon {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    display: block;
    border-radius: 24px;
    background-image: url("images/dental-3d-icons.png");
    background-size: 300% 200%;
    box-shadow: 0 14px 26px rgba(10, 81, 92, .18);
}
.service-3d-icon-1 { background-position: 0% 0%; }
.service-3d-icon-2 { background-position: 50% 0%; }
.service-3d-icon-3 { background-position: 100% 0%; }
.service-3d-icon-4 { background-position: 0% 100%; }
.service-3d-icon-5 { background-position: 50% 100%; }
.service-3d-icon-6 { background-position: 100% 100%; }
.card h3,
.card p {
    position: relative;
    z-index: 1;
}

.doctors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.doctor {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.doctor img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    object-position: center top;
}
.doctor div { padding: 28px; }
.doctor h3 { font-size: 28px; margin: 8px 0 12px; }
.role { color: var(--teal-dark) !important; font-weight: 800; }
.doctor span {
    display: inline-block;
    margin: 4px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #edf7f6;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 700;
}

.gallery {
    columns: 3 260px;
    column-gap: 18px;
}
.gallery figure {
    position: relative;
    break-inside: avoid;
    margin: 0;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.gallery img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.gallery figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(18, 51, 58, .86);
    color: white;
    font-size: 14px;
    font-weight: 800;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.review {
    padding: 22px;
}

.review > p {
    color: var(--ink);
    line-height: 1.55;
}

.review div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review strong {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--soft);
    color: var(--teal-dark);
}

.review span,
.review small {
    display: block;
}

.review small {
    color: var(--muted);
}

.booking {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 54px;
}
.form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 28px;
}
.form label { display: grid; gap: 7px; font-weight: 700; }
.form input, .form select, .form textarea {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 12px;
}
.full { grid-column: 1 / -1; }
.status { min-height: 22px; color: var(--teal-dark); font-weight: 800; }

.callback {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding: 20px;
}

.callback a {
    color: var(--teal-dark);
    font-weight: 800;
}

.locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.locations article { padding: 24px; }
.todo { color: #a15b00 !important; }

footer {
    padding: 34px max(16px, calc((100vw - 1180px) / 2));
    background: #12333a;
    color: #d8eeec;
}
footer p { color: #9fc4c1; }
footer a { color: #d8eeec; }
footer nav,
.footer-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.footer-locations section {
    min-width: 220px;
}

@media (max-width: 1120px) {
    .nav {
        gap: 12px;
    }
    .nav-links {
        gap: 12px;
        font-size: 14px;
    }
    .cards,
    .reviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .doctors,
    .booking {
        grid-template-columns: 1fr;
    }
    .doctor {
        grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav {
        min-height: auto;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .brand {
        flex: 1 1 auto;
    }
    .langs {
        flex: 0 0 auto;
    }
    .choice-hero, .clinic-choice, .hero, .trust, .cards, .doctors, .doctor, .gallery, .booking, .form, .locations, .reviews {
        grid-template-columns: 1fr;
    }
    .choice-hero,
    .hero,
    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .hero {
        min-height: auto;
    }
    .hero-image img {
        max-height: 460px;
    }
    .doctor img {
        min-height: 340px;
        max-height: 460px;
    }
    .gallery { columns: 1; }
}

@media (max-width: 560px) {
    .topbar {
        gap: 8px 14px;
        font-size: 13px;
        text-align: center;
    }
    .nav {
        justify-content: center;
        padding-left: 12px;
        padding-right: 12px;
    }
    .brand {
        width: 100%;
        justify-content: center;
        font-size: 15px;
    }
    .brand img {
        width: 38px;
        height: 38px;
    }
    .langs a {
        padding: 8px 12px;
    }
    .choice-hero,
    .hero,
    .section {
        padding: 54px 12px;
    }
    h1 {
        font-size: clamp(36px, 14vw, 54px);
        line-height: 1;
    }
    h2 {
        font-size: clamp(28px, 10vw, 38px);
    }
    .hero p,
    .lead {
        font-size: 16px;
        line-height: 1.55;
    }
    .actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .btn {
        width: 100%;
        min-height: 46px;
    }
    .clinic-choice article,
    .card,
    .doctor div,
    .form,
    .locations article,
    .review,
    .callback {
        padding: 18px;
    }
    .clinic-choice h2,
    .doctor h3 {
        font-size: 24px;
    }
    .trust div {
        padding: 18px;
    }
    .trust strong {
        font-size: 22px;
    }
    .doctor img {
        min-height: 360px;
    }
    .gallery { columns: 1; }
    .form input,
    .form select,
    .form textarea {
        min-width: 0;
        width: 100%;
    }
    .footer-locations,
    footer nav {
        display: grid;
        grid-template-columns: 1fr;
    }
}
