﻿/* === MODERN REFRESH FOR PODOLOGI CLINIC === */
:root {
    --primary: #1b4d3e;
    --primary-light: #2d6a4f;
    --primary-soft: #e8f5e9;
    --primary-gradient: linear-gradient(135deg, #1b4d3e 0%, #2d6a4f 100%);
    --accent: #52b788;
    --accent-glow: rgba(82, 183, 136, 0.25);
    --dark: #1f2421;
    --dark-muted: #4a5568;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-subtle: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--dark);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
}

/* === HEADER (GLASSMORPHISM & COMPACT MOBILE) === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 36px;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 99;
}

@media (min-width: 993px) {
    .header {
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.clinic-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.brand-logo-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.25);
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--dark-muted);
    font-weight: 500;
}

/* Search bar */
.search-container {
    position: relative;
    width: 240px;
}

.search-input {
    width: 100%;
    padding: 9px 40px 9px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: #f1f5f9;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--dark-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* Header Right info */
.header-right {
    display: flex;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.address-section {
    display: flex;
    align-items: center;
}

.address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--dark-muted);
}

.address i {
    color: var(--accent);
    font-size: 1rem;
}

.address a {
    color: var(--dark-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.phone-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
    white-space: nowrap;
}

.phone-number:hover {
    color: var(--accent);
}

.phone-number i {
    color: var(--accent);
    font-size: 0.95rem;
}

.callback-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.callback-button:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.appointment-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(27, 77, 62, 0.28);
    transition: var(--transition);
    white-space: nowrap;
}

.appointment-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.38);
}

/* === MAIN CONTAINER & SECTIONS === */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.block {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.block:hover {
    box-shadow: var(--shadow-lg);
}

.section-title, .block > h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.section-title::after, .block > h2::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
    margin-top: 8px;
}

/* === HERO DOCTOR BLOCK === */
.main-block .block-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}

.image-side {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #e2e8f0;
}

.doctor-image {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-side:hover .doctor-image {
    transform: scale(1.03);
}

.image-badges {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-badges .badge i {
    color: #f59e0b;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.block-description {
    font-size: 1.05rem;
    color: var(--dark-muted);
    line-height: 1.7;
}

.block-description.highlight {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.5;
}

.block-description.emphasis {
    color: var(--dark);
    font-weight: 500;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}

.services-section {
    margin-top: 8px;
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
}

.services-list li:hover {
    background: var(--primary-soft);
    border-color: var(--accent);
    transform: translateX(4px);
}

.services-list li i {
    color: var(--accent);
    font-size: 1.1rem;
}

.features {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 8px 16px;
    border-radius: var(--radius-full);
}

.feature i {
    color: var(--accent);
}

/* === PROMO / NEWS === */
.news-block .block-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-block img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-block img:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* === PORTFOLIO (BEFORE & AFTER) === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
    background: #e2e8f0;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.06);
}

.portfolio-item::after {
    content: '🔍 Увеличить';
    position: absolute;
    inset: 0;
    background: rgba(27, 77, 62, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: var(--transition);
    pointer-events: none !important; /* Важно: пропускает клики на сам элемент */
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* === PRICING BLOCK === */
.price-block {
    background: #ffffff !important;
}

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.price-item:hover {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.price-description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 75%;
}

.service-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
}

.service-details {
    font-size: 0.85rem;
    color: var(--dark-muted);
}

.price-amount {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    white-space: nowrap;
    padding: 6px 14px;
    background: var(--primary-soft);
    border-radius: var(--radius-full);
}

/* === REVIEWS BLOCK === */
.reviews-block .reviews-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reviews-description {
    font-size: 1.05rem;
    color: var(--dark-muted);
}

.platform-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.platform-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.platform-card:hover {
    background: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

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

.platform-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
}

.platform-header i {
    font-size: 1.5rem;
}

.yandex-card .platform-header i {
    color: #fc3f1d;
}

.two-gis-card .platform-header i {
    color: #00ba70;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: #f59e0b;
}

.platform-content p {
    font-size: 0.9rem;
    color: var(--dark-muted);
    margin-bottom: 16px;
}

.platform-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.platform-action-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.reviews-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--primary-soft);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(82, 183, 136, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === MODAL WINDOWS === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: #f8fafc;
}

.form-group input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(27, 77, 62, 0.3);
    transition: var(--transition);
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.4);
}

