:root {
    --primary: #1860a1;
    --secondary: #87459e;
    --text: #102033;
    --muted: #637083;
    --soft: #f3f8fd;
    --white: #ffffff;
    --border: rgba(24, 96, 161, 0.14);
    --gradient: linear-gradient(135deg, #1860a1, #87459e);
    --shadow: 0 22px 60px rgba(16, 32, 51, 0.12);
    --shadow-soft: 0 14px 38px rgba(24, 96, 161, 0.1);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(24, 96, 161, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 34px rgba(16, 32, 51, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 205px;
    max-height: 66px;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(24, 96, 161, 0.16);
    border-radius: 50%;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(24, 96, 161, 0.1);
    transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header-icon::before {
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    content: "";
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.header-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.header-icon:hover,
.header-icon:focus-visible {
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 18px 38px rgba(135, 69, 158, 0.24);
    transform: translateY(-4px) scale(1.04);
}

.header-icon:hover::before,
.header-icon:focus-visible::before {
    opacity: 1;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-3px);
}

.btn-primary,
.btn-header {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 14px 30px rgba(24, 96, 161, 0.28);
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before,
.btn-header:hover::before,
.btn-header:focus-visible::before {
    opacity: 1;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-header:hover,
.btn-header:focus-visible {
    box-shadow: 0 18px 42px rgba(135, 69, 158, 0.28);
}

.btn-header {
    min-height: 46px;
    padding: 12px 20px;
}

.btn-outline {
    color: var(--primary);
    border: 1px solid rgba(24, 96, 161, 0.2);
    background: var(--white);
    box-shadow: 0 12px 30px rgba(24, 96, 161, 0.08);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    color: var(--white);
    border-color: transparent;
}

.btn-outline:hover::before,
.btn-outline:focus-visible::before {
    opacity: 1;
}

.btn-full {
    width: 100%;
}

.section {
    padding: 96px 0;
}

.section-hero {
    position: relative;
    overflow: hidden;
    padding: 98px 0 104px;
    background:
        radial-gradient(circle at 8% 16%, rgba(24, 96, 161, 0.1), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(135, 69, 158, 0.12), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f6fbff 52%, #edf7ff 100%);
}

.section-hero::before,
.section-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.section-hero::before {
    top: 120px;
    left: max(18px, calc((100vw - 1160px) / 2));
    width: 94px;
    height: 94px;
    border: 18px solid rgba(24, 96, 161, 0.1);
    animation: floatElement 8s ease-in-out infinite;
}

.section-hero::after {
    right: 7%;
    bottom: 52px;
    width: 168px;
    height: 168px;
    border: 1px solid rgba(135, 69, 158, 0.18);
    background: rgba(255, 255, 255, 0.42);
    animation: pulseGlow 3.6s ease-in-out infinite;
}

.section-soft {
    background:
        radial-gradient(circle at top left, rgba(24, 96, 161, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fcff 0%, #eef7ff 100%);
}

.section-gradient {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--gradient);
}

.section-gradient::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.18), transparent 26%),
        radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.12), transparent 30%);
}

.section-gradient > .container {
    position: relative;
}

.hero-grid,
.appointment-grid,
.contact-grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 64px;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-copy::after {
    display: block;
    width: min(420px, 100%);
    height: 54px;
    margin-top: 36px;
    content: "";
    background:
        linear-gradient(90deg, transparent 0 6%, var(--primary) 6% 12%, transparent 12% 19%, var(--secondary) 19% 25%, transparent 25% 33%, var(--primary) 33% 39%, transparent 39% 100%),
        linear-gradient(90deg, transparent, rgba(24, 96, 161, 0.18), transparent);
    mask: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
    opacity: 0.7;
    clip-path: polygon(0 50%, 10% 50%, 15% 24%, 21% 78%, 27% 50%, 38% 50%, 44% 34%, 49% 66%, 55% 50%, 100% 50%, 100% 58%, 54% 58%, 49% 75%, 44% 44%, 39% 58%, 28% 58%, 21% 88%, 15% 34%, 11% 58%, 0 58%);
    animation: heartbeatMove 2.8s ease-in-out infinite;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 30px;
    height: 3px;
    border-radius: 999px;
    content: "";
    background: var(--gradient);
}

.hero h1,
.section-heading h2,
.appointment-card h2,
.appointment-contact h2,
.contact-details h2 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(38px, 5.4vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero h1 span {
    color: var(--secondary);
}

.section-heading h2,
.appointment-card h2,
.appointment-contact h2,
.contact-details h2 {
    font-size: clamp(30px, 3.8vw, 46px);
}

.hero-subtitle {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 600;
}

.hero-copy > p,
.section-heading p {
    max-width: 690px;
    color: var(--muted);
    font-size: 17px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 34px;
}

.hero-highlights span {
    position: relative;
    padding: 10px 15px 10px 34px;
    border: 1px solid rgba(24, 96, 161, 0.14);
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(24, 96, 161, 0.07);
    font-size: 14px;
    font-weight: 800;
}

.hero-highlights span::before {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    content: "";
    background: var(--gradient);
    transform: translateY(-50%);
    animation: pulseDot 2s ease-in-out infinite;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.doctor-card {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 540px;
    overflow: hidden;
    padding: 4px;
    border-radius: 34px;
    background: var(--gradient);
    box-shadow: 0 28px 70px rgba(24, 96, 161, 0.18);
    animation: floatImage 5.5s ease-in-out infinite;
}

.doctor-card::before {
    position: absolute;
    top: -36px;
    right: -32px;
    z-index: -2;
    width: 230px;
    height: 230px;
    border: 34px solid rgba(24, 96, 161, 0.1);
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, 0.44);
    animation: floatElement 7s ease-in-out infinite;
}

.doctor-image {
    align-self: end;
    width: 100%;
    height: 520px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 78% 14%, rgba(135, 69, 158, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff, #f4fbff);
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 28px 34px rgba(16, 32, 51, 0.16));
}

.experience-badge {
    position: absolute;
    right: 26px;
    bottom: 26px;
    max-width: 196px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 20px;
    color: var(--white);
    background: var(--gradient);
    box-shadow: 0 18px 38px rgba(24, 96, 161, 0.28);
}

.experience-badge strong {
    display: block;
    font-size: 36px;
    line-height: 1;
}

.experience-badge span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
}

.section-heading-light h2,
.section-heading-light .eyebrow,
.section-heading-light p {
    color: var(--white);
}

.section-heading-light .eyebrow::before {
    background: var(--white);
}

.feature-grid,
.choose-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.service-card,
.accent-card,
.testimonial-card,
.appointment-card,
.appointment-contact,
.contact-details,
.map-card {
    position: relative;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) padding-box,
        linear-gradient(135deg, rgba(24, 96, 161, 0.16), rgba(135, 69, 158, 0.12)) border-box;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.feature-card,
.service-card,
.accent-card,
.testimonial-card {
    overflow: hidden;
    padding: 26px;
}

.feature-card:hover,
.service-card:hover,
.accent-card:hover,
.testimonial-card:hover,
.appointment-card:hover,
.appointment-contact:hover,
.contact-details:hover,
.map-card:hover {
    background:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) padding-box,
        var(--gradient) border-box;
    box-shadow: 0 26px 58px rgba(16, 32, 51, 0.14);
    transform: translateY(-9px) scale(1.015);
}

.card-icon,
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    padding: 0 12px;
    border-radius: 18px;
    color: var(--white);
    background: var(--gradient);
    box-shadow: 0 12px 26px rgba(24, 96, 161, 0.18);
    font-weight: 900;
    transition: transform 0.3s ease;
}

.feature-card:hover .card-icon,
.service-card:hover .service-icon {
    transform: translateY(-4px) scale(1.06) rotate(-3deg);
}

.feature-card h3,
.service-card h3,
.accent-card h3,
.testimonial-card h3,
.timeline-step h3 {
    margin: 20px 0 8px;
    color: var(--primary);
    font-size: 19px;
}

.feature-card p,
.service-card p,
.accent-card p,
.testimonial-card p,
.timeline-step p {
    margin: 0;
    color: var(--muted);
}

.accent-card {
    background:
        radial-gradient(circle at top right, rgba(135, 69, 158, 0.1), transparent 34%),
        rgba(255, 255, 255, 0.88);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.timeline-step {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 20px 42px rgba(16, 32, 51, 0.12);
    backdrop-filter: blur(10px);
}

.timeline-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--primary);
    background: var(--white);
    font-weight: 900;
}

