/* Tema editorial extraído de la referencia. Cargar al final de los CSS. */
:root {
    --color-canvas: #f7f4ef;
    --color-surface: #fffdf9;
    --color-surface-soft: #f4eee5;
    --color-ink: #151b1d;
    --color-copy: #4e5657;
    --color-muted: #747b7a;
    --color-line: #ddd8d0;
    --color-brand: #f1660b;
    --color-brand-hover: #d95200;
    --color-brand-soft: #fff1e5;
    --color-clinical: #426f68;
    --color-clinical-soft: #dce9e8;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 28px;
    --shadow-soft: 0 14px 40px rgba(35, 31, 26, 0.07);
    --shadow-hover: 0 18px 44px rgba(35, 31, 26, 0.11);
    --gradient-primary: linear-gradient(135deg, #f47519, #eb5b04);
    --medical-blue: var(--color-clinical);
    --medical-teal: #5b8780;
    --medical-green: #71968f;
    --medical-indigo: #426f68;
    --medical-amber: #f1660b;
    --section-bg: var(--color-canvas);
    --transition-smooth: 180ms ease;
}

body {
    color: var(--color-ink);
    background: var(--color-canvas);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100% - 48px, 1240px);
    max-width: 1240px;
    padding: 0;
}

/* Header */
.header {
    height: 88px;
    background: rgba(255, 253, 249, 0.94);
    border-bottom: 1px solid var(--color-line);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.nav { padding: 0; }

.logo {
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: var(--color-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
    font-size: 1.2rem;
    line-height: 1.25;
    text-decoration: none;
}

.logo-subtitle {
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 400;
}

.nav-menu { gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav-link { color: var(--color-ink); font-size: 0.94rem; }
.nav-link:hover { color: var(--color-brand); transform: none; }
.nav-link::after { height: 1px; background: var(--color-brand); }

.language-btn {
    color: var(--color-ink);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.language-btn:hover { border-color: var(--color-line); box-shadow: none; }
.language-toggle:checked ~ .language-btn,
.language-option.active { background: var(--color-clinical); }
.language-dropdown { border-color: var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }

/* Buttons */
.btn {
    min-height: 48px;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth), color var(--transition-smooth), transform var(--transition-smooth);
}

.btn::before { display: none; }
.btn-primary, .mobile-cta { color: #fff; background: var(--color-brand) !important; box-shadow: none; }
.btn-primary:hover, .mobile-cta:hover { color: #fff; background: var(--color-brand-hover) !important; box-shadow: none; transform: translateY(-1px); }
.btn-secondary { color: var(--color-ink); background: transparent; border-color: #bdb8b0; }
.btn-secondary:hover { color: var(--color-ink); background: var(--color-surface); border-color: var(--color-ink); transform: translateY(-1px); }

/* Hero */
.hero {
    min-height: auto;
    padding: 0;
    color: var(--color-ink);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
}

.hero::before, .floating-element { display: none; }
.hero-content { animation: heroSoftFade 0.9s ease-out both; }
.hero-content-split { animation: heroSoftFade 0.9s ease-out both; }
.hero-content-split {
    grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    min-height: clamp(610px, calc(100vh - 88px), 760px);
}

.hero-copy { padding: 3.5rem 0; }
.hero-eyebrow {
    margin-bottom: 1.1rem;
    color: var(--color-clinical);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    animation: heroSoftRise 0.75s ease-out 0.08s both;
}

.hero-title {
    max-width: 720px;
    margin-bottom: 1.15rem;
    color: var(--color-ink);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.04;
    text-shadow: none;
    animation: heroSoftRise 0.85s ease-out 0.18s both;
}

.hero-subtitle {
    max-width: 680px;
    margin: 0 0 0.35rem;
    color: var(--color-copy);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.55;
    opacity: 1;
    animation: heroSoftRiseRight 0.85s ease-out 0.32s both;
}

.hero-title-secondary {
    animation: heroSoftRise 0.85s ease-out 0.24s both;
}

.hero-subtitle-secondary {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.94rem;
    animation: heroSoftRiseRight 0.85s ease-out 0.42s both;
}
.hero-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 680px;
    margin: 0.5rem 0 1.25rem;
    padding: 0.95rem 1.1rem;
    color: var(--color-brand-hover);
    background: var(--color-brand-soft);
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    font-weight: 600;
}

.hero-highlight i {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--color-brand);
    border-radius: 7px;
}

.hero-buttons {
    display: grid;
    grid-template-columns: minmax(220px, 1.08fr) minmax(200px, 0.92fr);
    gap: 0.9rem;
    max-width: 680px;
    animation: heroSoftRise 0.9s ease-out 0.52s both;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.15rem;
    max-width: 680px;
    margin: 1.25rem 0 0;
    padding: 0;
    color: var(--color-copy);
    font-size: 0.8rem;
    list-style: none;
    animation: heroSoftFade 0.9s ease-out 0.68s both;
}

.hero-meta li { display: flex; align-items: center; gap: 0.45rem; }
.hero-meta i { color: var(--color-clinical); }
.hero-media {
    isolation: isolate;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1.2rem 0 0;
}

.hero-media::before {
    content: '';
    position: absolute;
    inset: 0% -6% -3% -12%;
    z-index: -1;
    background: #dceaf4;
    border-radius: 55% 45% 22% 18% / 30% 24% 14% 10%;
    clip-path: polygon(6% 18%, 20% 8%, 42% 3%, 63% 7%, 81% 16%, 92% 31%, 96% 51%, 91% 71%, 84% 86%, 69% 96%, 49% 100%, 27% 98%, 11% 90%, 4% 73%, 1% 49%, 2% 31%);
    transform: rotate(-4deg);
}

.hero-media img.hero-profile-transparent {
    width: 100%;
    height: auto;
    max-height: 690px;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.9) contrast(0.98);
    animation: heroPortraitFloatIn 1s ease-out 0.28s both;
}

@keyframes heroSoftFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroSoftRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSoftRiseRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroPortraitFloatIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Sections and cards */
.services { padding: clamp(3.75rem, 7vw, 6rem) 0; background: var(--color-surface); }
.section-title {
    margin-bottom: 2.5rem;
    color: var(--color-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.035em;
}
.section-title::after { display: none; }

.service-card {
    min-height: 270px;
    padding: 1.65rem;
    color: var(--color-ink);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: none;
    transform: none;
    transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.service-card::before { display: none; }
.service-card:hover { z-index: 2; border-color: #b9c9c6; box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.service-icon { color: var(--color-clinical); animation: none; }
.service-card:hover .service-icon { transform: none; }
.service-title { color: var(--color-ink); }
.service-description { color: var(--color-copy); }
.service-cta { color: var(--color-brand-hover); background: var(--color-brand-soft); }
.carousel-nav { color: var(--color-clinical); background: var(--color-surface); border: 1px solid var(--color-line); box-shadow: var(--shadow-soft); }

.about { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--color-surface); border-block: 1px solid var(--color-line); }
.about-content { gap: clamp(3rem, 8vw, 7rem); }
.about-text h2, .contact-card h2, .service-section h2, .feature-item h3, .sidebar-card h3 { color: var(--color-ink); }
.about-text h2, .contact-card h2 { font-weight: 600; letter-spacing: -0.035em; }
.about-text p, .contact-lead, .contact-meta, .service-section p, .feature-item p, .info-item span { color: var(--color-copy); }
.about-image {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 1;
    background: var(--color-clinical-soft);
    border-radius: 42% 58% 48% 52% / 45% 38% 62% 55%;
}
.about-image::before { display: none; }

/* Profile section on the Russian home page */
.about-profile {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
    background: var(--color-canvas);
}

.about-profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(3rem, 9vw, 8rem);
    align-items: start;
}

.about-profile-intro {
    position: sticky;
    top: 7.5rem;
}

.about-profile-eyebrow {
    margin-bottom: 0.8rem;
    color: var(--color-clinical);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-profile h2 {
    margin-bottom: 2rem;
    color: var(--color-ink);
    font-size: clamp(2.4rem, 4.3vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.about-profile-details {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--color-line);
}

.about-profile-details div {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    color: var(--color-copy);
    border-bottom: 1px solid var(--color-line);
    font-size: 0.9rem;
    line-height: 1.45;
}

.about-profile-details i {
    width: 1rem;
    margin-top: 0.16rem;
    color: var(--color-brand);
    text-align: center;
}

.about-profile-copy {
    max-width: 760px;
}

.about-profile-copy p {
    margin: 0;
    color: var(--color-copy);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.75;
}

.about-profile-copy p + p {
    margin-top: 1.5rem;
}

.contact-section {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
    background: var(--color-canvas);
    border-top: 1px solid var(--color-line);
}

.contact-card, .feature-item, .sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.contact-card {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.footer { color: #e8eeec; background: #24433f; }

/* Service detail pages */
.breadcrumb { background: var(--color-canvas); border-color: var(--color-line); }
.service-hero { color: var(--color-ink); background: var(--color-clinical-soft); }
.service-hero-icon, .breadcrumb-nav a, .feature-item i, .info-item i { color: var(--color-clinical); }
.condition-item { background: var(--color-surface-soft); border-left-color: var(--color-brand); }
.instagram-float-btn { background: var(--color-brand); box-shadow: 0 8px 24px rgba(241, 102, 11, 0.26); animation: none; }

@media (max-width: 900px) {
    .hero-content-split { grid-template-columns: minmax(280px, 0.8fr) minmax(390px, 1.2fr); gap: 2.25rem; }
    .nav-menu { gap: 1.25rem; }
    .logo-subtitle { display: none; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 32px, 1240px); padding: 0; }
    .header { height: 70px; }
    .hero { padding: 2.75rem 0 0; }
    .hero-content-split { display: flex; flex-direction: column; min-height: auto; gap: 0; text-align: left; }
    .hero-copy { display: flex; flex-direction: column; order: 1; padding: 1.5rem 0 2.5rem; }
    .hero-media {
        order: 0;
        width: 100%;
        height: min(78vw, 420px);
        margin-top: 0;
        overflow: hidden;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
    }
    .hero-media::before { inset: 3% 2% -1% 0; }
    .hero-media img.hero-profile-transparent {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center top;
    }
    .hero-title { font-size: clamp(2.35rem, 11vw, 3.5rem); }
    .hero-buttons { order: 0; grid-template-columns: 1fr; width: 100%; margin-top: 0; }
    .hero-buttons .btn { width: 100%; }
    .hero-meta { gap: 0.8rem 1rem; }
    .mobile-menu { background: rgba(36, 67, 63, 0.98); }
    .mobile-menu-content { gap: 1rem; }
    .mobile-menu-link { background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); }
    .about-content { text-align: left; }
    .about-profile-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-profile-intro { position: static; }
    .about-profile h2 { margin-bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
