/* ========== АЛТЕЙ — переменные бренда ========== */
:root {
  --color-primary: #2d5a3d;
  --color-primary-light: #3d7a4f;
  --color-primary-pale: #6b9c4a;
  --color-accent: #7a9a4a;
  --color-text: #323232;
  --color-text-muted: #5a6b5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f8f5;
  --color-bg-dark: #1a2e22;
  --color-error: #dc3545;
  --color-error-bg: #f8d7da;
  --color-success: #198754;
  --color-success-bg: #d1e7dd;
  --border-radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========== Базовые стили ========== */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 0;
  overflow-x: hidden;
  background: linear-gradient(165deg, #f8faf8 0%, #eef5f0 30%, #e5f0e8 60%, #dcebe2 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-primary-light); }

/* Фокус для доступности (клавиатурная навигация) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* Важное уведомление на главной (над каруселью) */
body.important-notice-open {
  overflow: hidden;
}

.important-notice-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.important-notice-modal.is-open {
  display: flex;
}

.important-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 34, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.important-notice-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(85vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  padding: 28px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.important-notice-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--color-primary);
  line-height: 1.25;
}

.important-notice-body {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.important-notice-body p {
  margin-bottom: 0.75em;
}

.important-notice-body p:last-child {
  margin-bottom: 0;
}

.important-notice-body ul,
.important-notice-body ol {
  margin: 0.5em 0;
  padding-left: 1.25em;
}

.important-notice-close {
  width: 100%;
  justify-content: center;
}

/* ========== Кнопки ========== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: white !important;
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}
.btn-outline-primary:hover {
  background: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* ========== HEADER (по макету Figma) ========== */
.altei-header {
  background: #f5f7fa;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease;
}

.logo-block:hover {
  opacity: 0.9;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 1.6px;
  color: #18191f;
  line-height: 1.4;
}
.logo-text small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #18191f;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.altei-nav {
  display: flex;
  align-items: center;
  gap: 50px;
  flex: 1;
  flex-wrap: wrap;
}

.altei-nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}
.altei-nav a:not(.btn) {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #18191f;
  position: relative;
  transition: color 0.25s ease;
}

.altei-nav a:not(.btn):hover { color: var(--color-primary); }

