:root {
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #2b2a24;
  --muted: #6c6658;
  --line: #e3dccd;
  --river: #2f5d62;
  --river-dark: #234649;
  --float: #c8682a;
  --wa: #1f9d55;
  --radius: 14px;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  padding-bottom: 72px; /* место под нижнюю панель на телефоне */
}

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

a { color: var(--river); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4.2vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Шапка */
.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--float); }
.top-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { border-top: 1px solid var(--line); }
.nav .wrap { justify-content: flex-start; display: flex; gap: 22px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--river); }

/* Кнопки */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; line-height: 1.2;
}
.btn-main { background: var(--river); color: #fff; }
.btn-main:hover { background: var(--river-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-line { border-color: var(--river); color: var(--river); background: transparent; }
.btn-note { color: var(--muted); font-size: 15px; align-self: center; }

/* Секции */
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }

/* Первый экран */
.hero { padding-top: 32px; }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.hero img { border-radius: var(--radius); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }
@media (min-width: 820px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
}

/* Карточки товаров */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
}
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.price { font-weight: 700; color: var(--float); margin: 0; }
.card:hover { border-color: var(--river); }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 14px; }
  .card-body h3 { font-size: 18px; }
  .card-body p { font-size: 14px; line-height: 1.45; }
}

/* Почему мои сети */
.why { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.why div { background: var(--card); border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--float); }
.why p { margin: 0; color: var(--muted); }

/* Фото в ряд */
.photos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.photos img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* История */
.story .wrap { display: grid; gap: 28px; align-items: start; }
.story img { border-radius: var(--radius); }
@media (min-width: 820px) {
  .story .wrap { grid-template-columns: 1.3fr .7fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* Как купить */
.buy { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 24px; }
.buy > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.buy p:last-child { margin-bottom: 0; }
.shop { margin-top: 28px; max-width: 720px; }
.shop img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 78%; }
.hours { margin: 10px 0; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 4px 0; }

/* Правила */
.rules { background: #eae3d4; border-radius: var(--radius); padding: 24px; }
.rules p { max-width: 720px; }
.rules ul { padding-left: 20px; }
.rules .last { font-family: var(--serif); font-size: 20px; margin: 0; }

/* Каталог */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.product .wrap { display: grid; gap: 28px; }
@media (min-width: 820px) {
  .product .wrap { grid-template-columns: 1fr 1fr; align-items: start; }
}
.gallery { display: grid; gap: 12px; }
.gallery img { border-radius: var(--radius); width: 100%; }
.gallery .small { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery .small img { aspect-ratio: 3 / 4; object-fit: cover; }

table { border-collapse: collapse; width: 100%; margin: 12px 0 16px; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--muted); font-weight: 600; background: #f1ebdf; }
tr:last-child td { border-bottom: 0; }

.ask { background: var(--card); border: 2px solid var(--river); border-radius: var(--radius); padding: 20px; margin-top: 24px; }
.ask h3 { margin-bottom: .3em; }

.other { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Подвал */
footer { background: var(--river-dark); color: #e9efe9; padding: 36px 0 28px; margin-top: 24px; }
footer a { color: #fff; }
footer .wrap { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer p { margin: 0 0 .4em; }
footer .name { font-family: var(--serif); font-size: 20px; }
footer small { color: #b9c9c6; }

/* Нижняя панель на телефоне */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, .97); border-top: 1px solid var(--line);
}
.bar .btn { padding: 11px 10px; font-size: 15px; }
@media (min-width: 820px) {
  .bar { display: none; }
  body { padding-bottom: 0; }
}

/* Вопросы и ответы, текстовые страницы */
.faq h3 { margin: 22px 0 6px; }
.faq p { max-width: 760px; color: var(--muted); }
.text-page .wrap { max-width: 780px; }
.text-page h2 { margin-top: 28px; font-size: 24px; }
