/* ============================================================
   Ложка за ложкой — стили
   Домен: lozhkazalozhkoi.ru
   Версия: 3.0 (mobile-first)
   Дата: 2026-09-30
   ============================================================ */

/* ============================================================
   1. ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  /* Цвета */
  --bg-color:      #FDF9F1;
  --text-dark:     #4A2C11;
  --text-light:    #7A5C43;
  --accent:        #D35400;
  --accent-red:    #E74C3C;
  --white:         #FFFFFF;
  --card-bg:       #FFF9EF;
  --border-soft:   #f0e6d6;

  /* Тени */
  --shadow:        0 10px 30px rgba(74, 44, 17, 0.06);
  --shadow-hover:  0 15px 35px rgba(74, 44, 17, 0.10);
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-img:    0 8px 20px rgba(0, 0, 0, 0.08);

  /* Радиусы */
  --radius-sm:     14px;
  --radius-md:     20px;
  --radius-lg:     25px;
  --radius-xl:     30px;

  /* Контейнер */
  --container:     1200px;
  --header-height: 130px;   /* для компенсации sticky-шапки */
}

/* ============================================================
   2. RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Nunito',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

.hero-text h1,
.grid-card h3,
.promo-title,
.social-section h2,
h1, h2 {
  font-family: Georgia, 'Times New Roman', 'PT Serif', serif;
}

/* ============================================================
   3. ДОСТУПНОСТЬ
   ============================================================ */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: -3px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#about,
#reviews,
#faq,
#social {
  scroll-margin-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { animation: none !important; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   4. ШАПКА
   ============================================================ */
.site-header {
  background-color: var(--bg-color);
  padding: 12px 0 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo-icon { line-height: 1; font-size: 22px; }
.logo-accent { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 8px;
  margin-top: 4px;
}
.site-nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
  position: relative;
}
.site-nav a:hover { color: var(--accent); }

/* ============================================================
   5. КИНОЛЕНТА
   ============================================================ */
.carousel-section {
  width: 100%;
  overflow: hidden;
  padding: 14px 0;
  background-color: var(--bg-color);
  position: relative;
}

.carousel-section::before,
.carousel-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 2;
  pointer-events: none;
}
.carousel-section::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}
.carousel-section::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.carousel-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: scroll 40s linear infinite;
  will-change: transform;
}
.carousel-track:hover { animation-play-state: paused; }

.carousel-track img {
  height: auto;
  width: 72vw;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-img);
  flex-shrink: 0;
  background: #f0e6d6;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 5px)); }
}

/* ============================================================
   6. ГЛАВНЫЙ КОНТЕЙНЕР
   ============================================================ */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 14px;
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero-text {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 800px;
}
.hero-text h1 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.hero-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 18px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px auto;
}
.category-tag {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.info-badge {
  display: inline-block;
  background-color: #fcece8;
  color: var(--accent-red);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  border: 1px dashed var(--accent-red);
  max-width: 100%;
  line-height: 1.4;
}

/* ============================================================
   8. DASHBOARD GRID (BENTO) — MOBILE-FIRST
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;   /* ✅ МОБИЛЬНЫЙ ДЕФОЛТ: одна колонка */
  gap: 14px;
  margin-bottom: 40px;
}

.grid-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.grid-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.grid-card p {
  color: var(--text-light);
  font-size: 14.5px;
}

/* Позиции в сетке — мобильный дефолт: все карточки на всю ширину */
.card-promo,
.card-how-to,
.card-delivery,
.card-reviews,
.card-faq {
  grid-column: 1 / -1;
}

/* ============================================================
   9. СПЕЦИФИЧНЫЕ КАРТОЧКИ
   ============================================================ */
.promo-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1.1;
  margin-bottom: 10px;
}

.how-to-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.flow-step {
  text-align: center;
  width: 100%;
}
.flow-icon {
  font-size: 28px;
  margin-bottom: 6px;
  line-height: 1;
}
.flow-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.flow-arrow {
  color: var(--accent);
  font-size: 22px;
  font-weight: bold;
  transform: rotate(90deg);
}

