/*
Theme Name: Myasnikov Theme
Author: Gemini + Claude
Description: Тема для сайту кардіолога Мясникова Г.В.
Version: 1.1
*/

/* ============================================================
   CSS ЗМІННІ (доступні на всіх сторінках)
   ============================================================ */
:root {
    /* Кольори */
    --primary-blue:    #1e5a8e;
    --secondary-blue:  #2c7bb6;
    --accent-red:      #c8102e;
    --dark-navy:       #0a1f3d;
    /* Текст */
    --text-dark:       #1a1a1a;
    --text-medium:     #4a4a4a;
    --text-light:      #6a6a6a;
    /* Фони */
    --bg-cream:        #f8f6f4;
    --bg-white:        #ffffff;
    --bg-light:        #f0f4f8;
    /* Межі */
    --border-light:    #e0e4e8;
    /* Шрифти */
    --font-serif:      'Playfair Display', serif;
    --font-sans:       'Montserrat', sans-serif;
    /* Тіні */
    --shadow-sm:       0 2px 8px rgba(28, 90, 142, 0.08);
    --shadow-md:       0 4px 20px rgba(28, 90, 142, 0.12);
    --shadow-lg:       0 8px 30px rgba(28, 90, 142, 0.18);
    /* Анімація */
    --transition:      all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET ТА БАЗОВІ СТИЛІ
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-cream);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; }

/* ============================================================
   ЗАГАЛЬНІ КОМПОНЕНТИ
   ============================================================ */

/* Контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================================
   TOP BAR (шапка — телефон + меню мов)
   ============================================================ */
