:root {
    --primary-color: #FF6B81;
    --secondary-color: #20C997;
    --background-color: #FFF0F3;
    --font-family-primary: 'Fraunces', serif;
    --font-family-secondary: 'Inter', sans-serif;

    --text-dark: #1A1018;
    --text-mid: #4A3F47;
    --text-light: #9C8A96;
    --surface-white: #FFFFFF;
    --surface-rose: #FFE0E6;
    --border-soft: rgba(255, 107, 129, 0.15);
    --shadow-card: 0 4px 32px rgba(255, 107, 129, 0.10);
    --shadow-hover: 0 12px 48px rgba(255, 107, 129, 0.18);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-xl: 48px;

    --nav-height: 72px;
    --section-pad: clamp(80px, 10vw, 140px);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background-color);
    font-family: var(--font-family-secondary);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-family-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(255, 107, 129, 0.08);
    border: 1px solid rgba(255, 107, 129, 0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-label--light {
    color: rgba(255, 240, 243, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 30px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(32, 201, 151, 0.30);
}

.btn--primary:hover {
    background: #18b888;
    border-color: #18b888;
    box-shadow: 0 8px 32px rgba(32, 201, 151, 0.38);
}

.btn--outline {
    background: transparent;
    color: var(--text-dark);
    border-color: rgba(26, 16, 24, 0.2);
}

.btn--outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn--full {
    width: 100%;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 240, 243, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 4px 24px rgba(255, 107, 129, 0.08);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: var(--font-family-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.2s ease;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: width 0.25s ease;
}

.nav__links a:hover {
    color: var(--primary-color);
}

.nav__links a:hover::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__mobile {
    display: none;
    flex-direction: column;
    padding: 16px clamp(20px, 4vw, 48px) 20px;
    gap: 4px;
    border-top: 1px solid var(--border-soft);
}

.nav__mobile.open {
    display: flex;
}

.nav__mobile a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
    transition: color 0.2s ease;
}

.nav__mobile a:hover {
    color: var(--primary-color);
}

.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
}

.hero__blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.blob--1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #FF6B81 0%, #FFB3C1 100%);
    top: -120px;
    right: -120px;
    animation: blobFloat 12s ease-in-out infinite;
}

.blob--2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #20C997 0%, #7efad8 100%);
    bottom: 80px;
    left: -100px;
    animation: blobFloat 15s ease-in-out infinite reverse;
}

.blob--3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #FFD6DC 0%, #FFC0CB 100%);
    top: 40%;
    left: 40%;
    animation: blobFloat 9s ease-in-out infinite 2s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.04);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.97);
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    animation: fadeUp 0.9s ease both;
}

.hero__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 24px;
    padding: 7px 18px;
    border: 1px solid var(--border-soft);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    animation: fadeUp 0.9s ease 0.1s both;
}

.hero__headline {
    font-family: var(--font-family-primary);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 24px;
    animation: fadeUp 0.9s ease 0.2s both;
}

.hero__headline em {
    font-style: italic;
    color: var(--primary-color);
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-mid);
    max-width: 520px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.7;
    animation: fadeUp 0.9s ease 0.3s both;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.9s ease 0.4s both;
}

.hero__stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 16px;
    margin-top: 80px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp 0.9s ease 0.55s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-card);
    min-width: 140px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-card__num {
    font-family: var(--font-family-primary);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-card__num em {
    font-family: var(--font-family-secondary);
    font-style: normal;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-left: 2px;
}

.stat-card__label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 400;
}

.about {
    padding: var(--section-pad) clamp(20px, 4vw, 48px);
    background: var(--surface-white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft), transparent);
}

.about__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 clamp(40px, 6vw, 80px);
    align-items: start;
}

.about__divider {
    background: var(--border-soft);
    align-self: stretch;
    margin: 0 clamp(20px, 3vw, 40px);
}

.about__title {
    font-family: var(--font-family-primary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about__col p {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 16px;
    line-height: 1.75;
}

.problem-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(255, 107, 129, 0.08);
    border: 1px solid rgba(255, 107, 129, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    margin: 4px 4px 4px 0;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.feature-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-list__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #18b888 100%);
    border-radius: 10px;
    position: relative;
    margin-top: 2px;
}

.feature-list__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 10px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    border-radius: 1px;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.feature-list li strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-list li p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.mission {
    padding: var(--section-pad) clamp(20px, 4vw, 48px);
    background: linear-gradient(135deg, #1A1018 0%, #2d1f2b 50%, #1e2d26 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.mission__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.mission__quote {
    font-family: var(--font-family-primary);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
}

.mission__quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 6rem;
    color: rgba(255, 107, 129, 0.2);
    font-family: var(--font-family-primary);
    line-height: 1;
}

.mission__body {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

.mission__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(32, 201, 151, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.join {
    padding: var(--section-pad) clamp(20px, 4vw, 48px);
    background: var(--background-color);
    position: relative;
}

.join__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.join__title {
    font-family: var(--font-family-primary);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 56px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.join__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
}

.join-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease;
}

.join-card:hover {
    box-shadow: var(--shadow-hover);
}

.join-card--alt {
    background: var(--surface-white);
    border-color: rgba(32, 201, 151, 0.15);
}

.join-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.join-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    position: relative;
}

.join-card__icon--patient {
    background: linear-gradient(135deg, #FF6B81 0%, #FFB3C1 100%);
}

.join-card__icon--clinic {
    background: linear-gradient(135deg, #20C997 0%, #7efad8 100%);
}

.join-card__icon--patient::after,
.join-card__icon--clinic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.8);
}

.join-card__header h3 {
    font-family: var(--font-family-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.join-card__header p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 7px;
    letter-spacing: 0.03em;
}

.field input {
    width: 100%;
    background: var(--background-color);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-family-secondary);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.field input::placeholder {
    color: var(--text-light);
}

.field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.1);
}

.join-card--alt .field input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

.join-card__form {
    padding-bottom: 4px;
}

.join-card__success {
    text-align: center;
    padding: 32px 0;
    animation: fadeUp 0.5s ease both;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary-color), #18b888);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
}

