/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
---------------------------------------------------- */
:root {
    --primary: #0B56E5;
    --primary-hover: #0944B6;
    --primary-light: #EBF2FF;
    --success: #1F946D;
    
    --navy-dark: #070D1E;
    --navy-card: #0F1A36;
    --navy-footer: #0A1128;
    
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(11, 86, 229, 0.05), 0 4px 6px -4px rgba(11, 86, 229, 0.05);
    --shadow-lg: 0 20px 40px -5px rgba(15, 23, 42, 0.08), 0 10px 20px -10px rgba(15, 23, 42, 0.08);
    --shadow-blue: 0 15px 30px rgba(11, 86, 229, 0.25);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius: 12px;
}

/* ----------------------------------------------------
   GPU HARDWARE ACCELERATION
---------------------------------------------------- */
.adv-card,
.service-card,
.doctor-card,
.review-card,
.price-card,
.compare-card,
.wondering-card,
.ct-row,
.btn,
.floating-chat {
    will-change: transform, box-shadow, border-color;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ----------------------------------------------------
   BASE STYLES & RESET
---------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

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

/* ----------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

.section-title {
    font-size: 2.25rem; /* 36px */
    line-height: 1.25;
    margin-bottom: 1rem;
    position: relative;
}

.text-blue {
    color: var(--primary);
}

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

.hidden {
    display: none !important;
}

/* ----------------------------------------------------
   BUTTONS
---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(11, 86, 229, 0.2);
}

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

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

.btn--outline {
    border: 1.5px solid var(--text-light);
    color: var(--text-dark);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn--white {
    background-color: var(--white);
    color: var(--primary);
}

.btn--white:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn--block {
    display: flex;
    width: 100%;
}

/* ----------------------------------------------------
   BADGES
---------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge__icon {
    flex-shrink: 0;
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
---------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
}

.header__container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.4s ease-in-out;
}

.header.scrolled .header__container {
    height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.4s ease-in-out, width 0.4s ease-in-out, gap 0.4s ease-in-out;
}

.logo__icon {
    width: 42px;
    height: 42px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 10px;
    padding: 8px;
    transition: var(--transition-normal);
}

.logo:hover .logo__icon {
    transform: rotate(-10deg) scale(1.05);
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__cn {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo__en {
    font-size: 0.6875rem; /* 11px */
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 1px;
}

/* Nav Links */
.nav {
    display: block;
}

@media (min-width: 1025px) {
    .nav {
        margin-left: 60px;
        margin-right: auto;
    }
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav__link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

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

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link--active {
    color: var(--primary);
    font-weight: 600;
}

.nav__link--active::after {
    transform: scaleX(1);
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-selector__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-selector__trigger:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-selector__dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: var(--white);
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 10;
}

.lang-selector:hover .lang-selector__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-selector__link {
    display: block;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
}

.lang-selector__link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.lang-selector__link.active {
    color: var(--primary);
    font-weight: 700;
}

/* Hamburger button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition-fast);
}

/* Mobile Nav Open States */
.header.nav-open .hamburger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header.nav-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

.header.nav-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ----------------------------------------------------
   HERO SECTION — Full-bleed background photo
---------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Header height offset */
}

/* Background image container */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

/* White gradient overlay — strong on left, fades to right */
.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.97) 28%,
        rgba(255, 255, 255, 0.82) 45%,
        rgba(255, 255, 255, 0.35) 65%,
        rgba(255, 255, 255, 0) 80%
    );
}

/* Subtle top gradient to protect navbar readability */
.hero__gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0.6) 0%,
        transparent 15%,
        transparent 85%,
        rgba(248, 250, 252, 0.4) 100%
    );
}

/* Content is laid over the bg */
.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 80px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 580px;
}

.hero__badge {
    margin-bottom: 24px;
}

.hero__title {
    font-size: 3.75rem;
    line-height: 1.12;
    letter-spacing: -2px;
    color: var(--text-dark);
    margin-bottom: 22px;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero__btn svg {
    margin-left: 4px;
    transition: transform var(--transition-fast);
}

.hero__btn:hover svg {
    transform: translateX(4px);
}

.hero__trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__trust-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero__flags {
    display: flex;
    gap: 10px;
}

.flag-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--white);
    transition: var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}

.flag-icon:hover {
    transform: translateY(-3px) scale(1.12);
    box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------
   ADVANTAGES SECTION
---------------------------------------------------- */
.advantages {
    padding: 40px 0 80px;
    position: relative;
    z-index: 10;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -60px;
}

.adv-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.adv-card:hover {
    transform: translateY(-8px);
    border-color: rgba(11, 86, 229, 0.25);
    box-shadow: 0 20px 40px rgba(11, 86, 229, 0.08);
}

.adv-card__icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-normal);
}

.adv-card:hover .adv-card__icon-wrapper {
    background-color: var(--primary);
    color: var(--white);
}

.adv-card__icon {
    width: 24px;
    height: 24px;
}

