/* =========================================================
   Dr Belfellah Zakaria — cabinet dentaire, Agadir
   Palette : bleu ciel, porcelaine, encre marine
   ========================================================= */

:root {
    --snow: #F7FBFE;
    --white: #FFFFFF;
    --mist: #E7F4FC;
    --mist-deep: #D3EBFA;
    --azure: #1E9BE0;
    --azure-deep: #0B6EA8;
    --azure-dark: #075C8E;
    --aqua: #A5E2FA;
    --ink: #082A3F;
    --ink-soft: #4A6578;
    --line: rgba(8, 42, 63, 0.12);
    --line-strong: rgba(8, 42, 63, 0.22);
    --sand: #E9B56C;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --shell: 1200px;
    --gutter: clamp(20px, 4.5vw, 40px);
    --shadow-sm: 0 18px 40px -28px rgba(8, 42, 63, 0.42);
    --shadow: 0 34px 70px -38px rgba(8, 42, 63, 0.5);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--snow);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--aqua);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(30, 155, 224, 0.55);
    outline-offset: 3px;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

.shell {
    width: min(calc(100% - 2 * var(--gutter)), var(--shell));
    margin-inline: auto;
}

.section {
    padding-block: clamp(76px, 9vw, 124px);
}

.section--mist {
    background: var(--mist);
}

.section--dark {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.76);
}

.section-title {
    font-size: clamp(2.1rem, 3.8vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.022em;
}

.lead {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.75;
    color: var(--ink-soft);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--azure-deep);
}

.kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--azure);
    flex: none;
}

.kicker--light {
    color: var(--aqua);
}

.kicker--light::before {
    background: var(--aqua);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 3000;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn .icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s var(--ease);
}

.btn:hover .icon:last-child {
    transform: translateX(3px);
}

.btn--primary {
    background: var(--azure-deep);
    color: #fff;
    box-shadow: 0 16px 28px -18px rgba(11, 110, 168, 0.7);
}

.btn--primary:hover {
    background: var(--azure-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 32px -18px rgba(11, 110, 168, 0.75);
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn--ghost:hover {
    background: #fff;
    border-color: var(--azure);
    color: var(--azure-deep);
    transform: translateY(-2px);
}

.btn--light {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.4);
}

.btn--light:hover {
    background: var(--mist);
    transform: translateY(-2px);
}

.btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    background: transparent;
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--ink);
}

.btn--outline:hover {
    background: var(--mist);
    border-color: var(--azure);
    color: var(--azure-deep);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(11, 110, 168, 0.32);
    color: var(--azure-deep);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.text-link .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.25s var(--ease);
}

.text-link:hover {
    color: var(--azure-dark);
    border-color: var(--azure-dark);
}

.text-link:hover .icon {
    transform: translateX(3px);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--mist);
    color: var(--azure-deep);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.section--dark .tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(247, 251, 254, 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background 0.3s, -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s;
    pointer-events: none;
}

.site-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 18px 40px -34px rgba(8, 42, 63, 0.55);
}

.site-header.is-stuck::before {
    background: rgba(247, 251, 254, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
    min-height: 90px;
}

.brand {
    position: relative;
    z-index: 1002;
    justify-self: start;
    display: inline-flex;
    align-items: center;
}

.brand__logo {
    width: auto;
    height: 46px;
}

.nav {
    justify-self: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    border: 1px solid rgba(8, 42, 63, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 34px -30px rgba(8, 42, 63, 0.5);
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.22s var(--ease), color 0.22s, box-shadow 0.22s;
}

.nav__link:hover {
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
}

.nav__link.is-active {
    background: var(--white);
    color: var(--azure-deep);
    box-shadow: 0 8px 18px -14px rgba(8, 42, 63, 0.55);
}

.nav__arrow {
    display: none;
}

.header__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 12px;
}

.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
}

.header__phone-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--azure-deep);
    transition: background 0.2s, border-color 0.2s;
}

.header__phone-icon .icon {
    width: 17px;
    height: 17px;
}

.header__phone-text {
    display: grid;
    gap: 1px;
    padding-right: 8px;
}

.header__phone-text small {
    color: var(--ink-soft);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.header__phone-text strong {
    color: var(--ink);
    font-size: 0.81rem;
    line-height: 1.3;
    white-space: nowrap;
}

.header__phone:hover .header__phone-icon {
    border-color: rgba(30, 155, 224, 0.4);
    background: var(--mist);
}

.header__cta {
    flex: none;
    min-height: 46px;
    padding-inline: 20px;
    font-size: 0.86rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--white);
    position: relative;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.8px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.8px) rotate(-45deg);
}

