/* Skill: ui-ux-pro-max | Style: Vibrant & Block-based | Typography: Nunito */

/* ── Дизайн-система ── */
:root {
  /* Цвета (на основе рекомендации "Vibrant & Block-based" + оранжевая морковная тема) */
  --primary:        #FF6B35;
  --primary-deep:   #E85520;
  --primary-soft:   #FFB38A;
  --primary-pale:   #FFF3ED;
  --secondary:      #FFB347;
  --accent-green:   #3DB56C;
  --accent-blue:    #4A90D9;
  --accent-purple:  #9B59B6;

  --bg:             #FFF8F5;
  --bg-sky:         #EBF6FF;
  --surface:        #FFFFFF;
  --surface-alt:    #FFF3ED;

  --text:           #1A1A2E;
  --text-sub:       #5A5A7A;
  --text-muted:     #9090AA;

  --border:         #FFE0CC;
  --border-light:   #FFF0E6;

  /* Тени */
  --shadow-sm:  0 2px 8px rgba(255,107,53,.10);
  --shadow-md:  0 6px 24px rgba(255,107,53,.16);
  --shadow-lg:  0 12px 40px rgba(255,107,53,.22);
  --shadow-xl:  0 20px 60px rgba(255,107,53,.28);

  /* Радиусы */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Типографика */
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Анимации */
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --dur-fast: 180ms;
  --dur-mid:  280ms;
  --dur-slow: 400ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Анимированный фон: облака + паттерн ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #FFE8D6 0%, #FFF0E8 30%, #EBF6FF 70%, #F0F9E8 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 10% 20%, rgba(255,107,53,.12) 0%, transparent 60%),
    radial-gradient(circle 2px at 80% 15%, rgba(255,179,71,.10) 0%, transparent 60%),
    radial-gradient(circle 2px at 50% 80%, rgba(61,181,108,.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

@keyframes bg-drift {
  0%   { opacity: .85; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.02); }
}

/* ── Декоративные морковки ── */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  font-size: 90px;
  opacity: .06;
  user-select: none;
  will-change: transform;
}
.deco-1  { top: 6%;    right: 2%;   font-size: 90px; transform: rotate(-25deg) translateZ(0); animation: float1 8s  ease-in-out infinite 0s; }
.deco-2  { bottom: 8%; left: 1%;   font-size: 70px; transform: rotate(30deg)  translateZ(0); animation: float2 10s ease-in-out infinite 1s; }
.deco-3  { top: 42%;   right: -1%; font-size: 60px; transform: rotate(15deg)  translateZ(0); animation: float1 12s ease-in-out infinite 2s; }
.deco-4  { top: 22%;   left: 3%;   font-size: 55px; transform: rotate(-40deg) translateZ(0); animation: float2 9s  ease-in-out infinite 0.5s; }
.deco-5  { top: 60%;   left: 5%;   font-size: 75px; transform: rotate(20deg)  translateZ(0); animation: float1 11s ease-in-out infinite 3s; }
.deco-6  { top: 15%;   left: 35%;  font-size: 50px; transform: rotate(-15deg) translateZ(0); animation: float2 7s  ease-in-out infinite 1.5s; }
.deco-7  { top: 78%;   right: 4%;  font-size: 65px; transform: rotate(35deg)  translateZ(0); animation: float1 9s  ease-in-out infinite 4s; }
.deco-8  { top: 50%;   left: 45%;  font-size: 45px; transform: rotate(-30deg) translateZ(0); animation: float2 13s ease-in-out infinite 2.5s; }
.deco-9  { bottom: 25%; right: 8%; font-size: 80px; transform: rotate(-10deg) translateZ(0); animation: float1 10s ease-in-out infinite 1s; }
.deco-10 { top: 35%;   left: 20%;  font-size: 55px; transform: rotate(45deg)  translateZ(0); animation: float2 8s  ease-in-out infinite 3.5s; }
.deco-11 { top: 8%;    left: 60%;  font-size: 60px; transform: rotate(-20deg) translateZ(0); animation: float1 11s ease-in-out infinite 0.8s; }
.deco-12 { bottom: 5%; left: 55%;  font-size: 50px; transform: rotate(25deg)  translateZ(0); animation: float2 9s  ease-in-out infinite 2s; }

@keyframes float1 { 0%,100%{ transform: rotate(-25deg) translateY(0) translateZ(0); } 50%{ transform: rotate(-20deg) translateY(-12px) translateZ(0); } }
@keyframes float2 { 0%,100%{ transform: rotate(30deg) translateY(0) translateZ(0); }  50%{ transform: rotate(35deg) translateY(-8px) translateZ(0); } }

@media (prefers-reduced-motion: reduce) {
  .deco { animation: none !important; }
  .card, .card-media img, .card-media video { transition: none !important; }
  .hero-pill, .count-badge, .dot { animation: none !important; }
}

/* ══════════════════════════════════════════
   ШАПКА
══════════════════════════════════════════ */
.header {
  background: rgba(255,255,255,.97);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(255,107,53,.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Логотип */
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
  transform: rotate(-3deg);
  transition: transform var(--dur-mid) var(--ease-bounce);
  flex-shrink: 0;
}
.logo:hover .logo-img { transform: rotate(3deg) scale(1.08); }
.logo-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: .3px;
  line-height: 1.1;
}
.logo-text span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* CTA кнопка в шапке */
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--r-full);
  border: none;
  outline: none;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,53,.35);
  transition: transform var(--dur-mid) var(--ease-bounce), box-shadow var(--dur-mid);
}
.header-contact:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255,107,53,.45);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 24px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-pale);
  border: 2px solid var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: 20px;
  animation: pulse-border 3s ease-in-out infinite;
}
@keyframes pulse-border {
  0%,100%{ border-color: var(--primary-soft); }
  50%    { border-color: var(--primary); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -.5px;
}
.hero-title .accent {
  color: var(--primary);
  display: inline-block;
  position: relative;
}
.hero-title .accent::after {
  display: none;
}

.hero-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-sub);
  font-weight: 600;
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.5;
}

