/* «Чашка»: журнальный глянец о кофе. Крем #F6EFE4 + эспрессо #2B1B14 + карамель #C98A3B + вишня #A3263B. */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-cyrillic-wght-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin-wght-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/caveat-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/caveat-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cream: #F6EFE4; --cream-2: #EFE5D3; --cream-3: #E6D9C2; --paper: #FBF7EF; --foam: #FFFDF8;
  --espresso: #2B1B14; --espresso-2: #3C2820; --mocha: #6B5444; --mocha-2: #766050;
  --caramel: #C98A3B; --caramel-d: #8F5A17; --caramel-l: #E9C48C;
  --cherry: #A3263B; --cherry-d: #7E1B2D; --moss: #4F6B3A;
  --line: rgba(43, 27, 20, .14); --line-2: rgba(43, 27, 20, .08);
  --f-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-hand: 'Caveat', 'Segoe Script', cursive;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 0 rgba(43, 27, 20, .06), 0 10px 30px -12px rgba(43, 27, 20, .28);
  --shadow-lg: 0 2px 0 rgba(43, 27, 20, .06), 0 30px 60px -20px rgba(43, 27, 20, .42);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --hdr-h: 68px; --wrap: 1240px; --gut: clamp(16px, 4vw, 40px);
  --tier-S: var(--cherry); --tier-A: var(--caramel-d); --tier-B: var(--espresso-2); --tier-C: var(--mocha-2); --tier-D: #6E6862;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--cream); color: var(--espresso); font: 400 16px/1.6 var(--f-body); font-feature-settings: 'kern', 'liga'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
/* бумажная зернистость: статичный шум поверх всего, не перехватывает клики */
body::before { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .17  0 0 0 0 .1  0 0 0 0 .08  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
main { flex: 1 0 auto; }
main:focus, main:focus-visible { outline: none; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--caramel) 70%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--cherry); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
h3, h4 { letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw + .5rem, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 2.6vw + .8rem, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.55rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--caramel-l); color: var(--espresso); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--espresso); color: var(--cream); padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* кнопки: тактильные, с «нажатием» */
.btn { --bg: var(--foam); --fg: var(--espresso); --bd: var(--espresso); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: 0 1.25em; border: 1.5px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 3px 0 var(--bd); transform: translateY(0); transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .2s; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--bd); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--bd); }
.btn.primary { --bg: var(--espresso); --fg: var(--cream); --bd: var(--espresso); }
.btn.primary:hover { --bg: var(--espresso-2); }
.btn.cherry { --bg: var(--cherry); --fg: #fff; --bd: var(--cherry-d); }
.btn.ghost { --bg: transparent; box-shadow: none; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--espresso); transform: none; box-shadow: none; background: var(--foam); }
.btn.sm { min-height: 44px; padding: 0 1em; font-size: .88rem; }
.btn.lg { min-height: 54px; padding: 0 1.8em; font-size: 1.02rem; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; pointer-events: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--caramel); text-underline-offset: .2em; font-weight: 600; }

/* формы */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .lbl { font-weight: 600; font-size: .88rem; color: var(--mocha); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--foam); color: var(--espresso); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--mocha-2); }
.input:hover { border-color: rgba(43, 27, 20, .3); }
.input:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 4px rgba(201, 138, 59, .3); }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.hint { font-size: .82rem; color: var(--mocha); }
.err-msg { color: var(--cherry); font-weight: 500; font-size: .9rem; min-height: 1.3em; margin: 0; }

/* заголовочные мелочи */
.eyebrow { font: 700 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--cherry); margin: 0 0 .9em; display: flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--caramel-d); font-size: 1.3em; line-height: 1; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--mocha); }
.dropcap::first-letter { font: 900 3.6em/.82 var(--f-display); float: left; padding: .06em .12em 0 0; color: var(--cherry); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