.top-bar {
    background: var(--primary-blue);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__name {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar__right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar__phone {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.top-bar__phone:hover { color: #ffd700; }

/* Перемикач мов */
.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.lang-switch__btn {
    cursor: pointer;
    opacity: 0.7;
    font-weight: 500;
    transition: var(--transition);
}

.lang-switch__btn:hover,
.lang-switch__btn--active { opacity: 1; font-weight: 700; }

.lang-switch__sep { opacity: 0.4; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark-navy);
    color: white;
    padding: 70px 0 30px;
    margin-top: 60px;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.site-footer__title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 18px;
}

.site-footer__desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.9;
}

.site-footer__link {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.site-footer__link:hover { color: white; }

.site-footer__copy {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ============================================================
   СПІЛЬНІ КНОПКИ
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--primary {
    background: var(--primary-blue);
    color: white;
}

.btn--primary:hover { background: var(--secondary-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn--outline:hover { background: var(--primary-blue); color: white; }

.btn--red {
    background: var(--accent-red);
    color: white;
}

.btn--red:hover { background: #a00c24; transform: translateY(-2px); }

/* ============================================================
   HERO-СЕКЦІЯ (головна сторінка)
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 22px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ============================================================
   ЗАГОЛОВОК СЕКЦІЇ
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 80px 0 20px;
}

.section-header h1,
.section-header h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   КАРТКИ (сітка)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card__title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.card__text {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ============================================================
   ЗАГОЛОВОК СТОРІНКИ (синій банер)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 70px 40px 50px;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: 48px;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ============================================================
   ФОРМА ЗАПИСУ
   ============================================================ */
.booking-form {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 45px;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30,90,142,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* Services multi-select dropdown */
.services-group { margin-bottom: 22px; }
.services-label { font-size: 13px; color: var(--text-light); font-weight: 600; margin-bottom: 8px; display: none; }
.services-label[data-lang="uk"] { display: block; }
.services-error { color: #c8102e; font-size: .82rem; margin-top: 6px; display: none; }

/* Trigger button — matches select style */
.ms-select { position: relative; }
.ms-select__trigger {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 16px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    transition: var(--transition);
    user-select: none;
    box-sizing: border-box;
}
.ms-select__trigger:hover,
.ms-select.open .ms-select__trigger {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30,90,142,.1);
}
.ms-select__trigger.has-value { color: var(--text-dark); }
.ms-select__arrow { flex-shrink: 0; transition: transform .2s; color: #1e5a8e; }
.ms-select.open .ms-select__arrow { transform: rotate(180deg); }

/* Dropdown panel */
.ms-select__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(30,90,142,.15);
    z-index: 200;
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
}
.ms-select.open .ms-select__dropdown { display: block; }

/* Group title */
.ms-group-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 10px 16px 4px;
}
.ms-group-title:first-child { padding-top: 6px; }

/* Option row */
.ms-option {
    display: flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: .95rem;
    color: var(--text-dark);
    transition: background .12s;
    background: transparent !important;
    pointer-events: auto;
    line-height: 1.3;
}
.ms-option:hover { background: #e8f1fb !important; }
.ms-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: var(--primary-blue);
    cursor: pointer;
    margin: 0;
}
.ms-option span { flex: 1; }

/* ============================================================
   АДАПТИВНІСТЬ (мобільні пристрої)
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .top-bar__inner { flex-direction: column; gap: 10px; padding: 0 20px; }
    .top-bar__name { font-size: 15px; }
    .hero__title { font-size: 36px; }
    .hero__subtitle { font-size: 18px; }
    .section-header h1, .section-header h2 { font-size: 30px; }
    .page-hero h1 { font-size: 32px; }
    .page-hero { padding: 50px 20px 35px; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 35px; padding: 0 20px; }
    .site-footer__copy { padding: 20px 20px 0; }
    .booking-form { padding: 25px 20px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 28px; }
    .top-bar__right { flex-direction: column; gap: 10px; }
}
 




/* ============================================================
   НАВІГАЦІЙНЕ МЕНЮ (sticky під top-bar)
   ============================================================ */
.main-nav {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-blue);
}

.logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition);
}

.nav-menu a:hover { color: var(--primary-blue); }
.nav-menu a:hover::after { width: 100%; }

.btn-cta {
    background: var(--accent-red);
    color: white;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-cta:hover {
    background: #a00d25;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   ГОЛОВНА СТОРІНКА — HERO (світла версія, override синього .hero)
   ============================================================ */
body.home .hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
    color: var(--text-dark);
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

body.home .hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e5a8e' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 600px;
    position: relative;
    z-index: 1;
}

.hero-content { animation: fadeInLeft 0.8s ease-out; }

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

body.home .hero h1 {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.hero-description {
    font-size: 19px;
    color: var(--text-medium);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 16px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #a00d25;
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 14px 34px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.2s backwards;
}

.doctor-photo-wrapper { position: relative; }

.doctor-photo-wrapper::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: 20px; bottom: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 12px;
    opacity: 0.1;
    z-index: -1;
}

.doctor-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: block;
}

/* ============================================================
   СИМПТОМИ (головна сторінка)
   ============================================================ */
.symptoms-section {
    background: var(--bg-white);
    padding: 70px 40px;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 38px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
}

.symptoms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.symptom-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.symptom-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-red);
}

.symptom-icon { font-size: 48px; margin-bottom: 15px; }

.symptom-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.symptom-card p {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
}

.symptom-callout {
    text-align: center;
    margin: 30px auto 0;
    font-size: 17px;
    color: var(--primary-blue);
    font-weight: 600;
    font-style: italic;
    max-width: 750px;
    line-height: 1.6;
    display: block;
}

/* ============================================================
   ПОСЛУГИ (головна сторінка)
   ============================================================ */
.services-section {
    padding: 90px 40px;
    background: var(--bg-cream);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.services-intro h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 18px;
    color: var(--text-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-red);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover { gap: 12px; color: var(--accent-red); }

/* ============================================================
   CTA СЕКЦІЯ
   ============================================================ */
.cta-section {
    padding: 80px 40px;
    background: var(--accent-red);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: white;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-section .btn-primary { background: white; color: var(--accent-red); }
.cta-section .btn-primary:hover { background: var(--bg-cream); color: var(--accent-red); transform: translateY(-3px); }

/* ============================================================
   КОНТАКТНА ФОРМА — СПЕЦИФІЧНІ СТИЛІ ГОЛОВНОЇ СТОРІНКИ
   ============================================================ */
.contact-section {
    background: var(--bg-white);
    padding: 100px 40px;
}

.contact-container { max-width: 800px; margin: 0 auto; }

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.appointment-form { margin-bottom: 40px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input--uppercase { text-transform: uppercase; }

/* Floating labels — override загальних .form-group всередині contact-form-wrapper */
.contact-form-wrapper .form-group {
    position: relative;
    margin-bottom: 20px;
}

.contact-form-wrapper .form-group input,
.contact-form-wrapper .form-group textarea,
.contact-form-wrapper .form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 16px;
    background: white;
    transition: var(--transition);
}

.contact-form-wrapper .form-group input:focus,
.contact-form-wrapper .form-group textarea:focus,
.contact-form-wrapper .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 90, 142, 0.1);
}

.contact-form-wrapper .form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 16px;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
    background: white;
    padding: 0 8px;
    font-weight: normal;
}

.contact-form-wrapper .form-group input:focus + label,
.contact-form-wrapper .form-group input:not(:placeholder-shown) + label,
.contact-form-wrapper .form-group textarea:focus + label,
.contact-form-wrapper .form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 13px;
    color: var(--primary-blue);
}

