* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif; background: #fafafa; color: #222; min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }

.site-header { background: #4a4a4a; color: #fff; overflow: hidden; transition: max-height 0.5s ease-in-out; max-height: 120px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.site-header.expanded { max-height: 1000px; }

.header-inner { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 16px; }
.logo { width: 100%; height: 48px; display: flex; align-items: center; margin-left: 24px; }
.logo-img { height: 100%; width: auto; display: block; }

.nav { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.menu-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.menu-row.row-2, .menu-row.row-3, .menu-row.row-4 { display: none; }
.site-header.expanded .menu-row.row-2, .site-header.expanded .menu-row.row-3, .site-header.expanded .menu-row.row-4 { display: flex; }
.nav-btn { background: transparent; color: #ffffff; border: none; border-radius: 0; padding: 12px 6px; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1; text-decoration: none; }
.nav-btn:focus { outline: none; }
.nav-btn:hover { color: #e9e9e9; background: rgba(255,255,255,0.06); text-decoration: none; }

/* Плавающая круглая кнопка внизу шапки */
.header-fab { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px auto 8px; background: #4a4a4a; color: #ffffff; border: 2px solid #ffffff; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.25); z-index: 6; transition: transform 0.2s ease, background 0.2s ease; }
.header-fab:hover { background: #3d3d3d; }
.header-fab:active { transform: translateY(1px) scale(0.98); }
.header-fab .chevron { transform: translateY(1px); width: 20px; height: 20px; }
.header-fab[aria-expanded="true"] .chevron { transform: rotate(180deg); transition: transform 0.25s ease; }

.page-spacer { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; background: #4a4a4a; color: #ffffff; }
.footer-inner { padding: 12px 16px; text-align: center; font-size: 14px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-actions { display: flex; gap: 8px; }
.footer-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; color: #ffffff; text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-btn:hover { background: rgba(255,255,255,0.08); }
.footer-copy { opacity: 0.85; margin: 0; }

/* ===== Документы для скачивания ===== */
.doc-card { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid #dde3ea; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); max-width: 600px; margin-bottom: 14px; }
.doc-preview-img { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.doc-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.doc-icon { width: 72px; height: 72px; border-radius: 8px; background: #f2f4f7; display: flex; align-items: center; justify-content: center; color: #500202; flex-shrink: 0; }
.doc-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.doc-name { font-weight: 600; font-size: 16px; color: #222; margin: 0; }
.doc-download-btn { display: inline-flex; align-items: center; gap: 6px; background: #500202; color: #fff; text-decoration: none; border-radius: 6px; padding: 8px 14px; font-weight: 600; font-size: 14px; align-self: flex-start; }
.doc-download-btn:hover { background: #3a0101; }

@media (max-width: 720px) {
  .header-inner { grid-template-columns: 120px 1fr; }
  .logo { height: 40px; margin-left: 12px; }
  .nav-btn { font-size: 13px; padding: 8px 10px; }
}

/* =====================
   Мобильная версия <=600px
   - уменьшаем шрифты
   - закрепляем кнопку «гамбургер» справа сверху
   - меню по клику: вертикально, на всю ширину
   - скрываем второстепенные элементы
   ===================== */
@media (max-width: 600px) {
  /* Базовая типографика поменьше для экономии места */
  html, body { font-size: 15px; }

  /* Шапка всегда видима: компактная высота, прилипающая к верху */
  /* Фиксируем высоту компактной шапки, чтобы можно было точно центрировать кнопку */
  .site-header { --header-h: 72px; position: sticky; top: 0; z-index: 40; height: var(--header-h); box-shadow: 0 2px 8px rgba(0,0,0,0.15); overflow: hidden; }
  /* Используем динамические viewport-единицы, чтобы не перекрывало панель браузера */
  .site-header.expanded {
    height: auto;
    max-height: calc(100dvh - 8px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    overflow: auto; /* прокрутка внутри раскрытого меню */
    overscroll-behavior: contain;
    padding-bottom: max(12px, env(safe-area-inset-bottom)); /* отступ над системной панелью */
  }

  /* Внутри шапки оставляем только навигацию, логотип уменьшаем */
  /* Резервируем справа место под кнопку, чтобы она не перекрывала контент */
  .header-inner { grid-template-columns: auto 1fr; gap: 12px; padding: 8px 12px 12px; padding-right: 72px; align-items: center; justify-items: start; }
  .logo { height: 40px; margin-left: 0; justify-content: flex-start; }
  .logo-img { max-height: 40px; }
  /* Даже при раскрытии меню логотип остаётся слева */
  .site-header.expanded .header-inner { grid-template-columns: auto 1fr; justify-items: start; }
  .site-header.expanded .logo { justify-content: flex-start; position: sticky; top: 8px; align-self: start; z-index: 60; }

  /* Прячем содержимое шапки, пока не раскрыто */
  .site-header:not(.expanded) .nav { display: none; }

  /* Меню и кнопки: одна колонка, на всю ширину, крупные зоны нажатия */
  .nav { align-items: stretch; gap: 8px; }
  .menu-row { flex-direction: column; gap: 8px; }
  /* Показываем все разделы (включая «Платные услуги» и «Финансово-хозяйственная деятельность») при раскрытии */
  .nav-btn {
    font-size: 16px; /* крупнее, чем на десктопе */
    padding: 14px 16px; /* высота ~48px для удобного тапа */
    width: 100%;
    text-align: left;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
  }
  .nav-btn:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

  /* Кнопка открытия меню: вид «гамбургер», закреплена в правом верхнем углу */
  .header-fab {
    position: fixed;
    /* Центрируем по высоте шапки: (высота шапки - высота кнопки)/2 */
    top: calc((var(--header-h, 72px) - 40px) / 2);
    right: 12px;
    width: 40px; height: 40px;
    margin: 0;
    border: 2px solid rgba(255,255,255,0.8);
    background: #4a4a4a; /* сливаем с цветом шапки */
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    z-index: 50;
  }
  /* Прячем встроенную иконку */
  .header-fab .chevron { display: none; }
  /* Рисуем три капсулы с тенью одной псевдо-деталью */
  .header-fab::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 22px; height: 6px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #ffffff; /* средняя полоса */
    /* Дублируем фигуру вверх и вниз, добавляем мягкие тени как на макете */
    box-shadow:
      0 0 6px rgba(0,0,0,0.35), /* тень для средней */
      0 -9px 0 0 #ffffff,      /* верхняя капсула */
      0 -9px 6px rgba(0,0,0,0.35),
      0 9px 0 0 #ffffff,       /* нижняя капсула */
      0 9px 6px rgba(0,0,0,0.35);
  }
  .header-fab:active { transform: none; }

  /* Футер: делаем компактнее, убираем подписи — остаются только иконки */
  .footer-inner { gap: 4px; }
  .footer-btn { padding: 10px; border-radius: 12px; }
  .footer-btn span { display: none; }
}

/* =====================
   Стили для контента страниц
   ===================== */

.main-content {
  padding: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.main-content h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #500202;
  padding-bottom: 0.5rem;
}

.main-content h2 {
  color: #34495e;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.main-content h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.main-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #555;
}

/* Карточки разделов на главной странице */
.content-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.section-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-card h2 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.section-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: #500202;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #3a0101;
  color: white;
  text-decoration: none;
}

/* Информационные секции */
.info-section {
  margin-bottom: 2rem;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #500202;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

/* Материально-техническое обеспечение: крупнее текст, по вертикали по центру относительно фото */
.page-mto .info-grid {
  align-items: center;
}

.page-mto .info-text {
  font-size: 1.2rem;
  line-height: 1.65;
}

.page-mto .info-text p {
  margin-bottom: 0;
  font-size: inherit;
  color: #444;
}

/* Основные сведения: без подписей на фото, крупнее текст, вертикально по центру к фото */
.page-osnovnye .info-grid {
  align-items: center;
}

.page-osnovnye .info-text {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #444;
}

.page-osnovnye .info-text p {
  font-size: inherit;
  margin-bottom: 0.85rem;
}

.page-osnovnye .info-text p:last-child {
  margin-bottom: 0;
}

.page-osnovnye .info-text .training-list {
  margin-top: 0;
  margin-bottom: 0;
  gap: 16px;
}

.page-osnovnye .info-text .training-list li {
  line-height: 1.65;
  margin-bottom: 0;
}

.page-osnovnye .photo-placeholder::before,
.page-osnovnye .photo-placeholder.large::before {
  content: none;
}

.info-item {
  background: white;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-item strong {
  color: #2c3e50;
  display: block;
  margin-bottom: 8px;
}

/* Списки */
.structure-list, .program-list, .services-list {
  display: grid;
  gap: 16px;
  margin-top: 1rem;
}

.structure-item, .program-item, .service-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid #500202;
}

.leadership-list, .teachers-grid {
  display: grid;
  gap: 20px;
  margin-top: 1rem;
}

.leader-item, .teacher-category {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Стили для руководства */
.leader-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.leader-info {
  flex: 1;
}

.leader-info h3 {
  color: #500202;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.leader-info p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

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

/* Стили для преподавателей */
.teacher-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid #500202;
}

.teacher-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.teacher-info {
  flex: 1;
}

.teacher-info h3 {
  color: #500202;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.teacher-info p {
  margin: 0 0 5px 0;
  color: #555;
  line-height: 1.5;
}

.teacher-info p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: #500202;
}

/* Статистика */
.stats-grid, .tech-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

.stat-item, .tech-item {
  background: white;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-item strong, .tech-item strong {
  display: block;
  color: #2c3e50;
  margin-bottom: 8px;
}

/* Документы */
.document-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.document-list li {
  margin-bottom: 12px;
}

.document-link {
  display: block;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  color: #500202;
  text-decoration: none;
  transition: all 0.2s ease;
}

.document-link:hover {
  background: #f8f9fa;
  border-color: #500202;
  text-decoration: none;
  color: #3a0101;
}

/* Процедуры */
.procedure-list {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.procedure-list li {
  margin-bottom: 12px;
  padding-left: 8px;
}

/* Объекты */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.facility-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.facility-item ul {
  margin-top: 12px;
  padding-left: 20px;
}

/* Доступность */
.accessibility-info {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.accessibility-info ul {
  margin-top: 12px;
  padding-left: 20px;
}

/* Активные ссылки в навигации */
.nav-btn.active {
  background: transparent;
  color: #500202;
  text-decoration: none;
  font-weight: 700;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.5),
     1px -1px 0 rgba(255, 255, 255, 0.5),
    -1px  1px 0 rgba(255, 255, 255, 0.5),
     1px  1px 0 rgba(255, 255, 255, 0.5);
}

/* Плейсхолдеры для фото */
.photo-placeholder {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 8px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
  position: relative;
}

.photo-placeholder::before {
  content: "Фото";
  font-size: 18px;
  color: #999;
}

.photo-placeholder.large {
  min-height: 300px;
  margin-top: 2rem;
}

.photo-placeholder.large::before {
  content: "Большое фото";
  font-size: 20px;
}

.photo-placeholder.large:has(img)::before {
  content: none;
}

.photo-placeholder.small {
  min-height: 120px;
  width: 120px;
  flex-shrink: 0;
}

.photo-placeholder.small::before {
  content: none;
}

.photo-placeholder:has(img) {
  border: none;
  background: transparent;
  min-height: unset;
  padding: 0;
}

.photo-placeholder:has(img)::before {
  content: none;
}

.photo-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.photo-placeholder.large:has(img) {
  min-height: unset;
}

.photo-placeholder.small:has(img) {
  width: 120px;
  min-height: 120px;
  height: 120px;
}

.photo-placeholder.small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-stack {
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

/* Выделение текста */
.highlight {
  color: #500202;
  font-weight: 600;
}

/* Список обучения */
.training-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
  margin-top: 1rem;
}

.training-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.training-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #500202;
  font-weight: bold;
  font-size: 18px;
}

/* Элементы обучения */
.training-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid #500202;
}

.training-item h3 {
  color: #500202;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.training-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.training-item li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #555;
}

.training-item li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #500202;
  font-weight: bold;
}

/* Список программ */
.program-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.program-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #555;
}

.program-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #500202;
  font-weight: bold;
  font-size: 16px;
}

/* Контактная информация */
.contact-info {
  display: grid;
  gap: 20px;
  margin-top: 1rem;
}

.contact-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-left: 4px solid #500202;
}

.contact-item strong {
  color: #500202;
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.contact-item p {
  margin: 0;
  color: #555;
  line-height: 1.5;
  font-size: 1.1rem;
}

/* Стили для документов */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 1rem;
}

.document-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  border-left: 4px solid #500202;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.document-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.document-image {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.document-file-only {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: #f8f9fa;
  color: #500202;
  font-size: 1.5rem;
  font-weight: 700;
}

.document-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.document-item:hover .document-image img {
  transform: scale(1.02);
}

.document-info {
  padding: 24px;
}

.document-info h3 {
  color: #500202;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.document-info p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #500202;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background: #3a0101;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.download-btn svg {
  flex-shrink: 0;
}

/* Мобильная адаптация для контента */
@media (max-width: 600px) {
  .main-content {
    padding: 16px 12px;
    margin: 8px;
    border-radius: 0;
  }
  
  .main-content h1 {
    font-size: 2rem;
  }
  
  .content-sections {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .info-grid, .stats-grid, .tech-stats {
    grid-template-columns: 1fr;
  }
  
  .teachers-grid, .facilities-grid {
    grid-template-columns: 1fr;
  }

  .photo-placeholder {
    min-height: 150px;
  }

  .photo-placeholder.large {
    min-height: 200px;
  }

  .photo-placeholder.small {
    min-height: 100px;
    width: 100px;
  }

  .photo-placeholder.small:has(img) {
    width: 100px;
    min-height: 100px;
    height: 100px;
  }

  .leader-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .teacher-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Мобильная адаптация для документов */
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .document-image {
    height: 250px;
  }
  
  .document-info {
    padding: 20px;
  }
  
  .document-info h3 {
    font-size: 1.2rem;
  }
}

/* Стили для товаров (платные услуги) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  border-left: 4px solid #500202;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Карусель */
.product-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8f9fa;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 320px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  background: #f8f9fa;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(80, 2, 2, 0.8);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(80, 2, 2, 1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 0;
  padding: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background: #500202;
  transform: scale(1.3);
}

/* Информация о товаре */
.product-info {
  padding: 24px;
}

.product-info h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.product-price {
  color: #500202;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.buy-btn {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

/* Мобильная адаптация для товаров */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .carousel-container {
    height: 250px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .product-info {
    padding: 20px;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }

  .product-price {
    font-size: 1.5rem;
  }
}