.delivery-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.review-item {
  background-color: var(--card-bg);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-style: italic;
  font-size: 13.5px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
  margin: 0;
}
.review-author {
  font-style: normal;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 5px;
  display: block;
}

/* FAQ */
.faq-wrap {
  margin-top: 15px;
  width: 100%;
}
.faq-item {
  background-color: var(--card-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--border-soft);
  text-align: left;
  overflow: hidden;
}
.faq-item summary {
  padding: 13px 45px 13px 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--text-dark);
  line-height: 1.4;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.3s;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-content {
  padding: 0 16px 13px;
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.55;
}

/* ============================================================
   10. СОЦСЕТИ / CTA
   ============================================================ */
.social-section {
  background: linear-gradient(135deg, #4A2C11, #2A1808);
  padding: 28px 14px;
  border-radius: 18px;
  color: #fff;
  text-align: center;
  box-shadow: 0 15px 40px rgba(74, 44, 17, 0.3);
  margin-top: 30px;
}
.social-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.social-section p {
  font-size: 14px;
  color: #d1c2b5;
  margin: 0 auto 26px;
  max-width: 700px;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
}
.btn-social::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.5s ease;
}
.btn-social:hover::before { left: 100%; }
.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.btn-max { background: linear-gradient(135deg, #8E24AA, #6A1B9A); }
.btn-vk  { background: linear-gradient(135deg, #1E88E5, #0077FF); }
.btn-social svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================================
   11. ПОДВАЛ
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 28px 14px;
  color: var(--text-light);
  font-size: 13px;
  border-top: 1px solid var(--border-soft);
  margin-top: 30px;
}
.site-footer p + p { margin-top: 6px; }

/* ============================================================
   12. ПЛАНШЕТЫ (601px – 992px): bento в 2 колонки
   ============================================================ */
@media (min-width: 601px) {
  :root { --header-height: 130px; }

  .site-header { padding: 16px 0 10px; }
  .header-content { padding: 0 20px; gap: 12px; }
  .logo { font-size: 24px; }
  .logo-icon { font-size: 26px; }

  .site-nav {
    width: auto;
    gap: 20px;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  .site-nav a { font-size: 15px; }

  main { padding: 32px 20px; }

  .hero-text { margin-bottom: 36px; }
  .hero-text h1 { font-size: 30px; }
  .hero-text p  { font-size: 16px; }

  .category-tag { font-size: 14px; padding: 7px 16px; }
  .info-badge   { font-size: 15px; padding: 11px 20px; }

  .carousel-section { padding: 18px 0; }
  .carousel-section::before,
  .carousel-section::after { width: 40px; }
  .carousel-track { gap: 14px; }
  .carousel-track img {
    width: 320px;
    height: 224px;
    aspect-ratio: auto;
    border-radius: var(--radius-md);
  }
  @keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 7px)); }
  }

  /* ✅ BENTO: 2 колонки на планшете */
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 50px;
  }
  .card-promo    { grid-column: span 1; }
  .card-delivery { grid-column: span 1; }
  .card-how-to,
  .card-reviews,
  .card-faq      { grid-column: span 2; }

  .grid-card { padding: 24px; border-radius: var(--radius-lg); }
  .grid-card h3 { font-size: 20px; }
  .promo-title { font-size: 28px; }

  /* how-to-flow в строку */
  .how-to-flow {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .flow-step { width: auto; flex: 1; min-width: 110px; }
  .flow-arrow { transform: rotate(0); }

  .review-item { font-size: 14px; padding: 15px; }
  .faq-item summary { font-size: 16px; padding: 15px 50px 15px 20px; }
  .faq-content { padding: 0 20px 15px; font-size: 14px; }

  .social-section {
    padding: 40px 24px;
    border-radius: 22px;
    margin-top: 40px;
  }
  .social-section h2 { font-size: 28px; }
  .social-section p  { font-size: 16px; margin-bottom: 30px; }

  .social-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }
  .btn-social {
    width: auto;
    flex: 1 1 240px;
    max-width: 320px;
    padding: 18px 28px;
    font-size: 17px;
  }
  .btn-social svg { width: 26px; height: 26px; }
}

