:root {
    --ink: #1d252c;
    --muted: #63707a;
    --line: #dfe6ea;
    --paper: #ffffff;
    --soft: #f4f7f6;
    --accent: #d8a028;
    --accent-dark: #8a6313;
    --forest: #153b36;
    --blue: #254a66;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand {
    position: relative;
    font-weight: 800;
    font-size: 22px;
    color: var(--forest);
    padding: 8px 12px;
    text-shadow: 0 2px 0 rgba(216, 160, 40, 0.2);
    transform: perspective(700px) rotateX(4deg) translateZ(0);
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.brand::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 7px;
    background: rgba(216, 160, 40, 0.18);
    transform: skewX(-14deg) translateZ(-1px);
    z-index: -1;
}

.brand:hover {
    transform: perspective(700px) rotateX(0deg) translateY(-2px);
    text-shadow: 0 5px 10px rgba(21, 59, 54, 0.18);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav a {
    position: relative;
    padding: 8px 14px;
    border: 1px solid transparent;
    color: #27333b;
    font-weight: 700;
    transform: perspective(600px) rotateX(5deg) translateZ(0);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: perspective(600px) rotateX(0deg) translateY(-3px);
    box-shadow:
        0 10px 18px rgba(31, 45, 51, 0.12),
        4px 4px 0 rgba(216, 160, 40, 0.16);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    min-height: 640px;
    padding: 18px 0 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(13, 33, 38, 0.94), rgba(13, 33, 38, 0.78)),
        url("../images/slider-fon.jpg") center / cover no-repeat;
    overflow: hidden;
}

.hero__inner {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(390px, 520px);
    align-items: center;
    gap: 28px 46px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

.hero__content {
    align-self: start;
    padding: 34px 0 58px;
}

.hero h1 {
    max-width: 680px;
    font-size: clamp(40px, 5.5vw, 64px);
}

.hero__text {
    max-width: 580px;
    margin: 18px 0 0;
    color: #d9e2e2;
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border: 1px solid var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.primary-btn {
    color: #172127;
    background: var(--accent);
}

.secondary-btn {
    color: #fff;
    background: transparent;
}

.experience__journey-card {
    position: relative;
    width: min(520px, 100%);
    margin-top: 54px;
    padding: 10px;
    border: 1px solid rgba(216, 160, 40, 0.42);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        rgba(13, 33, 38, 0.48);
    box-shadow:
        0 26px 48px rgba(0, 0, 0, 0.28),
        10px 10px 0 rgba(216, 160, 40, 0.12);
    transform: perspective(900px) rotateY(5deg) rotateX(2deg);
}

.experience__journey-card::before {
    content: "";
    position: absolute;
    inset: 20px -12px -12px 20px;
    border: 1px solid rgba(216, 160, 40, 0.18);
    z-index: 0;
}

.experience__journey-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__photo {
    position: relative;
    align-self: start;
    justify-self: end;
    isolation: isolate;
    width: min(100%, 405px);
    margin-top: 34px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(216, 160, 40, 0.72);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
        linear-gradient(135deg, rgba(216, 160, 40, 0.18), rgba(8, 24, 28, 0.68));
    box-shadow:
        0 36px 74px rgba(0, 0, 0, 0.38),
        11px 11px 0 rgba(216, 160, 40, 0.11),
        inset 0 0 0 1px rgba(255, 255, 255, 0.13),
        inset 0 0 0 8px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg);
}

.hero__photo::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero__photo::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.hero__photo::after {
    inset: 20px -14px -14px 20px;
    border: 1px solid rgba(216, 160, 40, 0.34);
    box-shadow: 8px 8px 0 rgba(216, 160, 40, 0.06);
    z-index: 0;
}

.hero__photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: min(520px, calc(100vh - 160px));
    padding: 8px;
    object-fit: contain;
    object-position: center center;
    border: 1px solid rgba(216, 160, 40, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.28),
        5px 5px 0 rgba(216, 160, 40, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    filter: saturate(0.97) contrast(1.03);
}

.hero__photo-name {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.hero__quote {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 10px auto 0;
    padding: 13px 15px;
    border-left: 4px solid var(--accent);
    color: #edf4f3;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(8, 24, 28, 0.38)),
        rgba(8, 24, 28, 0.5);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.22),
        5px 5px 0 rgba(216, 160, 40, 0.11);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.35;
    text-align: left;
}

.section {
    padding: 84px 0;
}

.section-heading {
    max-width: 520px;
}

.section-heading.centered {
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--forest);
}