.timeline-step h3,
.timeline-step p {
    color: var(--white);
}

.stars {
    color: var(--secondary);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.appointment-layout {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
}

.appointment-layout > *,
.feature-grid > *,
.choose-grid > *,
.service-grid > *,
.testimonial-grid > *,
.timeline > * {
    min-width: 0;
}

.appointment-card,
.appointment-contact {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 42px;
}

.appointment-contact h2,
.appointment-card h2 {
    margin-bottom: 30px;
}

.appointment-contact .contact-list {
    margin-bottom: 28px;
}

.appointment-contact .contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(24, 96, 161, 0.1);
    margin-bottom: 0;
}

.appointment-contact .contact-list li:first-child {
    padding-top: 0;
}

.appointment-map {
    overflow: hidden;
    width: 100%;
    margin-top: auto;
    min-height: 300px;
    border: 1px solid rgba(24, 96, 161, 0.12);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(24, 96, 161, 0.1);
}

.appointment-map iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.appointment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.appointment-form .btn,
.appointment-form .form-note {
    grid-column: 1 / -1;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(24, 96, 161, 0.16);
    border-radius: 16px;
    padding: 15px 16px;
    color: var(--text);
    background: #fbfdff;
    font: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(24, 96, 161, 0.1);
}

.form-row .field-error {
    border-color: #c73939;
    box-shadow: 0 0 0 4px rgba(199, 57, 57, 0.1);
}