/* === RESPONSIVE & MOBILE SPECIFIC === */
@media (max-width: 992px) {
    .header {
        position: static !important; /* Убираем sticky на планшетах и мобильных */
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }
    .header-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .main-block .block-content {
        grid-template-columns: 1fr;
    }
    .doctor-image {
        height: 360px;
    }
    .container {
        padding: 0 16px;
        margin: 20px auto;
        gap: 20px;
    }
    .block {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .header {
        position: static !important;
        padding: 14px 12px;
        gap: 12px;
    }
    .logo-section {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
    }
    .clinic-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .brand-title {
        font-size: 1.1rem;
    }
    .brand-subtitle {
        font-size: 0.75rem;
    }
    .search-container {
        width: 100%;
    }
    .header-right {
        width: 100%;
    }
    .header-info {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .address-section {
        justify-content: center;
        text-align: center;
    }
    .address {
        font-size: 0.82rem;
    }
    .phone-section {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .phone-number {
        font-size: 1.1rem;
        justify-content: center;
    }
    .callback-button, .appointment-button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.92rem;
    }
    .section-title, .block > h2 {
        font-size: 1.45rem;
        margin-bottom: 18px;
    }
    .main-block .block-content {
        gap: 20px;
    }
    .doctor-image {
        height: 280px;
    }
    .image-badges {
        bottom: 10px;
        left: 10px;
        right: 10px;
        gap: 6px;
    }
    .image-badges .badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    .block-description {
        font-size: 0.95rem;
    }
    .block-description.highlight {
        font-size: 1.05rem;
    }
    .services-list {
        grid-template-columns: 1fr;
    }
    .services-list li {
        font-size: 0.88rem;
        padding: 10px 14px;
    }
    .news-block .block-content {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .platform-cards {
        grid-template-columns: 1fr;
    }
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px;
    }
    .price-description {
        max-width: 100%;
    }
    .service-name {
        font-size: 0.92rem;
    }
    .price-amount {
        align-self: flex-start;
        font-size: 1rem;
        padding: 4px 10px;
    }
    .reviews-stats {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .stat-number {
        font-size: 1.6rem;
    }
}



/* === LUXURY MICRO-ANIMATIONS & DELICATE MOTION === */

/* Плавный скролл всей страницы */
html {
    scroll-behavior: smooth;
}

/* 1. Мгновенная плавная анимация (GPU Acceleration без тяжелого Blur) */
.main-block {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.block {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

.block.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Деликатная кнопка записи с эффектом живого дыхания и переливающимся градиентом */
@keyframes luxuryGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(27, 77, 62, 0.25), 0 0 0 0 rgba(82, 183, 136, 0.4);
    }
    50% {
        box-shadow: 0 6px 26px rgba(27, 77, 62, 0.35), 0 0 0 7px rgba(82, 183, 136, 0);
    }
}

.appointment-button {
    position: relative;
    overflow: hidden;
    animation: luxuryGlow 3.5s infinite ease-in-out;
    background-size: 200% auto;
}

.appointment-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 35%;
    height: 200%;
    background: linear-gradient(
        60deg, 
        rgba(255, 255, 255, 0) 20%, 
        rgba(255, 255, 255, 0.45) 50%, 
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    animation: shineSweep 4.5s infinite cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

@keyframes shineSweep {
    0%, 40% {
        left: -60%;
    }
    60%, 100% {
        left: 150%;
    }
}

.appointment-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(27, 77, 62, 0.45);
}

/* 3. Парящие бейджи врача с плавной синусоидой (Float) */
@keyframes floatA {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(0.6deg); }
}

@keyframes floatB {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(-0.6deg); }
}

.image-badges .badge:first-child {
    animation: floatA 5s ease-in-out infinite;
}

.image-badges .badge:last-child {
    animation: floatB 5.5s ease-in-out infinite 1.5s;
}

/* 4. Карточки услуг с эффектом аккуратной подсветки */
.services-list li {
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-list li:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.08);
}

.services-list li i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-list li:hover i {
    transform: scale(1.3) rotate(12deg);
}

/* 5. Карточки прайс-листа с живым светом при наведении */
.price-item {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    transition: 0.75s ease;
    pointer-events: none;
}

.price-item:hover::after {
    left: 150%;
}

.price-item:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.008);
    box-shadow: 0 10px 26px rgba(27, 77, 62, 0.09);
}

.price-item:hover .price-amount {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(27, 77, 62, 0.3);
}

