/* Общие стили для всех устройств */

* {
    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(--white);
    color: var(--text-dark);
    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;
    text-decoration: none;
    transition: opacity 0.3s;
}

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

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

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

nav a:hover,
nav a.active {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-booking-button {
    text-align: center;
    padding: 2rem 0 1rem 0;
    background: var(--white);
}

.page-booking-button .btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

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

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

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

.hero-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    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;
    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-simple {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2.5rem 0;
    text-align: center;
}

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

.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;
    text-align: center; 
}

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

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

.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);
    object-fit: cover;
}

.first-section {
    padding-top: 1rem;
}

.promo-teaser {
    margin: 2rem 0;
}

.promo-card-mini {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.promo-card-mini h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.promo-card-mini h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.promo-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-content > p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.modal-details p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.modal-price {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
}

.free-price {
    color: #d32f2f;
    font-size: 1.4rem;
}

.modal-contacts {
    margin: 1.5rem 0;
}

.modal-contacts p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.modal-address {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.5rem;
}

.modal-highlight {
    background: #fff9e6;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-size: 1.15rem;
}

.modal-highlight strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.modal-booking-btn {
    display: inline-block;
    width: auto;
    min-width: 280px;
    margin: 1rem 0;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}
