/* Вкусняшки — домашняя продукция к столу. Надежда Тирон, Оренбург. */

:root {
  --ink: #2a1a12;
  --ink-soft: #5b4436;
  --cream: #fffaf3;
  --cream-2: #f7ece0;
  --paper: #ffffff;
  --brown: #7a4a2b;
  --brown-dark: #3d2417;
  --accent: #b8451f;
  --accent-dark: #963413;
  --honey: #e0a13a;
  --line: #e8d9c8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(58, 32, 16, 0.10);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: 820px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--brown-dark); border-color: var(--line); }
.btn--ghost:hover { background: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 14px 26px; font-size: 17px; }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(58,32,16,.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--honey));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font-size: 19px; letter-spacing: .2px; white-space: nowrap; }
.brand__text small { color: var(--ink-soft); font-size: 12.5px; }

.nav { display: flex; gap: 20px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

.topbar__actions { display: flex; align-items: center; gap: 14px; }
.phone {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.phone:hover { color: var(--accent-dark); }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(224,161,58,.22), transparent 65%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184,69,31,.10);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 16px; }
.lead { font-size: 18.5px; color: var(--ink-soft); margin: 0 0 26px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.hero__points li { position: relative; padding-left: 20px; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--honey);
}

/* ---------- Фото-слоты ---------- */
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, #f0e2d2, #e3cdb6);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--hero { aspect-ratio: 4 / 3.2; }
.shot--portrait { aspect-ratio: 4 / 4.4; max-width: 460px; }

/* Заглушка, если фото ещё не добавлено */
.shot.is-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(140deg, #f4e7d8, #e6d0b6);
  box-shadow: none;
  border: 1.5px dashed #cfae8b;
}
.shot.is-empty::after {
  content: attr(data-label);
  color: #9c7a58;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  padding: 0 18px;
}
.shot.is-empty img { display: none; }

/* ---------- Секции ---------- */
.section { padding: 70px 0; }
.section--tint { background: var(--paper); }
.section--dark {
  background: linear-gradient(160deg, var(--brown-dark), #20130c);
  color: #f6ece2;
}
.section--dark a { color: var(--honey); }
.section__title { font-size: clamp(25px, 3vw, 34px); text-align: center; margin-bottom: 14px; }
.section__title--left { text-align: left; }
.section__title--light { color: #fff; }
.section__note {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 16.5px;
}
.section--dark .section__note, .section--dark .lead { color: rgba(246,236,226,.78); }

.cat {
  font-size: 21px;
  margin: 44px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.cat:first-of-type { margin-top: 0; }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--center { align-items: center; }

/* ---------- Преимущества ---------- */
.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.feature__icon { font-size: 30px; margin-bottom: 10px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Карточки товаров ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .shot { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__body h4 { font-size: 18.5px; margin-bottom: 8px; }
.card__body p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
}
.card__link:hover { text-decoration: underline; }
.card--wide { grid-column: span 2; }
.card--wide .shot { aspect-ratio: 16 / 7; }

.card.is-empty .shot { cursor: default; }

/* Карточки без фотографии — иконочная плашка вместо кадра */
.card--text .card__icon {
  display: grid;
  place-items: center;
  height: 118px;
  font-size: 42px;
  line-height: 1;
  background: linear-gradient(140deg, #f7eee3, #ecd9c2);
  border-bottom: 1px solid var(--line);
}
.card--wide.card--text .card__icon { font-size: 52px; }

/* Портрет владелицы в блоке «О Надежде» */
.person { margin: 0; }
.shot--person { aspect-ratio: 3 / 4; max-width: 420px; box-shadow: var(--shadow); }
.person figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 420px;
}

/* Полоса-услуга: копчение вашей продукции */
.service-band {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 4px solid var(--honey);
  background: linear-gradient(120deg, #f9f0e4, #f1dfc9);
}
.service-band__icon { font-size: 40px; line-height: 1; flex: none; }
.service-band__text { flex: 1 1 auto; }
.service-band h4 { margin: 0 0 6px; font-size: 19.5px; }
.service-band p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.service-band .btn { flex: none; }

/* ---------- Шаги ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 0;
  margin: 0 0 40px;
  counter-reset: step;
}
.step {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(246,236,226,.14);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step__num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--honey);
  color: var(--brown-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 18.5px; color: #fff; }
.step p { margin: 0; color: rgba(246,236,226,.78); font-size: 15.5px; }

.notice {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(224,161,58,.35);
  border-left: 4px solid var(--honey);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.notice h3 { color: #fff; font-size: 20px; }
.notice p { color: rgba(246,236,226,.82); margin: 0 0 14px; }
.notice__list { margin: 0; padding-left: 20px; color: rgba(246,236,226,.82); }

/* ---------- Панели ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.panel h3 { font-size: 19px; margin-top: 18px; }
.panel h3:first-child { margin-top: 0; }
.panel p { color: var(--ink-soft); margin: 0 0 6px; }
.panel ul { margin: 0 0 6px; padding-left: 20px; color: var(--ink-soft); }

/* ---------- Отзывы ---------- */
.quote {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.quote p { margin: 0 0 14px; font-size: 16.5px; }
.quote cite { margin-top: auto; font-style: normal; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  flex: none;
}
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Контакты ---------- */
.contacts { list-style: none; padding: 0; margin: 0; }
.contacts li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246,236,226,.14);
}
.contacts span { color: rgba(246,236,226,.6); font-size: 15px; }
.contacts a { font-weight: 600; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.contacts em { font-style: normal; }

.cta-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(246,236,226,.16);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.cta-card h3 { color: #fff; font-size: 21px; }
.cta-card p { color: rgba(246,236,226,.8); }

/* ---------- Футер ---------- */
.footer {
  background: #1a0f09;
  color: rgba(246,236,226,.62);
  font-size: 14.5px;
  padding: 26px 0;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; }
.footer__note { max-width: 46em; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 11, 6, .88);
  display: grid;
  place-items: center;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; }
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  /* Шапка: убираем телефон и сжимаем блок действий, чтобы не было горизонтального скролла */
  .topbar__actions .phone { display: none; }
  .topbar__inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand__mark { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .brand__text strong { font-size: 17px; }
  .brand__text small { display: none; }
  .topbar__actions { gap: 8px; flex: none; }
  .topbar__actions .btn { padding: 9px 15px; font-size: 14.5px; }
  .burger { flex: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--wide .shot { aspect-ratio: 16 / 10; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 46px; }
  .contacts li { grid-template-columns: 1fr; gap: 4px; }
  .shot--portrait, .shot--person { max-width: none; }
  .service-band { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 20px; }
  .panel, .notice, .cta-card { padding: 22px 20px; }
}

/* Очень узкие экраны: оставляем в шапке компактную кнопку MAX */
@media (max-width: 420px) {
  .topbar__actions .btn__long { display: none; }
  .topbar__actions .btn { padding: 9px 13px; letter-spacing: .3px; }
  .brand__text strong { font-size: 16px; }
  .hero h1 { font-size: 27px; }
}