.price-amount {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 6. Премиальные карточки отзывов и платформ */
.platform-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-card:hover {
    background: #ffffff;
    border-color: var(--accent);
    transform: translateY(-7px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.09);
}

.platform-card:hover .platform-header i {
    transform: scale(1.2) rotate(-5deg);
}

.platform-header i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 7. Галерея работ: кинематографичный фокус */
.portfolio-grid:hover .portfolio-item:not(:hover) {
    opacity: 0.7;
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.portfolio-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    z-index: 2;
}

/* 8. Изящная кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 28px rgba(27, 77, 62, 0.5);
}

/* 9. Анимация модального окна */
.modal.active .modal-content {
    animation: modalSpring 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSpring {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* === CONTACTS & LOCATION BLOCK === */
.contacts-block .contacts-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: stretch;
}

.contacts-info-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(27, 77, 62, 0.08);
}

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

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark-muted);
}

.contact-val {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

.contact-val a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-val a:hover {
    color: var(--accent);
}

.metro-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.metro-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.metro-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.metro-dot.circle-line {
    background-color: #894e35; /* Коричневая Кольцевая */
}

.metro-dot.taganskaya-line {
    background-color: #943e90; /* Фиолетовая ТКЛ */
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    min-height: 380px;
    background: #e2e8f0;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

@media (max-width: 992px) {
    .contacts-block .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    .map-container {
        min-height: 320px;
    }
}



/* === FLOATING TELEGRAM BUTTON === */
.telegram-direct-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #00a2ed 100%);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(0, 136, 204, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    z-index: 999;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.telegram-direct-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #00a2ed;
    opacity: 0;
    animation: tgPulse 2.8s infinite ease-out;
}

@keyframes tgPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    60%, 100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.telegram-direct-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 28px rgba(0, 136, 204, 0.6);
    color: #ffffff;
}

@media (max-width: 640px) {
    .telegram-direct-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}

/* Fix map container on mobile to prevent overflow */
.contacts-block, .contacts-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.map-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}

.map-container iframe {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .contacts-block {
        padding: 20px 14px !important;
    }
    .contacts-wrapper {
        gap: 20px !important;
    }
    .contacts-info-card {
        padding: 18px 14px !important;
    }
    .map-container {
        height: 280px !important;
        min-height: 280px !important;
    }
    .map-container iframe {
        height: 280px !important;
        min-height: 280px !important;
    }
}

/* === GLOBAL OVERFLOW PREVENTION === */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px !important;
        margin: 16px auto !important;
    }

    .block {
        padding: 20px 12px !important;
        border-radius: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contacts-block {
        padding: 16px 8px !important;
    }

    .contacts-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
        box-sizing: border-box !important;
    }

    .contacts-info-card {
        padding: 16px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .map-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 250px !important;
        height: 250px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    .map-container iframe {
        width: 100% !important;
        height: 100% !important;
        min-height: 250px !important;
        border: none !important;
        display: block !important;
    }
}

/* === VIDEO GRID STYLES === */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.video-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b1311;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.video-caption {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
}

.video-caption i {
    color: var(--accent);
    font-size: 1.25rem;
}

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


/* === NEWS GIF CARD STYLES === */
.news-gif-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 36px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-gif-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.news-gif-media {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.news-gif-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-gif-card:hover .news-gif-media img {
    transform: scale(1.04);
}

.news-gif-info {
    padding: 28px 32px 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-badge i {
    color: var(--accent);
}

.news-gif-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.news-gif-info p {
    font-size: 0.95rem;
    color: var(--dark-muted);
    line-height: 1.65;
}

.news-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.news-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.news-features li i {
    color: var(--accent);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .news-gif-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .news-gif-media {
        min-height: 220px;
        max-height: 260px;
    }
    .news-gif-info {
        padding: 20px 18px;
    }
}

/* === 2-COLUMN NEWS CARDS GRID === */
.news-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.news-card {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.news-media {
    width: 100%;
    height: 240px;
    background: #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-media img {
    transform: scale(1.05);
}

.news-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    background: #ffffff;
}

.news-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-badge i {
    color: var(--accent);
}

.news-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.news-info p {
    font-size: 0.92rem;
    color: var(--dark-muted);
    line-height: 1.6;
}

.news-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.news-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

.news-features li i {
    color: var(--accent);
    font-size: 0.95rem;
}

@media (max-width: 820px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-media {
        height: 220px;
    }
}

/* STRICT NEWS CARD IMAGE CONSTRAINTS */
.news-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.news-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.news-media {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    background: #000 !important;
}

.news-media img {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 768px) {
    .news-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .news-media {
        height: 200px !important;
        max-height: 200px !important;
    }
}


/* Video in News card styled like seamless GIF */
.news-media video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: none !important; /* Отключаем вызов контекстного меню видео */
}

/* ==========================================================================
   WARM SOOTHING CLINIC PALETTE (ANTI-GLARE / SOFT EYE-COMFORT)
   ========================================================================== */

/* 1. Общий фон страницы: мягкий пастельный оттенок шалфея и слоновой кости (снимает напряжение с глаз) */
body {
    background-color: #edf2ee !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(82, 183, 136, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 70%, rgba(27, 77, 62, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 1px 1px, rgba(27, 77, 62, 0.035) 1px, transparent 0) !important;
    background-size: 100% 100%, 100% 100%, 28px 28px !important;
    background-attachment: fixed !important;
}

/* 2. Шапка сайта: теплый шелковый молочный тон (#fbfcfb), без едкой белизны */
.header {
    background: rgba(251, 252, 251, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #dde5df !important;
    box-shadow: 0 4px 18px rgba(27, 77, 62, 0.04) !important;
    padding: 14px 32px !important;
}

/* 3. Блоки и секции: благородный теплый молочный фарфор (#fcfdfc), не слепит глаза */
.block {
    background: #fcfdfc !important;
    border: 1px solid #dbe4de !important;
    border-radius: 20px !important;
    box-shadow: 
        0 2px 5px rgba(27, 77, 62, 0.02),
        0 12px 28px -6px rgba(27, 77, 62, 0.06) !important;
    position: relative !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.block:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 36px -6px rgba(27, 77, 62, 0.09) !important;
}

/* Мягкая пастельная линия сверху блоков */
.block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, rgba(82, 183, 136, 0) 0%, rgba(82, 183, 136, 0.4) 50%, rgba(82, 183, 136, 0) 100%);
    border-radius: 3px;
    pointer-events: none;
}