.nav__aside {
    display: none;
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(32px, 5.5vw, 66px) clamp(92px, 10vw, 132px);
    background:
        radial-gradient(70% 72% at 80% 22%, rgba(151, 218, 247, 0.26), rgba(151, 218, 247, 0) 70%),
        linear-gradient(180deg, #FBFEFF 0%, var(--snow) 74%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}

.hero__orb--one {
    top: -260px;
    right: -100px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(109, 201, 245, 0.5), rgba(109, 201, 245, 0) 70%);
    animation: drift 22s ease-in-out infinite alternate;
}

.hero__orb--two {
    bottom: -240px;
    left: -160px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(30, 155, 224, 0.26), rgba(30, 155, 224, 0) 70%);
    animation: drift 27s ease-in-out infinite alternate-reverse;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: clamp(40px, 6vw, 84px);
    min-height: clamp(560px, 72vh, 690px);
}

.hero__copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero__kicker {
    animation: heroFade 0.8s 0.1s var(--ease) both;
}

.hero__title {
    margin: 22px 0 26px;
    font-size: clamp(2.75rem, 5vw, 4.7rem);
    line-height: 1.03;
    letter-spacing: -0.028em;
}

.hero__title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.hero__title .line > span {
    display: block;
    transform: translateY(108%);
    animation: riseIn 0.95s var(--ease) forwards;
}

.hero__title .line:nth-child(1) > span {
    animation-delay: 0.16s;
}

.hero__title .line:nth-child(2) > span {
    animation-delay: 0.28s;
}

.hero__title .line:nth-child(3) > span {
    animation-delay: 0.4s;
}

.hero__lead {
    max-width: 520px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.75;
    animation: heroFade 0.9s 0.55s var(--ease) both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    animation: heroFade 0.9s 0.68s var(--ease) both;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 34px;
    color: var(--ink-soft);
    font-size: 0.83rem;
    font-weight: 600;
    animation: heroFade 0.9s 0.8s var(--ease) both;
}

.hero__facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__facts .icon {
    width: 16px;
    height: 16px;
    color: var(--azure-deep);
}

.hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    padding-block: 10px;
}

.hero__portrait {
    position: relative;
    z-index: 1;
    width: min(424px, 90%);
    margin: 0;
    padding: 10px;
    border-radius: 34px;
    background: var(--white);
    box-shadow: 0 42px 80px -44px rgba(8, 42, 63, 0.5);
    animation: portraitIn 1s 0.18s var(--ease) both;
}

.hero__portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 26%;
    border-radius: 26px;
}

.hero__badge {
    position: absolute;
    top: 4%;
    right: 0;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
    animation: badgeIn 0.8s 0.9s var(--ease) both;
}

.hero__badge strong {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    color: var(--azure-deep);
}

.hero__badge span {
    max-width: 92px;
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
}

.hero__smile {
    position: absolute;
    bottom: 2%;
    left: 0;
    z-index: 2;
    width: clamp(150px, 35%, 204px);
    margin: 0;
    overflow: hidden;
    border: 7px solid #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    animation: smileIn 0.95s 0.72s var(--ease) both;
}

.hero__smile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 38%;
}

/* ---------- Quick info bar ---------- */

.quickbar {
    position: relative;
    z-index: 3;
    margin-top: -64px;
}

.quickbar__card {
    display: grid;
    grid-template-columns: 1fr 1.08fr 1.22fr auto;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.quickbar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 18px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

a.quickbar__item:hover {
    background: var(--mist);
}

.quickbar__item + .quickbar__item {
    border-left: 1px solid var(--line);
    border-radius: 0 14px 14px 0;
}

.quickbar__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    background: var(--mist);
    color: var(--azure-deep);
}

.quickbar__icon .icon {
    width: 19px;
    height: 19px;
}

.quickbar__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.quickbar__text small {
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 700;
}

.quickbar__text strong {
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}

.quickbar__cta {
    margin-left: 10px;
    min-height: 50px;
}

/* ---------- Welcome ---------- */

.welcome__grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.welcome__media {
    position: relative;
    padding: 0 44px 44px 0;
}

.welcome__arch {
    position: absolute;
    top: -26px;
    left: -26px;
    width: 160px;
    height: 210px;
    border: 1px solid rgba(30, 155, 224, 0.3);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

.welcome__main {
    position: relative;
    z-index: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.welcome__main img {
    width: 100%;
    aspect-ratio: 4 / 3.25;
    object-fit: cover;
}

.welcome__small {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: clamp(130px, 28%, 178px);
    margin: 0;
    overflow: hidden;
    border: 7px solid #fff;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.welcome__small img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.welcome__copy .section-title {
    margin: 14px 0 20px;
    max-width: 520px;
}

.welcome__copy .lead {
    max-width: 540px;
}

.checklist {
    display: grid;
    gap: 12px;
    margin: 28px 0 32px;
}

.checklist li,
.bullets li,
.credentials li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.checklist .icon,
.bullets .icon,
.credentials .icon {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--azure-deep);
}

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

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(28px, 4vw, 64px);
    margin-bottom: clamp(36px, 4vw, 56px);
}

.section-head .section-title {
    max-width: 620px;
    margin-top: 14px;
}