.hero-emojis {
  margin-top: 20px;
  font-size: 36px;
  letter-spacing: 6px;
  animation: hop 2s ease-in-out infinite;
}
@keyframes hop {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}

.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 48px;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}
.count-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{ opacity:1; } 50%{ opacity:.3; } }

/* ══════════════════════════════════════════
   КАТАЛОГ — сетка
══════════════════════════════════════════ */
.catalog {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.section-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 580px)  { .grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   КАРТОЧКА КРОЛИКА
══════════════════════════════════════════ */
.card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  border: 2px solid #F0C8A8;
  box-shadow: 0 4px 16px rgba(180, 80, 20, 0.13), 0 1px 4px rgba(180,80,20,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  contain: layout style;
  transition:
    transform  var(--dur-mid) var(--ease-bounce),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-fast);
  position: relative;
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 12px 36px rgba(180, 80, 20, 0.22), 0 2px 8px rgba(180,80,20,0.10);
  border-color: var(--primary-soft);
}
.card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Медиа */
.card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD4B2 0%, #FFB380 100%);
  flex-shrink: 0;
}
.card-media img,
.card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card:hover .card-media img,
.card:hover .card-media video {
  transform: scale(1.06);
}
.card-media-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}

/* Обёртка видео со спиннером загрузки */
.media-wrap {
  position: relative;
  width: 100%; height: 100%;
}
.media-wrap video { display: block; }
.media-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFD4B2 0%, #FFB380 100%);
  z-index: 1;
}
.media-spinner::after {
  content: '';
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Бейджи на фото */
.card-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}
.badge-male   { background: rgba(74,144,217,.95); color: #fff; }
.badge-female { background: rgba(233,86,140,.95); color: #fff; }
.badge-neutral{ background: rgba(255,255,255,.95); color: var(--text-sub); }

/* Маленький "Новинка" бейдж */
.card-new {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--accent-green), #27AE60);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--r-full);
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(61,181,108,.4);
}

/* Тело карточки */
.card-body {
  padding: 18px 18px 10px;
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.55;
}
.card-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 2px;
}
.tag {
  background: var(--primary-pale);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
}

/* Футер карточки */
.card-footer {
  padding: 12px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 2px dashed var(--border-light);
}
.card-price {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.card-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
  margin-left: 2px;
}
.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--r-full);
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast);
  box-shadow: 0 3px 12px rgba(255,107,53,.3);
  flex-shrink: 0;
}
.btn-card:hover {
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,53,.45);
}

/* ══════════════════════════════════════════
   СОСТОЯНИЯ: загрузка / пусто
══════════════════════════════════════════ */
.loader {
  display: flex; justify-content: center; align-items: center;
  padding: 80px; grid-column: 1/-1;
  flex-direction: column; gap: 20px;
}
.spinner {
  width: 52px; height: 52px;
  border: 5px solid var(--primary-pale);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 15px; font-weight: 700; color: var(--text-muted); }

.empty {
  text-align: center; padding: 80px 24px;
  grid-column: 1/-1;
}
.empty-icon { font-size: 72px; }
.empty-title { margin-top: 16px; font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--text-sub); }
.empty-sub   { margin-top: 8px; font-size: 15px; color: var(--text-muted); font-weight: 600; }

