:root {
  --bg: #eceeed;
  --bg-soft: #f7f5f1;
  --card: rgba(255, 255, 255, 0.92);
  --text: #27292a;
  --muted: #676b6f;
  --line: rgba(38, 41, 43, 0.11);
  --accent: #252a2e;
  --accent-deep: #171a1d;
  --accent-soft: rgba(37, 42, 46, 0.08);
  --steel: #7a838a;
  --danger: #a94d43;
  --success: #3f6b4b;
  --shadow: 0 22px 54px rgba(20, 24, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(255,255,255,0.86), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(117,127,134,0.16), transparent 30%),
    linear-gradient(180deg, #f4f5f3 0%, #e7e9e8 45%, #f2eee8 100%);
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }

.page-shell { min-height: 100vh; padding: 14px 0 24px; }
.page,
.site-footer { width: min(100%, 430px); margin: 0 auto; }
.page { display: flex; flex-direction: column; gap: 20px; }

.hero { display: flex; flex-direction: column; gap: 14px; }
.hero-media {
  position: relative;
  margin: 0 14px;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background: #d7d8d6;
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.10) 42%, rgba(0,0,0,0.56) 100%),
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.35), transparent 28%);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.50);
  backdrop-filter: blur(10px);
  color: #33383c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  max-width: 260px;
  padding: 14px 17px 15px;
  border-radius: 24px;
  background: rgba(17, 19, 21, 0.62);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f7f7f4;
  font-size: 38px;
  line-height: 0.98;
  letter-spacing: -0.055em;
  box-shadow: 0 14px 34px rgba(0,0,0,0.20);
}
.hero-body { margin: 0 14px; padding: 0 6px; }
.lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.68;
  color: #555b60;
}
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.price-old,
.price-current {
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.price-old {
  font-weight: 700;
  color: #a0a4a8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.price-current { font-weight: 800; color: #1f2224; }
.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37,42,46,0.08);
  border: 1px solid rgba(37,42,46,0.10);
  color: #30363a;
  font-size: 13px;
  font-weight: 800;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  font-weight: 750;
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .76; cursor: default; }
.button-primary {
  background: linear-gradient(180deg, #2d3337 0%, #15181b 100%);
  color: #fbfbf8;
  box-shadow: 0 14px 28px rgba(21, 24, 27, 0.24);
}
.meta-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #74797d;
  text-align: center;
}

.section,
.order-section { padding: 0; }
.section-intro { margin: 0 14px 14px; }
.center-intro { text-align: center; }
.center-intro .section-kicker { margin: 0 auto; }
.section-intro h2 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.story-card,
.order-card {
  margin: 0 14px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,246,242,0.98));
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(22, 26, 29, 0.07);
}
.story-photo {
  aspect-ratio: 0.9 / 1;
  object-fit: cover;
  object-position: center;
}
.story-copy,
.order-card { padding: 22px; }
.story-copy p,
.order-card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #555b60;
}
.story-copy p + p { margin-top: 14px; }
.facts-grid { display: grid; gap: 10px; margin-top: 18px; }
.fact-item {
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(238, 240, 240, 0.92);
  border: 1px solid rgba(37,42,46,0.08);
}
.fact-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #282d31;
}
.fact-item p {
  font-size: 14px;
  line-height: 1.55;
  color: #5f666b;
}
.mini-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(235,237,237,0.98));
  border: 1px solid rgba(37,42,46,0.09);
}
.mini-note h3,
.order-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.mini-note p { font-size: 14px; line-height: 1.62; color: #565e63; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}
.gallery-grid img {
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(37,42,46,0.10);
  background: #eeeeec;
}
.gallery-grid img:nth-child(3) { aspect-ratio: 1 / 0.92; }

.reviews-carousel { position: relative; margin: 0 14px; }
.carousel-viewport { overflow: hidden; border-radius: 28px; }
.carousel-track { display: flex; transition: transform .35s ease; }
.review-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 226px;
  padding: 24px 22px 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(240,242,241,0.98));
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37,42,46,0.08);
  color: #2d3337;
  font-weight: 800;
}
.review-meta h3 { margin: 0 0 4px; font-size: 18px; }
.review-meta span { font-size: 13px; color: #7a8084; }
.review-card p { margin: 0; font-size: 15px; line-height: 1.72; color: #4f565b; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(37,42,46,0.12);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 22px rgba(21,24,27,0.08);
}
.carousel-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid #2d3337;
  border-right: 2px solid #2d3337;
}
.carousel-arrow-prev { left: 8px; }
.carousel-arrow-next { right: 8px; }
.carousel-arrow-prev::before { transform: rotate(-135deg); }
.carousel-arrow-next::before { transform: rotate(45deg); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0 4px; }
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(37,42,46,0.20);
  cursor: pointer;
}
.carousel-dots button.is-active { background: #2d3337; }

.order-card { padding: 22px; }
.order-form { margin-top: 18px; }
.field-group { margin-bottom: 16px; }
.field-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.field-group input,
.field-group select {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(37,42,46,0.14);
  background: rgba(255,255,255,0.98);
  padding: 0 16px;
  color: var(--text);
  outline: none;
}
.field-group input:focus,
.field-group select:focus { border-color: rgba(37,42,46,0.38); box-shadow: 0 0 0 4px rgba(37,42,46,0.06); }
.field-group input::placeholder { color: #9aa0a5; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 19px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555b60;
  border-bottom: 2px solid #555b60;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  cursor: pointer;
}
.field-group select:invalid { color: #9aa0a5; }
.field-group select option { color: var(--text); }
.field-group.has-error input,
.field-group.has-error select { border-color: var(--danger); background: rgba(255,246,244,0.96); box-shadow: none; }
.field-error,
.form-success {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
}
.form-success { color: var(--success); }
.form-success.is-error { color: var(--danger); }
.privacy-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }

.site-footer {
  margin-top: 14px;
  padding: 0 16px 20px;
  text-align: center;
  color: #5c6266;
}
.footer-title { margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: 0 0 12px; font-size: 13px; line-height: 1.62; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 12px; }
.footer-links a { font-size: 13px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.registry-note { color: #7d8387; }

@media (max-width: 374px) {
  .hero-media { min-height: 470px; border-radius: 30px; }
  .hero-media img { min-height: 470px; }
  .hero-copy h1 { font-size: 34px; }
  .price-old, .price-current { font-size: 25px; }
}

@media (min-width: 431px) {
  .page-shell { padding-top: 18px; }
}