.adv-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.adv-card__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ----------------------------------------------------
   ABOUT CLINIC SECTION
---------------------------------------------------- */
.about-clinic {
    position: relative;
    padding: 100px 0;
    background-image: url('img/hero_reception.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-fast);
}

.about-clinic::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.96);
    z-index: 1;
}

.about-clinic__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-clinic__image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1;
    transform: translate3d(0, 0, 0);
    isolation: isolate;
}

.about-clinic__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.about-clinic__image-wrapper:hover .about-clinic__img {
    transform: scale(1.03);
}

.about-clinic__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-clinic__badge {
    margin-bottom: 20px;
}

.about-clinic__text {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-clinic__text strong {
    color: var(--text-dark);
}

.about-clinic__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.about-clinic__feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-dark);
    font-weight: 500;
}

.about-clinic__feature-icon {
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

/* Responsiveness overrides for about-clinic */
@media (max-width: 1024px) {
    .about-clinic__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-clinic__image-wrapper {
        aspect-ratio: 1.4;
    }
}

@media (max-width: 768px) {
    .about-clinic {
        padding: 80px 0;
    }
    
    .about-clinic__image-wrapper {
        aspect-ratio: 1.2;
    }
}

@media (max-width: 480px) {
    .about-clinic__image-wrapper {
        aspect-ratio: 1;
    }
}

/* ----------------------------------------------------
   PARTNERSHIP SECTION
---------------------------------------------------- */
.partnership {
    padding: 100px 0;
    overflow: hidden;
}

.partnership__container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.partnership__image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.partnership__img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: var(--transition-normal);
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.partnership__image-wrapper:hover .partnership__img {
    transform: scale(1.03);
}

.partnership__badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 64px;
    height: 64px;
    z-index: 5;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 148, 109, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(31, 148, 109, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(31, 148, 109, 0); }
}

.partnership__content {
    display: flex;
    flex-direction: column;
}

.partnership__description {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.partnership__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: 2.75rem; /* 44px */
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-item__text {
    font-size: 0.8125rem; /* 13px */
    color: var(--text-muted);
    line-height: 1.4;
}

/* ----------------------------------------------------
   DOCTORS SECTION (CAROUSEL)
---------------------------------------------------- */
.doctors {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.doctors__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.doctors__all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.doctors__all-link svg {
    transition: transform var(--transition-fast);
}

.doctors__all-link:hover {
    color: var(--primary-hover);
}

.doctors__all-link:hover svg {
    transform: translateX(4px);
}

/* Carousel Layout */
.carousel {
    position: relative;
    width: 100%;
}

.carousel__viewport {
    width: 100%;
    overflow: hidden;
}

.carousel__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Doctor Card */
.doctor-card {
    flex: 0 0 calc(25% - 18px); /* 4 items layout by default */
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition-normal);
    transform: translate3d(0, 0, 0);
    isolation: isolate;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 86, 229, 0.15);
}

.doctor-card__img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.doctor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.doctor-card:hover .doctor-card__img {
    transform: scale(1.05);
}

.doctor-card__info {
    padding: 24px;
}

.doctor-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.doctor-card__post {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.doctor-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Controls */
.carousel__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.carousel__dots {
    display: flex;
    gap: 8px;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #CBD5E1;
    cursor: pointer;
    transition: var(--transition-normal);
}

.carousel__dot:hover {
    background-color: #94A3B8;
}

.carousel__dot--active {
    width: 24px;
    border-radius: 10px;
    background-color: var(--primary);
}

.carousel__buttons {
    display: flex;
    gap: 12px;
}

.carousel__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(203, 213, 225, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
    background-color: var(--white);
}

.carousel__btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ----------------------------------------------------
   SERVICES GRID SECTION
---------------------------------------------------- */
.services {
    padding: 100px 0;
}

.services .section-title {
    margin-bottom: 48px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Service Card */
.service-card {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 0.76; /* Vertical look matching the sketch */
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    transform: translate3d(0, 0, 0);
    isolation: isolate;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card__img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.service-card:hover .service-card__img {
    transform: scale(1.08);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.45) 60%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
    transition: var(--transition-normal);
}

.service-card:hover::after {
    background: linear-gradient(to bottom, rgba(11, 86, 229, 0) 20%, rgba(11, 86, 229, 0.3) 50%, rgba(11, 86, 229, 0.85) 100%);
}

.service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--white);
}

.service-card__title {
    color: var(--white);
    font-size: 1.1875rem; /* 19px */
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition-fast);
}