/* 4. Внутренние карточки (услуги, цены, отзывы) */
.service-item, .price-card, .news-card, .review-card, .portfolio-card {
    background: #f7f9f7 !important;
    border: 1px solid #e1e9e3 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 6px rgba(27, 77, 62, 0.02) !important;
    transition: all 0.25s ease !important;
}

.service-item:hover, .price-card:hover, .news-card:hover, .review-card:hover, .portfolio-card:hover {
    background: #ffffff !important;
    border-color: #81c79e !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.07) !important;
}

/* 5. Поле поиска и элементы навигации */
.search-input {
    background: #f1f6f3 !important;
    border: 1px solid #d4dfd7 !important;
    color: #243329 !important;
}

.search-input:focus {
    background: #ffffff !important;
    border-color: #52b788 !important;
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.18) !important;
}

/* 6. Кнопка обратного звонка и телефон */
.callback-button {
    background: rgba(82, 183, 136, 0.08) !important;
    border: 1px solid #52b788 !important;
    color: #1b4d3e !important;
}

.callback-button:hover {
    background: #1b4d3e !important;
    color: #ffffff !important;
}

.brand-title {
    color: #1b4d3e !important;
}

.address, .phone-number {
    color: #2f3e35 !important;
}

/* ==========================================================================
   PREMIUM CALLBACK MODAL REFINEMENT (LOCAL PREVIEW)
   ========================================================================== */

/* Затемнение фона с благородным размытием */
.modal {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

/* Карточка модального окна */
.callback-modal-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    max-width: 440px !important;
    width: 100% !important;
    padding: 36px 32px 32px !important;
    box-shadow: 
        0 20px 50px -10px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(226, 232, 240, 0.9) !important;
    position: relative !important;
    text-align: center;
    overflow: visible !important;
}

/* Кнопка закрытия окна (крестик) */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Иконка-бейдж в шапке модалки */
.modal-badge-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(82, 183, 136, 0.15) 0%, rgba(27, 77, 62, 0.1) 100%);
    color: #1b4d3e;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(82, 183, 136, 0.3);
}

.callback-modal-card .modal-header h3 {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #1b4d3e !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.88rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 22px !important;
}

/* Поля ввода с аккуратными иконками */
.input-with-icon {
    position: relative;
    margin-bottom: 14px;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s ease;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 13px 16px 13px 44px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: all 0.25s ease !important;
    outline: none !important;
    box-sizing: border-box;
}

.input-with-icon input:focus {
    background: #ffffff !important;
    border-color: #52b788 !important;
    box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.16) !important;
}

.input-with-icon input:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: #1b4d3e;
}

/* Подпись о конфиденциальности */
.form-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.76rem;
    color: #64748b;
    margin: 6px 0 20px;
    text-align: left;
}

.form-security-note i {
    color: #52b788;
    font-size: 13px;
    flex-shrink: 0;
}

/* Кнопка отправки */
.callback-modal-card .submit-button {
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1b4d3e 0%, #2d6a4f 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.25) !important;
    transition: all 0.25s ease !important;
}