.section-heading p:last-child {
    color: var(--muted);
}

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

.about {
    background: var(--soft);
}

.about__copy {
    color: var(--muted);
    font-size: 18px;
}

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

.expertise-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 44px;
    perspective: 1200px;
}

.expertise-card,
.skill-card {
    min-height: 250px;
    padding: 32px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 38px rgba(31, 45, 51, 0.08);
}

.expertise-card {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(4deg) rotateY(-4deg) translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow:
        0 26px 50px rgba(21, 59, 54, 0.16),
        12px 12px 0 rgba(216, 160, 40, 0.12);
}

.expertise-card::before {
    content: "";
    position: absolute;
    inset: 10px -10px -10px 10px;
    border: 1px solid rgba(37, 74, 102, 0.16);
    background: rgba(21, 59, 54, 0.04);
    transform: translateZ(-1px);
    z-index: -1;
}

.expertise-card:hover {
    transform: rotateX(0deg) rotateY(0deg) translateY(-10px);
    border-color: rgba(216, 160, 40, 0.55);
    box-shadow:
        0 34px 70px rgba(21, 59, 54, 0.22),
        16px 16px 0 rgba(216, 160, 40, 0.16);
}

.skill-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: #fff;
    background: var(--blue);
    font-weight: 800;
}

.expertise-card h3,
.skill-card h3,
.project-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    color: var(--ink);
}

.expertise-card p,
.skill-card p,
.project-card p {
    margin: 0;
    color: var(--muted);
}

.projects {
    background: #f8faf9;
}

.projects .section-heading {
    margin-bottom: 38px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 38px rgba(31, 45, 51, 0.08);
}

.project-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.project-card__body {
    padding: 28px;
}

.project-meta {
    margin-bottom: 8px !important;
    color: var(--accent-dark) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.project-card--text {
    display: flex;
    min-height: 100%;
    color: #fff;
    background: var(--forest);
}

.project-card--text h3,
.project-card--text p {
    color: #fff;
}

.project-card--text .project-meta {
    color: var(--accent) !important;
}

.project-card--text a {
    margin-top: 22px;
    color: var(--accent);
    font-weight: 800;
}

.timeline {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(21, 59, 54, 0.92), rgba(21, 59, 54, 0.78)),
        url("../images/about-fon.jpg") center / cover no-repeat;
}

.timeline .section-heading h2 {
    color: #fff;
}

.timeline-list {
    display: grid;
    gap: 18px;
}

.timeline-item {
    padding: 22px 0 22px 28px;
    border-left: 3px solid var(--accent);
}

.timeline-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-weight: 800;
}

.timeline-item h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
}

.timeline-item strong {
    display: block;
    margin-bottom: 10px;
    color: #f5f0e5;
    font-weight: 800;
}

.timeline-item p {
    margin: 0;
    color: #dce7e4;
}

.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
    gap: 52px;
    align-items: start;
}

.contact__intro {
    display: grid;
    gap: 28px;
}

.contact__image {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border: 1px solid rgba(216, 160, 40, 0.38);
    background: #fff;
    box-shadow:
        0 26px 54px rgba(31, 45, 51, 0.14),
        12px 12px 0 rgba(216, 160, 40, 0.12);
}

.contact__image img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.04) contrast(1.02);
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 32px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 38px rgba(31, 45, 51, 0.08);
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fbfcfc;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .primary-btn {
    width: fit-content;
    border: 0;
}

.site-footer {
    padding: 28px 0;
    color: #dce3e1;
    background: #172127;
}

.patient-hero {
    padding: 92px 0 72px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(13, 33, 38, 0.94), rgba(13, 33, 38, 0.78)),
        url("../images/about-fon.jpg") center / cover no-repeat;
}

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

.patient-hero p:last-child {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dce7e4;
    font-size: 18px;
}

.patient-section {
    background: var(--soft);
}

.patient-layout {
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 38px;
    align-items: start;
    perspective: 1200px;
}

.problem-form,
.problem-card {
    border: 1px solid rgba(216, 160, 40, 0.22);
    background: #fff;
}

.problem-form {
    display: grid;
    gap: 16px;
    padding: 30px;
    position: sticky;
    top: 96px;
    box-shadow:
        0 22px 44px rgba(31, 45, 51, 0.1),
        8px 8px 0 rgba(216, 160, 40, 0.1);
    transform: rotateY(2deg);
}