.success-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 13px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.join-card__success h3 {
    font-family: var(--font-family-primary);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.join-card__success p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

.contact {
    padding: var(--section-pad) clamp(20px, 4vw, 48px);
    background: var(--surface-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.contact__title {
    font-family: var(--font-family-primary);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.15;
}

.contact__body {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 36px;
    line-height: 1.75;
}

.contact__email {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(255, 107, 129, 0.3);
    padding-bottom: 4px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__email:hover {
    color: #e55a6e;
    border-color: #e55a6e;
}

.contact__ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--border-soft);
    pointer-events: none;
}

.contact__ring--1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.contact__ring--2 {
    width: 650px;
    height: 650px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
}

.footer {
    background: var(--text-dark);
    padding: 36px clamp(20px, 4vw, 48px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__logo {
    font-family: var(--font-family-primary);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.footer__tagline {
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.22);
    font-family: var(--font-family-primary);
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer__social-link svg {
    width: 16px;
    height: 16px;
}

.footer__social-link:hover {
    background: rgba(255, 107, 129, 0.15);
    border-color: rgba(255, 107, 129, 0.3);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

@media (max-width: 900px) {
    .about__inner {
        grid-template-columns: 1fr;
        gap: 48px 0;
    }

    .about__divider {
        display: none;
    }

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

    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        text-align: center;
    }

    .hero__stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 280px;
    }

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

    .footer__brand {
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }
}

.contact__form-wrap {
    margin-top: 52px;
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-card);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.contact__form-header {
    margin-bottom: 28px;
}

.contact__form-title {
    font-family: var(--font-family-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact__form-sub {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.55;
}

.contact__form textarea {
    width: 100%;
    background: var(--background-color);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-family-secondary);
    font-size: 0.9rem;
    color: var(--text-dark);
    outline: none;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.contact__form textarea::placeholder {
    color: var(--text-light);
}

.contact__form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.1);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 0 clamp(16px, 3vw, 40px);
    padding: 7px 12px 7px 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--border-soft);
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-family-secondary);
    font-size: 0.8rem;
    color: var(--text-light);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    min-width: 160px;
}

.nav__search-pill:hover {
    border-color: rgba(255, 107, 129, 0.35);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 12px rgba(255, 107, 129, 0.08);
    color: var(--text-mid);
}

.nav__search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-light);
}

.nav__search-text {
    flex: 1;
    text-align: left;
}

.nav__search-kbd {
    font-family: var(--font-family-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 2px 6px;
    letter-spacing: 0.02em;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: clamp(16px, 3vw, 32px);
}

.nav__search-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.6);
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-mid);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav__search-mobile svg {
    width: 16px;
    height: 16px;
}

.nav__search-mobile:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 107, 129, 0.35);
    color: var(--primary-color);
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(60px, 12vh, 120px);
    padding-left: 16px;
    padding-right: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-overlay.open {
    pointer-events: all;
    opacity: 1;
}

.search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 16, 24, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.search-overlay__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 580px;
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(26, 16, 24, 0.2), 0 4px 16px rgba(255, 107, 129, 0.08);
    overflow: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.open .search-overlay__panel {
    transform: translateY(0) scale(1);
}

.search-overlay__input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
}

.search-overlay__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-light);
}

.search-overlay__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-family-secondary);
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.search-overlay__input::placeholder {
    color: var(--text-light);
}

.search-overlay__esc {
    font-family: var(--font-family-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 3px 7px;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.search-overlay__results {
    max-height: 340px;
    overflow-y: auto;
    padding: 8px;
}

.search-overlay__results:empty {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(255, 107, 129, 0.06);
}

.search-result-item.active .search-result__icon {
    background: linear-gradient(135deg, var(--primary-color), #ff8fa0);
    color: #fff;
}

.search-result__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 107, 129, 0.08);
    border: 1px solid rgba(255, 107, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    transition: background 0.15s ease, color 0.15s ease;
}

.search-result__icon svg {
    width: 15px;
    height: 15px;
}

.search-result__body {
    flex: 1;
    min-width: 0;
}

.search-result__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result__title mark {
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
}

.search-result__desc {
    font-size: 0.76rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result__arrow {
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.search-result__arrow svg {
    width: 14px;
    height: 14px;
}

.search-result-item:hover .search-result__arrow,
.search-result-item.active .search-result__arrow {
    opacity: 1;
    transform: translateX(2px);
}

.search-overlay__empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.88rem;
}

.search-overlay__empty strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.search-overlay__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-soft);
    background: rgba(255, 240, 243, 0.5);
}

.search-overlay__footer span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-light);
}

.search-overlay__footer kbd {
    font-family: var(--font-family-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 2px 5px;
    color: var(--text-mid);
}

@media (max-width: 900px) {
    .nav__search-pill {
        display: none;
    }

    .nav__search-mobile {
        display: flex;
    }

    .nav__right {
        margin-left: 12px;
    }
}

.field-error {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 5px;
    padding-left: 2px;
    min-height: 1em;
}