:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary: #f97316;
    --secondary-light: #fdba74;
    --accent: #f59e0b;
    --text: #334155;
    --text-light: #64748b;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 10px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo i {
    margin-right: 8px;
    color: var(--secondary);
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links a:hover:after {
    width: 100%;
}
.nav-cta {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition);
}
.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.nav-cta:hover:after {
    display: none;
}
/* Герой секция */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.35) 0%, rgba(20, 184, 166, 0.3) 100%), url('/images/back.jfif') center/cover no-repeat;
    color: white;
    position: relative;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.search-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
    position: relative;
    z-index: 100;
}
.search-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.5rem;
}
.search-form {
    position: relative;
    display: flex;
    margin-bottom: 0;
}
.search-input-container {
    position: relative;
    flex: 1;
    z-index: 101;
}
.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid var(--border);
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    transition: var(--transition);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}
.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}
.search-btn {
    padding: 0 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    z-index: 102;
}
.search-btn:hover {
    background: var(--primary-dark);
}
.autocomplete-box {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 2px solid var(--primary);
}
.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: var(--transition);
    color: var(--text);
}
.autocomplete-item:hover {
    background: #f1f5f9;
}
.autocomplete-item i {
    margin-right: 10px;
    color: var(--primary);
}
/* Секции */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}
/* Карточки санаториев */
.sanatoriums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.sanatorium-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.sanatorium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}
.card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.sanatorium-card:hover .card-img {
    transform: scale(1.05);
}
.card-content {
    padding: 25px;
}
.card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}
.card-location {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}
.card-location i {
    margin-right: 8px;
}
.card-features {
    margin-bottom: 20px;
}
.feature-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.feature-item {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}
.feature-item i {
    margin-right: 5px;
    font-size: 0.8rem;
}
.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}
.price-period {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-light);
}
/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-block {
    display: block;
    width: 100%;
}
/* Формы */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: #f9fafb;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}
/* Карта */
.map-container {
    height: 500px;
    background: #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}
#map {
    width: 100%;
    height: 100%;
}
.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}
/* Карточки регионов */
.region-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.region-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.region-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}
.region-content {
    padding: 25px;
}
.region-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}
.region-desc {
    color: var(--text-light);
    margin-bottom: 20px;
}
.region-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}
.stat {
    text-align: center;
}
.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}
/* Табы */
.tab-container {
    margin-top: 40px;
}
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
}
.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Новые стили для расширенной секции */
.seo-content {
    margin-bottom: 60px;
}

.seo-content h2 {
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.seo-content h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.seo-content h4 {
    color: var(--secondary);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.seo-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.seo-content ul, .seo-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.seo-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.seo-content blockquote {
	padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-primary);
    background-color: var(--primary-bg);
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-primary);
}

.image-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 12px 15px;
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
}

.image-float-left {
    float: left;
    width: 45%;
    margin: 15px 25px 15px 0;
}

.image-float-right {
    float: right;
    width: 45%;
    margin: 15px 0 15px 25px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.gallery-container {
    margin: 40px 0;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 5px;
    scrollbar-width: thin;
    height: 250px;
}

.gallery-scroll img {
    height: 100%;
    width: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    object-fit: cover;
}

.gallery-scroll img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}

.gallery-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-title i {
    margin-right: 10px;
    color: var(--secondary);
}

/* Модальное окно для галереи */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 50px;
}

.modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary);
}

.highlight {
    background-color: rgba(249, 115, 22, 0.1);
    border-left: 3px solid var(--secondary);
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.form-inline {
    background: rgba(13, 148, 136, 0.05);
    padding: 25px;
    border-radius: var(--radius);
    margin: 30px 0;
    border: 1px dashed var(--primary-light);
}

.form-inline h4 {
    margin-top: 0;
    color: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .image-float-left, 
    .image-float-right {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
    
    .gallery-scroll {
        height: 200px;
    }
}

/* Форма обратной связи */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
/* Футер */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.footer-logo i {
    margin-right: 10px;
    color: var(--secondary-light);
}
.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}
.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-links h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.footer-links a i {
    margin-right: 10px;
    font-size: 0.8rem;
}
.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}
.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}
/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .search-form {
        flex-direction: column;
    }
    .search-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }
    .search-btn {
        border-radius: 8px;
        padding: 16px;
    }
    .section-title {
        font-size: 2rem;
    }
    .sanatoriums-grid {
        grid-template-columns: 1fr;
    }
    .tabs {
        flex-direction: column;
    }
    .tab {
        text-align: center;
    }
}
/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
/* Стили для балуна Яндекс.Карт */
.baloon {
    padding: 15px;
    max-width: 300px;
}
.baloon-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary);
}
.baloon-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.baloon-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}
.baloon-link:hover {
    background-color: var(--primary-dark);
}
/* Страница санатория */
.sanatorium-header {
    padding: 160px 0 80px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    color: white;
    position: relative;
}
.sanatorium-header-content {
    position: relative;
    z-index: 2;
}
.sanatorium-name {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}
.sanatorium-location {
    font-size: 1.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}
.sanatorium-location i {
    margin-right: 10px;
}
.rating {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 30px;
    width: fit-content;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
.rating i {
    color: var(--accent);
    margin-right: 5px;
}
.sanatorium-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}
.gallery img:hover {
    transform: scale(1.03);
}
.gallery-main {
    grid-column: span 2;
    height: 300px;
}
.booking-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}
.form-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
}
.price-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 8px;
}
.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}
/* 404 страница */
.error-page {
    text-align: center;
    padding: 120px 20px;
}
.error-code {
    font-size: 8rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1;
}
.error-message {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text);
}
/* Демонстрация HTML элементов */
.elements-demo {
    max-width: 800px;
    margin: 0 auto;
}
.element-group {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.element-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}