﻿
/* =============================================
   style.css — Общие стили для всего сайта
   ============================================= */

:root {
    --primary: #006400;
    --accent: #228b22;
    --text: #333;
    --light: #f9f9f9;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    font-size: 16px;
}

/* ====================== ШАПКА ====================== */
header {
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo img {
    max-height: 72px;
    width: auto;
    display: block;
}

.menu {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #FF4500;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Бургер-меню */
.burger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--primary);
    z-index: 20;
    order: 1;}
/* ====================== ГЛАВНЫЙ БЛОК (HERO) ====================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 620px;           /* высота на компьютере */
    background-size: cover;      /* главное исправление */
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;            /* на всякий случай */
}

/* Тёмный градиент для лучшей читаемости текста */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65));
    z-index: 1;
}

/* Контент внутри hero */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.75);
}

.hero p {
    font-size: 1.32rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Кнопки */
.hero .btn {
    margin: 10px 6px;
    padding: 14px 30px;
    font-size: 1.1rem;
}

/* ====================== АДАПТАЦИЯ HERO ====================== */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;       /* чуть ниже на мобильных */
    }
    .hero h1 {
        font-size: 2.1rem;
    }
    .hero p {
        font-size: 1.18rem;
    }
}

/* ====================== КОНТЕНТ ====================== */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 15px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 35px;
    color: var(--primary);
}

.grid-2, .grid-3 {
    display: grid;
    gap: 25px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--light);
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.04);
}

.footer {
  background: #1a1a1a;
  color: #ddd;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 { color: #fff; margin-bottom: 20px; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #888;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff6600;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
/* ====================== АДАПТАЦИЯ (МОБИЛЬНЫЕ УСТРОЙСТВА) ====================== */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 20px 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        gap: 15px;
    }

    .menu.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    .hero {
        padding: 80px 15px 70px;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Дополнительные улучшения */
figure {
    margin: 35px 0;
}

figcaption {
    text-align: center;
    font-style: italic;
    margin-top: 8px;
    color: #555;
}

/* Для таблиц цен */
.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
}

/* ==================== ФОРМА ЗАЯВКИ ==================== */
.form-section {
    max-width: 680px;
    margin: 60px auto;
    padding: 40px 30px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.form-section h2 {
    text-align: center;
    margin-bottom: 35px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.15);
}

.checkbox-block {
    margin: 25px 0 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.note {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

/* Сообщение об успехе */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: #e8f5e9;
    border-radius: 12px;
    border: 2px solid #4caf50;
}

.success-message h3 {
    color: #2e7d32;
    margin-bottom: 12px;
}

.btn-secondary {
    margin-top: 20px;
    padding: 12px 28px;
    background: #555;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ==================== АДАПТАЦИЯ ==================== */
@media (max-width: 768px) {
    .form-section {
        margin: 40px 15px;
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* предотвращает зум на iOS */
    }
}
/* ==================== ГАЛЕРЕЯ — МОБИЛЬНАЯ АДАПТАЦИЯ ==================== */
.gallery-horizontal {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;           /* скрываем скроллбар на мобильных */
    -ms-overflow-style: none;
}

.gallery-horizontal::-webkit-scrollbar {
    display: none;                   /* скрываем скроллбар в Chrome/Safari */
}

.gallery-item {
    flex: 0 0 auto;
    width: 300px;                    /* ширина на мобильных */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;                   /* оптимальная высота для мобильных */
    object-fit: cover;
    display: block;
}

/* Подсказка для прокрутки */
.gallery-hint {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-top: 8px;
    display: none;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
}

.modal-caption {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 1.05rem;
    padding: 0 20px;
}

/* ==================== АДАПТАЦИЯ ==================== */
@media (max-width: 768px) {
    .gallery-item {
        width: 260px;                /* чуть уже на очень маленьких экранах */
    }
    .gallery-item img {
        height: 180px;
    }
    .gallery-hint {
        display: block;              /* показываем подсказку только на мобильных */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 240px;
    }
    .gallery-item img {
        height: 170px;
    }
}

.breadcrumbs {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.breadcrumbs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumbs a {
    color: #006400;
    text-decoration: none;
    padding: 4px 10px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs a:not(:last-child)::after {
    content: "→";
    margin-left: 8px;
    color: #999;
}

.footer {
    background: #1a1a1a;
    color: #ddd;
}

.footer a {
    color: #e0e0e0;
    transition: all 0.25s ease;
}

.footer a:hover {
    color: #ff8800;
    text-decoration: underline;
}

/* Специально для контактов и важных ссылок */
.contacts a {
    color: #ffffff;
    font-weight: 500;
}

.contacts a:hover {
    color: #ffaa33;
}