@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #2C5530;
    --secondary-color: #4A7856;
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --white: #ffffff;
    --accent-color: #8BA888;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.logo h1:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 3px;
    margin-top: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    width: 100%;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Rehabilitation List */
.rehabilitation-list {
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.rehabilitation-list li {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    list-style: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.rehabilitation-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rehabilitation-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.rehabilitation-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.rehabilitation-list li > span {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.rehabilitation-list .sub-info {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    position: relative;
    z-index: 1;
}

.rehabilitation-list .sub-info li {
    background: none;
    box-shadow: none;
    padding: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    border: none;
    transition: none;
}

.rehabilitation-list .sub-info li:hover {
    transform: none;
    box-shadow: none;
}

.rehabilitation-list .sub-info li::before {
    display: none;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-details i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-details a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 85, 48, 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* Services Section Styles */
.service-notice {
    display: none;
}

.service-card.pricing {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
    line-height: 1.3;
}

.price-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.price-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.book-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.book-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.additional-services {
    display: none;
}

.services-table-wrapper {
    display: none;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.services-table th,
.services-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.services-table th {
    background-color: var(--primary-color);
    color: var(--white);
}

.services-table tr:hover {
    background-color: var(--light-bg);
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для мобильного меню */
.menu-toggle {
    display: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: all 0.3s ease;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Сетки */
    .services-grid {
        grid-template-columns: 1fr !important; /* Принудительно один столбец */
        gap: 1.5rem;
    }
    
    .rehabilitation-list {
        grid-template-columns: 1fr;
    }
    
    /* Контакты */
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Заголовки */
    .hero-content h2 {
        font-size: 2rem;
    }

    /* Карточки услуг */
    .service-card {
        margin: 0 1rem;
    }

    /* Отступы секций */
    section {
        padding: 3rem 0;
    }
    /* Контейнер */
    .container {
        padding: 0 15px;
    }
}

/* Дополнительные настройки для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

.location-description {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 1rem;
}

.location-description p {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: inline-block;
}

.location-description p::before,
.location-description p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    font-family: serif;
}

.location-description p::before {
    left: -1.5rem;
    top: -0.5rem;
}

.location-description p::after {
    right: -1.5rem;
    bottom: -0.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    color: #2c3e50;
}

.about-content p {
    margin-bottom: 1.8em;
    text-align: justify;
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-content p:first-of-type {
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c5530;
    border-left: 4px solid #8BA888;
    padding-left: 1.5rem;
}

.about-content p:not(:first-of-type)::before {
    content: "•";
    color: #8BA888;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.about-content ul {
    margin: 2em 0;
    padding-left: 2em;
    list-style: none;
}

.about-content li {
    margin-bottom: 1em;
    position: relative;
    padding-left: 1.5em;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-content li::before {
    content: "✓";
    color: #8BA888;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.about-content p:last-of-type {
    margin-bottom: 0;
    font-weight: 600;
    color: #2c5530;
}

/* Map section */
.map-section .container {
    align-items: stretch;
}

.map-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.map-wrapper {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-details {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.map-details h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.map-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.map-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .map-content {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .about-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .about-content p:first-of-type {
        font-size: 1.2rem;
    }
}