:root {
  --cream: #f5ede1;
  --paper: #fbf7f0;
  --kraft: #d2a877;
  --caramel: #9e5222;   /* белый текст на нём ≈ 5.7:1 */
  --caramel-d: #7f3f17;
  --espresso: #2b1a12;
  --roast: #4a2a1a;
  --muted: #6b5446;
  --line: #e4d6c3;
  --wa: #17713f;        /* белый текст на нём ≈ 6:1 */
  --radius: 18px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
p { margin: 0 0 12px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Заглушки для данных клиента */
.ph {
  background: #ffe14d;
  color: #2a1a00;
  padding: 0 .3em;
  border-radius: 4px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel-d);
  margin-bottom: 12px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--caramel);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--caramel);
  white-space: nowrap;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--caramel-d); border-color: var(--caramel-d); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.btn-light:hover { background: var(--kraft); border-color: var(--kraft); }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #115a31; border-color: #115a31; }
.ico { width: 22px; height: 22px; flex: none; }

/* Шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 237, 225, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; font: 800 20px/1 var(--serif); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--espresso); }

/* Первый экран */
.hero {
  position: relative;
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 85% 30%, rgba(210, 168, 119, .45), transparent 45%),
    var(--cream);
  overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font: 800 clamp(38px, 6vw, 72px)/1.02 var(--serif); letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 .h1-name {
  display: block; margin-top: .25em;
  font-size: .6em; line-height: 1.3; font-style: italic; font-weight: 600; color: var(--caramel-d);
}
.lead { font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-note { font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-art { position: relative; justify-self: center; width: min(400px, 100%); }
.bag { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(43, 26, 18, .18)); }
.steam { position: absolute; top: -4%; left: 50%; display: flex; gap: 14px; transform: translateX(-50%); }
.steam span {
  width: 6px; height: 46px; border-radius: 6px;
  background: linear-gradient(to top, rgba(107, 84, 70, .35), transparent);
  animation: steam 3.2s ease-in-out infinite;
}
.steam span:nth-child(2) { animation-delay: .8s; height: 58px; }
.steam span:nth-child(3) { animation-delay: 1.6s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(14px) scaleY(.6); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px) scaleY(1.1); }
}

/* Шкала обжарки */
.roast { background: var(--espresso); color: var(--cream); padding: 26px 0; }
.roast-note { margin: 0 0 14px; font-size: 14px; }
.roast-scale {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  position: relative;
}
.roast-scale li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
.roast-scale svg {
  grid-row: span 2; width: 30px; height: 42px; color: var(--c);
  background: rgba(255, 255, 255, .12); border-radius: 50%; padding: 4px; box-sizing: content-box;
}
.roast-scale b { font: 800 20px/1.2 var(--serif); }
.roast-scale span { font-size: 14px; color: #cdb9a5; line-height: 1.4; }

/* Секции */
.section { padding: 84px 0; }
.section-dark { background: var(--roast); color: var(--cream); }
.section-dark .eyebrow { color: var(--kraft); }
.draft-note { margin: -4px 0 28px; font-size: 15px; }
.note { margin-top: 24px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); font-size: 15px; }
.card .price { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--espresso); font-weight: 700; margin-bottom: 0; }
.card-ico {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  margin-bottom: 18px;
}
.card-ico svg { width: 22px; height: 32px; }
.card-ico.c1 { background: #f1dfc6; color: #8a4b23; }
.card-ico.c2 { background: #ead3b8; color: var(--roast); }
.card-ico.c2 svg:first-child { color: #9c6a3e; transform: rotate(-15deg); }
.card-ico.c2 svg:last-child { transform: rotate(15deg); }
.card-ico.c3 { background: #e5d5c2; color: var(--espresso); }
.card-ico.c3 svg, .card-ico.c4 svg { width: 30px; height: 30px; }
.card-ico.c4 { background: #efe2d0; color: var(--caramel-d); }

.steps { list-style: none; padding: 0; margin: 10px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.steps p { color: #dccbb9; margin: 0; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--kraft); color: var(--espresso);
  font: 800 20px/1 var(--serif); margin-bottom: 16px;
}

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--espresso); }
.why-item { padding: 26px 22px 10px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.why-item:last-child { border-right: 0; margin-right: 0; }
.why-item p { color: var(--muted); font-size: 15px; }

/* Контакты */
.contacts { background: var(--paper); border-top: 1px solid var(--line); }
.contacts-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.contact-list .ico { color: var(--caramel-d); margin-top: 3px; }
.order-card {
  background: var(--espresso); color: var(--cream);
  border-radius: 24px; padding: 30px 26px;
  display: grid; gap: 12px;
}
.order-card h3 { font: 800 26px/1.1 var(--serif); margin-bottom: 6px; }
.order-hint { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 225, 77, .14); color: #ffe9a0; font-size: 14px; }

.foot { background: var(--espresso); color: #cdb9a5; padding: 24px 0 26px; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-in { align-items: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.sticky-cta { display: none; }

/* Планшет */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contacts-in { grid-template-columns: 1fr; gap: 30px; }
  .order-card { max-width: 460px; }
}

/* Узкая шапка: меню прячем, остаются логотип и «Заказать» */
@media (max-width: 900px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; gap: 12px; }
}

/* Телефон */
@media (max-width: 760px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; gap: 12px; min-height: 60px; }
  .logo { font-size: 16px; }
  .hero { padding: 28px 0 24px; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { order: -1; width: 180px; }
  .steam { display: none; }
  .hero h1 { font-size: 38px; margin-bottom: 14px; }
  .lead { font-size: 16px; }
  .hero-cta { margin: 20px 0 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .roast-scale { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 60px 0; }
  .cards, .steps, .why { grid-template-columns: 1fr; }
  .why-item { border-right: 0; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); }
  .why-item:last-child { border-bottom: 0; }
  .contacts-in { grid-template-columns: 1fr; gap: 30px; }
  .contacts { padding-bottom: 96px; }
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30;
    min-height: 54px; border-radius: 999px;
    background: var(--caramel); color: #fff; font-weight: 800; text-decoration: none;
    box-shadow: 0 10px 26px rgba(43, 26, 18, .3);
    transition: opacity .25s, transform .25s;
  }
  .sticky-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steam span { animation: none; opacity: .5; }
  .btn, .sticky-cta { transition: none; }
}