.btn-header {
  background: #2d5a3d !important;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}
.btn-header:hover {
  background: #3d7a4f !important;
}

.altei-nav a:not(.btn):after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.altei-nav a:not(.btn):hover:after {
  width: 100%;
}

@media (max-width: 768px) {
  .header-inner { justify-content: space-between; }
  .nav-toggle { display: flex; margin-left: auto; }
  .altei-nav {
    display: none;
    flex: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .altei-nav.open { display: flex; }
  .altei-nav-links { flex-direction: column; gap: 0; }
  .altei-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
}

/* ========== Админка: шапка ========== */
.admin-header-inner {
  flex-wrap: wrap;
}

.admin-header-inner .altei-nav {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.admin-header-inner .altei-nav a {
  font-size: 14px;
  white-space: nowrap;
}

.admin-header-inner .altei-nav a:after {
  display: none;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 8px;
  flex-shrink: 0;
}

.admin-header .logo-text small {
  display: none;
}

.admin-logout-form {
  margin: 0;
  margin-left: 8px;
}

.btn-outline-header {
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
  padding: 8px 16px;
  font-size: 14px;
}

.btn-outline-header:hover {
  background: var(--color-primary) !important;
  color: white !important;
}

@media (max-width: 992px) {
  .admin-header-inner .altei-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  .admin-header-inner .altei-nav.open {
    display: flex;
  }
  .admin-header-inner .nav-toggle {
    display: flex;
  }
  .admin-header-inner .altei-nav a,
  .admin-header-inner .altei-nav form {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
}

/* Каталог: шапка в стиле главной */
.catalog-header-inner .altei-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.catalog-logout-form {
  margin: 0;
}

/* Иконка корзины в каталоге */
.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
  border-radius: var(--border-radius);
  transition: color 0.2s, background 0.2s;
}
.cart-icon-link:hover {
  color: var(--color-primary);
  background: rgba(45, 90, 61, 0.08);
}
.cart-icon {
  width: 24px;
  height: 24px;
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  color: white;
  background: var(--color-primary);
  border-radius: 9px;
}

/* ========== КОРЗИНА — закруглённые рамки ========== */
.cart-frame {
  border: 1px solid #e0e5e2;
  border-radius: 14px;
  background: white;
  overflow: hidden;
}

.cart-empty.cart-frame {
  padding: 32px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-products.cart-frame {
  padding: 0;
}

.cart-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.cart-table th {
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: left;
  border-bottom: 1px solid #e0e5e2;
}

.cart-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e0e5e2;
  vertical-align: middle;
}

.cart-table tbody tr:last-child td {
  border-bottom: none;
}

.cart-qty-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-input {
  width: 70px !important;
  text-align: center;
  border-radius: 8px;
}

.cart-summary.cart-frame {
  padding: 24px;
  position: sticky;
  top: 24px;
}

.cart-summary-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #e0e5e2;
  margin-bottom: 20px;
}

.cart-summary-total strong {
  font-size: 1.25rem;
}

.btn-checkout {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 50px;
}

.cart-summary-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* ========== FOOTER ========== */
.altei-footer {
  background: var(--color-bg-dark);
  color: #b8c8be;
  padding: 48px 0 24px;
  margin-top: 48px;
}

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

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col p, .footer-col a {
  font-size: 0.9rem;
  color: #b8c8be;
  line-height: 1.7;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a { font-size: 0.85rem; color: #8a9e90; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== Ошибки и валидация (DESIGN.md) ========== */
.alert-error,
.alert-danger {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.alert-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(25, 135, 84, 0.3);
  border-radius: var(--border-radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

/* Ошибки рядом с полем: красный текст под полем (как на макете) */
.field-error,
.field-validation-error {
  display: block;
  font-size: 0.875rem;
  color: #b91c1c;
  margin-top: 4px;
}

/* Красная рамка вокруг поля с ошибкой */
.field-invalid input,
.field-invalid select,
.field-invalid textarea,
input.field-invalid,
select.field-invalid,
textarea.field-invalid,
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
  border: 2px solid #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626;
}

/* Файловые инпуты с ошибкой */
input[type="file"].input-validation-error {
  border: 2px solid #dc2626 !important;
}

/* ========== Hero и секции (по макету Figma) ========== */
.hero {
  background: #f5f7fa;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

/* Карусель фона hero */
.hero-carousel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-carousel-slide[data-slide="0"] { background-image: url("/images/hero-carousel-1.png"); }
.hero-carousel-slide[data-slide="1"] { background-image: url("/images/hero-carousel-2.png"); }
.hero-carousel-slide[data-slide="2"] { background-image: url("/images/hero-carousel-3.png"); }

.hero-carousel-slide.hero-carousel-active {
  opacity: 1;
  z-index: 0;
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245, 247, 250, 0.92) 0%, rgba(245, 247, 250, 0.75) 50%, rgba(245, 247, 250, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-home {
  padding: 96px 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 104px;
  position: relative;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-title, .hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.19;
  color: #4d4d4d;
  margin-bottom: 16px;
  max-width: 657px;
}

/* Главный заголовок бренда на карусели — одно слово, акцентная типографика */
.hero-title-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(4rem, 14vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 28px;
  max-width: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 24px rgba(45, 90, 61, 0.12);
}

.hero-subtitle, .hero .hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #717171;
  max-width: 657px;
  margin: 0 0 32px 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #2d5a3d !important;
  color: white !important;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}
.hero-cta:hover {
  background: #3d7a4f !important;
  color: white !important;
}

.hero-illustration {
  flex-shrink: 0;
  width: 391px;
  height: 407px;
  position: relative;
}

.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }
  .hero-title, .hero h1 { margin-left: auto; margin-right: auto; }
  .hero-subtitle, .hero .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-illustration { order: -1; width: 280px; height: 292px; }
}

@media (max-width: 768px) {
  .hero, .hero-home { padding: 48px 0; }
  .hero-illustration { width: 220px; height: 230px; }
}

/* Три точки под hero (индикаторы слайдера) — опущены ниже */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  position: relative;
}

.hero-dot,
.hero-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
  transition: opacity 0.2s;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hero-dot-btn:hover,
.hero-dot-btn.active {
  opacity: 1;
}

/* Секция партнёров — бегущая строка брендов */
.section-desc {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 800px;
  margin: -8px auto 40px;
  line-height: 1.6;
}

/* Бегущая строка брендов (бесконечный закольцованный цикл, чистый CSS) */
.partners-marquee {
  --marquee-gap: 48px;
  overflow: hidden;
  padding: 24px 0;
  user-select: none;
}

.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  flex-shrink: 0;
  animation: partners-marquee-scroll 38s linear infinite;
}

.partners-marquee:hover .partners-marquee-track {
  animation-play-state: paused;
}

.partners-marquee-group {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  flex-shrink: 0;
  padding: 0 24px;
}

@keyframes partners-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--marquee-gap) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee-track {
    animation: none;
  }
}