.section-head__aside {
    max-width: 360px;
    padding-bottom: 4px;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.7;
}

.section-head__aside p {
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line-strong);
}

.services-grid li {
    border-bottom: 1px solid var(--line-strong);
}

.services-grid li:nth-child(odd) {
    border-right: 1px solid var(--line-strong);
}

.service-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 28px 26px 28px 0;
    text-decoration: none;
}

.services-grid li:nth-child(even) .service-item {
    padding-right: 0;
    padding-left: 26px;
}

.service-item__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 16px;
    background: linear-gradient(150deg, var(--azure), var(--azure-deep));
    box-shadow: 0 12px 20px -14px rgba(11, 110, 168, 0.7);
    transition: transform 0.3s var(--ease);
}

.service-item__icon img {
    width: 26px;
    height: auto;
}

.service-item__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.service-item__title {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.2;
    transition: color 0.2s;
}

.service-item__desc {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

.service-item__arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    margin-left: auto;
    align-self: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--azure-deep);
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.service-item__arrow .icon {
    width: 16px;
    height: 16px;
}

.service-item:hover .service-item__icon {
    transform: translateY(-3px) rotate(-3deg);
}

.service-item:hover .service-item__title {
    color: var(--azure-deep);
}

.service-item:hover .service-item__arrow {
    background: var(--azure-deep);
    border-color: var(--azure-deep);
    color: #fff;
}

/* ---------- Results / compare ---------- */

.results {
    position: relative;
    overflow: hidden;
}

.results::before {
    content: "";
    position: absolute;
    top: -300px;
    right: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 155, 224, 0.2), rgba(30, 155, 224, 0) 70%);
    pointer-events: none;
}

.results__grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
}

.results__copy .section-title {
    max-width: 480px;
    margin: 16px 0 20px;
    color: #fff;
}

.results__copy > p {
    max-width: 430px;
    margin-bottom: 28px;
    font-size: 0.97rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
}

.results__note {
    max-width: 400px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
}

.results__media {
    min-width: 0;
}

.results__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
}

.results__hint {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.74rem;
}

.compare {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 24px;
    background: var(--mist);
    box-shadow: 0 34px 70px -32px rgba(0, 0, 0, 0.55);
    user-select: none;
}

.compare--lg {
    aspect-ratio: 16 / 10;
}

.compare--card {
    aspect-ratio: 3 / 2;
    border-radius: 0;
    box-shadow: none;
}