.service-card__link svg {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link {
    color: var(--white);
}

.service-card:hover .service-card__link svg {
    transform: translateX(4px);
}

/* ----------------------------------------------------
   HOW IT WORKS TIMELINE (STEPS)
---------------------------------------------------- */
.steps {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.steps .section-title {
    margin-bottom: 64px;
}

.steps__timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
}

/* Dashed connector line */
.steps__timeline::before {
    content: '';
    position: absolute;
    top: 100px; /* Align with center of node icons (adjusted for 80px nodes) */
    left: 10%;
    width: 80%;
    height: 2px;
    background: repeating-linear-gradient(to right, #CBD5E1 0, #CBD5E1 4px, transparent 4px, transparent 8px);
    z-index: 1;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-item__number {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--primary);
    background-color: var(--primary-light);
    border-radius: 100px;
    padding: 4px 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.step-item__node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.step-item:hover .step-item__node {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: var(--shadow-blue);
}

.step-item__icon-wrapper {
    width: 28px;
    height: 28px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item__icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.step-item:hover .step-item__icon-wrapper {
    color: var(--white);
}

.step-item__title {
    font-size: 1.0625rem; /* 17px */
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.step-item__text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 200px;
}

/* ----------------------------------------------------
   FOOTER (CONTACT BANNER & LOWER FOOTER)
---------------------------------------------------- */
.footer {
    background-color: var(--navy-footer);
    color: var(--white);
    padding-top: 100px;
    padding-bottom: 40px;
}

.footer__banner {
    background: radial-gradient(circle at 10% 10%, rgba(11, 86, 229, 0.3) 0%, rgba(15, 26, 54, 0) 60%), var(--navy-card);
    border-radius: 32px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 80px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.footer__banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__banner-title {
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.footer__banner-text {
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 440px;
}

.footer__banner-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px 24px;
}

/* Contact Block */
.contact-info-block {
    display: flex;
    gap: 16px;
}

.contact-info-block__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-block__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-block__text strong {
    font-size: 0.8125rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-block__text span {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--white);
}

/* QR block */
.qr-block {
    grid-row: span 2;
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    justify-self: end;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.qr-block__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Lower Footer */
.footer__lower {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.logo--footer {
    color: var(--white);
}

.logo--footer .logo__cn {
    color: var(--white);
}

.logo--footer .logo__en {
    color: var(--text-light);
}

.logo--footer .logo__icon {
    background-color: rgba(255, 255, 255, 0.08);
}

.footer__copy {
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__link {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--white);
}

button.footer__link {
    padding: 0;
    cursor: pointer;
}

/* Footer Grid */
.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 20px;
}

.footer__grid-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__grid-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer__grid-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer__grid-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__grid-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer__grid-list a:hover {
    color: var(--white);
    padding-left: 4px;
}

/* ----------------------------------------------------
   MODAL DIALOG
---------------------------------------------------- */
body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: visibility 0.25s ease;
}

.modal.active {
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0);
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal__overlay {
    background-color: rgba(15, 23, 42, 0.6);
}

.modal__container {
    background-color: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    padding: 44px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    will-change: transform, opacity;
}

.modal.active .modal__container {
    opacity: 1;
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal__close:hover {
    color: var(--text-dark);
}

.modal__title {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.modal__subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Form Styles */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background-color: #F8FAFC;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(11, 86, 229, 0.1);
}

/* Captcha Bot Protection Slider */
.captcha-group {
    background-color: var(--bg-light);
    padding: 16px;
    border-radius: var(--border-radius);
    border: 1.5px solid #E2E8F0;
    margin-top: 8px;
    transition: var(--transition-fast);
}

.captcha-group.verified {
    border-color: var(--success);
    background-color: #E8F8F5;
}

.captcha-label {
    margin-bottom: 8px;
    display: block;
    user-select: none;
}

.captcha-target-val {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    background: rgba(11, 86, 229, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-left: 4px;
}

.captcha-group.verified .captcha-target-val {
    color: var(--success);
    background: rgba(31, 148, 109, 0.1);
}

.captcha-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #E2E8F0;
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
    margin: 0;
    padding: 0 !important;
    border: none !important;
}

.captcha-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
    box-shadow: 0 2px 6px rgba(11, 86, 229, 0.3);
}

.captcha-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.1s, background-color 0.3s;
    border: none;
    box-shadow: 0 2px 6px rgba(11, 86, 229, 0.3);
}

.captcha-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

.captcha-slider:active::-moz-range-thumb {
    transform: scale(1.2);
}

.captcha-group.verified .captcha-slider::-webkit-slider-thumb {
    background: var(--success);
    box-shadow: 0 2px 6px rgba(31, 148, 109, 0.3);
}

.captcha-group.verified .captcha-slider::-moz-range-thumb {
    background: var(--success);
    box-shadow: 0 2px 6px rgba(31, 148, 109, 0.3);
}

.captcha-current-val {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 28px;
    text-align: right;
    user-select: none;
}

.captcha-group.verified .captcha-current-val {
    color: var(--success);
}

.captcha-success-msg {
    color: var(--success);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.btn:disabled {
    background-color: var(--text-light);
    color: var(--white);
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}

/* Success layout */
.booking-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.booking-success__icon {
    margin-bottom: 24px;
}

.booking-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.booking-success p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 30px;
}

/* ----------------------------------------------------
   RESPONSIVENESS (MEDIA QUERIES)
---------------------------------------------------- */

/* Intermediate Desktop Adjustment (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .nav {
        margin-left: 28px;
    }
    .nav__list {
        gap: 16px;
    }
    .nav__link {
        font-size: 0.875rem;
    }
    .header__actions {
        gap: 12px;
    }
    .logo {
        gap: 8px;
    }
    .logo__cn {
        font-size: 0.9375rem;
    }
}

/* Desktop / Tablet Breakpoint (1024px) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 2.75rem;
    }
    
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -40px;
    }
    
    .partnership__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .partnership__img {
        height: 340px;
    }
    
    .doctor-card {
        flex: 0 0 calc(50% - 12px); /* Show 2 doctors at once */
    }
    
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps__timeline {
        flex-wrap: wrap;
        gap: 40px 20px;
    }
    
    .steps__timeline::before {
        display: none; /* Hide horizontal connector */
    }
    
    .step-item {
        flex: 0 0 calc(33.333% - 14px);
    }
    
    .footer__banner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .footer__banner-grid {
        justify-self: stretch;
    }

    /* Navigation Drawer & Hamburger on Tablet */
    .header.scrolled {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid transparent;
        box-shadow: none;
    }
    
    .header.nav-open,
    .header.scrolled.nav-open {
        background-color: var(--white);
        border-bottom: 1px solid #E2E8F0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }

    .hamburger-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        z-index: 999;
        padding: 40px;
        border-top: 1px solid #E2E8F0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease, height 0.3s ease;
    }
    
    .header.scrolled .nav {
        top: 64px;
        height: calc(100vh - 64px);
    }
    
    .header.nav-open .nav {
        transform: translateX(0);
    }
    
    .nav__list {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav__link {
        font-size: 1.125rem;
    }
    
    .header__actions .btn {
        display: none; /* Hide header CTA button on mobile/tablet */
    }

    /* Mini header on mobile scroll (200px+) */
    .header--mini .header__container {
        height: 48px;
        transition: height 0.4s ease-in-out;
    }
    
    .header--mini .logo {
        opacity: 0;
        pointer-events: none;
        width: 0;
        overflow: hidden;
        gap: 0;
        transition: opacity 0.4s ease-in-out, width 0.4s ease-in-out, gap 0.4s ease-in-out;
    }
    
    .header--mini .lang-selector {
        opacity: 0;
        pointer-events: none;
        width: 0;
        overflow: hidden;
        transition: opacity 0.4s ease-in-out, width 0.4s ease-in-out;
    }
    
    .header--mini .header__actions {
        flex: 1;
        justify-content: flex-end;
    }
    
    /* Keep nav drawer position synced with mini header */
    .header--mini .nav {
        top: 48px;
        height: calc(100vh - 48px);
    }
    
    /* Don't collapse when mobile menu is open */
    .header.nav-open.header--mini .header__container {
        height: 64px;
    }
    
    .header.nav-open.header--mini .logo {
        opacity: 1;
        pointer-events: auto;
        width: auto;
        gap: 12px;
    }
    
    .header.nav-open.header--mini .lang-selector {
        opacity: 1;
        pointer-events: auto;
        width: auto;
    }
    
    .header.nav-open.header--mini .nav {
        top: 64px;
        height: calc(100vh - 64px);
    }
}

/* Tablet / Mobile Breakpoint (768px) */
@media (max-width: 768px) {
    /* Hero — center text on tablet/mobile */
    .hero {
        min-height: auto;
        padding-top: 80px;
    }

    .hero__container {
        text-align: center;
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero__content {
        align-items: center;
        max-width: 100%;
    }
    
    .hero__actions {
        justify-content: center;
    }

    /* Stronger gradient on mobile so text is always readable */
    .hero__gradient {
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.98) 40%,
            rgba(255, 255, 255, 0.88) 60%,
            rgba(255, 255, 255, 0.6) 80%,
            rgba(255, 255, 255, 0.3) 100%
        );
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .footer__lower {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer__grid-col {
        align-items: center;
    }
    
    .footer__grid-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__grid-list a:hover {
        padding-left: 0;
    }
}

/* Mobile Small Breakpoint (480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    /* On very small screens make gradient fully opaque for legibility */
    .hero__gradient {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.45) 100%
        );
    }

    .hero__subtitle {
        font-size: 1rem;
    }
    
    .advantages__grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 40px;
    }
    
    .partnership__stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .doctor-card {
        flex: 0 0 100%; /* Show 1 doctor card */
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex: 0 0 100%;
    }
    
    .steps__timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    /* Vertical dotted line for mobile steps */
    .steps__timeline::before {
        display: block;
        left: 60px; /* Centered relative to 80px nodes */
        top: 20px;
        width: 2px;
        height: 85%;
        background: repeating-linear-gradient(to bottom, #CBD5E1 0, #CBD5E1 4px, transparent 4px, transparent 8px);
    }
    
    .step-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        padding: 0;
    }
    
    .step-item__number {
        margin-bottom: 0;
        order: 1;
    }
    
    .step-item__node {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .step-item__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-item__text {
        max-width: none;
    }
    
    .footer__banner-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-block {
        justify-self: center;
        grid-row: auto;
    }
    
    .footer__links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .modal__container {
        padding: 30px 20px;
    }
}

/* ----------------------------------------------------
   INNER SERVICES & PRICES PAGE
---------------------------------------------------- */

/* Page Hero */
.page-hero {
    position: relative;
    padding: 120px 0 100px;
    background-color: var(--bg-light);
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.9) 35%,
        rgba(255, 255, 255, 0.7) 65%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

.page-hero__container {
    position: relative;
    z-index: 2;
    padding-top: 48px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumbs__link {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

.breadcrumbs__separator {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.breadcrumbs__current {
    color: var(--text-dark);
}

.page-hero__title {
    font-size: 2.75rem;
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.page-hero__subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 680px;
}

/* Key Features Divider Style */
.page-hero__features {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 32px;
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 3;
}

.page-hero__feature-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-hero__feature-value {
    font-family: var(--font-heading);
    font-size: 2.75rem; /* 44px */
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -1px;
}

.page-hero__feature-label {
    font-size: 0.75rem; /* 12px */
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.45;
}

/* Two-column layout */
.services-page {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-page__container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar Navigation */
.services-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 10;
}

.services-sidebar__menu {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.services-sidebar__link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    background: none;
}

.services-sidebar__link:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.services-sidebar__link--active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Sidebar CTA block */
.services-sidebar__cta {
    background-color: var(--navy-dark);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.services-sidebar__cta-title {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.services-sidebar__cta-text {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Content Area */
.services-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.services-content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 20px;
}

.services-content__title {
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Currency dropdown selector */
.currency-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.currency-selector__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.currency-dropdown {
    position: relative;
}

.currency-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--white);
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.currency-dropdown__trigger:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.currency-dropdown__list {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: var(--white);
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-fast);
    z-index: 100;
    padding: 4px 0;
}

.currency-dropdown.active .currency-dropdown__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown__item {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-muted);
    text-align: left;
}

.currency-dropdown__item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.currency-dropdown__item.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 700;
}

/* Category grouping wrapper */
.services-category-group {
    animation: fadeIn 0.4s ease;
}

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

/* Price card list */
.price-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 28px;
    align-items: center;
    transition: var(--transition-normal);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 86, 229, 0.2);
}

.price-card__main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-card__desc {
    font-size: 0.90625rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.price-card__meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 2px;
}

.price-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-light);
    padding: 4px 10px;
    border-radius: 100px;
}