.field-message {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #c73939;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.form-row textarea {
    resize: vertical;
}

.form-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
}

.contact-details {
    padding: 32px;
}

.contact-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    margin-bottom: 16px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.contact-list strong {
    color: var(--primary);
}

.contact-list a {
    color: var(--primary);
    font-weight: 800;
}

.map-card {
    overflow: hidden;
    min-height: 420px;
}

.map-card iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.13), transparent 28%),
        radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.1), transparent 30%),
        var(--gradient);
}

.footer-cta {
    padding: 74px 0;
    text-align: center;
}

.footer-cta h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.footer-cta p {
    margin: 16px auto 30px;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    font-weight: 700;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    min-height: 52px;
    padding: 13px 24px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(16, 32, 51, 0.18);
    font-weight: 900;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.footer-action-primary {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--white);
    color: var(--primary);
}

.footer-action-whatsapp {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.2);
}

.footer-action-link:hover,
.footer-action-link:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 48px rgba(16, 32, 51, 0.22);
    transform: translateY(-4px) scale(1.03);
}

.footer-action-primary:hover,
.footer-action-primary:focus-visible {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.footer-action-icon,
.footer-action-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.footer-action-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-action-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: transform 0.25s ease, background 0.25s ease;
}

.footer-action-link:hover .footer-action-arrow,
.footer-action-link:focus-visible .footer-action-arrow {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--gradient);
    box-shadow: 0 18px 38px rgba(24, 96, 161, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    box-shadow: 0 22px 46px rgba(135, 69, 158, 0.36);
    transform: translateY(-4px) scale(1.08);
}

.back-to-top svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.response-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #eef7ff);
}

.response-card {
    width: min(620px, 100%);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.response-card h1 {
    margin: 0 0 12px;
    color: var(--primary);
}

.response-card ul {
    margin: 18px 0 24px;
    color: var(--muted);
}

@keyframes floatImage {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes floatElement {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(10px, -18px, 0);
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(24, 96, 161, 0.14);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 24px rgba(24, 96, 161, 0);
        transform: scale(1.04);
    }
}

@keyframes pulseDot {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(135, 69, 158, 0.28);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(135, 69, 158, 0);
    }
}

@keyframes heartbeatMove {
    0%,
    100% {
        opacity: 0.45;
        transform: translateX(0);
    }

    45% {
        opacity: 0.95;
        transform: translateX(10px);
    }

    65% {
        opacity: 0.75;
        transform: translateX(4px);
    }
}