.compare__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare__before {
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    z-index: 2;
    width: 2px;
    background: rgba(255, 255, 255, 0.92);
    transform: translateX(-1px);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.compare__tag {
    position: absolute;
    top: 14px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(8, 42, 63, 0.72);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.compare__tag--before {
    left: 14px;
}

.compare__tag--after {
    right: 14px;
}

.compare__handle {
    position: absolute;
    top: 50%;
    left: var(--pos);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.compare__handle .icon {
    width: 14px;
    height: 14px;
    margin: 0 -1px;
}

.compare__range {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.compare__range::-webkit-slider-thumb {
    width: 48px;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.compare__range::-moz-range-thumb {
    width: 48px;
    height: 100%;
    opacity: 0;
    border: 0;
    cursor: ew-resize;
}

.compare:has(.compare__range:focus-visible) {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
}

/* ---------- Doctor ---------- */

.doctor {
    background: linear-gradient(180deg, var(--snow) 0%, #F1F8FC 100%);
    scroll-margin-top: 110px;
}

.doctor__grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
}

.doctor__visual {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
}

.doctor__portrait {
    width: min(432px, 92%);
    margin: 0;
    padding: 10px;
    border-radius: 34px;
    background: var(--white);
    box-shadow: 0 42px 80px -44px rgba(8, 42, 63, 0.5);
}

.doctor__portrait-media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(180deg, #ECF4F8 0%, #DCE8EE 100%);
}

.doctor__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 100%;
    filter: drop-shadow(0 24px 26px rgba(8, 42, 63, 0.16));
}

.doctor__card {
    position: absolute;
    right: -14px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--ink);
    box-shadow: 0 24px 50px -30px rgba(8, 42, 63, 0.55);
}

.doctor__card::before {
    content: "";
    width: 26px;
    height: 2px;
    margin-bottom: 6px;
    border-radius: 2px;
    background: var(--aqua);
}

.doctor__card strong {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
}

.doctor__card span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    font-weight: 600;
}

.doctor__copy .section-title {
    margin: 14px 0 8px;
}

.doctor__copy > .doctor__role {
    margin-bottom: 22px;
    color: var(--azure-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.doctor__copy > p {
    max-width: 620px;
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.75;
}

.doctor__copy > .doctor__subtitle {
    max-width: 600px;
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
}

.credentials {
    display: grid;
    gap: 13px;
    margin: 14px 0 32px;
    padding: 0;
    border: 0;
    max-width: 600px;
}

.credentials li {
    font-size: 0.9rem;
}

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

.reviews__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
}

.reviews__grid .section-title {
    margin: 14px 0 0;
    max-width: 560px;
}

.stars {
    display: flex;
    gap: 4px;
    margin: 22px 0 16px;
    color: var(--sand);
}

.stars .icon {
    width: 18px;
    height: 18px;
}

.quote {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    line-height: 1.36;
    letter-spacing: -0.012em;
}

.quote__author {
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
}

.reviews__card {
    padding: clamp(26px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.reviews__card h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.reviews__card p {
    margin-bottom: 22px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.65;
}

.reviews__card .btn {
    width: 100%;
}

/* ---------- Appointment ---------- */

.appointment {
    position: relative;
    overflow: hidden;
}

.appointment::before {
    content: "";
    position: absolute;
    bottom: -220px;
    left: -260px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(30, 155, 224, 0.24);
    border-radius: 50% 50% 0 0;
    transform: rotate(-14deg);
    pointer-events: none;
}

.appointment__grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    align-items: start;
    gap: clamp(40px, 6vw, 80px);
}

.appointment__copy {
    padding-top: 14px;
}

.appointment__copy .section-title {
    max-width: 420px;
    margin: 14px 0 20px;
}

.appointment__copy .lead {
    max-width: 440px;
    margin-bottom: 30px;
}

.contact-lines {
    display: grid;
    gap: 18px;
}

.contact-lines li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-lines > li > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--azure-deep);
}

.contact-lines > li > span .icon {
    width: 18px;
    height: 18px;
}

.contact-lines small {
    display: block;
    margin-bottom: 2px;
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
}

.contact-lines a,
.contact-lines p {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.55;
    text-decoration: none;
}

.contact-lines a:hover {
    color: var(--azure-deep);
}

/* ---------- Forms ---------- */

.form-card {
    padding: clamp(24px, 3.4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
    scroll-margin-top: 112px;
}

.form-card__title {
    margin-bottom: 8px;
    font-size: clamp(1.45rem, 2.2vw, 1.7rem);
}

.form-card__intro {
    max-width: 470px;
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.65;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
}

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field__label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.79rem;
    font-weight: 700;
}

.field__req {
    color: var(--azure-deep);
}

.field__optional {
    color: var(--ink-soft);
    font-weight: 500;
}

.field__input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #7C90A0;
    border-radius: 12px;
    background: var(--snow);
    color: var(--ink);
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field__input::placeholder {
    color: #8FA3B1;
}

.field__input:focus {
    outline: none;
    border-color: var(--azure);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(30, 155, 224, 0.13);
}

.field__input[aria-invalid="true"] {
    border-color: #B4413A;
    background: #FFF7F6;
}

.field__textarea {
    min-height: 116px;
    resize: vertical;
}

.field__select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A6578' stroke-width='2' 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: 16px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.field__error {
    margin-top: 6px;
    color: #A83830;
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1.45;
}

.field--check {
    margin: 20px 0 16px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.79rem;
    line-height: 1.55;
    cursor: pointer;
}

.check input {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 2px;
    accent-color: var(--azure-deep);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__submit {
    width: 100%;
    margin-top: 4px;
}

.form__note {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 0.74rem;
    line-height: 1.55;
    text-align: center;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.55;
}

.alert > .icon {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 2px;
}

.alert strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
}

.alert p {
    color: var(--ink-soft);
}

.alert a {
    color: var(--azure-deep);
    font-weight: 700;
}

.alert--success {
    border-color: rgba(30, 155, 224, 0.28);
    background: #EAF8FE;
}

.alert--success > .icon {
    color: var(--azure-deep);
}

.alert--error {
    border-color: rgba(180, 65, 58, 0.26);
    background: #FDF1EF;
}

.alert--error > .icon {
    color: #A83830;
}

/* ---------- Page hero / breadcrumb ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(30px, 4.5vw, 52px) clamp(46px, 6.5vw, 78px);
    border-bottom: 1px solid rgba(8, 42, 63, 0.06);
    background: linear-gradient(180deg, #FAFDFF 0%, var(--snow) 100%);
}

.page-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: clamp(-140px, -7vw, -20px);
    width: min(460px, 46vw);
    height: min(560px, 56vw);
    border: 1px solid rgba(30, 155, 224, 0.18);
    border-radius: 999px 999px 0 0;
    transform: rotate(12deg);
    pointer-events: none;
}

.page-hero .shell {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 28px;
    color: var(--ink-soft);
    font-size: 0.77rem;
}

.breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--azure-deep);
}

.breadcrumb [aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

.page-hero__title {
    max-width: 780px;
    margin: 16px 0 20px;
    font-size: clamp(2.5rem, 5.2vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.028em;
}

.page-hero__lead {
    max-width: 660px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.jump-nav a {
    display: inline-flex;
    padding: 9px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    font-size: 0.79rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.jump-nav a:hover {
    border-color: var(--azure);
    background: #fff;
    color: var(--azure-deep);
    transform: translateY(-1px);
}

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

.services-page {
    padding-top: clamp(20px, 3vw, 40px);
}

.service-detail {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(32px, 6vw, 80px);
    padding-block: clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 112px;
}

.service-detail:first-child {
    padding-top: 0;
    border-top: 0;
}

.service-detail__side {
    position: sticky;
    top: 122px;
    align-self: start;
}

.service-detail__icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(150deg, var(--azure), var(--azure-deep));
    box-shadow: 0 14px 24px -16px rgba(11, 110, 168, 0.7);
}

.service-detail__icon img {
    width: 32px;
    height: auto;
}

.service-detail__side h2 {
    margin-bottom: 10px;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.service-detail__side p {
    max-width: 300px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.65;
}

.service-detail__body {
    max-width: 640px;
}

.service-detail__body > p {
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.78;
}

.service-detail__body > .service-detail__lead {
    margin-bottom: 18px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.4;
}

.service-detail__subtitle {
    margin: 28px 0 14px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0;
}

.bullets {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
}

.bullets li {
    font-size: 0.91rem;
    font-weight: 500;
}

.bullets .icon {
    margin-top: 4px;
}

.service-detail__body > .service-detail__note {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--mist);
    font-size: 0.82rem;
    line-height: 1.6;
}

.service-detail__note .icon {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    color: var(--azure-deep);
}

/* ---------- Cases / before after ---------- */

.cases-section {
    padding-top: clamp(32px, 4vw, 56px);
}

.cases__notice {
    max-width: 760px;
    margin-bottom: clamp(28px, 4vw, 44px);
    padding: 14px 18px;
    border-left: 2px solid var(--azure);
    border-radius: 0 12px 12px 0;
    background: var(--mist);
    color: var(--ink-soft);
    font-size: 0.84rem;
    line-height: 1.65;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.case-card__meta {
    padding: 20px;
}

.case-card__meta .tag {
    margin-bottom: 10px;
}

.case-card__meta h2 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.case-card__hint {
    color: var(--ink-soft);
    font-size: 0.75rem;
}

/* ---------- Gallery ---------- */

.gallery-section {
    padding-top: clamp(24px, 4vw, 48px);
}

.gallery {
    columns: 3;
    column-gap: 22px;
}

.gallery__item {
    display: block;
    break-inside: avoid;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.gallery__item figure {
    margin: 0;
}

.gallery__item img {
    width: 100%;
    height: auto;
    transition: transform 0.6s var(--ease);
}

.gallery__item:hover img {
    transform: scale(1.03);
}

.gallery__item figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    color: var(--ink-soft);
    font-size: 0.79rem;
    font-weight: 600;
}

.gallery__item figcaption .icon {
    width: 15px;
    height: 15px;
    color: var(--azure-deep);
    transition: transform 0.25s;
}

.gallery__item:hover figcaption .icon {
    transform: translateX(3px);
}

.gallery__note {
    margin-top: 36px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    text-align: center;
}

.gallery__note .text-link {
    display: inline-flex;
}

/* ---------- Lightbox ---------- */

.lightbox {
    width: min(1100px, 92vw);
    max-height: 90vh;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 24px;
    background: #041621;
    color: #fff;
}

.lightbox::backdrop {
    background: rgba(4, 22, 33, 0.84);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lightbox__figure {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    margin: 0;
}

.lightbox__figure img {
    width: auto;
    max-width: 100%;
    max-height: 76vh;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
    object-fit: contain;
    background: #041621;
}

.lightbox__figure figcaption {
    min-height: 52px;
    padding: 15px 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    text-align: center;
}

.lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(4, 22, 33, 0.72);
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lightbox__close .icon {
    width: 18px;
    height: 18px;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(8, 42, 63, 0.66);
    color: #fff;
    transform: translateY(-50%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lightbox__nav:hover {
    background: rgba(8, 42, 63, 0.9);
}

.lightbox__nav .icon {
    width: 20px;
    height: 20px;
}

.lightbox__nav--prev {
    left: 12px;
}

.lightbox__nav--next {
    right: 12px;
}

/* ---------- Contact ---------- */

.contact-info {
    padding-block: clamp(36px, 5vw, 64px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.info-grid__item {
    padding: 28px clamp(16px, 2.4vw, 30px);
    border-left: 1px solid var(--line);
}

.info-grid__item:first-child {
    padding-left: 0;
    border-left: 0;
}

.info-grid__icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--mist);
    color: var(--azure-deep);
}

.info-grid__icon .icon {
    width: 19px;
    height: 19px;
}

.info-grid__item h2 {
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
}

.info-grid__item > a {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.info-grid__item > a:hover {
    color: var(--azure-deep);
}

.info-grid__item address {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.6;
}

.info-grid__item > p {
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.55;
}

.info-grid__item .text-link {
    font-size: 0.78rem;
}

.info-hours {
    display: grid;
    gap: 6px;
    font-size: 0.82rem;
}

.info-hours li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-soft);
}

.info-hours strong {
    color: var(--ink);
    font-weight: 600;
}

.map-section {
    padding-bottom: clamp(56px, 7vw, 92px);
}

.map {
    aspect-ratio: 16 / 7;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--mist);
    box-shadow: var(--shadow-sm);
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85);
}

.map__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.contact-page__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: clamp(40px, 6vw, 80px);
}

.contact-page__copy .section-title {
    max-width: 420px;
    margin: 14px 0 20px;
}

.contact-page__copy .lead {
    margin-bottom: 18px;
    max-width: 460px;
}

.contact-page__copy > p {
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 1.7;
}

/* ---------- Appointment page ---------- */

.appointment-page__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: clamp(40px, 6vw, 80px);
}

