/*
Theme Name: Мануальная терапия
Description: Интерактивная тема с анимированным позвоночником
Version: 2.1
*/

:root {
    --bg: #fafbfc;
    --bg-alt: #f0f4f8;
    --text: #1e293b;
    --text-light: #64748b;
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --accent: #10b981;
    --accent-dark: #059669;
    --card-bg: #ffffff;
    --shadow: 0 4px 25px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --card-bg: #1e293b;
    --shadow: 0 4px 25px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    transition: background var(--transition), color var(--transition);
}

a { color: var(--primary); text-decoration: none; transition: all var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,251,252,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition);
}

[data-theme="dark"] .site-header {
    background: rgba(15,23,42,0.8);
    border-bottom-color: rgba(255,255,255,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.site-logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav { display: block; }
.main-nav ul { display: flex; list-style: none; gap: 32px; }

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-alt);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition);
}

.theme-toggle:hover { background: var(--primary); transform: scale(1.05); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: var(--bg-alt);
    border: none;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .main-nav {
        position: fixed;
        top: 74px;
        left: 16px;
        right: 16px;
        background: var(--card-bg);
        padding: 16px;
        display: none;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius);
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 14px 16px; border-radius: 12px; }
    .main-nav a:hover { background: var(--bg-alt); }
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(14,165,233,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(16,185,129,0.08) 0%, transparent 50%),
        var(--bg);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* === REALISTIC SPINE SVG === */
.spine-container {
    position: relative;
    height: 720px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 100px;
}

.spine-svg {
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

.vertebra {
    fill: var(--card-bg);
    stroke: var(--primary);
    stroke-width: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.vertebra:hover {
    fill: var(--accent);
    stroke: var(--accent-dark);
    filter: drop-shadow(0 4px 12px rgba(16,185,129,0.4));
}

.vertebra.active {
    fill: var(--primary);
    stroke: var(--primary-dark);
    animation: glow 1.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(14,165,233,0.4)); }
    50% { filter: drop-shadow(0 4px 20px rgba(14,165,233,0.7)); }
}

/* Эффект мануальной терапии - волна лечения */
.vertebra.healing {
    fill: var(--accent) !important;
    stroke: var(--accent-dark) !important;
    filter: drop-shadow(0 0 15px rgba(16,185,129,0.8)) !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

@keyframes healPulse {
    0% {
        fill: var(--card-bg);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    50% {
        fill: var(--accent);
        filter: drop-shadow(0 0 20px rgba(16,185,129,0.9));
    }
    100% {
        fill: var(--card-bg);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
}

.disc {
    fill: #e2e8f0;
    stroke: #cbd5e1;
    stroke-width: 0.5;
}

[data-theme="dark"] .disc {
    fill: #334155;
    stroke: #475569;
}

.spine-tooltip {
    position: absolute;
    background: var(--card-bg);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .spine-tooltip {
    border-color: rgba(255,255,255,0.05);
}

.spine-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(10px);
}

.spine-tooltip h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.spine-tooltip p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.spine-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.spine-label {
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    background: var(--card-bg);
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    letter-spacing: 0.3px;
    line-height: 1.4;
    text-align: center;
}

.spine-label small {
    display: block;
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 2px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
    color: #fff;
}

.btn-outline {
    background: var(--card-bg);
    border: 2px solid var(--bg-alt);
    color: var(--text);
}

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

/* === SECTIONS === */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

/* === Простая галерея вместо NextGen === */
.mnt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 30px 0;
}
.mnt-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
}
.mnt-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.mnt-gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.mnt-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center; justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 24px;
}
.mnt-lightbox.active { display: flex; }
.mnt-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.mnt-lightbox-close {
    position: absolute; top: 16px; right: 24px;
    color: #fff; background: none; border: 0;
    font-size: 32px; cursor: pointer; line-height: 1;
}

.intro-section { padding: 60px 0 20px; min-height: 320px; }
.intro-text { max-width: 860px; margin: 0 auto; }
@media (max-width: 768px) {
    .intro-section { min-height: 540px; }
}
.intro-text h2 { font-size: 2rem; margin-bottom: 20px; text-align: center; }
.intro-text p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 18px; color: var(--text); }
.intro-text a { color: var(--primary); text-decoration: none; border-bottom: 1px dashed var(--primary); }
.intro-text a:hover { border-bottom-style: solid; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* === FEATURES === */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.features-grid .feature-card {
    flex: 0 1 calc(33.333% - 16px);
    max-width: 350px;
}

.feature-card {
    background: var(--card-bg);
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p { color: var(--text-light); font-size: 15px; }

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

/* === PRICES === */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.price-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.price-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 24px 28px;
}

.price-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.price-card-body {
    padding: 28px;
}

.price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.price-amount span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.price-card-body p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

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

/* === DOCTOR === */
.doctor-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: center;
}

