:root {
    --navy: #083356;
    --navy-deep: #002d4f;
    --teal: #029a9c;
    --teal-dark: #017b83;
    --sky: #eaf8fb;
    --mint: #d9f2f1;
    --gold: #f5b729;
    --coral: #e8594f;
    --ink: #12243a;
    --muted: #52677d;
    --line: #dce8ee;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(8, 51, 86, 0.12);
    --font: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 172px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
}

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

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

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

.container {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
}

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    z-index: 1000;
    top: 12px;
    left: 12px;
    margin: 0;
    padding: 10px 14px;
    color: var(--white);
    background: var(--navy);
    border-radius: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(2, 154, 156, 0.22);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.btn-outline {
    color: var(--teal-dark);
    background: rgba(255, 255, 255, 0.86);
    border-color: var(--teal);
}

.btn-light {
    color: var(--teal-dark);
    background: var(--white);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(8, 51, 86, 0.08);
}

.top-strip {
    color: var(--white);
    background: linear-gradient(90deg, #047fb7, #029aa2);
    font-size: 14px;
}

.top-strip__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 46px;
}

.top-strip a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.top-strip a:first-child {
    min-width: 0;
    flex: 1;
    white-space: normal;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    gap: 24px;
}

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

.brand img {
    width: 220px;
    height: auto;
}

.dynamic-brand {
    max-width: 260px;
}

.dynamic-brand img {
    width: 220px;
    max-height: 82px;
    object-fit: contain;
}

.dynamic-brand span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.dynamic-brand strong {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.08;
}

.dynamic-brand small {
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.nav-list a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    color: var(--navy);
    background: var(--sky);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background: var(--sky);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image, url("../images/hero-bg-2.jpg"));
    background-size: cover;
    background-position: center right;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 31%, rgba(255, 255, 255, 0.5) 52%, rgba(255, 255, 255, 0.05) 80%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 590px;
    padding-block: 64px;
}

.hero__content {
    max-width: 510px;
}

.hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(44px, 6vw, 74px);
    line-height: 1.05;
    font-family: Georgia, "Times New Roman", serif;
}

.hero h1 span,
.section-heading h2 span {
    color: var(--teal-dark);
}

.hero__content > p {
    max-width: 390px;
    margin: 18px 0 16px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
}

.tooth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 260px;
    margin-top: 20px;
    color: var(--teal);
}

.tooth-divider span {
    display: block;
    height: 1px;
    flex: 1;
    background: currentColor;
}

.tooth-divider.compact {
    width: 150px;
    margin: 8px auto 4px;
}

.tooth-divider.left {
    margin-left: 0;
}

.hero-list,
.check-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-list {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    font-weight: 700;
}

.hero-list i,
.check-list i {
    color: var(--teal);
    margin-right: 8px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.hero-card {
    position: absolute;
    right: 32px;
    bottom: 52px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    width: min(100%, 248px);
    padding: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--white);
    background: var(--teal);
    border-radius: 8px;
    font-size: 26px;
}

.hero-card strong {
    display: block;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.25;
}

.hero-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.35;
}

.section {
    padding-block: 72px;
}

.page-hero {
    padding: 84px 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(8, 51, 86, 0.92), rgba(2, 154, 156, 0.78)),
        var(--page-hero-image, url("../images/visit-clinic-bg.jpg")) center / cover;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 16px 0 0;
    font-size: 20px;
    font-weight: 700;
}

.page-hero .eyebrow {
    color: var(--mint);
}

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

.section-heading.center {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.ready-cta h2,
.appointment-copy h2,
.doctor-info h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.18;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
}

.services {
    background: linear-gradient(180deg, var(--white), #f8fcfd);
}

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

.service-card {
    min-height: 188px;
    padding: 26px 20px 22px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(8, 51, 86, 0.05);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 154, 156, 0.38);
    box-shadow: var(--shadow);
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    background: var(--mint);
    border-radius: 50%;
}

.service-card__icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.service-card h3 {
    margin: 0 0 7px;
    color: var(--teal-dark);
    font-size: 18px;
}

.service-card a {
    display: grid;
    height: 100%;
}

.service-card p {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 52px;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-media > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.media-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(8, 51, 86, 0.15);
}

.media-badge img {
    width: 150px;
    height: auto;
}

.media-badge__text {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.about-content p {
    color: var(--ink);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 26px 0 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.highlight-item {
    display: grid;
    place-items: center;
    gap: 9px;
    min-height: 126px;
    padding: 16px 10px;
    text-align: center;
    background: var(--white);
    border-right: 1px solid var(--line);
}

.highlight-item:last-child {
    border-right: 0;
}

.highlight-item i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--teal-dark);
    border: 2px solid var(--mint);
    border-radius: 50%;
    font-size: 24px;
}

