/* Естественно Красива — shared design system: tokens, type, buttons, form controls, header, footer, motion. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/cormorant.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/cormorant-italic.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/manrope.woff2) format('woff2'); }

:root {
  --bg: #fbf7f2;
  --bg-2: #f5ece6;
  --paper: #fffdfb;
  --ink: #2a1b1f;
  --ink-2: #5a464b;
  --muted: #75636a; /* 5.2:1 on --bg (was #8a777b, 3.9:1) */
  --wine: #7a1f35;
  --wine-deep: #5a1426;
  --wine-soft: #9c4a5c;
  --rose: #ecd2cb;
  --blush: #f4e3dd;
  --gold: #b08a57; /* decorative only: 3:1 on --bg */
  --gold-ink: #8f6a3c; /* gold for small text, 4.6:1 on --bg */
  --gold-soft: #dcc7a4;
  --sage: #477261;
  --line: rgba(122, 31, 53, 0.12);
  --line-2: rgba(122, 31, 53, 0.2);
  --serif: 'Cormorant Garamond', 'Cormorant', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;
  --shadow: 0 30px 70px -38px rgba(90, 20, 38, 0.38), 0 2px 6px -2px rgba(90, 20, 38, 0.06);
  --shadow-sm: 0 12px 30px -18px rgba(90, 20, 38, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(18px, 5vw, 40px);
  --max: 1180px;
  --header-h: 64px;
  color-scheme: light;
}

html.font-sans { --serif: var(--sans); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--rose); color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }

