:root {
    --ch-ink: #12323a;
    --ch-ink-soft: #2a4f58;
    --ch-accent: #1f6f78;
    --ch-accent-deep: #14555c;
    --ch-mist: #eef4f3;
    --ch-paper: #f7f9f8;
    --ch-line: rgba(18, 50, 58, 0.12);
    --ch-white: #ffffff;
    --ch-radius-sm: 6px;
    --ch-radius: 8px;
    --ch-radius-lg: 12px;
    --ch-font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    --ch-display: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.clinic-home-modern {
    margin: 0;
    font-family: var(--ch-font);
    color: var(--ch-ink);
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(31, 111, 120, 0.12), transparent 55%),
        radial-gradient(900px 500px at -10% 20%, rgba(18, 50, 58, 0.08), transparent 50%),
        var(--ch-paper);
    line-height: 1.8;
    direction: rtl;
}

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

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

.ch-shell {
    min-height: 100vh;
}

.ch-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(247, 249, 248, 0.86);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.ch-header.is-scrolled {
    border-bottom-color: var(--ch-line);
    background: rgba(247, 249, 248, 0.94);
}

.ch-header__inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ch-brand {
    font-family: var(--ch-display);
    font-weight: 700;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    letter-spacing: -0.02em;
    color: var(--ch-ink);
}

.ch-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ch-nav a {
    font-size: 0.95rem;
    color: var(--ch-ink-soft);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.25s ease;
}

.ch-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--ch-accent);
    transition: width 0.28s ease;
}

.ch-nav a:hover,
.ch-nav a.is-active {
    color: var(--ch-accent-deep);
}

.ch-nav a:hover::after,
.ch-nav a.is-active::after {
    width: 100%;
}

.ch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: var(--ch-radius);
    padding: 0.85rem 1.45rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ch-btn--primary {
    background: linear-gradient(135deg, var(--ch-accent) 0%, var(--ch-accent-deep) 100%);
    color: var(--ch-white);
}

.ch-btn--primary:hover {
    transform: translateY(-2px);
}

.ch-btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: var(--ch-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ch-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ch-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--ch-radius-sm);
    border: 1px solid var(--ch-line);
    background: var(--ch-white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ch-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ch-ink);
    position: relative;
}

.ch-menu-toggle span::before,
.ch-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ch-ink);
}

.ch-menu-toggle span::before { top: -6px; }
.ch-menu-toggle span::after { top: 6px; }

.ch-hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: grid;
    align-items: end;
    overflow: hidden;
    color: var(--ch-white);
}

.ch-hero__media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    animation: ch-hero-pan 18s ease-in-out infinite alternate;
}

.ch-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 28, 34, 0.28) 0%, rgba(10, 28, 34, 0.72) 70%, rgba(10, 28, 34, 0.88) 100%),
        linear-gradient(90deg, rgba(10, 28, 34, 0.55) 0%, rgba(10, 28, 34, 0.18) 100%);
}

.ch-hero__content {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 4.5rem;
    animation: ch-rise 0.9s ease both;
}

.ch-hero__brand {
    margin: 0 0 0.75rem;
    font-family: var(--ch-display);
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.ch-hero__lead {
    margin: 0 0 1.75rem;
    max-width: 38rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
}

.ch-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ch-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5rem 0;
}

.ch-section__head {
    margin-bottom: 2.25rem;
    animation: ch-rise 0.8s ease both;
}

.ch-section__head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ch-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ch-step {
    padding: 1.6rem 1.4rem;
    border-radius: var(--ch-radius-lg);
    background: linear-gradient(180deg, var(--ch-white), var(--ch-mist));
    border: 1px solid var(--ch-line);
    transition: transform 0.3s ease;
    animation: ch-rise 0.8s ease both;
}

.ch-step:nth-child(2) { animation-delay: 0.08s; }
.ch-step:nth-child(3) { animation-delay: 0.16s; }

.ch-step:hover {
    transform: translateY(-4px);
}

.ch-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--ch-radius-sm);
    background: rgba(31, 111, 120, 0.12);
    color: var(--ch-accent-deep);
    font-weight: 700;
    margin-bottom: 1rem;
}

.ch-step h3 {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
}

.ch-step p {
    margin: 0;
    color: var(--ch-ink-soft);
    font-size: 0.98rem;
}

.ch-panel {
    background: var(--ch-white);
    border: 1px solid var(--ch-line);
    border-radius: var(--ch-radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ch-terms {
    color: var(--ch-ink-soft);
}

.ch-terms :is(p, li, div) {
    line-height: 1.9;
}

.ch-map-wrap {
    overflow: hidden;
    border-radius: var(--ch-radius-lg);
    border: 1px solid var(--ch-line);
    min-height: 420px;
    background: var(--ch-mist);
}

#ch-map {
    width: 100%;
    height: 460px;
}

.ch-contact {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.25rem;
}

.ch-contact__text p {
    margin: 0 0 1.25rem;
    color: var(--ch-ink-soft);
    font-size: 1.05rem;
}

.ch-contact__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.ch-contact__list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    align-items: baseline;
    padding: 0.9rem 1rem;
    border-radius: var(--ch-radius-sm);
    background: var(--ch-mist);
    border: 1px solid var(--ch-line);
}

.ch-contact__list .lbl {
    color: var(--ch-accent-deep);
    font-weight: 700;
}

.ch-contact__list a {
    color: var(--ch-ink);
}

.ch-contact__list a:hover {
    color: var(--ch-accent);
}

.ch-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--ch-radius-lg);
    background: var(--ch-white);
    border: 1px solid var(--ch-line);
}

.ch-footer {
    border-top: 1px solid var(--ch-line);
    padding: 1.5rem 0 2.25rem;
}

.ch-footer__inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    color: var(--ch-ink-soft);
    font-size: 0.92rem;
}

.ch-footer a {
    color: var(--ch-accent-deep);
    font-weight: 600;
}

.ch-footer a:hover {
    text-decoration: underline;
}

@keyframes ch-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ch-hero-pan {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 960px) {
    .ch-steps,
    .ch-contact {
        grid-template-columns: 1fr;
    }

    .ch-nav {
        position: fixed;
        inset: 72px 0 auto 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem;
        background: rgba(247, 249, 248, 0.98);
        border-bottom: 1px solid var(--ch-line);
    }

    .ch-nav.is-open {
        display: flex;
    }

    .ch-nav a {
        padding: 0.85rem 1rem;
        border-radius: var(--ch-radius-sm);
    }

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

    .ch-header__cta {
        display: none;
    }

    .ch-menu-toggle {
        display: inline-flex;
    }

    .ch-hero {
        min-height: 78vh;
    }

    .ch-hero__brand {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ch-hero__media,
    .ch-step,
    .ch-hero__content,
    .ch-section__head {
        animation: none !important;
        transition: none !important;
    }
}
