@font-face {
    font-family: 'ItaliannoCustom';
    src: url('/fonts/Italianno-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --text: #173d67;
    --muted: #6f8299;
    --line: rgba(114, 166, 210, 0.18);
    --blue: #5da9e7;
    --blue-deep: #397fbe;
    --surface: rgba(255, 255, 255, 0.9);
    --shadow: 0 24px 54px rgba(101, 147, 188, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body.landing-page {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    font-family: 'Mulish', ui-sans-serif, system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(190, 225, 248, 0.42), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(208, 233, 250, 0.52), transparent 23%),
        linear-gradient(180deg, #fdfefe 0%, #f2f8fe 100%);
}

.page-shell {
    width: 100%;
    max-width: none;
    height: 100vh;
    padding: 0 0 20px;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
}

.page-shell::before {
    content: '';
    position: absolute;
    inset: 84px 9% auto auto;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(176, 220, 249, 0.32), transparent 68%);
    pointer-events: none;
}

.page-shell::after {
    content: '';
    position: absolute;
    inset: auto auto 120px 44%;
    width: 520px;
    height: 260px;
    background: radial-gradient(circle, rgba(207, 233, 248, 0.24), transparent 70%);
    pointer-events: none;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 54px) 14px;
    border-bottom: 1px solid rgba(168, 203, 230, 0.26);
    position: relative;
    z-index: 3;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(112, 170, 212, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(104, 150, 191, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #2a537f;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand {
    font-family: 'ItaliannoCustom', cursive;
    font-size: clamp(2.8rem, 4.1vw, 3.9rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #16385f;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 40px);
}

.main-nav a {
    position: relative;
    color: #718297;
    text-decoration: none;
    font-weight: 600;
}

.main-nav a.is-active,
.main-nav a:hover {
    color: #264d79;
}

.main-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 52px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #84caf2, #4b96da);
    transform: translateX(-50%);
}

.whatsapp-button,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover,
.primary-button:hover,
.secondary-button:hover,
.social-box:hover {
    transform: translateY(-2px);
}

.whatsapp-button {
    padding: 12px 18px;
    color: #fff;
    background: linear-gradient(180deg, #70bdf0, #519fdf);
    box-shadow: 0 14px 30px rgba(80, 154, 217, 0.28);
}

.icon-badge {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #1faa59;
    font-size: 0.8rem;
}

.icon-badge svg {
    width: 15px;
    height: 15px;
}

.whatsapp-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: 22px;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #32d16d, #18a84e);
    box-shadow:
        0 18px 35px rgba(21, 128, 61, 0.28),
        0 0 0 8px rgba(37, 211, 102, 0.12);
    text-decoration: none;
    z-index: 20;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 22px 42px rgba(21, 128, 61, 0.34),
        0 0 0 10px rgba(37, 211, 102, 0.14);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(320px, 560px) 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px clamp(18px, 4vw, 54px) 0;
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.1) 18%, rgba(255, 255, 255, 0.02) 34%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.84) 26%, rgba(255, 255, 255, 0.58) 42%, rgba(255, 255, 255, 0.16) 60%, rgba(255, 255, 255, 0.06) 100%),
        linear-gradient(270deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.84) 26%, rgba(255, 255, 255, 0.58) 42%, rgba(255, 255, 255, 0.16) 60%, rgba(255, 255, 255, 0.06) 100%),
        url('/images/hero-background.jpg') center center / cover no-repeat;
}

.hero-copy {
    padding-left: clamp(8px, 3vw, 48px);
    padding-top: clamp(8px, 2vw, 24px);
    max-width: 580px;
    position: relative;
    z-index: 3;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    color: #7d8b99;
    line-height: 1.08;
}

.hero-copy h1 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.9rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #173b66;
}

.hero-text {
    margin: 14px 0 22px;
    max-width: 420px;
    font-size: clamp(0.96rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: var(--muted);
}

.primary-button {
    min-width: 168px;
    padding: 13px 22px;
    color: #fff;
    background: linear-gradient(180deg, #70bdf0, #519fdf);
    box-shadow: 0 14px 30px rgba(80, 154, 217, 0.28);
}

.hero-visual {
    position: relative;
    min-height: 470px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 58%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
}

.hero-glow-one {
    top: 10px;
    right: 80px;
    width: 210px;
    height: 210px;
    background: rgba(175, 220, 249, 0.26);
}

.hero-glow-two {
    bottom: 70px;
    left: 100px;
    width: 250px;
    height: 250px;
    background: rgba(215, 236, 250, 0.5);
}

.doctor-figure {
    position: absolute;
    right: clamp(10px, 4vw, 70px);
    bottom: -2px;
    width: min(346px, 27vw);
    max-width: none;
    z-index: 1;
    filter: drop-shadow(0 26px 34px rgba(78, 133, 181, 0.14));
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 360px));
    gap: 18px;
    margin-top: -92px;
    padding: 0;
    width: min(100%, 1140px);
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 20px;
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
    box-shadow:
        0 22px 50px rgba(95, 140, 182, 0.16),
        0 8px 20px rgba(129, 166, 201, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(94, 158, 211, 0.34);
    box-shadow:
        0 30px 60px rgba(82, 132, 177, 0.2),
        0 12px 26px rgba(111, 154, 194, 0.12);
}

.feature-card-accent {
    margin-top: 0;
}

.card-kicker {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(171, 206, 230, 0.35);
    color: var(--blue-deep);
    font-size: clamp(1.3rem, 1.7vw, 1.7rem);
    font-weight: 800;
}

.feature-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 1.4vw, 1.45rem);
    line-height: 1.25;
    color: #21466d;
}