.problem-form h2,
.problem-board h2 {
    margin: 0;
    color: var(--forest);
    font-size: 26px;
}

.problem-form label,
.reply-form {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.problem-form input,
.problem-form textarea,
.reply-form input,
.reply-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fbfcfc;
}

.problem-form textarea,
.reply-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-status,
.empty-state {
    margin: 0;
    color: var(--muted);
}

.problem-board {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 18px;
    min-height: 430px;
    padding: 28px;
    border: 1px solid rgba(216, 160, 40, 0.34);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 246, 0.92)),
        #fff;
    box-shadow:
        0 30px 70px rgba(31, 45, 51, 0.14),
        14px 14px 0 rgba(216, 160, 40, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.78);
    transform: rotateY(-2deg) rotateX(1deg);
}

.problem-board::before,
.problem-board::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.problem-board::before {
    inset: 10px;
    border: 1px solid rgba(21, 59, 54, 0.1);
}

.problem-board::after {
    inset: 22px -14px -14px 22px;
    border: 1px solid rgba(216, 160, 40, 0.22);
    z-index: -1;
}

.problem-board__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.secondary-dark-btn {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--blue);
    color: var(--blue);
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.problem-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    max-height: 600px;
    overflow-y: auto;
    padding: 4px 10px 4px 4px;
    scrollbar-color: var(--accent) rgba(21, 59, 54, 0.08);
}

.problem-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px;
    background:
        linear-gradient(145deg, #fff, #f7faf9);
    box-shadow:
        0 18px 34px rgba(31, 45, 51, 0.1),
        7px 7px 0 rgba(21, 59, 54, 0.06);
    transform: translateZ(0);
}

.problem-card::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(216, 160, 40, 0.12);
    pointer-events: none;
}

.problem-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.problem-card__meta strong {
    color: var(--forest);
    font-size: 20px;
}

.problem-card__meta span,
.problem-contact {
    color: var(--muted);
}

.problem-contact {
    position: relative;
    z-index: 1;
    margin: -6px 0 0;
    font-weight: 700;
}

.chat-bubble {
    position: relative;
    z-index: 1;
    padding: 16px 18px;
    border: 1px solid rgba(21, 59, 54, 0.08);
    box-shadow: 0 12px 24px rgba(31, 45, 51, 0.08);
}

.chat-bubble span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-bubble p {
    margin: 0;
}

.chat-bubble--patient {
    margin-right: 34px;
    background: #f6fbfa;
    border-left: 4px solid var(--forest);
}

.chat-bubble--doctor {
    margin-left: 34px;
    background: #fff9ec;
    border-left: 4px solid var(--accent);
}

