/* style.css - Основные стили для всего сайта */

/* Общие сбросы и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f2; /* Светлый, "природный" фон */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Шапка */
header {
    background: #2a5c4a; /* Темно-зеленый, цвет леса */
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Навигация (адаптивная) */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #3e4d44; /* Темно-серо-зеленый */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 30px;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 500;
}

nav a:hover {
    background-color: #5b8c7a;
    transform: scale(1.05);
}

/* Типографика */
h2 {
    color: #2a5c4a;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 2px solid #d4b68a; /* Бежевый, как дерево */
    padding-bottom: 0.5rem;
}

h3 {
    color: #3e4d44;
    margin: 1rem 0;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* Секции на главной */
.hero {
    background-color: #e8f0e7;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.activities {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.cta {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #d4b68a;
    border-radius: 12px;
    color: #2a5c4a;
    font-size: 1.2rem;
}

.cta a {
    color: #2a5c4a;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #2a5c4a;
}

/* Страница "О нас" */
.about-description, .advantages, .price {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.price table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.price tr:last-child td {
    border-bottom: none;
}

.price td:last-child {
    font-weight: bold;
    color: #2a5c4a;
    text-align: right;
}

.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Галерея */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    aspect-ratio: 4/3; /* Делает все фото одного пропорционального размера */
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает фото, чтобы заполнить контейнер */
    display: block;
    cursor: pointer;
}

/* Отзывы */
.reviews-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.reviews-container iframe {
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Контакты */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-item a {
    color: #2a5c4a;
    text-decoration: none;
    font-weight: bold;
    word-break: break-word;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Карта на странице контактов */
.map-section {
    margin: 30px 0;
}

.map-link {
    text-decoration: none;
    color: inherit;
}

.map-placeholder {
    background-color: #e0e0e0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px dashed #2a5c4a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232a5c4a" opacity="0.2"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-repeat: no-repeat;
    background-position: center 40%;
    background-size: 80px;
    color: #2a5c4a;
    font-weight: bold;
    transition: background-color 0.3s;
}

.map-placeholder:hover {
    background-color: #d0d0d0;
}

.map-placeholder p {
    background-color: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 30px;
    margin-top: 100px;
}

/* Подвал */
footer {
    background-color: #2a3c33;
    color: #ddd;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.95rem;
}

footer a {
    color: #d4b68a;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Адаптивность для маленьких экранов (смартфоны) */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav a {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .gallery-container {
        grid-template-columns: 1fr; /* По одной картинке в ряд на телефоне */
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .price td {
        display: block;
        text-align: left !important;
        padding: 8px;
    }

    .price td:last-child {
        padding-top: 0;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .reviews-container iframe {
        height: 400px; /* Немного уменьшаем высоту на телефоне */
    }
}

/* Стили для круглой кнопки карты */
.map-button-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.map-round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2a5c4a, #1e4537);
    color: white;
    padding: 12px 20px;  /* Уменьшил отступы */
    border-radius: 40px;  /* Чуть меньше скругление */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;      /* Уменьшил размер шрифта */
    box-shadow: 0 4px 12px rgba(42, 92, 74, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #d4b68a;
    max-width: 90%;       /* Ограничил максимальную ширину */
    gap: 8px;
}

.button-icon {
    font-size: 1.2rem;    /* Уменьшил иконку */
}

.button-text {
    white-space: normal;   /* Разрешил перенос текста */
    text-align: center;
}

.button-arrow {
    font-size: 1.1rem;    /* Уменьшил стрелку */
    transition: transform 0.3s ease;
}

.map-round-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Специальные стили для мобильных устройств */
@media (max-width: 600px) {
    .map-round-button {
        padding: 10px 15px;     /* Еще меньше отступы на телефоне */
        font-size: 0.9rem;       /* Еще меньше шрифт */
        width: auto;             /* Автоширина */
        min-width: 250px;        /* Минимальная ширина */
        max-width: 95%;          /* Максимальная ширина */
    }
    
    .button-icon {
        font-size: 1.1rem;
    }
    
    .button-arrow {
        font-size: 1rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .map-round-button {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 200px;
    }
}

/* Стили для контактной информации */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(42, 92, 74, 0.15);
}

.contact-item h3 {
    color: #2a5c4a;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item a {
    color: #2a5c4a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    word-break: break-word;
    border-bottom: 1px dashed #d4b68a;
}

.contact-item a:hover {
    color: #1e4537;
    border-bottom: 1px solid #2a5c4a;
}

/* Стили для круглой кнопки карты */
.map-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.map-round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2a5c4a, #1e4537);
    color: white;
    padding: 15px 30px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(42, 92, 74, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #d4b68a;
    max-width: 100%;
    gap: 10px;
}

.map-round-button:hover {
    background: linear-gradient(145deg, #1e4537, #0f2b22);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(42, 92, 74, 0.5);
}

.map-round-button:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 5px 15px rgba(42, 92, 74, 0.4);
}

.button-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

.button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.map-round-button:hover .button-arrow {
    transform: translateX(8px);
}

/* Стили для карты */
.map-section iframe {
    width: 100%;
    height: 400px;
    border: 2px solid #d4b68a;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.note {
    text-align: center;
    background: linear-gradient(135deg, #d4b68a, #c1a06b);
    color: #2a5c4a;
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .map-round-button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .button-text {
        white-space: normal;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .map-section iframe {
        height: 350px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .map-round-button {
        flex-wrap: wrap;
        text-align: center;
        padding: 15px;
    }
    
    .button-icon, .button-arrow {
        margin: 0 5px;
    }
}

/* Стили для контактной информации */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.contact-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(42, 92, 74, 0.15);
}

.contact-item h3 {
    color: #2a5c4a;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item a {
    color: #2a5c4a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    word-break: break-word;
    display: inline-block;
    padding: 5px 0;
}

.contact-item a:hover {
    color: #1e4537;
    text-decoration: underline;
}

.contact-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Стили для социальных сетей */
.social-section {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.social-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.social-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-height: 100px;
}

.social-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.social-button:active {
    transform: translateY(0);
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.social-name {
    font-size: 0.9rem;
    text-align: center;
}

/* Цвета для кнопок соцсетей */
.social-button.vk {
    background: linear-gradient(145deg, #4a76a8, #3a5f8a);
}

.social-button.instagram {
    background: linear-gradient(145deg, #e1306c, #c13584, #833ab4);
}

.social-button.whatsapp {
    background: linear-gradient(145deg, #25D366, #20b859);
}

.social-button.telegram {
    background: linear-gradient(145deg, #0088cc, #0077b5);
}

.social-button.viber {
    background: linear-gradient(145deg, #7360f2, #5e4bd9);
}

.social-button.viber-web {
    background: linear-gradient(145deg, #8a7ae6, #6b5bd1);
}

.social-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    font-style: italic;
}

/* Стили для круглой кнопки карты */
.map-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.map-round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2a5c4a, #1e4537);
    color: white;
    padding: 15px 30px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(42, 92, 74, 0.4);
    transition: all 0.3s ease;
    border: 2px solid #d4b68a;
    max-width: 100%;
    gap: 10px;
}

.map-round-button:hover {
    background: linear-gradient(145deg, #1e4537, #0f2b22);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(42, 92, 74, 0.5);
}

.button-icon {
    font-size: 1.5rem;
}

.button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.button-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.map-round-button:hover .button-arrow {
    transform: translateX(8px);
}

/* Стили для карты */
.map-section iframe {
    width: 100%;
    height: 400px;
    border: 2px solid #d4b68a;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.note {
    text-align: center;
    background: linear-gradient(135deg, #d4b68a, #c1a06b);
    color: #2a5c4a;
    padding: 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .map-round-button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .button-text {
        white-space: normal;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .map-section iframe {
        height: 350px;
    }
    
    .social-button {
        min-height: 80px;
        padding: 12px 5px;
    }
    
    .social-icon {
        font-size: 1.8rem;
    }
    
    .social-name {
        font-size: 0.8rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .map-round-button {
        flex-wrap: wrap;
        text-align: center;
        padding: 15px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}

header {
    background: linear-gradient(rgba(42, 92, 74, 0), rgba(42, 92, 74, 0.7)),
                url('img/7.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Более красивый вариант с подчеркиванием */
main h2 {
    text-align: center;
    margin: 40px auto 30px;
    color: #2a5c4a;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

main h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #d4b68a;
}