.card-meta {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
    flex: 1;
}

.secondary-button {
    min-width: 122px;
    padding: 9px 16px;
    color: #fff;
    border-radius: 6px;
    background: linear-gradient(180deg, #6dbbf0, #529edf);
    box-shadow: 0 10px 22px rgba(85, 154, 216, 0.2);
}

.community-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100%, 760px);
    padding: 20px 0 0 clamp(8px, 3vw, 48px);
    position: relative;
    z-index: 3;
}

.community-strip h2 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 1.8vw, 1.9rem);
    color: #1f446d;
}

.community-strip p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-box {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(89, 143, 190, 0.14);
    transition: transform 0.2s ease;
}

.social-box svg {
    width: 24px;
    height: 24px;
}

.social-box.telegram {
    background: linear-gradient(180deg, #59aae8, #3c89d1);
}

.social-box.youtube {
    background: linear-gradient(180deg, #f36969, #e13b3b);
}

@media (max-width: 1100px) {
    body.landing-page {
        height: auto;
        overflow: auto;
    }

    .page-shell {
        height: auto;
        min-height: 100vh;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        padding-bottom: 20px;
        position: relative;
        overflow: hidden;
    }

    .hero-visual {
        position: absolute;
        inset: 18px 0 0 auto;
        width: 46%;
        min-height: 100%;
        background:
            linear-gradient(270deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
    }

    .doctor-figure {
        right: -8px;
        bottom: -24px;
        width: min(320px, 42vw);
        transform: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        width: 100%;
        margin-top: 10px;
        padding: 0 18px;
    }

    .feature-card:last-child {
        grid-column: 1 / -1;
        max-width: 420px;
        justify-self: center;
    }

    .community-strip {
        width: 100%;
        padding: 20px 18px 0;
    }
}

@media (max-height: 820px) {
    body.landing-page {
        height: auto;
        overflow: auto;
    }

    .page-shell {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .topbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-actions {
        width: 100%;
        display: none;
        margin-left: 0;
        padding: 16px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 16px 34px rgba(99, 142, 180, 0.14);
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    body.menu-open .header-actions {
        display: flex;
    }

    body.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .brand {
        width: auto;
        text-align: left;
    }

    .hero-copy {
        padding-left: 0;
        max-width: none;
        padding-right: 34%;
        text-align: left;
        min-height: 300px;
        justify-content: flex-start;
        padding-top: 0;
        position: relative;
        z-index: 3;
    }

    .hero-text {
        margin-inline: 0;
        max-width: 260px;
    }

    .hero-actions {
        display: flex;
        justify-content: flex-start;
    }

    .main-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .main-nav a {
        font-size: 1rem;
    }

    .main-nav a.is-active::after {
        display: none;
    }

    .whatsapp-button {
        width: 100%;
    }

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

@media (max-width: 640px) {
    html,
    body.landing-page,
    .page-shell {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .page-shell {
        padding: 0 0 26px;
    }

    .main-nav {
        width: 100%;
    }

    .header-actions {
        gap: 14px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        padding: 28px 14px 0;
        position: relative;
        overflow: hidden;
        min-height: 340px;
        width: 100%;
        max-width: 100%;
    }

    .hero-visual {
        position: absolute;
        inset: 0 0 0 0;
        width: 100%;
        min-height: 100%;
        overflow: hidden;
        pointer-events: none;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.18)),
            linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.22) 58%, rgba(255, 255, 255, 0.08));
    }

    .doctor-figure {
        width: min(248px, 62vw);
        right: 0;
        transform: none;
        bottom: -44px;
        opacity: 0.95;
    }

    .feature-card {
        padding: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        padding: 0 14px;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
    }

    .feature-card:last-child {
        max-width: none;
    }

    .community-strip {
        padding: 20px 14px 0;
    }

    .whatsapp-float {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
    }
}
