* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2933;
  background: #ffffff;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Добавляем отступ сверху, чтобы контент не заезжал под фиксированную шапку */
  padding-top: 96px; 
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px; /* Чуть увеличил отступы по бокам для аккуратности */
}

/* ===== ФИКСИРОВАННАЯ ШАПКА ===== */
.site-header {
  background: linear-gradient(90deg, #2d5446 0%, #000000 100%); /* Плавный переход от зеленого к черному */
  padding: 12px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* Делаем логотип идеально ровным кругом через background-image */
.logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url('images/logo.png'); /* Путь к картинке */
  background-size: 80%; /* Уменьшаем картинку, чтобы она влезла в круг с отступами */
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.main-nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
}

.main-nav a {
  color: #ffffff;
  font-weight: 600;
  padding: 8px 12px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #ffd700;
}

.main-nav a.active {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
}

.header-phone {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}

.header-phone:hover {
  color: #ffd700;
}

/* ===== Главная страница (О нас) ===== */
.about-section {
  padding: 60px 0;
  flex: 1; 
}

.about-container {
  display: flex;
  gap: 50px; /* Увеличил расстояние между текстом и картинкой */
  align-items: flex-start;
}

.about-content {
  flex: 1;
  max-width: 600px;
}

.about-title {
  font-size: 38px; /* Чуть крупнее заголовок */
  margin-bottom: 25px;
  color: #1a5f3a;
  text-transform: uppercase;
}

.about-text {
  font-size: 18px;
  color: #334155;
  margin-bottom: 25px;
  line-height: 1.7;
}

.about-list {
  list-style: none;
  margin-bottom: 35px;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 17px;
  color: #334155;
  line-height: 1.6;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #1a5f3a;
  border-radius: 50%;
}

.btn-catalog {
  display: inline-block;
  padding: 15px 45px;
  background: #1a5f3a;
  color: #ffffff;
  border: 3px solid #1a5f3a;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-catalog:hover {
  background: #1a5f3a;
  color: #ffffff;
  border-color: #1a5f3a;
}

.about-image {
  flex-shrink: 0;
  width: 400px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid #2d5446; /* Темно-зеленая рамка в цвет шапки */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Красивая тень */
  position: relative;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполняет блок без искажений */
  display: block;
  transition: transform 0.3s ease;
}

/* Небольшой эффект при наведении */
.about-image:hover .about-img {
  transform: scale(1.05);
}

/* ===== Подвал ===== */
.site-footer {
  background: #f7f8fa;
  padding: 40px 0; /* Увеличил отступы для солидности */
  margin-top: 40px;
  border-top: 1px solid #e4e7eb;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  text-align: center;
}

.footer-cols {
  display: flex;
  justify-content: center;
  gap: 80px; /* Чуть больше расстояния между колонками */
  width: 100%;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-col strong { color: #1a5f3a; }

.footer-col a {
  color: #1a5f3a;
  font-weight: 600;
  text-decoration: none;
}

.footer-col a:hover { text-decoration: underline; }

.footer-copy {
  color: #6b7280;
  font-size: 14px;
  margin-top: 10px;
}

/* ===== Стили для внутренних страниц (О нас, Контакты) ===== */
.page-content {
  padding: 70px 0; /* Хорошие отступы сверху и снизу для контента */
  flex: 1;
}

.page-title {
  font-size: 36px;
  color: #1a5f3a;
  text-transform: uppercase;
  margin-bottom: 35px;
}

.about-page-text {
  max-width: 800px;
}
.about-page-text p {
  font-size: 18px;
  color: #334155;
  margin-bottom: 25px;
  line-height: 1.8; /* Увеличил межстрочный интервал для чтения */
}

.contacts-page-info p {
  font-size: 18px;
  color: #334155;
  margin-bottom: 20px;
  line-height: 1.7;
}
.contacts-page-info strong { color: #1a5f3a; }
.contacts-page-info a {
  color: #1a5f3a;
  font-weight: 600;
  text-decoration: none;
}
.contacts-page-info a:hover { text-decoration: underline; }

/* ===== СЕТКА КАТАЛОГА (3 в ряд) ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px; /* Расстояние между карточками */
  margin-top: 30px;
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  border-color: #1a5f3a;
  transform: translateY(-4px); /* Легкий подъем при наведении */
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 2px solid #e4e7eb;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 20px 25px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 19px;
  font-weight: 600;
  color: #1f2933;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.product-card-price {
  font-size: 22px;
  font-weight: 700;
  color: #1a5f3a;
}

/* ===== СТРАНИЦА ТОВАРА (Детальная) ===== */
.back-link {
  display: inline-block;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 30px;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: #1a5f3a;
}

.product-detail {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-top: 10px;
}

.product-detail-img {
  flex-shrink: 0;
  width: 450px; /* Сделал картинку чуть больше */
  height: 400px;
  background: #f1f5f9;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 600;
  border: 1px solid #e4e7eb;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.product-detail-info {
  flex: 1;
}

.product-detail-price {
  font-size: 26px;
  font-weight: 700;
  color: #1a5f3a;
  margin-bottom: 25px;
}

.product-specs {
  list-style: none;
  margin-bottom: 25px;
  background: #f7f8fa;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e4e7eb;
}

.product-specs li {
  font-size: 16px;
  color: #334155;
  margin-bottom: 12px;
}

.product-specs li:last-child {
  margin-bottom: 0;
}

.product-specs strong {
  color: #1a5f3a;
}

.product-detail-desc {
  font-size: 18px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 35px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  body { padding-top: 150px; } /* На планшетах шапка выше из-за переноса меню */
  
  .header-inner { gap: 15px; }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .header-phone { font-size: 20px; }
  .footer-cols { gap: 40px; }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 768px) {
  body { padding-top: 140px; } /* На мобильных еще чуть больше */
  
  .about-section { padding: 40px 0; }
  .about-container {
    flex-direction: column;
    gap: 30px;
  }
  .about-content { max-width: 100%; }
  .about-title { font-size: 28px; }
  .about-text, .about-list li { font-size: 16px; }
  
  .logo-text { font-size: 18px; }
  .logo-img { width: 52px; height: 52px; padding: 2px; }
  .logo { gap: 10px; }
  
  .header-phone { font-size: 18px; }
  .main-nav { gap: 12px; flex-wrap: wrap; }
  .main-nav a { padding: 6px 8px; font-size: 15px; }
  .btn-catalog { width: 100%; padding: 14px 20px; }

  .footer-cols {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .footer-col { align-items: center; text-align: center; }
  
  .page-title { font-size: 28px; }
  .about-page-text p, .contacts-page-info p { font-size: 16px; }

  .product-detail {
    flex-direction: column;
    gap: 30px;
  }
  .product-detail-img {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  body { padding-top: 180px; } /* Если меню совсем сильно переносится */
  .logo-text { font-size: 16px; }
  .about-title { font-size: 24px; }
  .site-footer { padding: 30px 0; }
  .product-card-body { padding: 15px 20px 20px; }
}

/* ===== Форма заявки ===== */
.request-form-section {
  margin-top: 50px;
  max-width: 600px;
}

.request-form-title {
  font-size: 28px;
  color: #1a5f3a;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-weight: 600;
  color: #334155;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  font-family: inherit;
  font-size: 16px;
  color: #1f2933;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5f3a;
  box-shadow: 0 0 0 3px rgba(26, 95, 58, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #334155;
  cursor: pointer;
}

.form-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #1a5f3a;
  cursor: pointer;
}

.request-form button {
  align-self: flex-start;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .request-form button { align-self: stretch; }
}

/* Скрываем стандартный чекбокс */
.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Создаем кастомный чекбокс */
.checkbox-group label {
  position: relative;
  padding-left: 30px; /* Место под наш новый квадратик */
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  font-size: 15px;
  color: #334155;
  line-height: 1.4;
}

/* Рисуем пустой квадрат */
.checkbox-group label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.2s ease;
}

/* Когда чекбокс активен (нажат), рисуем зеленую заливку и галочку */
.checkbox-group input[type="checkbox"]:checked + label::before {
  background-color: #1a5f3a;
  border-color: #1a5f3a;
}

/* Сама галочка (белая) */
.checkbox-group input[type="checkbox"]:checked + label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Подсветка при наведении */
.checkbox-group label:hover::before {
  border-color: #1a5f3a;
}

/* Стиль ссылки внутри чекбокса */
.checkbox-group label a {
  color: #1a5f3a;
  text-decoration: underline;
  font-weight: 600;
}

/* ===== БЛОК ПРЕИМУЩЕСТВ ===== */
.features-section {
  padding: 60px 0;
  background: #f7f8fa;
}

.features-title {
  text-align: center;
  font-size: 32px;
  color: #1a5f3a;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e4e7eb;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: #1a5f3a;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 18px;
  color: #1f2933;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* Адаптив для блока преимуществ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-title {
    font-size: 26px;
  }
}

/* Обертка для персонажа и чекбокса */
.checkbox-group-wrapper {
  position: relative;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  background: #f0fdf4; /* Легкий зеленый фон */
  padding: 15px;
  border-radius: 12px;
  border: 1px dashed #1a5f3a;
}

/* Контейнер для картинки и облачка */
.character-hint {
  position: relative;
  flex-shrink: 0;
}

.character-img {
  width: 70px;
  height: auto;
  display: block;
}

/* Облачко с текстом */
.hint-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 2px solid #1a5f3a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1a5f3a;
  white-space: nowrap;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Хвостик облачка */
.hint-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #1a5f3a transparent transparent transparent;
}

/* Сам чекбокс (кастомный) */
.checkbox-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-inner input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1a5f3a; /* Делает галочку зеленой */
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-inner label {
  font-weight: 400;
  font-size: 15px;
  color: #334155;
  line-height: 1.4;
  cursor: pointer;
  margin: 0;
}

.checkbox-inner label a {
  color: #1a5f3a;
  text-decoration: underline;
  font-weight: 600;
}

/* На мобильных делаем в колонку */
@media (max-width: 500px) {
  .checkbox-group-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .hint-bubble {
    white-space: normal;
    width: 200px;
  }
}

/* Контейнер для всей композиции */
.character-popup {
  display: flex;
  flex-basis: 100%;
  align-items: center; /* Выравниваем по центру по вертикали */
  gap: 15px;
  margin: 20px 0;
  padding-left: 20px; /* Небольшой отступ слева */
  animation: fadeIn 0.3s ease;
}

/* Повар вылезает за рамку */
.popup-img {
  width: 130px; /* Делаем его еще чуть крупнее */
  height: auto;
  flex-shrink: 0;
  position: relative;
  left: -40px; /* Сдвигаем влево за пределы блока */
  margin-right: -30px; /* Компенсируем сдвиг, чтобы текст не уехал далеко */
  z-index: 10; /* Чтобы повар был поверх всего */
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2)); /* Добавляем тень для объема */
}

