/* Помол — демо-лендинг arweiss */

@font-face { font-family: "Playfair"; src: url("fonts/playfair-cyrillic.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; src: url("fonts/playfair-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "Onest"; src: url("fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2212, U+2248; }

:root {
  --cream: #f4efe6;
  --paper: #fbf8f2;
  --ink: #1d1612;
  --muted: #62554b;
  --line: #d9cfc0;
  --accent: #c8492b;
  --accent-dark: #a83a20;
  --green: #2f4a3a;
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section > h2, .wrap > h2 { margin-bottom: clamp(28px, 4vw, 48px); }

.demo-bar { background: var(--ink); color: #e9e1d5; text-align: center; font-size: .875rem; padding: 8px var(--gutter); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #3a2c24; }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--wide { width: 100%; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 230, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.header .btn { min-height: 44px; padding: 0 20px; }
.logo { font-family: var(--serif); font-size: 1.625rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: .9375rem; transition: background-color .2s; }
.nav a:hover { background: #e8dfd0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 48px; align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.eyebrow { display: inline-block; margin-bottom: 20px; padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.lead { margin-top: 24px; max-width: 32em; font-size: 1.125rem; color: #3d322b; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.625rem; font-weight: 500; line-height: 1.2; }
.facts span { color: var(--muted); font-size: .875rem; }

.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin-inline: auto; }
.sun { position: absolute; inset: 8% 8% 8% 8%; border-radius: 50%; background: #ead9bd; }
.bag { position: absolute; width: 44%; aspect-ratio: 200 / 260; filter: drop-shadow(0 18px 24px rgba(29, 22, 18, .22)); }
.bag--back { left: 6%; top: 20%; transform: rotate(-10deg); }
.bag--side { right: 4%; top: 24%; transform: rotate(9deg); }
.bag--front { left: 28%; top: 28%; z-index: 1; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how li { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.how__n { display: block; margin-bottom: 40px; font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--accent); }
.how p { margin-top: 8px; color: var(--muted); }

.section--dark { background: var(--ink); color: var(--cream); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { max-width: 24em; color: #c9bdae; }
.beans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bean { background: #2a211b; border-radius: 24px; padding: 28px; transition: transform .3s; }
.bean:hover { transform: translateY(-6px); }
.bean__bag { display: block; width: 46%; aspect-ratio: 200 / 260; margin: 4px auto 28px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.bean__tag { font-size: .8125rem; color: #c9bdae; letter-spacing: .02em; }
.bean h3 { margin-top: 6px; font-family: var(--serif); font-size: 1.75rem; }
.bean__notes { margin: 6px 0 20px; color: #e3d8c9; }
.scale { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: .875rem; color: #c9bdae; }
.scale i { width: 110px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #e8a08c calc(var(--v) * 20%), #4a3d34 0); }

.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.calc__form { display: grid; gap: 28px; }
.calc legend, .qty > span { margin-bottom: 10px; font-weight: 500; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: #e8dfd0; border-radius: 999px; }
.seg--wrap { border-radius: 28px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 420px; }
.qty > span { margin: 0; }
.qty__ctrl { display: inline-flex; align-items: center; gap: 4px; padding: 5px; background: #e8dfd0; border-radius: 999px; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.25rem; cursor: pointer; transition: background-color .2s; }
.qty button:hover:not(:disabled) { background: #fff; }
.qty button:disabled { opacity: .4; cursor: default; }
.qty output { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.calc__sum { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 36px); }
.calc__label { font-size: .8125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.calc__desc { margin-top: 8px; min-height: 3.1em; }
.calc__price { margin-top: 20px; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__price small { font-family: var(--sans); font-size: .9375rem; color: var(--muted); }
.calc__month { margin: 10px 0 24px; color: var(--muted); }
.calc__month #sum-save { color: var(--green); font-weight: 500; }
.calc__fine { margin-top: 14px; font-size: .875rem; color: var(--muted); }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; max-width: 40em; color: var(--muted); }

.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; background: #ead9bd; border-radius: clamp(24px, 3vw, 40px); padding: clamp(24px, 5vw, 64px); }
.order > div p { margin-top: 16px; max-width: 26em; color: #3d322b; }
.order form { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 500; }
.field input { display: block; width: 100%; min-height: 52px; padding: 0 16px; background: var(--paper); border: 1px solid #8a7b6c; border-radius: 14px; }
.field input::placeholder { color: #7b6d61; opacity: 1; }
.field input[aria-invalid="true"] { border-color: #a3200f; box-shadow: inset 0 0 0 1px #a3200f; }
.err { margin-top: 6px; font-size: .875rem; color: #8f1c0d; }
.form-note { font-size: .875rem; color: #54473d; }
.form-ok { padding: 14px 16px; border-radius: 14px; background: var(--green); color: #fff; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 28px 40px; color: var(--muted); font-size: .9375rem; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero, .calc, .order { grid-template-columns: 1fr; }
  .hero__art { max-width: 380px; order: -1; }
  .how, .beans { grid-template-columns: 1fr; }
  .how__n { margin-bottom: 20px; }
  .bean__bag { width: 120px; }
  .calc__sum { position: static; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .facts li { display: flex; align-items: baseline; gap: 12px; }
  .seg span { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