.price-card__duration svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.price-card__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    padding-left: 28px;
    text-align: center;
}

.price-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-currency {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Partnership CTA banner */
.partnership-cta {
    padding: 40px 0 80px;
    background-color: var(--bg-light);
}

.partnership-cta__wrapper {
    background-color: var(--white);
    border-radius: 20px;
    padding: 24px 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: center;
}

.partnership-cta__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.partnership-cta__icon svg {
    width: 100%;
    height: 100%;
}

.partnership-cta__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.partnership-cta__text {
    font-size: 0.90625rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.partnership-cta__text strong {
    color: var(--text-dark);
}

.partnership-cta__link {
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.partnership-cta__link:hover {
    color: var(--primary-hover);
}

.partnership-cta__link svg {
    transition: transform var(--transition-fast);
}

.partnership-cta__link:hover svg {
    transform: translateX(4px);
}

/* ====================================================
   MOBILE CATEGORY ACCORDION — replaces sidebar on ≤1024px
   ==================================================== */

/* Hidden on desktop by default */
.category-accordion__trigger {
    display: none;
}

/* Responsive inner styles */
@media (max-width: 1024px) {
    .services-page__container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Hide desktop sidebar + title on mobile */
    .services-sidebar {
        display: none !important;
    }
    
    .services-content__title {
        display: none;
    }
    
    /* Show ALL category groups (remove hidden for accordion mode) */
    .services-category-group.hidden {
        display: block !important;
    }
    
    /* Collapse the price-cards-list inside non-active groups */
    .services-category-group .price-cards-list {
        display: none;
    }
    
    .services-category-group.accordion-open .price-cards-list {
        display: flex;
    }
    
    /* Accordion trigger button — visible on mobile */
    .category-accordion__trigger {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 18px 20px;
        background-color: var(--white);
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 14px;
        cursor: pointer;
        transition: var(--transition-fast);
        margin-bottom: 0;
        font-family: var(--font-heading);
    }
    
    .services-category-group + .services-category-group {
        margin-top: 12px;
    }
    
    .services-category-group.accordion-open .category-accordion__trigger {
        border-color: var(--primary);
        background-color: var(--primary-light);
        border-radius: 14px 14px 0 0;
        margin-bottom: 0;
    }
    
    .services-category-group.accordion-open .price-cards-list {
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-top: none;
        border-radius: 0 0 14px 14px;
        padding: 16px;
        gap: 16px;
    }
    
    .category-accordion__trigger:hover {
        border-color: var(--primary);
    }
    
    .category-accordion__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--primary-light);
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: var(--transition-fast);
    }
    
    .services-category-group.accordion-open .category-accordion__icon {
        background: var(--primary);
        color: var(--white);
    }
    
    .category-accordion__label {
        flex: 1;
        text-align: left;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    
    .services-category-group.accordion-open .category-accordion__label {
        color: var(--primary);
    }
    
    .category-accordion__chevron {
        flex-shrink: 0;
        color: var(--text-light);
        transition: transform 0.3s ease, color 0.3s ease;
    }
    
    .services-category-group.accordion-open .category-accordion__chevron {
        transform: rotate(180deg);
        color: var(--primary);
    }
    
    .price-card {
        grid-template-columns: 1fr 180px;
    }

    .page-hero__features {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        margin-top: 36px;
        padding-top: 24px;
    }
}

@media (max-width: 768px) {
    .page-hero__title {
        font-size: 2.25rem;
    }
    
    .services-content__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .price-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
    
    .price-card__side {
        border-left: none;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
        padding-left: 0;
        padding-top: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }
    
    .price-card__price {
        align-items: flex-start;
    }
    
    .price-card__price .price-currency {
        margin-top: 2px;
    }
    
    .price-card__side .btn {
        width: auto;
        min-width: 130px;
        padding: 10px 20px;
    }
    
    .partnership-cta__wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .page-hero {
        padding: 100px 0 80px;
    }
    
    .page-hero__container {
        padding-top: 24px;
    }

    .page-hero__features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 28px;
        padding-top: 20px;
    }
    
    .page-hero__feature-value {
        font-size: 2.25rem;
    }
}


/* ====================================================
   ГРАФОНИСТЫЕ ЭФФЕКТЫ — SCROLL REVEAL, COUNTERS,
   FLOATING BLOBS, CHAT BUTTON, SHIMMER
   ==================================================== */

/* --------------------------------------------------
   SCROLL REVEAL — базовые состояния
-------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal--left {
    transform: translateX(-48px);
}

.reveal.reveal--right {
    transform: translateX(48px);
}

.reveal.reveal--scale {
    transform: scale(0.88);
    opacity: 0;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }
.reveal-delay-5 { transition-delay: 0.48s; }

/* --------------------------------------------------
   HERO — декоративные плавающие блобы
-------------------------------------------------- */
.hero__blobs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: blobFloat 10s ease-in-out infinite;
    animation-fill-mode: forwards;
}