.doctor-photo {
    position: relative;
}

.doctor-photo img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 2048 / 1151;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.doctor-photo::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.2;
}

.doctor-info h3 {
    font-size: 30px;
    margin-bottom: 8px;
    font-weight: 800;
}

.doctor-info .subtitle {
    color: var(--accent);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 24px;
}

.doctor-info p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.doctor-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
}

.stat { text-align: center; }

.stat-num {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .doctor-grid { grid-template-columns: 1fr; text-align: center; }
    .doctor-photo { max-width: 280px; margin: 0 auto; }
    .doctor-stats { justify-content: center; }
}

/* === CTA === */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 70px 40px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-section h3 {
    font-size: 32px;
    margin-bottom: 12px;
    position: relative;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 28px;
    position: relative;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary);
    position: relative;
}

.cta-section .btn:hover {
    background: var(--accent);
    color: #fff;
}

/* === CONTACTS === */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

.contact-card {
    background: var(--card-bg);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-text a, .contact-text span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.contact-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-appointment {
    background: var(--primary);
    color: #fff;
}

.btn-appointment:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 380px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

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

/* === FOOTER === */
.site-footer {
    background: var(--bg-alt);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .site-footer {
    border-top-color: rgba(255,255,255,0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .footer-grid {
    border-bottom-color: rgba(255,255,255,0.05);
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.footer-logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links a { color: var(--text-light); font-size: 14px; }
.footer-links a:hover { color: var(--text); }

.footer-copy {
    text-align: center;
    padding-top: 24px;
    color: var(--text-light);
    font-size: 13px;
}

/* === PAGE === */
.page-hero,
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 150px 0 60px;
    text-align: center;
}

.page-hero h1,
.page-header h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 920px;
    margin: 0 auto;
    color: #fff;
    text-wrap: balance;
}

.page-hero-sub,
.page-header p {
    font-size: 17px;
    margin-top: 14px;
    color: #fff;
    opacity: 0.92;
}

@media (max-width: 900px) {
    .page-hero,
    .page-header { padding: 130px 0 40px; }
    .page-hero h1,
    .page-header h1 { font-size: 26px; }
    .page-hero-sub,
    .page-header p { font-size: 15px; }
}
@media (max-width: 600px) {
    .page-hero,
    .page-header { padding: 120px 0 32px; }
    .page-hero h1,
    .page-header h1 { font-size: 20px; line-height: 1.3; }
    .page-hero-sub,
    .page-header p { font-size: 14px; margin-top: 10px; }
}

.intro-text h2 {
    font-size: 1.6rem;
    margin: 36px 0 14px;
    color: var(--primary);
    text-align: left;
}

.intro-text .benefits-list,
.intro-text .steps-list {
    margin: 0 0 18px 24px;
    padding: 0;
}

.intro-text .benefits-list li,
.intro-text .steps-list li {
    margin-bottom: 12px;
    line-height: 1.65;
}

.intro-text .steps-list { counter-reset: step; list-style: none; margin-left: 0; }
.intro-text .steps-list li {
    counter-increment: step;
    position: relative;
    padding-left: 48px;
}
.intro-text .steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: -2px;
    width: 34px; height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.page-content { padding: 60px 0; }
.page-content p { margin-bottom: 20px; }
.page-content h2 { font-size: 26px; margin: 40px 0 16px; color: var(--primary); font-weight: 700; }
.page-content h3 { font-size: 20px; margin: 30px 0 12px; font-weight: 600; }
.page-content ul, .page-content ol { margin: 0 0 20px 28px; }
.page-content li { margin-bottom: 10px; }

/* === PRICES === */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.price-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.price-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.price-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-card .price {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-card .price span {
    font-size: 16px;
    font-weight: 500;
}

/* === REVIEWS === */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.review-stars {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--text);
}

/* === ARTICLES === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: block;
    color: var(--text);
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--text);
}

.article-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* === POSTS GRID (страница статей) === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card-content {
    padding: 20px;
}

.post-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* === APPOINTMENT FORM === */
.appointment-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.appointment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.appointment-form .form-group {
    display: flex;
    flex-direction: column;
}

.appointment-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
    padding: 14px 18px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all var(--transition);
}

[data-theme="dark"] .appointment-form input,
[data-theme="dark"] .appointment-form select,
[data-theme="dark"] .appointment-form textarea {
    border-color: rgba(255,255,255,0.1);
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}

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

.services-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 14px 18px;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.08);
}