.contact-form-wrapper .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231e5a8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Блок "надіслати медичну інформацію" */
.medical-info-box {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(30,90,142,0.08), rgba(200,16,46,0.08));
    border-radius: 12px;
    border-left: 4px solid var(--accent-red);
}

.medical-info-box__title {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.medical-info-box__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.medical-info-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.medical-info-item__icon { font-size: 24px; flex-shrink: 0; }
.medical-info-item__content { flex: 1; }

.medical-info-item__label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.medical-info-item__link {
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.medical-info-item__link--tg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-submit {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

.form-success,
.form-error {
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.contact-alternatives {
    border-top: 2px solid var(--border-light);
    padding-top: 40px;
}

.contact-alternatives h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--border-light);
}

.contact-method:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-blue); }
.contact-method.phone:hover    { border-color: var(--accent-red); }
.contact-method.telegram:hover { border-color: #0088cc; }

.contact-icon { font-size: 32px; flex-shrink: 0; }

.contact-info { display: flex; flex-direction: column; gap: 4px; }

.contact-label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.contact-value { font-size: 16px; color: var(--text-dark); font-weight: 600; }

/* ============================================================
   ПЛАВАЮЧА КНОПКА ЗАПИСУ
   ============================================================ */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(200,16,46,0.4);
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
    animation: bounce 2s ease-in-out infinite;
}

.floating-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(200,16,46,0.6); }

/* ============================================================
   ПЕРЕМИКАЧ МОВ (керується через html[lang])
   ============================================================ */
[data-lang="uk"] { display: revert; }
[data-lang="ru"] { display: none !important; }
html[lang="ru"] [data-lang="uk"] { display: none !important; }
html[lang="ru"] [data-lang="ru"] { display: revert; }

/* ============================================================
   АНІМАЦІЇ
   ============================================================ */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ============================================================
   АДАПТИВНІСТЬ — ГОЛОВНА СТОРІНКА
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container   { grid-template-columns: 1fr; gap: 50px; }
    .services-grid    { grid-template-columns: repeat(2, 1fr); }
    .symptoms-grid    { gap: 16px; }
}

@media (max-width: 768px) {
    body.home .hero h1 { font-size: 36px; }
    .nav-menu          { display: none; }
    .symptoms-grid     { flex-direction: column; }
    .services-grid     { grid-template-columns: 1fr; }
    .contact-section   { padding: 60px 20px; }
    .contact-form-wrapper { padding: 30px 20px; }
    .form-row          { grid-template-columns: 1fr; gap: 0; }
    .contact-methods   { grid-template-columns: 1fr; }
    .hero-container    { padding: 40px 20px; }
}

/* ============================================================
   НАВІГАЦІЙНЕ МЕНЮ
   ============================================================ */