/* ══════════════════════════════════════════
   МОДАЛЬНОЕ ОКНО
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,46,.6);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-wrapper { position: relative; width: 100%; max-width: 580px; }

.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(26,26,46,.35);
  animation: modal-pop var(--dur-mid) var(--ease-bounce);
  max-height: 90vh;
  display: flex; flex-direction: column;
}
@keyframes modal-pop {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.modal-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  color: var(--text-muted);
  transition: transform var(--dur-fast) var(--ease-bounce), color var(--dur-fast);
  z-index: 10;
}
.modal-close:hover { transform: scale(1.15) rotate(10deg); color: var(--primary); }

.modal-media {
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  max-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-media img  { width: 100%; height: auto; max-height: 55vh; object-fit: contain; }
.modal-media video { width: 100%; height: auto; max-height: 55vh; object-fit: contain; }

.modal-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--text); line-height: 1.25;
}
.modal-desc {
  margin-top: 10px;
  font-size: 14px; color: var(--text-sub);
  font-weight: 600; line-height: 1.65;
}
.modal-tags {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.modal-price {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 36px; font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.modal-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 800;
  border-radius: var(--r-full); border: none; cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255,107,53,.4);
  transition: transform var(--dur-mid) var(--ease-bounce), box-shadow var(--dur-mid);
}
.btn-primary-lg:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(255,107,53,.5);
}

/* ══════════════════════════════════════════
   РАЗДЕЛЫ САЙТА (корм, аксессуары и т.д.)
══════════════════════════════════════════ */
.site-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.section-inner {
  background: #FFFFFF;
  border: 2px solid #F0C8A8;
  border-radius: var(--r-xl);
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(180,80,20,.10);
}
.section-body {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
@media (max-width: 640px) {
  .section-body { flex-direction: column; gap: 20px; }
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1.5px solid var(--primary-soft);
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.25;
}
.section-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  flex: 0 0 360px;
  max-width: 360px;
}
@media (max-width: 640px) {
  .section-media { flex: none; max-width: 100%; }
  .section-link-avito { display: flex; width: 100%; justify-content: center; box-sizing: border-box; }
}
.section-media-el {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}
.section-content {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  transition: opacity var(--dur-fast);
}
.section-link:hover { opacity: .75; }
.section-link-avito {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: none;
  margin: 8px 0;
  box-shadow: 0 4px 14px rgba(255,107,53,.35);
  transition: transform var(--dur-mid) var(--ease-bounce), box-shadow var(--dur-mid);
}
.section-link-avito::before { content: '🛒 '; }
.section-link-avito:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,53,.50);
  opacity: 1;
}

