:root {
  --bg: #f8f4ee;
  --ink: #221d19;
  --muted: #5f574f;
  --line: rgba(34, 29, 25, 0.10);
  --line-soft: rgba(255, 255, 255, 0.75);
  --accent: #b5451f;
  --accent-dark: #8f3517;
  --accent-soft: rgba(181, 69, 31, 0.08);
  --sage: #7e9578;
  --glass: rgba(255, 253, 249, 0.72);
  --glass-strong: rgba(255, 253, 249, 0.9);
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-card: 0 18px 40px -34px rgba(70, 45, 28, 0.55);
  --shadow-lift: 0 30px 70px -46px rgba(70, 45, 28, 0.7);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf7f2 0%, #f5eee4 48%, #f0e7da 100%);
  font: 17px/1.65 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 34% at 16% 10%, rgba(221, 162, 120, 0.40), transparent 72%),
    radial-gradient(34% 30% at 84% 16%, rgba(152, 178, 150, 0.34), transparent 72%),
    radial-gradient(42% 36% at 74% 90%, rgba(233, 197, 143, 0.34), transparent 74%),
    radial-gradient(30% 28% at 10% 84%, rgba(205, 169, 190, 0.20), transparent 72%);
  filter: blur(22px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("/assets/noise.svg");
  background-size: 180px 180px;
  opacity: 0.07;
  mix-blend-mode: multiply;
}

img,
svg { max-width: 100%; }

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}
a:hover { color: var(--accent); }

h1, h2, h3 {
  margin: 0 0 0.55em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  background: var(--ink);
  color: #fff;
  z-index: 20;
}
.skip:focus { left: 0; top: 0; }

.small { font-size: 0.88rem; color: var(--muted); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(250, 246, 240, 0.76);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(143, 53, 23, 0.85);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-wide { width: 100%; }

/* Hero */

.hero {
  position: relative;
  padding: 84px 0 76px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

/* Plate illustration */

.plate-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  isolation: isolate;
}

.plate-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 36% 30%,
    rgba(243, 205, 170, 0.9),
    rgba(226, 162, 115, 0.35) 56%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0.85;
  animation: glow-drift 18s ease-in-out infinite;
}

@keyframes glow-drift {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.05); }
}

.plate {
  width: min(100%, 430px);
  height: auto;
  filter: drop-shadow(0 28px 42px rgba(96, 62, 38, 0.22));
}

.chip {
  position: absolute;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.3;
  white-space: nowrap;
}

.chip-a { top: 6%; left: 0; transform: rotate(-3deg); }
.chip-b { right: 0; bottom: 14%; transform: rotate(2deg); }

/* Sections */

.section { padding: 72px 0; }

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(255, 253, 249, 0.62),
    rgba(255, 253, 249, 0.22)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.section-head { max-width: 62ch; }
.section-lead { color: var(--muted); max-width: 62ch; }

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  box-shadow: var(--shadow-card);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.card-icon svg { width: 24px; height: 24px; }

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-note {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.6);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(150deg, #c85730, #9c3c1b);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Order form */

.order-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.order-aside p { color: var(--muted); }

.order-aside .notice {
  margin: 18px 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(181, 69, 31, 0.07);
  color: var(--ink);
  font-size: 0.95rem;
}

.order-form {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label { font-size: 0.88rem; font-weight: 600; }

.optional { font-weight: 400; color: var(--muted); }

input,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

textarea { min-height: 96px; resize: vertical; }

input:focus,
textarea:focus {
  outline: 2px solid rgba(181, 69, 31, 0.45);
  outline-offset: 1px;
  border-color: var(--accent);
}

::placeholder { color: rgba(95, 87, 79, 0.62); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  flex: none;
}

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 0.92rem;
}
.form-status.is-ok { color: #256a3a; }
.form-status.is-error { color: var(--accent-dark); }

/* Contacts */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts { margin: 0; }

.contacts dt {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.contacts dt:first-child { margin-top: 0; }

.contacts dd {
  margin: 4px 0 0;
  font-size: 1.04rem;
}

.contact-note {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--glass);
  color: var(--muted);
}

.contact-note p { margin-bottom: 12px; }
.contact-note p:last-child { margin-bottom: 0; }

/* Privacy / text pages */

.prose { max-width: 72ch; }
.prose h2 {
  margin-top: 1.8em;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.prose p,
.prose li { color: var(--muted); }
.prose h1 { margin-bottom: 0.35em; }

/* 404 */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: 72px 24px;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--accent);
}

.error-page p {
  max-width: 44ch;
  margin: 14px auto 26px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .order-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero { padding: 60px 0 56px; }

  .plate-stage { min-height: 360px; }

  .cards,
  .steps { grid-template-columns: 1fr; }

  .order-aside { max-width: 62ch; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .section { padding: 52px 0; }

  .tags li { padding: 6px 12px; font-size: 0.8rem; }

  .chip { display: none; }

  .plate { width: min(100%, 320px); }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .order-form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