.hero__blob--1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(11, 86, 229, 0.13) 0%, transparent 70%);
    top: -120px;
    right: 12%;
    animation-delay: 0.4s;
    animation-duration: 11s;
}

.hero__blob--2 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(31, 148, 109, 0.1) 0%, transparent 70%);
    bottom: 8%;
    right: 32%;
    animation-delay: 1.8s;
    animation-duration: 14s;
}

.hero__blob--3 {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, transparent 70%);
    top: 35%;
    right: 4%;
    animation-delay: 3.2s;
    animation-duration: 9s;
}

@keyframes blobFloat {
    0%   { opacity: 0; transform: translate(0, 0) scale(1); }
    12%  { opacity: 1; }
    50%  { transform: translate(18px, -28px) scale(1.07); }
    88%  { opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* --------------------------------------------------
   HERO — точечная сетка декор
-------------------------------------------------- */
.hero__dot-grid {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 200px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(11, 86, 229, 0.35) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 75%);
    opacity: 0;
    animation: dotGridFade 1.8s 0.8s ease forwards;
}

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

/* --------------------------------------------------
   HERO TITLE — shimmer gradient на цветном тексте
-------------------------------------------------- */
.hero__title-shimmer {
    background: linear-gradient(
        100deg,
        #0B56E5 0%,
        #3b82f6 28%,
        #06b6d4 50%,
        #0B56E5 72%,
        #6366f1 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 5s linear infinite;
}

@keyframes shimmerText {
    0%   { background-position: 0% center; }
    100% { background-position: 220% center; }
}

/* --------------------------------------------------
   BACK TO TOP BUTTON
-------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11, 86, 229, 0.3);
    border: none;
    outline: none;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(11, 86, 229, 0.45);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
}

/* --------------------------------------------------
   ADV-CARDS — цветная полоска при ховере
-------------------------------------------------- */
.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.adv-card:hover::before {
    transform: scaleX(1);
}

/* --------------------------------------------------
   STAT COUNTER — glow при счёте
-------------------------------------------------- */
@keyframes countGlow {
    0%   { text-shadow: 0 0 0 transparent; }
    40%  { text-shadow: 0 0 22px rgba(11, 86, 229, 0.4); }
    100% { text-shadow: 0 0 0 transparent; }
}

.stat-item__number.counting {
    animation: countGlow 0.7s ease;
}

/* --------------------------------------------------
   SECTION TITLE — нижний акцент
-------------------------------------------------- */
.section-title--accent::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
    border-radius: 4px;
    margin-top: 14px;
}

/* --------------------------------------------------
   MOBILE adjustments
-------------------------------------------------- */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .hero__blob--1 { width: 300px; height: 300px; }
    .hero__blob--2 { display: none; }
    .hero__blob--3 { display: none; }
}