/* Облачко с текстом */
.popup-bubble {
  position: relative;
  background: #ffffff;
  border: 2px solid #1a5f3a;
  border-radius: 20px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #1a5f3a;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Пузырьки, указывающие на голову повара */
.popup-bubble::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 30%; /* Поднимаем пузырьки выше (к голове) */
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-left: 2px solid #1a5f3a;
  border-bottom: 2px solid #1a5f3a;
  border-radius: 50%;
  box-shadow: -10px 10px 0 -4px #ffffff, -10px 10px 0 -2px #1a5f3a;
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Анимация тряски для чекбокса */
.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* Стили для ошибок валидации */
.input-error {
  border: 2px solid #e53e3e !important; /* Красная рамка */
  border-radius: 25px !important; /* Овальная форма (как ты просил) */
  background-color: #fff5f5 !important; /* Легкий красный фон */
}

.error-msg {
  color: #e53e3e;
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
  margin-left: 5px;
  animation: fadeIn 0.3s ease;
}

/* Кнопка быстрого заказа */
.btn-fast-order {
  margin-top: 15px;
  padding: 10px 15px;
  background: #2d5446;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.btn-fast-order:hover {
  background: #1a5f3a;
}

/* Стили для попапа */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Затемнение фона */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
}

.modal-close:hover {
  color: #e53e3e;
}

.modal-content h3 {
  font-size: 22px;
  color: #1f2933;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 16px;
  color: #334155;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e4e7eb;
}

/* ===== БЛОК ОТЗЫВОВ ===== */
.reviews-section {
  padding: 60px 0;
  background: #ffffff;
}

.reviews-title {
  text-align: center;
  font-size: 32px;
  color: #1a5f3a;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  background: #f7f8fa;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e4e7eb;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: #1a5f3a;
}

.review-stars {
  color: #ffc107; /* Золотой цвет звезд */
  font-size: 20px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.review-text {
  font-size: 16px;
  color: #334155;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1; /* Выравнивает карточки по высоте */
}

.review-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e4e7eb;
  padding-top: 15px;
}

.review-author strong {
  color: #1f2933;
  font-size: 16px;
}

.review-author span {
  color: #64748b;
  font-size: 14px;
  margin-top: 4px;
}

/* Адаптив для отзывов */
@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr; /* На мобильных в одну колонку */
  }
  .reviews-title {
    font-size: 26px;
  }
}