.main-nav { background: var(--bg-white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 999; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary-blue); }
.logo-img { width: 55px; height: 55px; object-fit: contain; }
.logo-text { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.2; }
.nav-menu { display: flex; gap: 35px; list-style: none; align-items: center; }
.nav-menu a { color: var(--text-dark); text-decoration: none; font-weight: 500; font-size: 15px; transition: var(--transition); position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-red); transition: var(--transition); }
.nav-menu a:hover { color: var(--primary-blue); }
.nav-menu a:hover::after { width: 100%; }
.btn-cta { background: var(--accent-red); color: white; padding: 12px 26px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; transition: var(--transition); box-shadow: var(--shadow-sm); }
.btn-cta:hover { background: #a00d25; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   ГОЛОВНА СТОРІНКА — HERO (світла версія)
   ============================================================ */
body.home .hero { background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%); color: var(--text-dark); padding: 0; text-align: left; position: relative; overflow: hidden; }
body.home .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e5a8e' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-container { max-width: 1400px; margin: 0 auto; padding: 50px 30px 50px 20px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; min-height: 600px; position: relative; z-index: 1; }
.hero-content { animation: fadeInLeft 0.8s ease-out; padding-left: 10px; }
.hero-badge { display: inline-block; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; padding: 10px 24px; border-radius: 30px; font-size: 14px; font-weight: 600; margin-bottom: 25px; box-shadow: var(--shadow-md); }
body.home .hero h1 { font-family: var(--font-serif); font-size: 52px; font-weight: 700; line-height: 1.15; margin-bottom: 12px; color: var(--text-dark); }
.hero-description { font-size: 19px; color: var(--text-medium); margin-bottom: 35px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--accent-red); color: white; padding: 16px 36px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 16px; transition: var(--transition); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #a00d25; color: white; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-secondary { display: inline-block; background: transparent; border: 2px solid var(--primary-blue); color: var(--primary-blue); padding: 14px 34px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 16px; transition: var(--transition); }
.btn-secondary:hover { background: var(--primary-blue); color: white; }
.hero-image { position: relative; animation: fadeInRight 0.8s ease-out 0.2s backwards; align-self: stretch; display: flex; align-items: center; }
.doctor-photo-wrapper { position: relative; width: 100%; }
.doctor-photo-wrapper::before { content: ''; position: absolute; top: -12px; left: -12px; right: 12px; bottom: 12px; background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); border-radius: 12px; opacity: 0.08; z-index: -1; }
.doctor-photo { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); display: block; object-fit: cover; }

/* ============================================================
   СИМПТОМИ
   ============================================================ */