.appointment-page__copy .section-title {
    max-width: 420px;
    margin: 14px 0 28px;
}

.steps {
    display: grid;
    gap: 22px;
    margin-bottom: 34px;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.steps__number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border: 1px solid rgba(11, 110, 168, 0.28);
    border-radius: 50%;
    background: var(--white);
    color: var(--azure-deep);
    font-family: var(--font-display);
    font-size: 0.98rem;
}

.steps h3 {
    margin-bottom: 4px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0;
}

.steps p {
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.65;
}

.appointment-page .contact-lines {
    margin-bottom: 24px;
}

.appointment-page__note {
    padding-left: 16px;
    border-left: 2px solid var(--azure);
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.65;
}

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 7vw, 88px);
    background: linear-gradient(120deg, #075A85 0%, var(--azure-deep) 52%, #0E7FB6 100%);
    color: #fff;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -120px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50% 50% 0 0;
    transform: rotate(14deg);
    pointer-events: none;
}

.cta-band__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-band__title {
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.cta-band p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.94rem;
}

.cta-band .kicker {
    color: var(--aqua);
}

.cta-band .kicker::before {
    background: var(--aqua);
}

.cta-band__actions {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(56px, 7vw, 88px);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.62);
}

.footer::before {
    content: "";
    position: absolute;
    top: -260px;
    left: 50%;
    width: 700px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 155, 224, 0.16), rgba(30, 155, 224, 0) 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr;
    gap: clamp(28px, 4vw, 56px);
}

