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

:root {
    --primary-color: #2d7a3e;
    --secondary-color: #5cb85c;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--white);
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover,
nav a.active {
    opacity: 0.8;
    text-decoration: underline;
}

/* Кнопка записи в навигации */
nav a.booking-btn {
    border: 2px solid var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s;
}

nav a.booking-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 240px;
}

.hero-text {
    z-index: 2;
}

.hero-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-image-block {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.hero-image-block:hover {
    transform: scale(1.05);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
    max-height: 240px;
    transition: box-shadow 0.4s ease;
}

.hero-image-block:hover .hero-image {
    box-shadow: 0 15px 40px rgba(255,255,255,0.2), 0 0 30px rgba(255,255,255,0.15);
}

/* Простой hero для внутренних страниц */
.hero-simple {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
}

.hero-simple h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-simple p {
    font-size: 1.2rem;
}

main {
    padding: 3rem 0;
    min-height: 60vh;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.about-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

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

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
}

footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 1.5rem;
}

.advantage-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    /* Header - обычный, не закреплён */
    header {
        position: relative;
        padding: 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    /* Логотип - ЗАКРЕПЛЁН вверху (fixed) */
    .logo {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.5rem 1rem;
        background: var(--primary-color);
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        width: 100%;
    }
    
    .logo-link {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    /* Навигация - НЕ закреплена, уезжает при скролле */
    nav {
        position: static;
        background: var(--primary-color);
        padding: 0.8rem 0;
        margin-top: 48px; /* отступ под fixed логотип */
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 0.3rem 0;
        display: block;
    }
    
    nav a.booking-btn {
        display: inline-block;
        margin-top: 0.3rem;
    }
    
    .hero {
        padding: 1.2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-image {
        max-height: 180px;
    }
    
    .hero-btn {
        display: block;
        text-align: center;
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-simple h2 {
        font-size: 1.8rem;
    }
    
    .hero-simple p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-main-image {
        max-height: 250px;
    }
}

.about-image-wrapper {
    margin-bottom: 2rem;
    text-align: center;
}

.about-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 400px;
    object-fit: cover;
}