.partner-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #18191f;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 6px;
  opacity: 0.85;
}

.partner-logo span {
  font-size: 0.75rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Page hero (About, Contacts, Privacy, News) — в стиле главной */
.page-hero {
  background: #f5f7fa;
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.04) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: #4d4d4d;
  margin-bottom: 8px;
}

.page-hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #717171;
  font-size: 1rem;
}

/* Анимации появления */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-delay {
  animation: fadeInUp 0.6s ease-out 0.15s forwards;
  opacity: 0;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal — элементы скрыты до появления */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About block (главная) */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.about-block-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.about-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-block-content {
  padding: 0 8px;
}

.about-block-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.about-block-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

.about-advantages,
.about-partners {
  margin-bottom: 48px;
}

.about-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .about-block {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .about-block-image {
    order: -1;
    max-height: 280px;
    aspect-ratio: 16/9;
  }
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.advantage-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4eb, #d4e9dc);
  border-radius: 12px;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.advantage-icon svg {
  width: 28px;
  height: 28px;
}

.advantage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.advantage-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.partner-item {
  position: relative;
  text-align: center;
  padding: 28px 22px 26px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(45, 90, 61, 0.18);
  box-shadow:
    0 4px 18px rgba(45, 90, 61, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* явная «плитка»: акцентная полоса сверху */
.partner-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 12px 12px 0 0;
}

.partner-item:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 90, 61, 0.32);
  box-shadow:
    0 12px 32px rgba(45, 90, 61, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.08);
}

.partner-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(45, 90, 61, 0.25);
}

.partner-item p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

.about-cta {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.about-cta h2,
.about-cta h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 20px;
  color: var(--color-text);
}

.about-cta p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.about-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-preview {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.about-preview p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.about-preview .btn {
  margin-top: 8px;
}

/* Contacts page */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--color-primary);
}
.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-card p {
  margin: 0 0 6px;
}

.contact-card a {
  font-weight: 500;
}

.contacts-info {
  max-width: 640px;
  margin: 0 auto;
}

.contacts-info .section-title {
  margin-bottom: 20px;
}

/* Privacy page */
.privacy-content h2 {
  font-size: 1.2rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content p, .privacy-content li {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.privacy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-contact a {
  font-weight: 600;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--color-text);
  text-align: center;
}

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

.promo-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.promo-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.promo-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8f4eb, #d4e9dc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.7;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.promo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.promo-card-title {
  color: var(--color-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
  cursor: pointer;
}

.promo-card-title:hover {
  color: var(--color-primary);
}

/* Страница деталей акции */
.promo-detail-image {
  max-width: 600px;
  margin: 0 auto 24px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
}

.promo-detail-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.promo-detail-content,
.product-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.promo-detail-content {
  max-width: 600px;
  margin: 0 auto;
}
.catalog-details .product-description {
  max-width: 720px;
  margin: 0 auto;
}

/* Страница товара: макет по макету (каталог/категория/товар, 4:5, цена в бейдже, инструкция, кнопка) */
.catalog-details-layout {
  max-width: 1000px;
  margin: 0 auto;
}

.catalog-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.catalog-details-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.catalog-details-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--color-text-muted);
  padding: 0 6px;
}

.catalog-details-breadcrumb .breadcrumb-item a {
  color: var(--color-text-muted);
}
.catalog-details-breadcrumb .breadcrumb-item a:hover {
  color: var(--color-primary);
}
.catalog-details-breadcrumb .breadcrumb-item.active {
  color: var(--color-text);
}

.catalog-details-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  border-radius: var(--border-radius);
  transition: background 0.2s, color 0.2s;
}
.catalog-details-back:hover {
  background: rgba(45, 90, 61, 0.08);
  color: var(--color-primary-light);
}

.catalog-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .catalog-details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.catalog-details-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-details-image-main {
  flex: 1;
  min-width: 280px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(145deg, #f0f5f0, #e5ebe5);
  border: 1px solid rgba(0,0,0,0.06);
}

.catalog-details-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-details-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.5;
  border-radius: var(--border-radius);
}

.catalog-details-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-details-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: border-color 0.2s;
}
.catalog-details-thumb.active {
  border-color: var(--color-primary);
}
.catalog-details-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-details-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-details-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
  line-height: 1.3;
}

.catalog-details-price {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
}

.catalog-details-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.catalog-details-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.catalog-details-instruction,
.catalog-details-instruction-view {
  margin-right: 8px;
}