.symptoms-section { background: #f4f6f9; padding: 80px 40px; }
.section-container { max-width: 1400px; margin: 0 auto; }
.section-title { font-family: var(--font-serif); font-size: 38px; color: var(--text-dark); text-align: center; margin-bottom: 50px; }
.symptoms-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.symptom-card { background: #fff; padding: 28px 22px; border-radius: 4px; text-align: left; transition: var(--transition); border-top: 3px solid var(--primary-blue); box-shadow: 0 2px 8px rgba(0,0,0,.06); flex: 0 0 calc(25% - 18px); min-width: 220px; }
.symptom-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,.11); border-top-color: var(--accent-red); }
.symptom-icon { width: 46px; height: 46px; background: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; flex-shrink: 0; }
.symptom-icon svg { width: 22px; height: 22px; }
.symptom-card h3 { font-size: 16px; color: var(--text-dark); margin-bottom: 10px; font-weight: 600; font-family: var(--font-sans); }
.symptom-card p { color: var(--text-medium); font-size: 13px; line-height: 1.65; }
.symptom-callout { display: block; text-align: center; margin: 40px auto 0; font-size: 16px; color: var(--text-dark); font-weight: 500; font-style: italic; max-width: 700px; line-height: 1.7; border-top: 1px solid #dde2ea; padding-top: 32px; }

/* ============================================================
   ПОСЛУГИ
   ============================================================ */
.services-section { padding: 90px 40px; background: var(--bg-cream); }
.services-intro { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.services-intro h2 { font-family: var(--font-serif); font-size: 42px; color: var(--text-dark); margin-bottom: 20px; }
.services-intro p { font-size: 18px; color: var(--text-medium); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.service-card { background: var(--bg-white); padding: 40px; border-radius: 12px; transition: var(--transition); box-shadow: var(--shadow-sm); border-top: 3px solid transparent; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-top-color: var(--accent-red); }
.service-card h3 { font-family: var(--font-serif); font-size: 22px; color: var(--text-dark); margin-bottom: 15px; }
.service-card p { color: var(--text-medium); line-height: 1.7; margin-bottom: 20px; }
.service-link { color: var(--primary-blue); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.service-link:hover { gap: 12px; color: var(--accent-red); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section { padding: 80px 40px; background: var(--accent-red); text-align: center; }
.cta-section h2 { font-family: var(--font-serif); font-size: 42px; color: white; margin-bottom: 20px; }
.cta-section p { font-size: 18px; color: white; margin-bottom: 35px; opacity: 0.95; }
.cta-section .btn-primary { background: white; color: var(--accent-red); }
.cta-section .btn-primary:hover { background: var(--bg-cream); color: var(--accent-red); transform: translateY(-3px); }

/* ============================================================
   КОНТАКТНА ФОРМА
   ============================================================ */
.contact-section { background: var(--bg-white); padding: 100px 40px; }
.contact-container { max-width: 800px; margin: 0 auto; }
.contact-form-wrapper { background: var(--bg-light); padding: 50px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.appointment-form { margin-bottom: 40px; }
.form-row { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.input--uppercase { text-transform: uppercase; }
.contact-form-wrapper .form-group { position: relative; margin-bottom: 20px; }
.contact-form-wrapper .form-group input,
.contact-form-wrapper .form-group textarea,
.contact-form-wrapper .form-group select { width: 100%; padding: 16px; border: 2px solid var(--border-light); border-radius: 8px; font-family: var(--font-sans); font-size: 16px; background: white; transition: var(--transition); }
.contact-form-wrapper .form-group input:focus,
.contact-form-wrapper .form-group textarea:focus,
.contact-form-wrapper .form-group select:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(30,90,142,0.1); }
.contact-form-wrapper .form-group label { position: absolute; top: 16px; left: 16px; font-size: 16px; color: var(--text-light); pointer-events: none; transition: var(--transition); background: white; padding: 0 8px; font-weight: normal; }
.contact-form-wrapper .form-group input:focus + label,
.contact-form-wrapper .form-group input:not(:placeholder-shown) + label { top: -10px; left: 12px; font-size: 13px; color: var(--primary-blue); }
.contact-form-wrapper .form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231e5a8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; cursor: pointer; color: var(--text-dark); }
.medical-info-box { margin: 30px 0; padding: 25px; background: linear-gradient(135deg, rgba(30,90,142,0.08), rgba(200,16,46,0.08)); border-radius: 12px; border-left: 4px solid var(--accent-red); }
.medical-info-box__title { font-size: 18px; color: var(--primary-blue); margin-bottom: 15px; font-weight: 600; }
.medical-info-box__list { display: flex; flex-direction: column; gap: 15px; }
.medical-info-item { background: white; padding: 15px; border-radius: 8px; display: flex; align-items: center; gap: 12px; }
.medical-info-item__icon { font-size: 24px; flex-shrink: 0; }
.medical-info-item__content { flex: 1; }
.medical-info-item__label { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.medical-info-item__link { font-size: 16px; color: var(--primary-blue); font-weight: 600; text-decoration: none; }
.medical-info-item__link--tg { display: inline-flex; align-items: center; gap: 6px; }
.form-submit { width: 100%; padding: 18px; font-size: 18px; font-weight: 600; margin-top: 10px; cursor: pointer; border: none; }
.form-success, .form-error { padding: 16px; border-radius: 8px; margin-top: 20px; text-align: center; font-weight: 500; display: none; }
.form-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.contact-alternatives { border-top: 2px solid var(--border-light); padding-top: 40px; }
.contact-alternatives h3 { font-family: var(--font-serif); font-size: 24px; color: var(--text-dark); margin-bottom: 24px; text-align: center; }
.contact-methods { display: flex; justify-content: center; gap: 20px; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 24px; background: white; border-radius: 12px; text-decoration: none; transition: var(--transition); border: 2px solid var(--border-light); max-width: 400px; width: 100%; }
.contact-method:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-blue); }
.contact-method.phone:hover    { border-color: var(--accent-red); }
.contact-method.telegram:hover { border-color: #0088cc; }
.contact-icon { font-size: 32px; flex-shrink: 0; }
.contact-info { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.contact-value { font-size: 16px; color: var(--text-dark); font-weight: 600; }
.contact-hours { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ============================================================
   ПЛАВАЮЧА КНОПКА
   ============================================================ */
.floating-btn { position: fixed; bottom: 30px; right: 30px; background: var(--accent-red); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 20px rgba(200,16,46,0.4); transition: var(--transition); z-index: 1000; text-decoration: none; animation: bounce 2s ease-in-out infinite; }
.floating-btn:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(200,16,46,0.6); }

/* ============================================================
   ПЕРЕМИКАЧ МОВ
   ============================================================ */
[data-lang="uk"] { display: revert; }
[data-lang="ru"] { display: none !important; }
html[lang="ru"] [data-lang="uk"] { display: none !important; }
html[lang="ru"] [data-lang="ru"] { display: revert; }

/* ============================================================
   АНІМАЦІЇ
   ============================================================ */
@keyframes fadeInLeft  { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes bounce      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   АДАПТИВНІСТЬ — ГОЛОВНА СТОРІНКА
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container  { grid-template-columns: 1fr; gap: 50px; }
    .services-grid   { grid-template-columns: repeat(2, 1fr); }
    .symptoms-grid   { gap: 16px; }
}
@media (max-width: 768px) {
    body.home .hero h1      { font-size: 36px; }
    .nav-menu               { display: none; }
    .symptoms-grid          { flex-direction: column; }
    .services-grid          { grid-template-columns: 1fr; }
    .contact-section        { padding: 60px 20px; }
    .contact-form-wrapper   { padding: 30px 20px; }
    .form-row               { grid-template-columns: 1fr; gap: 0; }
    .contact-methods        { grid-template-columns: 1fr; }
    .hero-container         { padding: 40px 20px; }
}

/* ============================================================
   СТОРІНКА ПОСЛУГ — специфічні стилі
   ============================================================ */
.category-section { margin-bottom: 50px; }
.category-title { font-family: var(--font-serif); font-size: 36px; font-weight: 700; color: var(--primary-blue); margin-bottom: 50px; padding-bottom: 20px; border-bottom: 2px solid var(--accent-red); display: inline-block; }

/* Override .service-card для сторінки послуг (border-left, flex column) */
.category-section .service-card { border-left: 4px solid transparent; border-top: none; display: flex; flex-direction: column; }
.category-section .service-card:hover { border-left-color: var(--accent-red); border-top-color: transparent; transform: translateY(-8px); }
.service-card.consultation-special { background: linear-gradient(135deg, rgba(30,90,142,0.05), rgba(200,16,46,0.05)); border-left-color: var(--accent-red); }

.service-description { font-size: 15px; color: var(--text-medium); line-height: 1.8; margin-bottom: 25px; flex-grow: 1; order: 5; }
.service-details { display: contents; }
.detail-row { display: flex; justify-content: space-between; align-items: center; }
.detail-label { font-weight: 600; color: var(--text-dark); font-size: 14px; }
.detail-value { color: var(--accent-red); font-weight: 700; font-size: 16px; }
.price { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: white; padding: 15px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 18px; }
.note { font-size: 13px; color: var(--text-light); font-style: italic; margin-top: 10px; margin-bottom: 15px; padding: 10px; background: var(--bg-light); border-left: 3px solid var(--accent-red); border-radius: 4px; }
.btn-contact { background: var(--accent-red); color: white; padding: 14px 28px; border: none; border-radius: 6px; font-weight: 600; font-size: 15px; cursor: pointer; transition: var(--transition); text-decoration: none; display: inline-block; text-align: center; margin-top: 15px; }
.btn-contact:hover { background: #a00d25; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Порядок: h3(1)→ фото(2)→ обладнання(3)→ тривалість(4)→ текст(5)→ попередження(6)→ ціна(7) */
.category-section .service-card h3    { order: 1; }
.service-img-wrapper { margin: 15px 0; text-align: center; order: 2; }
.equipment-box  { order: 3; }
.holter-device  { order: 2; }
.detail-row     { order: 4; }
/* .service-description order: 5 — задано вище */
.category-section .service-card .note { order: 6; margin-top: 10px; }
.price { order: 7; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-light); }
.remote-consult-box { order: 8; }
.service-img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.remote-consult-box { margin-top: 20px; padding: 15px; background: linear-gradient(135deg, rgba(30,90,142,0.05), rgba(44,123,182,0.05)); border-left: 3px solid var(--secondary-blue); border-radius: 6px; }
.remote-consult-box__title { font-size: 15px; font-weight: 600; color: var(--primary-blue); margin-bottom: 5px; }
.remote-consult-box__text { font-size: 13px; color: var(--text-medium); }

.equipment-box { background: var(--bg-light); padding: 15px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; line-height: 1.6; }
.equipment-box p { margin-bottom: 10px; }

.holter-device { margin: 20px 0; }
.holter-device__title { font-weight: 600; margin-bottom: 10px; color: var(--primary-blue); }
.holter-device__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.holter-device__images { display: flex; flex-direction: column; gap: 10px; }
.holter-info-box { background: linear-gradient(135deg, rgba(30,90,142,0.08), rgba(200,16,46,0.08)); padding: 15px; border-radius: 8px; border-left: 3px solid var(--accent-red); font-size: 14px; line-height: 1.6; }
.holter-info-box p { margin-bottom: 10px; }

.services-cta { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); color: white; padding: 60px 40px; border-radius: 12px; margin-bottom: 60px; text-align: center; }
.services-cta h2 { font-family: var(--font-serif); font-size: 32px; margin-bottom: 20px; color: white; }
.services-cta p { font-size: 18px; margin-bottom: 30px; }

@media (max-width: 768px) {
    .category-title { font-size: 24px; }
    .category-section .service-card { padding: 25px; }
    .category-section .service-card h3 { font-size: 20px; }
    .holter-device__grid { grid-template-columns: 1fr; }
    .services-cta { padding: 40px 20px; }
}

/* ============================================================
   СТОРІНКИ ПРО МЕНЕ / КОНТАКТИ / ПУБЛІКАЦІЇ
   ============================================================ */
.main-btn-icon img { width: 100px; height: 100px; object-fit: contain; }
.breadcrumb { margin: 0 0 30px; padding: 0; }
.contact-subtext { font-size: 13px; }
.map-img { width: 100%; height: auto; border-radius: 8px; display: block; cursor: pointer; }
.map-caption { font-size: 12px; color: #666; margin-top: 8px; text-align: center; }
.step-note { color: var(--text-light); margin-bottom: 15px; font-size: 14px; }
.privacy-section { background: var(--bg-light); padding: 50px 40px; margin: 60px 0 0 0; }
.privacy-box { background: white; padding: 36px 40px; border-radius: 8px; border-left: 4px solid var(--secondary-blue); box-shadow: var(--shadow-sm); }
.privacy-box__title { font-family: var(--font-serif); font-size: 22px; color: var(--primary-blue); margin-bottom: 28px; font-weight: 600; }
.privacy-block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #edf0f4; }
.privacy-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.privacy-block h4 { font-size: 14px; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.privacy-box p { color: var(--text-medium); margin-bottom: 10px; line-height: 1.8; font-size: 14px; }
.privacy-box p:last-child { margin-bottom: 0; }

/* ============================================================
   ГАМБУРГЕР-МЕНЮ
   ============================================================ */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}
.nav-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================================
   МОБІЛЬНА АДАПТАЦІЯ — ЗАГАЛЬНА (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* --- Навігація --- */
    .main-nav { position: relative; }
    .nav-container { padding: 0 20px; }
    .nav-burger { display: flex; }

    .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        gap: 0;
        list-style: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.25s ease;
        z-index: 998;
    }
    .nav-menu.open {
        max-height: 700px;
        padding: 8px 0 16px;
    }
    .nav-menu li { border-bottom: 1px solid var(--border-light); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu a {
        display: block;
        padding: 13px 24px;
        font-size: 15px;
        color: var(--text-dark);
    }
    .nav-menu a::after { display: none; }
    .nav-menu .btn-cta {
        display: block;
        margin: 10px 20px 4px;
        text-align: center;
        padding: 13px 20px;
        border-radius: 6px;
    }

    /* --- Hero --- */
.hero-image { display: block !important; margin-top: 30px; animation: none !important; opacity: 1 !important; }
.hero-image .doctor-photo { border-radius: 10px; width: 100%; height: auto; }
    .hero-container {
        grid-template-columns: 1fr !important;
        padding: 40px 20px 44px;
        min-height: unset;
        gap: 0;
    }
    body.home .hero h1 { font-size: 34px; }
    .hero-description { font-size: 16px; margin-bottom: 28px; }
    .hero-badge { font-size: 13px; padding: 8px 18px; margin-bottom: 20px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .btn-primary, .btn-secondary { text-align: center; padding: 14px 20px; font-size: 15px; }

    /* --- Симптоми --- */
    .symptoms-section { padding: 50px 20px; }
    .symptoms-grid { gap: 16px; }
    .section-title { font-size: 28px; margin-bottom: 36px; }
    .symptom-callout { font-size: 14px; }

    /* --- Послуги --- */
    .services-section { padding: 60px 20px; }
    .services-grid { grid-template-columns: 1fr !important; }
    .services-intro h2 { font-size: 30px; }
    .services-intro p { font-size: 16px; }
    .service-card { padding: 28px 24px; }

    /* --- CTA --- */
    .cta-section { padding: 60px 20px; }
    .cta-section h2 { font-size: 30px; }
    .cta-section p { font-size: 16px; }

    /* --- Контактна форма --- */
    .contact-section { padding: 50px 20px; }
    .contact-form-wrapper { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-methods { grid-template-columns: 1fr; }
    .medical-info-box { padding: 18px; }

    /* --- Сторінки (hero) --- */
    .page-hero { padding: 44px 20px 32px; }
    .page-hero h1 { font-size: 30px; }
    .section-header h1, .section-header h2 { font-size: 28px; }

    /* --- Footer --- */
    .site-footer__inner { grid-template-columns: 1fr; gap: 30px; padding: 0 20px; }
    .site-footer__copy { padding: 20px 20px 0; font-size: 13px; }

    /* --- Плаваюча кнопка --- */
    .floating-btn { bottom: 20px; right: 16px; width: 52px; height: 52px; font-size: 20px; }

    /* --- Послуги (сторінка) --- */
    .category-title { font-size: 24px; }
    .services-cta { padding: 40px 20px; border-radius: 8px; }
    .services-cta h2 { font-size: 26px; }
    .holter-device__grid { grid-template-columns: 1fr; }

    /* --- Privacy --- */
    .privacy-section { padding: 40px 20px; }
    .privacy-box { padding: 24px 20px; }
}

/* ============================================================
   МОБІЛЬНА АДАПТАЦІЯ — МАЛІ ЕКРАНИ (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    body.home .hero h1 { font-size: 26px; }
    .hero-badge { font-size: 12px; }
    .symptoms-grid { grid-template-columns: 1fr !important; }
    .hero-container { padding: 32px 16px 36px; }
    .symptoms-section { padding: 36px 16px; }
    .services-section { padding: 44px 16px; }
    .cta-section { padding: 44px 16px; }
    .cta-section h2 { font-size: 24px; }
    .contact-section { padding: 40px 16px; }
    .contact-form-wrapper { padding: 22px 16px; }
    .page-hero h1 { font-size: 26px; }
    .section-title { font-size: 24px; }
    .nav-container { height: 68px; }
    .nav-menu { top: 68px; }
    .logo-text { font-size: 18px; }
    .logo-img { width: 44px; height: 44px; }
}
