
:root {
    --primary: #087f8c;
    --primary-dark: #06616b;
    --secondary: #e7f6f6;
    --accent: #f3b544;
    --text: #20313b;
    --muted: #647681;
    --white: #ffffff;
    --background: #f7fafb;
    --border: #dce6e9;
    --shadow: 0 12px 35px rgba(20, 55, 70, 0.08);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1160px, 92%);
    margin: auto;
}

.section {
    padding: 90px 0;
}

.section-soft {
    background: var(--background);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 1.25rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo > span:last-child {
    color: var(--primary);
}

.logo-icon {
    color: var(--white);
    background: var(--primary);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

nav a {
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover,
.footer a:hover {
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: white;
    padding: 11px 18px;
    border-radius: 8px;
}

nav .nav-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.menu-toggle {
    display: none;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 1.4rem;
    cursor: pointer;
}

.hero {
    padding: 72px 0 80px;
    background: linear-gradient(120deg, #f2fbfb, #ffffff 70%);
}

.hero-grid,
.about-grid,
.appointment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    letter-spacing: 2px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: -2px;
    margin-bottom: 23px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-content > p,
.about-content > p,
.appointment-intro > p {
    color: var(--muted);
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin: 28px 0 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary);
}

.btn-light {
    color: var(--primary-dark);
    background: white;
}

.btn-light:hover {
    background: var(--secondary);
}

.btn-full {
    width: 100%;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border-top: 1px solid var(--border);
    padding-top: 23px;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    font-size: 1.1rem;
}

.hero-trust small {
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-image {
    position: relative;
}

.hero-image > img,
.about-image > img {
    width: 100%;
    height: 490px;
    object-fit: cover;
    border-radius: 24px;
}

.image-card {
    position: absolute;
    left: -25px;
    bottom: 25px;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.image-card div {
    display: flex;
    flex-direction: column;
}

.image-card small {
    color: var(--muted);
}

.check-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.emergency {
    background: var(--primary);
    color: white;
    padding: 23px 0;
}

.emergency-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.emergency-inner p {
    color: #e2f6f7;
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.experience-card {
    position: absolute;
    right: -20px;
    bottom: 25px;
    background: white;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.experience-card strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.experience-card span {
    color: var(--muted);
    font-size: 0.85rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    margin: 25px 0 30px;
}

.check-list li {
    margin: 12px 0;
    font-weight: 600;
}

.check-list li::first-letter {
    color: var(--primary);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading p {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 29px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover,
.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    border-radius: 14px;
    color: var(--primary);
    background: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-card h3,
.doctor-card h3,
.contact-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.91rem;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.doctor-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    transition: 0.25s;
}

.doctor-card > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
}

.doctor-info {
    padding: 23px;
}

.doctor-info p {
    color: var(--primary);
    margin-bottom: 18px;
}

.demo-note {
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
    margin-top: 25px;
}

.appointment-intro h2 {
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 24px 0;
}

.contact-detail > span {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 1.3rem;
}

.contact-detail p {
    color: var(--muted);
    font-size: 0.9rem;
}

.notice {
    color: #6b7780;
    font-size: 0.8rem;
    margin-top: 18px;
}

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.form-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 19px;
}

.form-group label {
    font-size: 0.86rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    color: var(--text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.12);
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 20px;
    color: var(--muted);
    font-size: 0.84rem;
}

.consent input {
    margin-top: 6px;
    accent-color: var(--primary);
}

.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-message.success {
    color: #167448;
}

.form-message.error {
    color: #b42318;
}

.registration-wrap {
    max-width: 800px;
}

.registration-wrap .form-card {
    max-width: 760px;
    margin: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.contact-card {
    text-align: center;
    padding: 27px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-symbol {
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-card p {
    overflow-wrap: anywhere;
}

.contact-card small {
    display: block;
    color: var(--muted);
    margin-top: 7px;
}

.contact-form {
    max-width: 800px;
    margin: auto;
}

.footer {
    background: #102f3a;
    color: white;
    padding: 65px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 45px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-grid p {
    color: #c0d0d5;
    font-size: 0.9rem;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.footer-grid h3 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-grid > div:not(:first-child) a {
    display: block;
    color: #c0d0d5;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #36535d;
    padding: 22px 4%;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #c0d0d5;
    font-size: 0.8rem;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: none;
    z-index: 900;
}

.back-to-top.visible {
    display: block;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 950px) {
    nav {
        gap: 14px;
    }

    nav a {
        font-size: 0.82rem;
    }

    .hero-grid,
    .about-grid,
    .appointment-grid {
        gap: 35px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .section {
        padding: 65px 0;
    }

    .nav {
        min-height: 70px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 15px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 12px;
        font-size: 0.95rem;
    }

    .hero {
        padding: 55px 0;
    }

    .hero-grid,
    .about-grid,
    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-image > img,
    .about-image > img {
        height: 350px;
    }

    .image-card {
        left: 10px;
        bottom: 12px;
    }

    .experience-card {
        right: 10px;
    }

    .service-grid,
    .doctor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .emergency-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .appointment-grid {
        gap: 35px;
    }

    .footer-grid {
        gap: 25px;
    }
}

@media (max-width: 520px) {
    .container {
        width: 91%;
    }

    .logo {
        font-size: 1.05rem;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-trust {
        gap: 17px;
        justify-content: space-between;
    }

    .service-grid,
    .doctor-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card > img {
        height: 340px;
    }

    .form-card {
        padding: 22px 17px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .btn {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}