.footer__logo {
    width: auto;
    height: 44px;
}

.footer__brand p {
    max-width: 300px;
    margin: 18px 0 22px;
    font-size: 0.86rem;
    line-height: 1.7;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.footer__social:hover {
    background: rgba(255, 255, 255, 0.15);
}

.footer__social .icon {
    width: 15px;
    height: 15px;
}

.footer__title {
    margin-bottom: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
}

.footer__title--spaced {
    margin-top: 26px;
}

.footer__list {
    display: grid;
    gap: 10px;
    font-size: 0.84rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__list a:hover {
    color: #fff;
}

.footer__contact address {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.7;
}

.footer__contact > a {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.84rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__contact > a:hover {
    color: #fff;
}

.footer__contact > a .icon {
    width: 15px;
    height: 15px;
    color: var(--aqua);
}

.footer__hours {
    display: grid;
    gap: 6px;
    font-size: 0.8rem;
}

.footer__hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.footer__bottom {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: clamp(40px, 5vw, 64px);
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.74rem;
}

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

.mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: none;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(247, 251, 254, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.mobile-bar__call,
.mobile-bar__book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.mobile-bar__call {
    flex: 0 0 auto;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink);
}

.mobile-bar__book {
    flex: 1;
    background: var(--azure-deep);
    color: #fff;
}

.mobile-bar .icon {
    width: 17px;
    height: 17px;
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.js .welcome__media.is-in + .welcome__copy,
.js .welcome__media + .welcome__copy.is-in {
    transition-delay: 0.08s;
}

/* ---------- Keyframes ---------- */

@keyframes riseIn {
    from {
        transform: translateY(108%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes portraitIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes badgeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes smileIn {
    from {
        opacity: 0;
        transform: translateY(22px) rotate(-6deg);
    }
    to {
        opacity: 1;
        transform: rotate(-3deg);
    }
}

@keyframes navItemIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes drift {
    to {
        transform: translate3d(40px, 30px, 0) scale(1.06);
    }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1280px) {
    .header__phone-text {
        display: none;
    }

    .header__phone {
        padding: 0;
    }
}

@media (max-width: 1100px) {
    .header__inner {
        display: flex;
        gap: 12px;
        min-height: 80px;
    }

    .brand {
        flex: none;
    }

    .header__actions {
        margin-left: auto;
    }

    .header__phone {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: 0;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: calc(80px + 28px) var(--gutter) 36px;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        background:
            radial-gradient(60% 40% at 90% 0%, rgba(151, 218, 247, 0.35), rgba(151, 218, 247, 0) 70%),
            var(--snow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    .nav__list li {
        border-bottom: 1px solid var(--line);
    }

    .nav__list li:first-child {
        border-top: 1px solid var(--line);
    }

    .nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 17px 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: var(--ink);
        font-family: var(--font-display);
        font-size: clamp(1.45rem, 3.6vw, 1.7rem);
        font-weight: 400;
        white-space: normal;
    }

    .nav__link:hover,
    .nav__link.is-active {
        background: transparent;
        box-shadow: none;
        color: var(--azure-deep);
    }

    .nav__arrow {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        flex: none;
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        color: var(--azure-deep);
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .nav__arrow .icon {
        width: 16px;
        height: 16px;
    }

    .nav__link:hover .nav__arrow,
    .nav__link.is-active .nav__arrow {
        border-color: var(--azure-deep);
        background: var(--azure-deep);
        color: #fff;
    }

    .nav__aside {
        display: grid;
        gap: 12px;
        width: 100%;
        max-width: 520px;
        margin-top: auto;
        margin-inline: auto;
        padding: 22px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: var(--white);
        box-shadow: var(--shadow-sm);
    }

    .nav__aside-kicker {
        color: var(--ink-soft);
        font-size: 0.7rem;
        font-weight: 800;
    }

    .nav__aside-phone {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--ink);
        font-family: var(--font-display);
        font-size: 1.45rem;
        line-height: 1.2;
        text-decoration: none;
    }

    .nav__aside-phone .icon {
        width: 18px;
        height: 18px;
        color: var(--azure-deep);
    }

    .nav__aside-hours {
        color: var(--ink-soft);
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .nav__aside-mail {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--ink-soft);
        font-size: 0.8rem;
        text-decoration: none;
    }

    .nav__aside-mail .icon {
        width: 15px;
        height: 15px;
        color: var(--azure-deep);
    }

    .nav__aside .btn {
        width: 100%;
        margin-top: 4px;
    }

    .nav.is-open .nav__list li {
        animation: navItemIn 0.45s var(--ease) both;
    }

    .nav.is-open .nav__list li:nth-child(1) { animation-delay: 0.04s; }
    .nav.is-open .nav__list li:nth-child(2) { animation-delay: 0.08s; }
    .nav.is-open .nav__list li:nth-child(3) { animation-delay: 0.12s; }
    .nav.is-open .nav__list li:nth-child(4) { animation-delay: 0.16s; }
    .nav.is-open .nav__list li:nth-child(5) { animation-delay: 0.2s; }

    .nav.is-open .nav__aside {
        animation: navItemIn 0.45s 0.24s var(--ease) both;
    }

    .quickbar__card {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .quickbar__item {
        padding: 12px 16px;
    }

    .quickbar__item + .quickbar__item {
        border-left: 0;
        border-radius: 14px;
    }

    .quickbar__item:nth-child(even) {
        border-left: 1px solid var(--line);
    }

    .quickbar__cta {
        grid-column: 1 / -1;
        margin: 6px 0 0;
    }

    .quickbar {
        margin-top: -48px;
    }

    .hero__inner {
        min-height: 0;
        padding-top: 10px;
    }

    .hero__visual {
        min-height: 520px;
    }

    /* Sans JavaScript : la navigation reste visible sous le logo. */
    html:not(.js) .header__inner {
        flex-wrap: wrap;
        gap: 10px 16px;
        padding-block: 14px;
    }

    html:not(.js) .header__actions {
        margin-left: auto;
    }

    html:not(.js) .nav {
        position: static;
        inset: auto;
        order: 3;
        width: 100%;
        padding: 0 0 6px;
        overflow: visible;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    html:not(.js) .nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 18px;
    }

    html:not(.js) .nav__list li,
    html:not(.js) .nav__list li:first-child {
        border: 0;
    }

    html:not(.js) .nav__link {
        padding: 4px 0;
        color: var(--ink-soft);
        font-family: var(--font-body);
        font-size: 0.86rem;
    }

    html:not(.js) .nav__link:hover,
    html:not(.js) .nav__link.is-active {
        color: var(--azure-deep);
    }

    html:not(.js) .nav__arrow,
    html:not(.js) .nav__aside,
    html:not(.js) .nav-toggle {
        display: none;
    }
}

@media (max-width: 960px) {
    .header__inner {
        min-height: 80px;
    }

    .brand__logo {
        height: 42px;
    }

    .hero__inner,
    .welcome__grid,
    .results__grid,
    .doctor__grid,
    .reviews__grid,
    .appointment__grid,
    .contact-page__grid,
    .appointment-page__grid,
    .cta-band__inner {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        gap: 44px;
    }

    .hero__copy {
        max-width: 680px;
    }

    .hero__visual {
        justify-self: center;
        width: min(100%, 500px);
        min-height: 0;
        padding: 10px 0 30px;
    }

    .hero__portrait {
        width: min(400px, 88%);
    }

    .hero__badge {
        right: 2%;
        top: 3%;
    }

    .hero__smile {
        left: 2%;
        bottom: 14px;
    }

    .quickbar {
        margin-top: -44px;
    }

    .welcome__media {
        max-width: 600px;
        margin-inline: auto;
    }

    .welcome__copy {
        max-width: 640px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-head__aside {
        max-width: 600px;
    }

    .results__copy {
        max-width: 640px;
    }

    .results__media {
        width: 100%;
        max-width: 760px;
    }

    .doctor__visual {
        order: -1;
    }

    .doctor__copy {
        max-width: 680px;
    }

    .reviews__card {
        max-width: 520px;
    }

    .appointment__copy,
    .appointment-page__copy {
        max-width: 640px;
    }

    .cta-band__inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid__item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .info-grid__item:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 800px) {
    .service-detail {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .service-detail__side {
        position: static;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 18px;
    }

    .service-detail__icon {
        grid-row: span 2;
        margin: 0;
    }

    .service-detail__side h2 {
        margin: 0;
    }

    .service-detail__side p {
        grid-column: 2;
        max-width: 560px;
        margin-top: 4px;
    }

    .cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cases-grid .case-card:last-child {
        grid-column: 1 / -1;
        max-width: 520px;
    }

    .gallery {
        columns: 2;
    }
}

@media (max-width: 760px) {
    .header__inner {
        min-height: 74px;
    }

    .brand__logo {
        height: 38px;
    }

    .header__actions {
        display: none;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .nav {
        padding-top: calc(74px + 24px);
    }

    .mobile-bar {
        display: flex;
    }

    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    .footer {
        padding-bottom: 12px;
    }

    .section {
        padding-block: clamp(60px, 11vw, 88px);
    }

    .hero {
        padding-top: 30px;
        padding-bottom: 88px;
    }

    .hero__title {
        font-size: clamp(2.45rem, 10vw, 3.4rem);
    }

    .hero__actions .btn {
        flex: 1 1 auto;
    }

    .hero__visual {
        width: 100%;
        max-width: 420px;
        padding: 4px 0 26px;
    }

    .hero__portrait {
        width: min(360px, 92%);
    }

    .hero__badge {
        top: 2%;
        right: 0;
        padding: 12px 14px;
    }

    .hero__badge strong {
        font-size: 1.7rem;
    }

    .hero__smile {
        left: 0;
        bottom: 8px;
        width: 38%;
    }

    .quickbar {
        margin-top: -36px;
    }

    .quickbar__card {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 10px;
    }

    .quickbar__item {
        padding: 11px 14px;
    }

    .quickbar__item:nth-child(even) {
        border-left: 0;
    }

    .quickbar__item + .quickbar__item {
        border-top: 1px solid var(--line);
        border-radius: 12px;
    }

    .quickbar__cta {
        grid-column: auto;
        margin-top: 4px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid li:nth-child(odd) {
        border-right: 0;
    }

    .services-grid li:nth-child(even) .service-item,
    .service-item {
        padding: 22px 0;
    }

    .service-item__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .service-item__icon img {
        width: 23px;
    }

    .service-item__title {
        font-size: 1.25rem;
    }

    .service-item__arrow {
        width: 34px;
        height: 34px;
    }

    .form__grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid .case-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid__item,
    .info-grid__item:first-child,
    .info-grid__item:nth-child(3) {
        padding: 22px 0;
        border-left: 0;
    }

    .info-grid__item + .info-grid__item {
        border-top: 1px solid var(--line);
    }

    .info-grid__icon {
        margin-bottom: 12px;
    }

    .map {
        aspect-ratio: 4 / 3;
        min-height: 260px;
        border-radius: 20px;
    }

    .gallery {
        columns: 1;
    }

    .gallery__item {
        margin-bottom: 18px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__brand {
        grid-column: auto;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-bottom: 8px;
    }

    .cta-band__actions {
        width: 100%;
    }

    .cta-band__actions .btn {
        flex: 1 1 100%;
    }

    .page-hero {
        padding-bottom: 48px;
    }

    .jump-nav {
        margin-top: 28px;
    }

    .welcome__media {
        padding: 0 24px 32px 0;
    }

    .welcome__small {
        border-width: 6px;
    }

    .doctor__card {
        right: 0;
        bottom: 18px;
        padding: 12px 16px;
    }

    .appointment::before,
    .page-hero::after {
        opacity: 0.6;
    }

    .compare__handle {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero__badge span {
        max-width: 76px;
        font-size: 0.62rem;
    }

    .hero__facts {
        gap: 10px 18px;
    }

    .section-title {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }

    .page-hero__title {
        font-size: clamp(2.2rem, 10vw, 2.8rem);
    }

    .quote {
        font-size: 1.45rem;
    }

    .mobile-bar__call span {
        display: none;
    }

    .mobile-bar__call {
        width: 50px;
        padding: 0;
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__title .line > span,
    .hero__kicker,
    .hero__lead,
    .hero__actions,
    .hero__facts,
    .hero__portrait,
    .hero__badge,
    .hero__smile {
        opacity: 1 !important;
        transform: none !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