.highlight-item span {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.stats-band {
    color: var(--white);
    background: linear-gradient(90deg, #028c95, #05a3a5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-item {
    display: grid;
    place-items: center;
    min-height: 104px;
    padding: 18px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.34);
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1;
}

.stat-item span {
    font-weight: 700;
}

.doctor-section {
    background: linear-gradient(180deg, #f9fdfe, var(--white));
}

.doctor-card {
    display: grid;
    grid-template-columns: 370px 1fr;
    gap: 46px;
    align-items: center;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.doctor-photo img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    background: var(--sky);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.doctor-role {
    margin: 8px 0 12px;
    color: var(--teal-dark);
    font-weight: 800;
}

.doctor-info p {
    max-width: 720px;
}

.doctor-meta,
.specialty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.doctor-meta span,
.specialty-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: var(--navy);
    background: var(--sky);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.doctor-meta i {
    color: var(--gold);
}

.trust-section {
    background: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.why-block {
    position: relative;
    min-height: 290px;
}

.why-block::after {
    content: "\f5c9";
    position: absolute;
    right: 12%;
    bottom: 20px;
    color: rgba(2, 154, 156, 0.08);
    font-family: "Font Awesome 6 Free";
    font-size: 148px;
    font-weight: 900;
    pointer-events: none;
}

.check-list {
    display: grid;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 3px;
}

.testimonial-shell {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 16px;
}

.testimonial-track {
    min-height: 180px;
}

.testimonial-card {
    display: none;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: start;
    min-height: 180px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.testimonial-card.is-active {
    display: grid;
}

.testimonial-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-card p {
    margin: 10px 0 10px;
    color: var(--ink);
    font-weight: 600;
}

.testimonial-card strong {
    color: var(--navy);
}

.stars {
    display: flex;
    gap: 3px;
    color: var(--gold);
}

.slider-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(8, 51, 86, 0.08);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    background: #cbd9e2;
    border: 0;
    border-radius: 50%;
}

.slider-dots button.is-active {
    background: var(--teal);
}

.gallery-section {
    background: linear-gradient(180deg, #f8fcfd, var(--white));
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 18px;
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(8, 51, 86, 0.1);
}

.gallery-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: zoom-in;
    background: transparent;
    border: 0;
}

.gallery-grid figure:first-child {
    grid-row: span 2;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 240ms ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.04);
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    place-items: center;
    padding: 28px 78px;
    background: rgba(2, 18, 32, 0.88);
}

.gallery-modal.is-open {
    display: grid;
}

.modal-open {
    overflow: hidden;
}

.gallery-modal__figure {
    width: min(100%, 980px);
    margin: 0;
    color: var(--white);
    text-align: center;
}

.gallery-modal__figure img {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.gallery-modal__figure figcaption {
    margin-top: 14px;
    font-weight: 700;
}

.gallery-modal__close,
.gallery-modal__nav {
    position: fixed;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--white);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.gallery-modal__close {
    top: 22px;
    right: 22px;
}

.gallery-modal__prev {
    left: 22px;
    top: 50%;
}

.gallery-modal__next {
    right: 22px;
    top: 50%;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.content-card,
.sidebar-card,
.admin-panel,
.admin-login {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-card h2,
.sidebar-card h2,
.admin-panel h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
}

.content-card p {
    color: var(--ink);
    font-weight: 600;
}

.content-image {
    width: 100%;
    max-height: 420px;
    margin-bottom: 24px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-card {
    position: sticky;
    top: 190px;
    display: grid;
    gap: 10px;
}

.sidebar-card a {
    padding: 11px 12px;
    color: var(--navy);
    background: var(--sky);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

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

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

.blog-card a {
    display: grid;
    height: 100%;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-card div {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.blog-card time,
.post-meta {
    color: var(--teal-dark);
    font-weight: 800;
}

.blog-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.22;
}

.blog-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.blog-card span {
    color: var(--teal-dark);
    font-weight: 800;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.admin-panel {
    margin-top: 24px;
}

.admin-panel h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-panel h2 span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    color: var(--white);
    background: var(--teal);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 15px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.admin-table th {
    color: var(--white);
    background: var(--navy);
}

.admin-table td {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.center-empty {
    display: flex;
    justify-content: center;
}

.ready-cta {
    padding-block: 28px;
}

.ready-cta__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
    padding: 26px 42px;
    color: var(--white);
    background: linear-gradient(120deg, #09395f, #002f53);
    border-radius: 8px;
}

.ready-cta__icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 42px;
}

.ready-cta h2 {
    color: var(--white);
    font-size: clamp(26px, 3vw, 34px);
}

.ready-cta p {
    max-width: 600px;
    margin: 6px 0 0;
    font-weight: 700;
}

.appointment-section {
    background: var(--sky);
}

.appointment-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 44px;
    align-items: start;
}

.appointment-copy p {
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
}

.contact-card {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--navy);
    font-weight: 800;
}

.contact-card i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: var(--teal);
    border-radius: 50%;
}

.appointment-form {
    display: grid;
    gap: 16px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-row.two-cols > div {
    display: grid;
    gap: 8px;
}

.appointment-form label {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    width: 100%;
    color: var(--ink);
    background: #fbfdfe;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
}

.appointment-form input,
.appointment-form select {
    height: 48px;
    padding: 0 14px;
}

.appointment-form textarea {
    resize: vertical;
    min-height: 112px;
    padding: 12px 14px;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(2, 154, 156, 0.12);
}

.form-alert {
    padding: 13px 15px;
    border-radius: 8px;
    font-weight: 700;
}

.form-alert.success {
    color: #075c36;
    background: #dcf8e9;
    border: 1px solid #9de2bd;
}

.form-alert.error {
    color: #8b1f18;
    background: #ffe7e4;
    border: 1px solid #ffc3bd;
}

.form-submit {
    width: fit-content;
    cursor: pointer;
}

.site-footer {
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(135deg, #06385d, #002f53);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1fr 1.15fr;
    gap: 34px;
    padding-block: 50px 38px;
}

.footer-brand img {
    width: 210px;
    height: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
}

.footer-links h2,
.footer-contact h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 20px;
}

.footer-links ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links a::before {
    content: "\f105";
    margin-right: 8px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.footer-contact p,
.footer-contact address {
    margin: 0 0 12px;
    font-style: normal;
}

.footer-contact a,
.footer-contact address {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
}

.footer-map {
    min-height: 44px;
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom span {
    color: var(--coral);
}

@media (max-width: 1160px) {
    .nav-list {
        gap: 18px;
    }

    .nav-list a {
        font-size: 14px;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    section[id] {
        scroll-margin-top: 102px;
    }

    .top-strip__inner {
        gap: 18px;
    }

    .top-strip a:first-child {
        display: none;
    }

    .main-nav__inner {
        min-height: 88px;
    }

    .dynamic-brand {
        max-width: min(56vw, 230px);
    }

    .dynamic-brand img {
        width: min(220px, 56vw);
        max-height: 74px;
    }

    .dynamic-brand strong {
        font-size: 16px;
    }

    .dynamic-brand small {
        font-size: 10px;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .nav-panel {
        position: absolute;
        top: 100%;
        right: 24px;
        left: 24px;
        display: none;
        padding: 18px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .nav-panel.is-open {
        display: grid;
        gap: 18px;
    }

    .nav-list {
        display: grid;
        gap: 6px;
    }

    .nav-list a {
        width: 100%;
        min-height: 42px;
    }

    .nav-appointment {
        width: fit-content;
    }

    .hero::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0.62) 100%);
    }

    .hero-card {
        display: none;
    }

    .split-layout,
    .doctor-card,
    .trust-grid,
    .appointment-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .doctor-card {
        padding: 22px;
    }

    .doctor-photo {
        max-width: 380px;
    }

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

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

@media (max-width: 760px) {
    section[id] {
        scroll-margin-top: 88px;
    }

    .container {
        width: min(100% - 30px, 1240px);
    }

    .top-strip {
        display: none;
    }

    .brand img {
        width: 190px;
    }

    .dynamic-brand img {
        width: min(190px, 58vw);
        max-height: 64px;
    }

    .dynamic-brand strong {
        font-size: 14px;
    }

    .dynamic-brand small {
        display: none;
    }

    .hero,
    .hero__inner {
        min-height: 620px;
    }

    .hero::before {
        background-position: 61% center;
    }

    .hero::after {
        background: rgba(255, 255, 255, 0.88);
    }

    .hero__inner {
        align-items: flex-start;
        padding-block: 42px;
    }

    .hero__content > p {
        font-size: 19px;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn {
        width: 100%;
        min-height: 46px;
    }

    .nav-appointment,
    .form-submit {
        width: 100%;
    }

    .section {
        padding-block: 54px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .service-card {
        min-height: 176px;
        padding: 20px 14px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .about-highlights,
    .stats-grid,
    .form-row.two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight-item:nth-child(2) {
        border-right: 0;
    }

    .highlight-item:nth-child(1),
    .highlight-item:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    }

    .testimonial-shell {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        display: none;
    }

    .testimonial-card {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid figure:first-child {
        grid-row: auto;
    }

    .ready-cta__inner {
        grid-template-columns: 1fr;
        padding: 24px;
        text-align: center;
    }

    .ready-cta__icon {
        margin-inline: auto;
    }

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

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

    .gallery-modal {
        padding: 72px 16px 28px;
    }

    .gallery-modal__prev,
    .gallery-modal__next {
        top: auto;
        bottom: 18px;
    }

    .gallery-modal__prev {
        left: calc(50% - 58px);
    }

    .gallery-modal__next {
        right: calc(50% - 58px);
    }

    .footer-bottom__inner {
        display: grid;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .about-highlights,
    .stats-grid,
    .form-row.two-cols {
        grid-template-columns: 1fr;
    }

    .highlight-item,
    .highlight-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .highlight-item:last-child {
        border-bottom: 0;
    }

    .stat-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .appointment-form {
        padding: 20px;
    }
}