@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feature-grid,
    .choose-grid,
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 76px;
        gap: 14px;
    }

    .header-actions {
        gap: 9px;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .appointment-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .appointment-card,
    .appointment-contact {
        height: auto;
    }

    .appointment-map {
        margin-top: 24px;
    }

    .hero-visual {
        order: -1;
    }

    .doctor-card {
        min-height: auto;
        max-width: 560px;
        margin: 0 auto;
    }

    .doctor-image {
        height: 440px;
    }

    .footer-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: sticky;
    }

    .section-hero::before,
    .section-hero::after,
    .doctor-card::before {
        display: none;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy::after {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .feature-card:hover,
    .service-card:hover,
    .accent-card:hover,
    .testimonial-card:hover,
    .appointment-card:hover,
    .appointment-contact:hover,
    .contact-details:hover,
    .map-card:hover {
        transform: none;
    }

    .appointment-layout {
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1160px);
    }

    .brand img {
        width: 138px;
        max-height: 54px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-icon svg {
        width: 19px;
        height: 19px;
    }

    .btn-header {
        min-height: 40px;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .section {
        padding: 62px 0;
    }

    .section-hero {
        padding: 42px 0 70px;
    }

    .hero h1 {
        font-size: clamp(34px, 12vw, 46px);
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2,
    .appointment-card h2,
    .appointment-contact h2,
    .contact-details h2 {
        font-size: clamp(28px, 9vw, 36px);
    }

    .hero-subtitle,
    .section-heading p {
        font-size: 16px;
    }

    .hero-actions,
    .hero-highlights {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .feature-grid,
    .choose-grid,
    .timeline,
    .testimonial-grid,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .doctor-card {
        border-radius: 30px;
        padding: 3px;
    }

    .doctor-image {
        border-radius: 24px;
    }

    .doctor-image {
        height: clamp(300px, 90vw, 360px);
    }

    .experience-badge {
        right: 14px;
        bottom: 14px;
        max-width: 168px;
        padding: 15px;
    }

    .appointment-card,
    .appointment-contact,
    .contact-details {
        padding: 22px;
    }

    .feature-card,
    .service-card,
    .accent-card,
    .testimonial-card,
    .timeline-step {
        padding: 22px;
    }

    .map-card,
    .map-card iframe,
    .appointment-map,
    .appointment-map iframe {
        min-height: 340px;
        height: 340px;
    }

    .footer-actions {
        flex-direction: column;
        gap: 14px;
    }

    .footer-cta {
        padding: 56px 0;
    }

    .footer-action-link {
        width: 100%;
        min-width: 0;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        min-height: auto;
        padding: 10px 0 12px;
        gap: 10px;
    }

    .brand {
        justify-content: center;
        width: 100%;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, 1160px);
    }

    .brand img {
        width: 132px;
        max-height: 50px;
    }

    .header-icon {
        width: 38px;
        height: 38px;
    }

    .btn-header {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .section-hero {
        padding: 34px 0 58px;
    }

    .hero-grid,
    .appointment-layout {
        gap: 22px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy::after {
        margin-right: auto;
        margin-left: auto;
    }

    .eyebrow {
        justify-content: center;
        width: 100%;
        font-size: 12px;
    }

    .hero h1 {
        font-size: clamp(31px, 11vw, 40px);
    }

    .hero-highlights span {
        width: 100%;
        text-align: left;
    }

    .doctor-card {
        border-radius: 24px;
    }

    .doctor-image {
        height: clamp(270px, 86vw, 320px);
        border-radius: 20px;
    }

    .experience-badge {
        max-width: 145px;
        padding: 12px;
        border-radius: 16px;
    }

    .experience-badge strong {
        font-size: 28px;
    }

    .experience-badge span {
        font-size: 11px;
    }

    .appointment-card,
    .appointment-contact,
    .contact-details,
    .feature-card,
    .service-card,
    .accent-card,
    .testimonial-card,
    .timeline-step {
        border-radius: 20px;
        padding: 18px;
    }

    .appointment-contact h2,
    .appointment-card h2 {
        margin-bottom: 22px;
        text-align: center;
    }

    .appointment-contact .contact-list li {
        padding: 12px 0;
    }

    .appointment-map,
    .appointment-map iframe {
        min-height: 280px;
        height: 280px;
        border-radius: 18px;
    }

    .form-row {
        margin-bottom: 14px;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        min-height: 48px;
        padding: 13px 14px;
        border-radius: 14px;
        font-size: 16px;
    }

    .footer-cta {
        padding: 48px 0;
    }

    .footer-cta h2 {
        font-size: clamp(28px, 9vw, 36px);
    }

    .footer-cta p {
        font-size: 15px;
    }
}

.thank-you-section {
    padding: 110px 0 120px;
    text-align: center;
}

.thank-you-content {
    max-width: 640px;
    margin: 0 auto;
}

.thank-you-head h1 {
    margin: 0 0 24px;
    font-size: clamp(56px, 12vw, 100px);
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
}

.thank-you-heading {
    margin: 0 0 20px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.thank-you-subtitle {
    margin: 0 auto 40px;
    max-width: 520px;
    color: #666666;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.btn-thank-you {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    background: #8b54a2;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-thank-you:hover,
.btn-thank-you:focus-visible {
    background: #7a4890;
    color: #ffffff;
}

@media (max-width: 991px) {
    .thank-you-section {
        padding: 70px 0 80px;
    }
}

@media (max-width: 360px) {
    .btn-header {
        padding: 8px 10px;
        font-size: 11px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-icon {
        width: 36px;
        height: 36px;
    }

    .hero h1 {
        font-size: 30px;
    }
}