.catalog-details-cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-details-quantity {
  width: 72px;
  padding: 10px 12px;
  font-size: 1rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--border-radius);
  -moz-appearance: textfield;
}
.catalog-details-quantity::-webkit-outer-spin-button,
.catalog-details-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.catalog-details-cart-btn {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: var(--border-radius);
}
.product-card-body .product-description {
  font-size: 0.95rem;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-detail-content p,
.product-description p,
.news-detail-content p {
  margin-bottom: 0.75em;
}
.promo-detail-content p:last-child,
.product-description p:last-child,
.news-detail-content p:last-child {
  margin-bottom: 0;
}
.promo-detail-content ul,
.product-description ul,
.news-detail-content ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}
.promo-detail-content ol,
.product-description ol,
.news-detail-content ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

/* Публичный просмотр товара (для неавторизованных) */
.product-preview {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
}

.product-preview-image {
  aspect-ratio: 3/4;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: linear-gradient(145deg, #f0f5f0, #e5ebe5);
  border: 1px solid rgba(0,0,0,0.06);
}

.product-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.5;
  border-radius: var(--border-radius);
}

.product-preview-body h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.product-preview-description {
  margin-bottom: 28px;
}

.product-preview-description h5 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .product-preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-preview-image {
    max-height: 320px;
    aspect-ratio: 16/9;
  }
}

/* Блок для неавторизованных на странице входа */
.login-contact-block {
  background: var(--color-bg-alt);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--border-radius);
}

.login-contact-block .btn {
  font-weight: 600;
}

.promo-detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.promo-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
  min-height: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* Сетка карточек с оверлеем (главная) — 4 в ряд */
.products-grid-overlay {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: end;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

/* Карточка с оверлеем: портретное фото + блок внизу справа */
.product-card-overlay {
  position: relative;
  overflow: visible;
}

.product-card-overlay .product-card-image {
  aspect-ratio: 3/4;
  height: auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.product-card-overlay .product-card-body {
  position: absolute;
  right: -12px;
  bottom: -12px;
  left: 40%;
  padding: 16px 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.product-card-overlay h3 {
  font-size: 1rem;
  margin: 0;
  min-height: auto;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-overlay .btn {
  width: auto;
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .products-grid-overlay { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .products-grid-overlay { grid-template-columns: 1fr; }
  .product-card-overlay .product-card-body { right: 12px; bottom: 12px; left: 12px; }
}

.product-card-image {
  height: 200px;
  background: linear-gradient(145deg, #f0f5f0, #e5ebe5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.5;
  border-radius: var(--border-radius);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--color-text); min-height: 2.5em; }

.product-card p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 20px; flex: 1; }

.product-card .btn { margin-top: auto; width: 100%; justify-content: center; }

/* Мероприятия на главной: 1 большая + 3 маленькие (превью 4:5), правая колонка по высоте = левой */
.news-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.news-hero-main {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.news-hero-main:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.news-hero-main-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.news-hero-main-image {
  aspect-ratio: 4/5;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f4eb, #d4e9dc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.6;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.news-hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero-main-body {
  padding: 24px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.news-hero-main-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.news-hero-main-body p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.news-hero-main-body .news-read-more {
  margin-top: auto;
  align-self: flex-start;
}

.news-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 20px;
  min-height: 0;
  height: 100%;
}

.news-hero-side-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.news-hero-side-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.news-hero-side-link {
  display: flex;
  gap: 16px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.news-hero-side-image {
  width: 104px;
  aspect-ratio: 4/5;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f4eb, #d4e9dc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  opacity: 0.6;
  overflow: hidden;
}

.news-hero-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-hero-side-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.news-hero-side-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-text);
}

.news-hero-side-body p {
  flex: 1 1 auto;
  min-height: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-hero-side-body .news-read-more {
  margin-top: auto;
  align-self: flex-start;
}

.news-read-more {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: underline;
}

.news-read-more:hover {
  color: var(--color-primary-light);
}

/* Одна новость на главной */
.news-single-card {
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-single-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.news-single-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-single-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e8f4eb, #d4e9dc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.6;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.news-single-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-single-body {
  padding: 24px;
}

.news-single-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.news-single-body p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (max-width: 992px) {
  .news-hero-layout {
    grid-template-columns: 1fr;
  }
  .news-hero-main {
    height: auto;
  }
  .news-hero-main-link {
    flex: none;
    height: auto;
  }
  .news-hero-main-body p {
    flex: none;
  }
  .news-hero-side {
    height: auto;
  }
  .news-hero-side-card {
    flex: none;
    min-height: auto;
  }
  .news-hero-side-link {
    flex: none;
  }
  .news-hero-side-body p {
    flex: none;
  }
}

@media (max-width: 768px) {
  .news-hero-side-link {
    flex-direction: column;
    align-items: stretch;
  }
  .news-hero-side-image {
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 4/5;
  }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.news-card-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e8f4eb, #d4e9dc);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
  opacity: 0.6;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body { padding: 20px; flex: 1; }

.news-date { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 8px; }

.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-text); }

.news-card p { font-size: 0.9rem; color: var(--color-text-muted); }

.news-card-clickable { cursor: pointer; }
.news-card-clickable:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Модальное окно новости */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.news-modal.open {
  opacity: 1;
  visibility: visible;
}
.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.news-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  box-shadow: var(--shadow);
}
.news-modal-close:hover { background: white; }
.news-modal-frame {
  width: 100%;
  height: 80vh;
  min-height: 400px;
  border: none;
}

/* Детали новости (в модалке и на странице) */
.news-detail {
  padding: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.news-detail .news-date { display: block; margin-bottom: 12px; }
.news-detail h1 { font-size: 1.5rem; margin-bottom: 16px; }
.news-detail-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  width: 100%;
}
.news-detail-images img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--border-radius);
}
.news-detail-content {
  margin-top: 20px;
  margin-bottom: 24px;
  line-height: 1.7;
  word-wrap: break-word;
}
.embed-body { padding: 0; margin: 0; background: white; min-height: 100%; }
.embed-body main { display: block; }

.newsletter {
  background: white;
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.3s ease;
}

.newsletter:hover {
  box-shadow: var(--shadow-hover);
}

.newsletter h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--color-text); }