/* Paper grain: barely visible, makes flat ivory feel like stationery. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
/* Grid children may hold horizontal scrollers — never let them widen the page. */
[class*='__grid'] > * { min-width: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 11.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
.h1 { font-size: clamp(42px, 10.4vw, 86px); line-height: 0.98; }
.h2 { font-size: clamp(36px, 8vw, 62px); line-height: 1.02; }
.h3 { font-size: clamp(25px, 5.4vw, 31px); line-height: 1.12; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--wine); }
.lead { font-size: clamp(16.5px, 2.2vw, 19px); line-height: 1.6; color: var(--ink-2); margin: 0; }
.small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.num { font-family: var(--serif); font-variant-numeric: lining-nums; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--wine);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: #fff8f5;
  font: 600 16px/1.2 var(--sans); letter-spacing: 0.01em; text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 36px -18px rgba(122, 31, 53, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
}
.btn::after { /* soft sheen that passes once in a while */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 6.5s var(--ease) 2.5s infinite;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -20px rgba(122, 31, 53, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: transparent; color: var(--wine); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost::after { display: none; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--wine); }
.btn--light { --btn-bg: #fffaf7; color: var(--wine-deep); box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.4); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn__price { font-weight: 700; opacity: 0.95; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Price pill ("−64%", "пробный") — used by the landing hero, the sheet and the business card. */
.offer__off { align-self: center; padding: 6px 10px; border-radius: 999px; background: var(--wine); color: #fff; font: 700 13px/1 var(--sans); letter-spacing: 0.02em; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--wine); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.3s, gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--wine); gap: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 253, 251, 0.82); border: 1px solid var(--line);
  font: 600 13px/1 var(--sans); color: var(--ink-2); white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.chip .star { color: #d7a13c; }
.stars { color: #d7a13c; letter-spacing: 1px; }

/* ---------- Form controls ---------- */
.field { position: relative; display: block; }
.field__box {
  display: flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 0 18px; border-radius: 18px;
  background: var(--paper); border: 1.5px solid var(--line-2);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field__box:focus-within { border-color: var(--wine); box-shadow: 0 0 0 5px rgba(122, 31, 53, 0.09); }
.field__prefix { font: 600 18px/1 var(--sans); color: var(--ink); letter-spacing: 0.01em; }
.field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 18px 0;
  font: 600 18px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink);
}
.field input::placeholder { color: #b9a9ac; font-weight: 500; }
.field input[name='name'] { font-weight: 500; letter-spacing: 0; }
.field__ok {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--sage); color: #fff; transform: scale(0); transition: transform 0.4s var(--ease-spring);
}
.field.is-valid .field__ok { transform: scale(1); }
.field.is-valid .field__box { border-color: rgba(79, 125, 106, 0.55); }
.field.is-error .field__box { border-color: #c2563f; animation: shake 0.4s; }
.field__hint { display: block; min-height: 18px; margin: 6px 4px 0; font-size: 12.5px; color: var(--muted); }
.field.is-error .field__hint { color: #b2472f; }
.field__label { display: block; margin: 0 4px 8px; font: 600 13px/1.2 var(--sans); color: var(--ink-2); }
.field__label .opt { font-weight: 500; color: var(--muted); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: var(--paper); font: 600 14px/1 var(--sans); color: var(--ink-2);
  cursor: pointer; transition: all 0.25s var(--ease);
}
.segmented input:checked + span { border-color: var(--wine); background: var(--wine); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.consent input { position: absolute; opacity: 0; }
.consent__box {
  flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 8px; border: 1.5px solid var(--line-2);
  background: var(--paper); display: grid; place-items: center; transition: all 0.25s var(--ease);
}
.consent__box svg { opacity: 0; transform: scale(0.4); transition: all 0.3s var(--ease-spring); }
.consent input:checked + .consent__box { background: var(--wine); border-color: var(--wine); }
.consent input:checked + .consent__box svg { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--wine); outline-offset: 2px; }
.consent.is-error .consent__box { border-color: #c2563f; animation: shake 0.4s; }
.consent a { color: var(--wine); }

/* ---------- Studio map (drawn from OpenStreetMap in brand colours; no third-party widget, no cookies) ---------- */
.zmap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #f5ece6; isolation: isolate; }
.zmap__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zmap__pin {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -46px 0 0 -21px;
  display: grid; place-items: center; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--wine); box-shadow: 0 10px 22px -8px rgba(90, 20, 38, 0.7);
}
.zmap__pin svg { width: 24px; height: 24px; transform: rotate(45deg); }
.zmap__pin::after { content: ''; position: absolute; left: -6px; bottom: -6px; width: 10px; height: 10px; border-radius: 50%; background: rgba(90, 20, 38, 0.25); }
.zmap__label {
  position: absolute; left: 50%; top: calc(50% + 10px); transform: translateX(-50%); padding: 8px 12px; border-radius: 12px; white-space: nowrap;
  background: rgba(255, 253, 251, 0.94); box-shadow: 0 8px 20px -10px rgba(90, 20, 38, 0.45); font: 700 13px/1.2 var(--sans); color: var(--wine-deep); text-align: center;
}
.zmap__label small { display: block; margin-top: 2px; font-weight: 500; font-size: 12px; color: var(--ink-2); }
.zmap__osm { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: rgba(90, 70, 75, 0.7); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s, transform 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 247, 242, 0.78); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wine-deep); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font: 600 15px/1 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; }
.brand__name small { display: block; margin-top: 4px; font: 600 8.5px/1 var(--sans); letter-spacing: 0.22em; color: var(--gold-ink); }
.site-header .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 12vw, 140px) 0; }
.section--tint { background: var(--bg-2); }
.section__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); border: 0; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine-deep); color: #f3e2dd; padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); }
.site-footer a { color: #fff3ee; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer .brand { color: #fff3ee; }
.site-footer .brand__name small { color: var(--gold-soft); }
.site-footer__cols { display: grid; gap: 24px; font-size: 14.5px; }
.site-footer__cols h4 { margin: 0 0 10px; font: 600 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.site-footer__cols p { margin: 0 0 6px; }
.site-footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; line-height: 1.6; color: rgba(243, 226, 221, 0.6); }
.site-footer__legal a { color: inherit; }
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: 1.1fr 2fr; }
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Cookie note ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 14px; max-width: 520px; margin-inline: auto; padding: 12px 12px 12px 18px;
  border-radius: 18px; background: rgba(42, 27, 31, 0.92); color: #f6e9e5; font-size: 12.5px; line-height: 1.4;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  /* hidden: below the screen from any bottom offset (the cart bar lifts the notice by 86px) and out of reach */
  transform: translateY(calc(100% + 120px + env(safe-area-inset-bottom))); visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0s 0.6s;
}
.cookie.is-on { transform: none; visibility: visible; transition: transform 0.6s var(--ease); }
.cookie a { color: #fff; }
.cookie button { flex: none; border: 0; border-radius: 999px; padding: 10px 16px; background: #fff7f3; color: var(--wine-deep); font-weight: 700; font-size: 13px; cursor: pointer; }
body.has-sticky .cookie { bottom: calc(86px + env(safe-area-inset-bottom)); }

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal='fade'] { transform: none; }
[data-reveal='scale'] { transform: scale(0.96); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 479px) {
  .brand__name { max-width: 8.6em; font-size: 12.5px; line-height: 1.12; letter-spacing: 0.12em; }
  .brand__name small { display: none; }
  .brand__mark { width: 30px; height: 30px; }
  .site-header .btn { padding: 0 16px; }
}
