:root {
  --bg: #fffaf8;
  --soft: #f7ece8;
  --card: #ffffff;
  --ink: #2d2424;
  --muted: #8a7976;
  --accent: #c98b86;
  --accent-dark: #a96a65;
  --line: #ecdcd7;
  --ok: #e7f3ea;
  --err: #fbe7e5;
  --radius: 18px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 6vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* шапка */
.top { border-bottom: 1px solid var(--line); background: rgba(255, 250, 248, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 24px; font-weight: 600; }
.logo em { font-style: italic; font-weight: 400; color: var(--muted); font-size: 18px; }
.top__nav { display: flex; gap: 22px; font-size: 15px; }
.top__nav a { color: var(--ink); text-decoration: none; }
.top__nav a:hover { color: var(--accent-dark); }

/* кнопки */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 15px 30px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); letter-spacing: .01em;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--wide { display: block; width: 100%; text-align: center; }
.btn--ghost { background: transparent; color: var(--accent-dark); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }

/* главный экран */
.hero { background: linear-gradient(180deg, var(--soft), var(--bg)); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 80px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--accent-dark); margin-bottom: 14px; }
.hero h1 span { font-style: italic; color: var(--accent-dark); }
.lead { font-size: 19px; max-width: 34em; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero__price { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.hero__price small { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.hero__art { position: relative; height: 380px; }
.balloon {
  position: absolute; border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
  box-shadow: inset -18px -22px 40px rgba(0, 0, 0, .06), inset 14px 16px 30px rgba(255, 255, 255, .55);
  animation: float 7s ease-in-out infinite;
}
.balloon::after { content: ""; position: absolute; left: 50%; bottom: -60px; width: 1px; height: 60px; background: rgba(140, 110, 105, .35); }
.b1 { width: 170px; height: 190px; left: 18%; top: 30px; background: #ecc4bf; }
.b2 { width: 130px; height: 145px; left: 55%; top: 0; background: #f3ddd2; animation-delay: -2s; }
.b3 { width: 110px; height: 122px; left: 62%; top: 170px; background: #e2b2ad; animation-delay: -4s; }
.b4 { width: 90px; height: 100px; left: 5%; top: 210px; background: #f6e7e0; animation-delay: -1s; }
.b5 { width: 70px; height: 78px; left: 40%; top: 240px; background: #d9a19c; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .balloon { animation: none; } }

/* секции */
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.card__icon { font-size: 30px; margin-bottom: 10px; }
.card p { font-size: 15px; color: #5c4c4a; margin: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 26px 22px 22px; position: relative; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 46px; color: var(--accent); line-height: 1; display: block; margin-bottom: 8px; }
.steps b { display: block; font-size: 18px; margin-bottom: 6px; }
.steps span { font-size: 15px; color: #5c4c4a; }

.note { background: var(--card); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 28px 12px; }
.note p { font-size: 16px; }

.price { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 44px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 30px; position: relative; margin: 10px 0; }
.ticks li::before { content: "🤍"; position: absolute; left: 0; font-size: 15px; top: 2px; }
.price__box { text-align: center; background: var(--soft); border-radius: var(--radius); padding: 30px; }
.price__sum { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; }
.price__box .btn { margin-top: 20px; }

details { background: var(--card); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 26px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; font-size: 16px; }

/* документы */
.doc { padding-top: 50px; padding-bottom: 70px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); }
.doc h2 { font-size: 26px; margin-top: 1.6em; }
.doc p, .doc li { font-size: 16px; }
.doc blockquote { margin: 1.4em 0; padding: 20px 24px; background: var(--soft); border-radius: var(--radius); font-size: 16px; }

/* формы */
.form-page { padding-top: 50px; padding-bottom: 70px; }
.form-page h1 { font-size: clamp(30px, 5vw, 44px); }
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: 15px; }
.field small { font-size: 13px; }
input[type=email], input[type=text], input:not([type]), select, textarea {
  font: inherit; font-size: 16px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-dark); flex: none; }
.hp { position: absolute; left: -9999px; }

.order { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 8px; margin-top: 20px; }
.order__row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.order__row b { font-size: 20px; white-space: nowrap; }

.switch-box { background: var(--soft); border-radius: var(--radius); padding: 20px 22px 6px; }
.switch-box p { margin-bottom: .8em; }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; margin-bottom: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { width: 50px; height: 30px; border-radius: 99px; background: #d9c9c5; position: relative; transition: background .2s; flex: none; }
.switch__ui::after { content: ""; position: absolute; width: 24px; height: 24px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.switch input:checked + .switch__ui { background: var(--accent-dark); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.switch__label { font-weight: 600; }

.alert { background: var(--err); border-radius: 12px; padding: 14px 18px; margin-top: 18px; }
.success { background: var(--ok); border-radius: var(--radius); padding: 22px 24px 8px; margin: 24px 0; }

.result { text-align: center; padding-top: 70px; padding-bottom: 90px; }
.result__icon { font-size: 56px; margin-bottom: 10px; }
.result .btn { margin: 10px 0 18px; }
.spin { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* бланк разрешения */
.release .line { display: inline-block; min-width: 180px; border-bottom: 1px solid var(--ink); height: 1.1em; vertical-align: bottom; }
.release .line.wide { min-width: 100%; }
.release .box { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--ink); vertical-align: middle; margin: 0 4px; }
.release .lines span { display: block; border-bottom: 1px solid var(--ink); height: 2em; }
.release .sign { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
@media print {
  .top, .foot, .no-print { display: none !important; }
  body { background: #fff; font-size: 13px; }
  .doc { padding: 0; }
}

/* подвал */
.foot { background: #2d2424; color: #d9cbc8; padding: 46px 0; font-size: 14px; }
.foot__in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot__brand { font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 10px; }
.foot p { margin: 0 0 6px; }
.foot__links { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #f0d9d5; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .top__nav { display: none; }
  .hero__in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 50px; }
  .hero__art { height: 200px; order: -1; transform: scale(.6); transform-origin: center top; margin-bottom: -40px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero__cta .btn { width: 100%; text-align: center; }
}