.newsletter p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 24px; }

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 220px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.newsletter-field .field-error { text-align: left; }

@media (max-width: 768px) {
  .hero { padding: 32px 0; }
  .hero h1 { font-size: 1.35rem; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 20px; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero-title { font-size: 1.75rem; }
  .logo-img { width: 48px; height: 48px; }
  .logo-text { font-size: 1.25rem; }
  .logo-text small { font-size: 0.75rem; }
  .partner-logo { width: 56px; height: 56px; }
  .partner-logo span { font-size: 0.65rem; }
  .promo-grid { grid-template-columns: 1fr; gap: 20px; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .products-grid-overlay { grid-template-columns: 1fr; gap: 28px; }
  .product-card-overlay .product-card-body { right: 8px; bottom: 8px; left: 8px; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .newsletter { margin-top: 32px; padding: 24px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-field { min-width: 100%; }
  .newsletter-form input { min-width: 100%; }
  .newsletter-form .btn { width: 100%; }
}

/* ========== Страницы ошибок ========== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.error-page-inner {
  text-align: center;
  max-width: 480px;
  animation: fadeInUp 0.5s ease-out;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.error-page h2 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 24px;
}

.error-page p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.error-page .btn {
  transition: transform 0.25s ease;
}

.error-page .btn:hover {
  transform: translateY(-2px);
}

/* Кнопки выбора порядка (товары, акции) */
.order-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.order-buttons .order-btn {
  min-width: 44px;
}

.order-buttons .order-btn.active {
  background: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
}

.order-buttons .order-btn.occupied:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== Admin login ========== */
.admin-login {
  max-width: 400px;
  margin: 48px auto;
  padding: 32px;
  background: var(--color-bg-alt);
  border-radius: var(--border-radius);
}

.admin-login h1 { margin-bottom: 24px; font-size: 1.5rem; }

.admin-login-form .form-control { margin-bottom: 0; }

/* ========== Bootstrap overrides ========== */
.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(45, 90, 61, 0.25);
}

.form-control:focus {
  border-color: var(--color-primary);
}

/* Карточки изображений с кнопками на overlay (как у Шевченко) */
.news-image-card {
  position: relative;
  display: inline-block;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 96px;
}
.news-image-card img {
  display: block;
  width: 120px;
  aspect-ratio: 4/5;
  object-fit: cover;
  vertical-align: middle;
}
.news-image-card .news-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s;
}
.news-image-card:hover .news-image-overlay,
.news-image-card:focus-within .news-image-overlay {
  opacity: 1;
}
@media (max-width: 768px) {
  .news-image-card .news-image-overlay {
    opacity: 1;
  }
}
.news-image-card .news-image-overlay .btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}
.news-image-card .news-image-overlay .btn-replace {
  position: relative;
  overflow: hidden;
}
.news-image-card .news-image-overlay .btn-replace input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

/* Предпросмотр изображений при выборе файла */
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.image-preview-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e5e2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
