body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #fafafa;
    color: #333;

    display: flex;              /* 👈 добавлено */
    flex-direction: column;     /* 👈 добавлено */
    min-height: 100vh;          /* 👈 добавлено */
}

/* Контейнер для выравнивания содержимого */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: #9AA390;
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Меню */
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: #f8f8f8;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #9aa390;
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav a:hover {
    color: #9aa390;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #9aa390;       /* цвет текста активного пункта */
    font-weight: 700;     /* можно выделить жирностью */
}

nav a.active::after {
    width: 100%;           /* подчеркивание остаётся при активном пункте */
    background-color: #9aa390;
}

main {
    padding: 20px;
    flex: 1;   /* 👈 добавлено: занимает всё свободное место */
}

/* Кнопки */
button {
    background: #9AA390;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button:hover {
    background: #7e8a72;
}

/* Футер */
footer {
    background: #9AA390;       /* твой цвет */
    color: #fff;               /* текст белый для контраста */
    text-align: center;
    padding: 0.5rem 0;         /* уменьшенная высота */
    margin-top: auto;
    font-size: 0.9rem;         /* чуть мельче шрифт, если хочешь */
}

footer a {
    color: #fff;               /* ссылки тоже белые */
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #eaeaea;            /* лёгкое изменение при наведении */
}

/* 📱 Адаптивность */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav a {
        font-size: 1rem;
    }

    header {
        font-size: 0.6rem;
    }
}

.marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #f5f5f5;      /* при желании замените/удалите */
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font: 16px/2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    white-space: nowrap;
}
.marquee__inner {
    display: inline-block;
    padding-left: 100%;        /* старт справа за пределами блока */
    animation: marquee 20s linear infinite;
}
.marquee span {
    display: inline-block;
    padding: 0 1rem;
}
/* Пауза при наведении мыши */
.marquee:hover .marquee__inner {
    animation-play-state: paused;
}
/* Анимация: сдвиг слева направо */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* Учитываем предпочтение "уменьшить анимацию" */
@media (prefers-reduced-motion: reduce) {
    .marquee__inner { animation: none; padding-left: 0; }
}

.about-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
    flex-wrap: wrap; /* чтобы красиво ломалось на мобильных */
}

.about-photo {
    max-width: 200px;
    border-radius: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

.about-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
}

.about-text2 {
    flex: 1;
    font-size: 1rem;
    line-height: 1.0;
}


/* Затемнённый фон */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

/* Картинка в модальном окне */
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Кнопка закрытия */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* Кнопка галереи */
.open-gallery {
  background: #9AA390;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.open-gallery:hover {
  background: #7e8a72;
}

/* --- Модальное окно для галереи --- */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Кнопки навигации */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Контейнер формы */
.contact-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Метки и поля */
.contact-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* Поля ввода */
.contact-form input,
.contact-form textarea {
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.3s, box-shadow 0.3s;
}

/* Фокус */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0077cc;
    box-shadow: 0 0 5px rgba(0,119,204,0.3);
    outline: none;
}

/* Текстовое поле */
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Кнопка */
.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #9AA390;           /* 🔹 серый фон */
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background: #666;           /* 🔹 чуть темнее при наведении */
    transform: translateY(-2px);
}

.contact-form button:active {
    background: #555;           /* 🔹 ещё темнее при клике */
    transform: translateY(0);
}

.phone-icon {
  color: #9AA390;       /* 🔹 твой фирменный цвет */
  font-size: 1.2em;     /* немного больше текста */
  margin-right: 6px;    /* отступ от текста */
  vertical-align: middle;
}

/* 📱 Адаптивность */
@media (max-width: 600px) {
    .contact-form {
        padding: 15px;
        margin: 10px;
    }
}

.features {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-top: 20px;  
}

.features h3 {
  text-align: center;
  margin-bottom: 2rem;
}


.feature-list {
    display: grid; 
    grid-template-columns: 1fr 1fr; /* ровно две колонки */ 
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.feature-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.feature-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}


.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.feature-header img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-header h4 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem); /* 🔹 адаптивный размер */
  color: #333;
  word-wrap: break-word;       /* 🔹 переносит длинные слова */
  overflow-wrap: anywhere;     /* 🔹 позволяет разрывать слова где угодно */
  hyphens: auto;               /* 🔹 добавляет дефисы при переносе */
  line-height: 1.3;            /* 🔹 чуть компактнее строки */
}

/* Текст скрыт по умолчанию */
.feature-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  margin-top: 0.5rem;
}

/* При наведении раскрывается */
.feature-item:hover .feature-details {
  max-height: 800px; /* достаточно, чтобы весь текст влез */
  opacity: 1;
}

@media (max-width: 800px) {
  .features {
    padding: 0 1rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* --- Исправление горизонтальной прокрутки на телефонах --- */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden; /* отключаем горизонтальный скролл */
}

img {
  max-width: 100%; /* картинки не вылазят за границы родителя */
  height: auto;
  display: block;
}

.feature-list {
  width: 100%;
  overflow-x: hidden; /* защита от «выползания» сетки */
}

.feature-item {
  width: 100%; /* каждая карточка ограничена по ширине */
  box-sizing: border-box;
}

.feature-header {
  flex-wrap: wrap; /* если заголовок и картинка не помещаются — переносятся */
}


.features h3 {
  text-align: center;
  margin-bottom: 2rem;
}

/* --- двухколоночная сетка --- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* --- карточка --- */
.feature-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

.feature-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* --- верхняя часть --- */
.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  flex-wrap: wrap;
}

.feature-header img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-header h4 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #333;
  word-break: break-word;
  line-height: 1.3;
}

/* --- текст под заголовком --- */
.feature-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  margin-top: 0.5rem;
}

/* --- при наведении блок плавно растёт вниз --- */
.feature-item:hover .feature-details {
  max-height: 500px; /* достаточно для всего текста */
  opacity: 1;
}

/* --- адаптивность: одна колонка на телефонах --- */
@media (max-width: 800px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.gallery-modal img {
  transition: transform 0.25s ease;
  cursor: zoom-in;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
