[data-theme="dark"] .services-checkboxes {
    border-color: rgba(255,255,255,0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: color var(--transition);
}

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

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.captcha-row {
    align-items: end;
}

.captcha-group {
    flex: 1;
}

.captcha-group input {
    max-width: 120px;
}

.submit-group {
    display: flex;
    align-items: flex-end;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16,185,129,0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.form-message.error {
    display: block;
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Контейнер приёмов */
.appointments-container {
    margin-bottom: 16px;
}

.appointment-row {
    background: rgba(14,165,233,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(14,165,233,0.15);
}

.appointment-row:last-child {
    margin-bottom: 0;
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.appointment-num {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.btn-remove-appointment {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-appointment:hover {
    background: #ef4444;
    color: #fff;
}

.btn-add-appointment {
    width: 100%;
    margin-bottom: 20px;
}

/* Подтверждение email */
.btn-full {
    width: 100%;
    justify-content: center;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.verify-code-box {
    background: rgba(14,165,233,0.05);
    border: 1px solid rgba(14,165,233,0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.verify-info {
    margin-bottom: 20px;
    color: var(--text);
}

.verify-info strong {
    color: var(--primary);
}

.verify-row {
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
}

.verify-row .form-group {
    flex: 0 1 auto;
}

.verify-row input {
    width: 140px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 12px;
}

.verify-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

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

#resend-timer {
    color: var(--text-light);
    font-size: 14px;
}

#resend-timer strong {
    color: var(--primary);
}

.code-expires {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-light);
}

.appointment-contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

[data-theme="dark"] .appointment-contact {
    border-top-color: rgba(255,255,255,0.08);
}

.appointment-contact p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.phone-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition);
}

.whatsapp-link:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* === MOBILE === */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .spine-container { height: 620px; margin-top: 48px; margin-left: 80px; }
    .spine-label { font-size: 10px; padding: 6px 10px; left: -70px !important; }
    .section { padding: 70px 0; }
    .section-header h2 { font-size: 30px; }
    .prices-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid .feature-card { flex: 0 1 calc(50% - 12px); }
}

@media (max-width: 600px) {
    .prices-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .features-grid .feature-card { flex: 0 1 100%; }
    .appointment-form-wrapper { padding: 24px; }
    .appointment-form .form-row { grid-template-columns: 1fr; }
    .captcha-row { flex-direction: column; }
    .submit-group { width: 100%; margin-top: 16px; }
    .submit-group .btn { width: 100%; justify-content: center; }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeInUp 0.6s ease forwards; }
html { scroll-behavior: smooth; }

/* === FLOATING CTA BUTTON === */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.floating-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.floating-cta svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .floating-cta {
        display: flex;
    }
}

@media (max-width: 480px) {
    .floating-cta {
        bottom: 16px;
        right: 16px;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* === FORM STEPS INDICATOR === */
.form-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    gap: 12px;
}

.form-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--bg-alt, #f5f5f5);
    color: var(--text-muted, #888);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-steps .step.active {
    background: var(--primary, #2563eb);
    color: #fff;
}

.form-steps .step.completed {
    background: var(--success, #22c55e);
    color: #fff;
}

.form-steps .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.form-steps .step.active .step-num,
.form-steps .step.completed .step-num {
    background: rgba(255,255,255,0.3);
}

.form-steps .step-label {
    font-weight: 500;
}

@media (max-width: 600px) {
    .form-steps {
        gap: 8px;
    }
    .form-steps .step {
        padding: 8px 14px;
        font-size: 12px;
    }
    .form-steps .step-label {
        display: none;
    }
    .form-steps .step-num {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* === ADMIN NOTICE BADGE === */
.admin-notice-badge {
    position: fixed;
    top: 70px;
    right: 24px;
    z-index: 1000;
    background: var(--warning);
    color: #000;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-notice-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.admin-notice-badge .count {
    background: #fff;
    color: var(--warning);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.admin-notice-badge .close-btn {
    margin-left: 8px;
    opacity: 0.7;
    font-size: 18px;
}

.admin-notice-badge .close-btn:hover {
    opacity: 1;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 16px 24px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-consent-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 12px 16px;
    }
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* === CONSENT CHECKBOX === */
.consent-group {
    margin-top: 16px;
    margin-bottom: 8px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.consent-label span {
    color: var(--text-light);
}

.consent-label a {
    color: var(--primary);
    text-decoration: underline;
}

.consent-label a:hover {
    color: var(--accent);
}

/* === LEGAL PAGES === */
.legal-page {
    padding: 40px 0 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: var(--text);
}

.legal-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text);
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.legal-content ul, .legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-light);
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary);
}

.legal-updated {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-alt);
}

/* === FOOTER LEGAL LINKS === */
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-light);
    transition: color var(--transition);
}

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

.footer-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ym-informer {
    display: inline-flex;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.ym-informer:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* === ЛИЦЕНЗИИ И СЕРТИФИКАТЫ === */
.licenses-section { padding: 60px 0; }

.license-group { margin-bottom: 56px; }
.license-group:last-child { margin-bottom: 0; }

.license-group-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.license-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.license-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
    cursor: zoom-in;
}

.license-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.license-thumb:hover img { transform: scale(1.03); }

.license-thumb::after {
    content: "🔍";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.license-thumb:hover::after,
.license-thumb:focus-visible::after { opacity: 1; }

.license-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }

.license-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--text);
    line-height: 1.35;
}

.license-meta { margin: 0 0 14px; padding: 0; font-size: 14px; }
.license-meta-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.06);
}
[data-theme="dark"] .license-meta-row { border-bottom-color: rgba(255,255,255,0.08); }
.license-meta-row:last-child { border-bottom: none; }
.license-meta dt {
    margin: 0;
    color: var(--text-muted, #6b7280);
    font-weight: 500;
}
.license-meta dd {
    margin: 0;
    color: var(--text);
    font-weight: 600;
}

.license-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted, #6b7280);
    margin: 0;
}