.callback-modal-card .submit-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 26px rgba(27, 77, 62, 0.35) !important;
}

.callback-modal-card .submit-button:hover i {
    transform: translateX(4px);
}

.callback-modal-card .submit-button i {
    transition: transform 0.2s ease;
}

/* Экран успеха (Success State) */
.modal-success-state {
    padding: 10px 0;
    text-align: center;
    animation: modalPop 0.3s ease;
}

.success-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2d6a4f;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 0 8px rgba(82, 183, 136, 0.15);
}

.modal-success-state h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1b4d3e;
    margin-bottom: 10px;
}

.modal-success-state p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 24px;
}

.success-close-btn {
    padding: 12px 28px;
    background: #1b4d3e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-close-btn:hover {
    background: #2d6a4f;
    transform: translateY(-1px);
}

/* ==========================================================================
   LEGAL / 152-FZ COMPLIANCE & FOOTER (LOCAL PREVIEW)
   ========================================================================== */

/* Чекбокс согласия в модальном окне */
.form-privacy-agreement {
    margin: 12px 0 20px;
    text-align: left;
}

.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.privacy-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #1b4d3e;
    cursor: pointer;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.privacy-checkbox-label a {
    color: #1b4d3e;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-checkbox-label a:hover {
    color: #2d6a4f;
}

/* Подвал сайта (Footer) */
.site-footer {
    background: #f1f6f2;
    border-top: 1px solid #dbe4de;
    padding: 32px 24px;
    margin-top: 60px;
    color: #475569;
    font-size: 0.88rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand {
    font-weight: 800;
    color: #1b4d3e;
    font-size: 1.05rem;
}

.footer-copy {
    color: #64748b;
    font-size: 0.82rem;
}

.footer-medical-note {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-top: 4px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    color: #1b4d3e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #52b788;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 28px 16px;
        margin-top: 40px;
        text-align: center;
    }
    .footer-container {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
    }
    .footer-left {
        align-items: center;
    }
    .footer-right {
        justify-content: center;
        gap: 16px;
    }
}


/* ==========================================================================
   HYBRID MERGE ENHANCEMENTS: ACCESSIBILITY, FAQ & INLINE FORM ERRORS
   ========================================================================== */

/* 1. Skip Link for Keyboard Accessibility */
.skip-link {
    position: absolute;
    top: -120px;
    left: 20px;
    padding: 12px 22px;
    background: #1b4d3e;
    color: #ffffff !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 100000;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus {
    top: 20px;
    outline: 3px solid #52b788;
    outline-offset: 2px;
}

/* 2. FAQ Accordion (Styled in Eye-Comfort Soothing Palette) */
.faq-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 0.95rem;
    margin-top: -6px;
    margin-bottom: 28px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fcfdfc;
    border: 1px solid #dde5df;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(27, 77, 62, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.faq-item:hover {
    border-color: #52b788;
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.06);
    transform: translateY(-1px);
}

.faq-item[open] {
    background: #ffffff;
    border-color: #52b788;
    box-shadow: 0 8px 24px rgba(27, 77, 62, 0.08);
}

.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1b4d3e;
    list-style: none;
    gap: 16px;
    user-select: none;
    transition: color 0.2s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    color: #2d6a4f;
}

.faq-item[open] .faq-summary {
    border-bottom: 1px solid #edf2ee;
}

.faq-chevron {
    font-size: 0.88rem;
    color: #52b788;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-content {
    padding: 18px 24px 22px;
    color: #4a5568;
    font-size: 0.94rem;
    line-height: 1.65;
    animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Inline Form Errors & Status Alerts */
.field-error-text {
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 5px;
    text-align: left;
    display: none;
}

.field-error-text.visible {
    display: block;
    animation: errFade 0.2s ease;
}

@keyframes errFade {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group.has-error input {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
}

.form-privacy-agreement.has-error .privacy-text {
    color: #b91c1c;
}

.form-status-alert {
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    margin: 10px 0 6px;
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.form-status-alert.info {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* 4. Focus-visible Accessibility */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
summary:focus-visible {
    outline: 2px solid #52b788 !important;
    outline-offset: 3px !important;
}

/* 5. Prefers-reduced-motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .luxury-glow-btn, .pulse-ring, .floating-badge {
        animation: none !important;
    }
}

/* ==========================================================================
   LIGHTBOX MODAL (PHOTO ZOOM ENHANCEMENT)
   ========================================================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox-modal.active {
    display: flex;
    animation: lbFadeIn 0.25s ease;
}

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

.lightbox-content-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: lbZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lbZoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #ffffff;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}