/* ====================================================
   REVIEWS SECTION
   ==================================================== */
.reviews {
    padding: 100px 0;
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.reviews::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(11, 86, 229, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.reviews::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(11, 86, 229, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.reviews .container { position: relative; z-index: 1; }

.reviews__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
    flex-wrap: wrap;
}

.reviews__badge {
    background-color: rgba(11, 86, 229, 0.2);
    color: #93c5fd;
    margin-bottom: 16px;
}

.reviews__header .section-title {
    color: var(--white);
    margin-bottom: 0;
}

.reviews__rating-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.reviews__stars-big {
    font-size: 1.5rem;
    color: #FBBF24;
    letter-spacing: 3px;
}

.reviews__score {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.reviews__count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 1025px) {
    .reviews__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Review Card */
.review-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-normal);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(11, 86, 229, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.review-card__stars {
    color: #FBBF24;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-card__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    flex: 1;
    font-style: normal;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.review-card__avatar--green  { background: linear-gradient(135deg, #10b981, #059669); }
.review-card__avatar--purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.review-card__avatar--orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.review-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-card__name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--white);
}

.review-card__meta {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
    .reviews { padding: 72px 0; }
    .reviews__header { flex-direction: column; align-items: flex-start; }
    .reviews__rating-total { align-items: flex-start; }
    .reviews__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .reviews__grid { grid-template-columns: 1fr; }
}


/* ====================================================
   FAQ SECTION
   ==================================================== */
.faq {
    padding: 100px 0;
    background: var(--bg-light);
}

.faq__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.faq__badge {
    margin-bottom: 20px;
}

.faq__desc {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 36px;
    margin-top: 16px;
}

.faq__cta {
    align-self: flex-start;
}

.faq__cta svg { margin-left: 4px; transition: transform var(--transition-fast); }
.faq__cta:hover svg { transform: translateX(4px); }

/* Accordion list */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* FAQ item */
.faq-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.faq-item:first-child {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    background: none;
    border: none;
    outline: none;
    transition: color var(--transition-fast);
}

.faq-item__trigger:hover {
    color: var(--primary);
}

.faq-item__trigger[aria-expanded="true"] {
    color: var(--primary);
}

.faq-item__icon {
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-muted);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* CSS grid trick for smooth height animation without JS height calc */
.faq-item__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open .faq-item__body {
    grid-template-rows: 1fr;
}

.faq-item__body > p {
    overflow: hidden;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
    padding-bottom: 20px;
    padding-right: 36px;
    min-height: 0; /* required for grid trick */
}

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

@media (max-width: 768px) {
    .faq { padding: 72px 0; }
}


/* ====================================================
   PERFORMANCE OPTIMIZATIONS
   ==================================================== */

/* GPU-ускорение для анимированных блобов */
.hero__blob {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Отложенный рендеринг секций ниже fold */
.partnership,
.doctors,
.services,
.about-clinic,
.steps,
.reviews,
.faq {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Отключение всех анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__blob,
    .hero__dot-grid,
    .hero__title-shimmer {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
.faq-item span {color: #0944B6; font-size: 1.2rem; font-weight: 700;}


/* ====================================================
   SERVICES PAGE — SIDEBAR ICONS & IMPROVED LAYOUT
   ==================================================== */

/* Sidebar link — icon + label + count layout */
.services-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-sidebar__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.services-sidebar__link--active .services-sidebar__icon,
.services-sidebar__link:hover .services-sidebar__icon {
    background: var(--primary);
    color: var(--white);
}

.services-sidebar__label {
    flex: 1;
    text-align: left;
    font-size: 0.9375rem;
}

.services-sidebar__count {
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 24px;
    text-align: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.services-sidebar__link--active .services-sidebar__count {
    background: rgba(11, 86, 229, 0.12);
    color: var(--primary);
}

/* Sidebar CTA emoji icon */
.services-sidebar__cta-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

/* ====================================================
   PRICE CARD — POPULAR BADGE & GUARANTEE META
   ==================================================== */

/* Popular/recommended badge */
.price-card {
    position: relative;
}

.price-card--popular {
    border-color: rgba(11, 86, 229, 0.3) !important;
    box-shadow: 0 0 0 1px rgba(11, 86, 229, 0.2), var(--shadow-md) !important;
}

.price-card__badge {
    position: absolute;
    top: -1px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}

/* Guarantee meta tag */
.price-card__guarantee {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--success);
    margin-left: 12px;
}

/* ====================================================
   PRICE COMPARISON REDESIGN — TWO COLUMN LAYOUT
   ==================================================== */
.price-compare {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

/* Premium background decorative blurs */
.price-compare__blur {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.price-compare__blur--1 {
    top: 10%;
    left: -100px;
    background: var(--primary);
}

.price-compare__blur--2 {
    bottom: 10%;
    right: -100px;
    background: var(--success);
}

.price-compare__header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.price-compare__badge {
    margin-bottom: 16px;
    background: rgba(11, 86, 229, 0.1);
    color: var(--primary);
}

.price-compare__header .section-title {
    margin-bottom: 0;
    font-size: 2.25rem;
    line-height: 1.3;
}

/* Main wrapper */
.price-compare__wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
    align-items: stretch;
}

/* Left wondering girl card */
.wondering-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wondering-card__img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background-color: var(--primary-light);
}

.wondering-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform var(--transition-normal);
}

.wondering-card:hover .wondering-card__img {
    transform: scale(1.03);
}

.wondering-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to top, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.wondering-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    justify-content: flex-start;
}

.wondering-card__question {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.45;
    position: relative;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

.wondering-card__answer {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Right side: Modern gradient table */
.compare-table {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ct-header {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary) 100%);
    padding: 18px 24px;
}

.ct-header__col {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ct-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: background var(--transition-fast);
}

.ct-row:last-of-type {
    border-bottom: none;
}

.ct-row:hover {
    background: rgba(248, 250, 252, 0.8);
}

.ct-cell {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ct-cell--service {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.ct-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-icon-box svg {
    color: var(--primary);
    width: 22px;
    height: 22px;
    transition: transform var(--transition-normal);
}

.ct-row:hover .ct-icon-box svg {
    transform: scale(1.1);
}

.ct-service-name {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 750;
    color: var(--text-dark);
    display: block;
}

.ct-service-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ct-price-ru {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.4);
    text-decoration-thickness: 1.5px;
}

/* Heihe pricing cell has a soft highlighted background */
.ct-row .ct-cell:nth-child(3) {
    background: linear-gradient(135deg, rgba(11, 86, 229, 0.02) 0%, rgba(31, 148, 109, 0.02) 100%);
    align-self: stretch;
    justify-content: center;
    border-left: 1px solid rgba(226, 232, 240, 0.5);
    border-right: 1px solid rgba(226, 232, 240, 0.5);
}

.ct-price-cn-box {
    display: flex;
    flex-direction: column;
}

.ct-price-cn {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary);
}

.ct-price-rub {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--success);
}

.ct-cell--save {
    align-items: flex-start;
}

.ct-save-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.ct-save-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success);
    margin-left: 4px;
    margin-top: 2px;
}

/* Footer note */
.price-compare__info-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 18px 24px;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.price-compare__info-footer svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* CTA buttons wrapper */
.price-compare__cta {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .price-compare__wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wondering-card__img-wrapper {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .ct-header {
        display: none;
    }
    
    .ct-row {
        grid-template-columns: 1fr;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        padding: 16px 0;
    }
    
    .ct-row:hover {
        background: transparent;
    }
    
    .ct-cell {
        padding: 8px 24px;
    }
    
    .ct-cell--service {
        border-bottom: none;
    }
    
    .ct-row .ct-cell:nth-child(3) {
        border-left: none;
        border-right: none;
        background: transparent;
        align-self: flex-start;
    }
    
    .ct-price-cn-box {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
    
    .ct-cell--save {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .ct-save-pct {
        margin-left: 0;
        margin-top: 0;
    }
}

/* ====================================================
   COOKIE BANNER & TOGGLE SWITCH
   ==================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner__content {
    flex: 1;
}

.cookie-banner__title {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.cookie-banner__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-banner__text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner__container {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: var(--primary);
}

.toggle-switch input:checked + label:before {
    transform: translateX(20px);
}

.toggle-switch input:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Captcha Verification Timer Spin Animation */
.captcha-spin {
    animation: captchaSpin 1s linear infinite;
    display: inline-block;
    transform-origin: center;
}

@keyframes captchaSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------
   404 PAGE STYLES
---------------------------------------------------- */
.page-404 {
    padding: 120px 0 100px 0;
    min-height: calc(100vh - 80px - 450px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

.page-404__content {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 86, 229, 0.08);
}

.page-404__icon {
    margin-bottom: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.page-404__title {
    font-size: 110px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 16px;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary) 0%, #1a6ff2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-404__subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.page-404__text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
}

.page-404__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.page-404__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.page-404__actions .btn--primary {
    background-color: var(--primary);
    color: var(--white);
}

.page-404__actions .btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.page-404__actions .btn--outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.page-404__actions .btn--outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .page-404 {
        padding: 80px 0;
    }
    .page-404__content {
        padding: 40px 24px;
        margin: 0 16px;
    }
    .page-404__title {
        font-size: 80px;
    }
    .page-404__subtitle {
        font-size: 20px;
    }
    .page-404__actions {
        flex-direction: column;
        gap: 12px;
    }
    .page-404__actions .btn {
        width: 100%;
    }
}