/* ============================================================
   13. ДЕСКТОП (≥ 993px): полная bento-сетка 12 колонок
   ============================================================ */
@media (min-width: 993px) {
  :root { --header-height: 100px; }

  .site-header { padding: 20px 0 10px; }
  .header-content { padding: 0 20px; gap: 15px; }
  .logo { font-size: 28px; }
  .logo-icon { font-size: 30px; }

  .site-nav { gap: 25px; }
  .site-nav a { font-size: 16px; }
  .site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
  }
  .site-nav a:hover::after { width: 100%; }

  main { padding: 40px 20px; }

  .hero-text { margin-bottom: 40px; }
  .hero-text h1 { font-size: 44px; }
  .hero-text p  { font-size: 18px; }

  .carousel-section { padding: 20px 0; }
  .carousel-section::before,
  .carousel-section::after { width: 60px; }
  .carousel-track { gap: 15px; }
  .carousel-track img {
    width: 400px;
    height: 280px;
  }

  /* ✅ BENTO: полная сетка 12 колонок */
  .dashboard-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 60px;
  }
  .card-promo    { grid-column: span 4; background: linear-gradient(135deg, #FFF3E0, #FFE0B2); }
  .card-how-to   { grid-column: span 8; }
  .card-delivery { grid-column: span 5; }
  .card-reviews  { grid-column: span 7; }
  .card-faq      { grid-column: span 12; }

  .grid-card { padding: 30px; border-radius: var(--radius-lg); }
  .grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
  }
  .grid-card h3 { font-size: 22px; margin-bottom: 15px; }
  .grid-card p  { font-size: 15px; }
  .promo-title { font-size: 32px; }

  .social-section {
    padding: 60px 30px;
    border-radius: var(--radius-xl);
    margin-top: 40px;
  }
  .social-section h2 { font-size: 36px; margin-bottom: 15px; }
  .social-section p  { font-size: 18px; margin-bottom: 40px; }

  .social-buttons { gap: 25px; }
  .btn-social {
    flex: 1 1 280px;
    max-width: 350px;
    padding: 22px 45px;
    font-size: 20px;
    gap: 15px;
  }
  .btn-social svg { width: 30px; height: 30px; }
}

/* ============================================================
   14. ОЧЕНЬ УЗКИЕ ЭКРАНЫ (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 22px; }
  .hero-text p  { font-size: 15px; }
  .info-badge   { font-size: 13px; padding: 9px 14px; }

  .carousel-track img { width: 80vw; border-radius: 12px; }
  .carousel-section::before,
  .carousel-section::after { width: 16px; }

  .flow-icon { font-size: 26px; }
  .flow-text { font-size: 13px; }
  .review-item { font-size: 13px; padding: 12px; }

  .social-section { padding: 24px 12px; border-radius: 16px; }
  .social-section h2 { font-size: 20px; }
  .social-section p  { font-size: 13.5px; }
  .btn-social { font-size: 14px; padding: 12px 16px; }
}

/* ============================================================
   15. СКЛАДНЫЕ УСТРОЙСТВА / ЧАСЫ (≤ 320px)
   ============================================================ */
@media (max-width: 320px) {
  .logo { font-size: 17px; }
  .logo-icon { font-size: 18px; }
  .hero-text h1 { font-size: 20px; }
  .category-tag { font-size: 12px; padding: 5px 11px; }
  .btn-social { font-size: 13px; padding: 11px 14px; }
  .grid-card { padding: 16px; }
  .grid-card h3 { font-size: 16px; }
}

/* ============================================================
   16. ПЕЧАТЬ
   ============================================================ */
@media print {
  .site-header,
  .carousel-section,
  .social-section,
  .site-footer,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .dashboard-grid {
    display: block;
  }
  .grid-card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
    margin-bottom: 10px;
  }
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 10pt;
    color: #555;
  }
}