@media (max-width: 640px) {
    .license-grid { grid-template-columns: 1fr; gap: 20px; }
    .license-group-title { font-size: 22px; }
    .license-meta-row { grid-template-columns: 110px 1fr; font-size: 13px; }
}

/* Превью-блок на главной */
.docs-preview-section {
    padding: 60px 0;
    background: var(--bg);
}
.docs-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 32px 0;
}
.docs-preview-item {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f3f4f6;
    position: relative;
    display: block;
    cursor: zoom-in;
    transition: transform var(--transition);
}
.docs-preview-item:hover { transform: translateY(-4px); }
.docs-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.docs-preview-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 768px) {
    .docs-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === SEO-БЛОКИ В СТАТЬЯХ === */
.post-lead {
    font-size: 18px;
    line-height: 1.65;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(14,165,233,0.07), rgba(16,185,129,0.07));
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    margin: 0 0 32px;
}
[data-theme="dark"] .post-lead {
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(16,185,129,0.12));
}
.post-lead p { margin: 0; }

.info-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px 28px;
    margin: 0 0 36px;
    display: grid;
    gap: 14px;
}
.info-card-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 12px;
    line-height: 1.55;
}
.info-card-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14,165,233,0.1);
    border-radius: 10px;
}
.info-card a { color: var(--primary); font-weight: 600; }

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 24px 0 32px;
}
.cta-card {
    display: block;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid transparent;
}
.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    border-color: var(--primary);
}
.cta-card-icon { font-size: 36px; margin-bottom: 12px; }
.cta-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--primary); font-weight: 700; }
.cta-card p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--text-light); }

.faq-list { margin: 18px 0 36px; display: grid; gap: 10px; }
.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item[open] { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    position: relative;
    padding-right: 50px;
    transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { content: "\2212"; transform: translateY(-50%) rotate(180deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    line-height: 1.65;
    color: var(--text-light);
}
.faq-item p a { color: var(--primary); font-weight: 600; }

.muted { color: var(--text-light); opacity: 0.85; }
.small { font-size: 14px; }

/* === ГАЛЕРЕЯ ПРИЁМА === */
.priem-gallery-section { padding: 40px 0 80px; }
.priem-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.priem-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #f3f4f6;
    cursor: zoom-in;
    transition: transform var(--transition);
}
.priem-gallery-item:hover { transform: translateY(-3px); }
.priem-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.priem-gallery-item:hover img { transform: scale(1.04); }

/* === ЛАЙТБОКС === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lightbox-overlay.is-open {
    display: flex;
    opacity: 1;
}
.lightbox-stage {
    position: relative;
    max-width: 95vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.lightbox-image-wrap {
    max-width: 95vw;
    max-height: calc(92vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-image {
    max-width: 95vw;
    max-height: calc(92vh - 60px);
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
    color: #fff;
    font-size: 15px;
    text-align: center;
    max-width: 80vw;
    padding: 0 12px;
}
.lightbox-btn {
    position: absolute;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible {
    background: rgba(255,255,255,0.28);
    outline: none;
}
.lightbox-close {
    top: 16px;
    right: 16px;
    position: fixed;
}
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); position: fixed; }
.lightbox-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
    .lightbox-btn { width: 44px; height: 44px; font-size: 22px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 8px; right: 8px; }
}