/* ══════════════════════════════════════════
   КОНТАКТ-МОДАЛ
══════════════════════════════════════════ */
.contact-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,26,46,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.contact-overlay.active { display: flex; }
.contact-box {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 32px 36px;
  max-width: 360px;
  width: calc(100% - 32px);
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modal-pop .25s var(--ease-bounce);
}
.contact-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-alt); border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}
.contact-close:hover { background: var(--border); }
.contact-title {
  font-size: 22px; font-weight: 900; color: var(--text);
  margin-bottom: 6px;
}
.contact-sub {
  font-size: 14px; color: var(--text-muted); margin-bottom: 28px;
}
.contact-btns { display: flex; flex-direction: column; gap: 12px; }
.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border-radius: var(--r-full);
  font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-fast);
}
.contact-btn:hover { transform: translateY(-2px); opacity: 1; }
.contact-btn-max {
  background: linear-gradient(135deg, #8B3DFF, #6020CC);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139,61,255,.40);
}
.contact-btn-max:hover { box-shadow: 0 8px 24px rgba(139,61,255,.55); }
.contact-btn-tg {
  background: linear-gradient(135deg, #2AABEE, #1A8CC8);
  color: #fff;
  box-shadow: 0 4px 16px rgba(42,171,238,.35);
}
.contact-btn-tg:hover { box-shadow: 0 8px 24px rgba(42,171,238,.50); }

/* Ссылки в футере — единый стиль */
.footer-link {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color var(--dur-fast);
}
.footer-link:hover { color: var(--primary); }
.footer-link-btn {
  background: none; border: none; outline: none;
  cursor: pointer; padding: 0;
}

/* ══════════════════════════════════════════
   МОДАЛ УСЛОВИЙ БРОНИРОВАНИЯ
══════════════════════════════════════════ */
.terms-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,26,46,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.terms-overlay.active { display: flex; }
.terms-box {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 32px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modal-pop .25s var(--ease-bounce);
  max-height: 90vh;
  overflow-y: auto;
}
.terms-title {
  font-size: 20px; font-weight: 900; color: var(--text);
  margin-bottom: 20px; padding-right: 32px;
}
.terms-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.terms-list li {
  font-size: 14px; color: var(--text-sub);
  font-weight: 600; line-height: 1.6;
  padding-left: 20px;
  position: relative;
}
.terms-list li::before {
  content: '•';
  position: absolute; left: 0;
  color: var(--primary); font-size: 18px; line-height: 1.3;
}
.terms-list strong { color: var(--text); }
.terms-divider {
  height: 1px;
  background: var(--border-light);
  margin: 20px 0;
}

/* ══════════════════════════════════════════
   БАННЕР С ПРЕИМУЩЕСТВАМИ
══════════════════════════════════════════ */
.features {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 860px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #FFFFFF;
  border: 2px solid #F0C8A8;
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  transition: transform var(--dur-mid) var(--ease-bounce), border-color var(--dur-fast), box-shadow var(--dur-mid);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
}
.feature-icon { font-size: 36px; margin-bottom: 10px; }
.feature-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.feature-desc  { font-size: 12px; color: var(--text-muted); font-weight: 600; line-height: 1.5; }

/* ══════════════════════════════════════════
   ФУТЕР
══════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 2px solid var(--border-light);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.footer-links {
  display: flex; justify-content: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 16px;
}
@media (max-width: 580px) {
  .footer-links { gap: 10px 20px; }
}
.footer-copy { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.footer-emojis { font-size: 22px; letter-spacing: 4px; margin-top: 10px; }

/* ══════════════════════════════════════════
   УТИЛИТЫ
══════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Скролл карты к началу */
.scroll-top-btn {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,107,53,.4);
  display: none; align-items: center; justify-content: center;
  transition: transform var(--dur-mid) var(--ease-bounce);
  z-index: 50;
}
.scroll-top-btn:hover { transform: scale(1.12) translateY(-2px); }
.scroll-top-btn.visible { display: flex; }

/* ══════════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ ШАПКИ
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
    height: 64px;
    gap: 10px;
  }
  .logo-img {
    width: 42px; height: 42px;
  }
  .logo-text strong { font-size: 18px; }
  .logo-text span   { display: none; }   /* прячем подпись на маленьком экране */
  .header-contact {
    padding: 8px 14px;
    font-size: 12px;
    gap: 5px;
    white-space: nowrap;
  }
  .header-contact svg { width: 14px; height: 14px; }
}

@media (max-width: 360px) {
  .logo-text strong { font-size: 16px; }
  .header-contact span { display: none; }  /* только иконка на очень маленьком экране */
  .header-contact svg  { width: 18px; height: 18px; }
  .header-contact { padding: 8px; border-radius: 50%; }
}

/* На мобильном карточки не кликабельны — убираем hover и cursor */
@media (max-width: 767px) {
  .card { cursor: default; }
  .card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(180,80,20,.13), 0 1px 4px rgba(180,80,20,.08);
    border-color: #F0C8A8;
  }
}

/* Уменьшаем padding раздела на мобильных */
@media (max-width: 480px) {
  .section-inner { padding: 20px 16px; }
  .catalog { padding: 0 16px; }
  .hero { padding: 0 16px; }
  .features { padding: 0 16px; }
}

/* ── Блок статей на главной ── */
.articles-preview {
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.articles-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ap-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-bounce);
}
.ap-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ap-card-more {
  background: var(--primary-pale);
  border-color: var(--primary-soft);
}
.ap-icon { font-size: 2rem; line-height: 1; }
.ap-title { font-weight: 800; font-size: 1rem; color: var(--text); }
.ap-desc  { font-size: 0.875rem; color: var(--text-sub); line-height: 1.4; }
@media (max-width: 768px) {
  .articles-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .articles-preview { padding: 0 16px; }
  .articles-preview-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ap-card { padding: 16px 14px; }
}

/* ── FAQ секция ── */
.faq-section {
  background: var(--primary-pale);
  padding: 64px 24px;
}
.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--dur-fast);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-q {
  padding: 18px 22px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--dur-fast);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 18px;
  font-size: .95rem;
  color: var(--text-sub);
  line-height: 1.65;
}
@media (max-width: 600px) {
  .faq-section { padding: 40px 16px; }
  .faq-q { padding: 14px 16px; font-size: .95rem; }
  .faq-a { padding: 0 16px 14px; }
}