.reply-box {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.reply-box h3 {
    margin: 0 0 8px;
    color: var(--blue);
}

.reply-form {
    margin-top: 14px;
}

.reply-form .primary-btn {
    width: fit-content;
    border: 0;
}

.delete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.delete-form input {
    min-width: 180px;
    flex: 1;
    border: 1px solid var(--line);
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fbfcfc;
}

.danger-btn {
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid #9c2d2d;
    color: #fff;
    background: #9c2d2d;
    font-weight: 800;
    cursor: pointer;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__inner p {
    margin: 0;
}

.developer-credit {
    color: #fff;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--accent);
    font-weight: 800;
}

@media (max-width: 900px) {
    .hero {
        min-height: 590px;
        padding: 28px 0 0;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
        min-height: 560px;
        gap: 24px;
    }

    .hero__content {
        padding: 32px 0 54px;
    }

    .hero h1 {
        font-size: clamp(42px, 7vw, 58px);
    }

    .hero__text {
        font-size: 17px;
    }

    .hero__photo {
        justify-self: end;
        width: min(100%, 360px);
        margin-top: 26px;
    }

    .hero__photo img {
        height: auto;
        max-height: 520px;
    }

    .hero__quote {
        font-size: 19px;
    }

    .split {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 34px;
    }

    .contact__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
        gap: 32px;
    }

    .patient-layout {
        grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
        gap: 24px;
    }

    .problem-form {
        padding: 24px;
    }

    .problem-board {
        padding: 24px;
    }

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

@media (max-width: 700px) {
    .header__inner {
        min-height: 78px;
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 9px 0;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        width: 100%;
        gap: 6px;
        flex-wrap: wrap;
        overflow-x: hidden;
        padding-bottom: 3px;
    }

    .site-nav a {
        flex: 0 1 auto;
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
        overflow: visible;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 20px;
    }

    .hero__content {
        display: contents;
    }

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

    .hero__text {
        order: 2;
        margin-top: 18px;
        font-size: 15px;
    }

    .hero__actions {
        order: 4;
        gap: 10px;
        margin: 0 0 42px;
    }

    .primary-btn,
    .secondary-btn {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .hero__photo {
        order: 3;
        justify-self: center;
        width: min(86vw, 360px);
        margin-top: 6px;
        padding: 14px;
        transform: none;
    }

    .hero__photo::after {
        inset: 18px 0 -10px 18px;
    }

    .hero__photo-name {
        font-size: 18px;
    }

    .hero__quote {
        padding: 12px 13px;
        font-size: 14px;
    }

    .section {
        padding: 64px 0;
    }

    .section-heading h2 {
        font-size: clamp(28px, 6vw, 38px);
    }

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

    .expertise-card,
    .skill-card {
        min-height: 220px;
        padding: 24px;
    }

    .split,
    .contact__inner,
    .patient-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-form,
    .problem-form,
    .problem-board {
        padding: 20px;
    }

    .problem-form input,
    .problem-form textarea,
    .reply-form input,
    .reply-form textarea {
        padding: 10px;
        font-size: 13px;
    }

    .chat-bubble--patient {
        margin-right: 14px;
    }

    .chat-bubble--doctor {
        margin-left: 14px;
    }

    .footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 460px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: min(100% - 24px, 1140px);
    }

    .hero {
        min-height: auto;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 16px;
    }

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

    .hero__text {
        font-size: 13px;
    }

    .hero__actions {
        flex-direction: row;
        justify-content: center;
        margin-bottom: 34px;
    }

    .hero__photo {
        width: min(86vw, 330px);
        padding: 12px;
    }

    .hero__photo img {
        padding: 6px;
    }

    .hero__photo-name {
        margin-top: 10px;
        font-size: 13px;
    }

    .hero__quote {
        margin-top: 9px;
        padding: 9px 10px;
        border-left-width: 3px;
        font-size: 11px;
    }

    .primary-btn,
    .secondary-btn {
        width: auto;
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a {
        padding: 5px 7px;
        font-size: 12px;
    }

    .split,
    .contact__inner,
    .patient-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .patient-section .container,
    .contact .container {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .patient-layout,
    .contact__inner {
        min-width: 0;
    }

    .section-heading,
    .about__copy,
    .problem-form,
    .problem-board,
    .contact-form,
    .contact__intro {
        min-width: 0;
    }

    .section-heading h2 {
        overflow-wrap: anywhere;
    }

    .about .section-heading h2 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .timeline .section-heading h2 {
        max-width: 100%;
        font-size: clamp(28px, 8.5vw, 38px);
        line-height: 1.12;
        overflow-wrap: normal;
        word-break: normal;
    }

    .about__copy {
        font-size: 15px;
    }

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

    .expertise-card,
    .skill-card {
        min-height: 190px;
        padding: 16px;
        transform: none;
        box-shadow:
            0 18px 36px rgba(21, 59, 54, 0.14),
            6px 6px 0 rgba(216, 160, 40, 0.1);
    }

    .expertise-card h3,
    .skill-card h3,
    .project-card h3 {
        font-size: 17px;
    }

    .expertise-card p,
    .skill-card p,
    .project-card p,
    .about__copy,
    .timeline-item p {
        font-size: 13px;
    }

    .timeline .split {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .timeline-item {
        padding-left: 18px;
    }

    .timeline-item h3 {
        font-size: 20px;
    }

    .experience__journey-card {
        width: 100%;
        margin-top: 22px;
        transform: none;
    }

    .problem-form,
    .problem-board {
        transform: none;
        box-shadow:
            0 18px 36px rgba(31, 45, 51, 0.1),
            6px 6px 0 rgba(216, 160, 40, 0.08);
    }

    .problem-board::after {
        inset: 16px 0 -10px 16px;
    }

    .problem-board__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .problem-list {
        max-height: 540px;
        padding-right: 2px;
    }

    .chat-bubble--patient,
    .chat-bubble--doctor {
        margin-left: 0;
        margin-right: 0;
    }

    .contact-form {
        padding: 18px;
    }
}
