:root { --bg: #f4efe5; --ink: #25241e; --muted: #6b675c; --green: #2b3d34; --brown: #9a7253; --gold: #b99a5b; --paper: #fbf8f0; --line: #dcd4c3; --serif: "Playfair Display", Georgia, serif; --sans: "DM Sans", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
em { font-style: italic; color: var(--brown); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: -.01em; }

.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(244, 239, 229, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, .05); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px var(--serif); }
.brand i { font-style: normal; color: var(--brown); }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #e8cf94; font: 500 15px var(--serif); }
.top nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.pill { background: var(--green); color: #f4efe5; text-decoration: none; font-size: 14px; padding: 9px 18px; border-radius: 99px; white-space: nowrap; }

.btn { display: inline-block; border: 0; cursor: pointer; background: var(--green); color: #f6f2e8; font: 500 15px var(--sans); padding: 15px 28px; border-radius: 99px; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover:not(:disabled) { background: #1f2e27; transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.btn.light { background: #f4efe5; color: var(--green); }
.btn.wa { display: block; text-align: center; }

.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brown); margin: 0 0 18px; }
.fine { font-size: 13px; color: var(--muted); }
.center { text-align: center; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 90px); align-items: center; max-width: 1280px; margin: 0 auto; padding: clamp(36px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.hero h1 { font-size: clamp(36px, 5.6vw, 76px); line-height: 1.08; }
.lead { max-width: 30em; margin: 26px 0 32px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brown); margin-right: 10px; vertical-align: middle; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.btn.sq { border-radius: 2px; padding: 20px 30px; }
.tlink { font-size: 15px; color: var(--muted); text-decoration: none; }
.tlink:hover { color: var(--ink); }
.hero-note { display: flex; align-items: center; gap: 14px; margin-top: 56px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.hero-note p { margin: 0; } .hero-note b { color: var(--ink); font-weight: 500; }
.avs { display: flex; } .avs span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 14px var(--serif); color: #fff; margin-left: -8px; border: 2px solid var(--bg); }
.avs span:first-child { margin-left: 0; background: #c9b79a; } .avs span:nth-child(2) { background: #8a9a82; } .avs span:nth-child(3) { background: #a8745e; }
.hero-visual { position: relative; background: #fffdf8; padding: 14px 14px 0; box-shadow: 0 30px 70px -30px rgba(40,28,10,.45); }
.hero-visual img { display: block; width: 100%; aspect-ratio: 3/2.55; object-fit: cover; object-position: 70% 50%; }
.photo-cap { display: flex; justify-content: space-between; padding: 18px 8px; font: italic 15px var(--serif); color: var(--muted); }
.stamp { position: absolute; top: 30px; right: -22px; width: 112px; height: 112px; border-radius: 50%; background: rgba(232,236,224,.92); border: 1px solid rgba(43,61,52,.25); display: grid; place-items: center; text-align: center; font: italic 14px/1.25 var(--serif); color: var(--green); transform: rotate(-8deg); }
.inside { text-align: center; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px) 20px; background: radial-gradient(90% 50% at 50% 70%, #ece3d0 0%, transparent 70%); scroll-margin-top: 60px; }
.inside h2 { font-size: clamp(30px, 4vw, 48px); }
.stage { position: relative; margin: clamp(24px, 4vw, 44px) auto 0; max-width: 1100px; padding: 24px 0 36px; }
.stage.small { padding-bottom: 30px; }
.hint { position: absolute; left: 0; right: 0; bottom: -14px; font-size: 13px; color: var(--muted); margin: 0; transition: opacity .5s; }
.hint.gone { opacity: 0; }
.ctrl { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--green); font-size: 18px; cursor: pointer; transition: background .2s; }
.ctrl button:hover:not(:disabled) { background: #fff8; }
.ctrl button:disabled { opacity: .3; cursor: default; }
.ctrl span { min-width: 150px; letter-spacing: .06em; }
.sample-note { font-size: 13px; color: var(--muted); max-width: 40em; margin: 18px auto 0; }

/* sections */
.sec { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.head { margin-bottom: 44px; }
.head h2, .restore h2, .final h2 { font-size: clamp(30px, 4vw, 48px); }
.sub { color: var(--muted); max-width: 34em; margin: 16px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; }
.steps span { font: 400 14px var(--serif); font-style: italic; color: var(--brown); }
.steps h3 { font-size: 22px; margin: 10px 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* реставрация */
.restore { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.restore p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0; }
.ticks li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px; border-left: 1.5px solid var(--brown); border-bottom: 1.5px solid var(--brown); transform: rotate(-45deg); }
.ba { position: relative; aspect-ratio: 4/5; max-width: 440px; width: 100%; margin: 0 auto; overflow: hidden; border-radius: 4px; box-shadow: 0 20px 50px -20px rgba(40, 28, 10, .5); touch-action: pan-y; background: #ddd; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-old { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-old img { filter: sepia(.9) contrast(.72) brightness(.88) saturate(.45) blur(.7px); }
.ba-old i { position: absolute; inset: 0; background: radial-gradient(circle at 18% 28%, rgba(255,255,255,.35) 0 4px, transparent 6px), radial-gradient(circle at 72% 64%, rgba(0,0,0,.22) 0 6px, transparent 9px), radial-gradient(circle at 40% 80%, rgba(255,255,255,.25) 0 3px, transparent 5px), linear-gradient(101deg, transparent 33%, rgba(255,255,255,.55) 33.2%, transparent 33.6%), linear-gradient(78deg, transparent 63%, rgba(255,255,255,.4) 63.15%, transparent 63.5%), linear-gradient(88deg, transparent 80%, rgba(0,0,0,.18) 80.1%, transparent 80.5%), radial-gradient(ellipse at center, transparent 35%, rgba(60,30,0,.5) 100%); }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.3); pointer-events: none; }
.ba-line span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--green); font-size: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.ba-tag { position: absolute; top: 14px; font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.85); padding: 5px 10px; border-radius: 99px; pointer-events: none; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-cap { grid-column: 1 / -1; text-align: center; font-size: 13px; color: var(--muted); margin: 0; }

/* создание */
.card { background: #fffdf7; border: 1px solid var(--line); border-radius: 10px; padding: clamp(18px, 3vw, 34px); max-width: 780px; box-shadow: 0 12px 40px -24px rgba(40,28,10,.35); }
.create .card { margin: 0 auto; }
.create .head { text-align: center; }
.create .sub { margin-left: auto; margin-right: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
label { display: block; font-size: 13px; color: var(--muted); }
input[type=text], input:not([type]), textarea { display: block; width: 100%; margin-top: 6px; font: 400 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.dz { border: 1.5px dashed #cbbf9f; border-radius: 8px; padding: 30px 16px; text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dz:hover, .dz.over { background: #f6f0e0; border-color: var(--brown); }
.dz b { display: block; font: 500 17px var(--serif); color: var(--ink); }
.dz span { font-size: 13px; }
.items { display: grid; gap: 12px; margin: 18px 0; }
.item { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; position: relative; }
.item img { width: 84px; height: 106px; object-fit: cover; border-radius: 3px; }
.item .yr { width: 120px; margin: 0 0 8px; padding: 7px 10px; font-size: 14px; }
.item textarea { margin: 0; min-height: 66px; resize: vertical; font-size: 15px; }
.item .rm { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.err { color: #9b3a2a; font-size: 14px; margin: 10px 0 0; min-height: 1em; }

.preview { margin-top: 56px; scroll-margin-top: 80px; }
.preview .order { margin: 36px auto 0; }
.order h3 { font-size: 24px; margin-bottom: 16px; }
.fmt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.fmt label { cursor: pointer; }
.fmt input { position: absolute; opacity: 0; }
.fmt span { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.45; transition: border-color .2s, background .2s; }
.fmt small { color: var(--brown); font-size: 14px; }
.fmt input:checked + span { border-color: var(--green); background: #f1f3ec; box-shadow: inset 0 0 0 1px var(--green); }
.fmt input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }

/* цены */
.cards.one { grid-template-columns: minmax(0, 520px); justify-content: center; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.price .head { text-align: center; }
.plan { background: #fffdf7; border: 1px solid var(--line); border-radius: 12px; padding: 34px; display: flex; flex-direction: column; }
.plan.dark { background: var(--green); color: #f1ebdc; border-color: var(--green); }
.tag { font: 500 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }
.plan.dark .tag { color: #dcc189; }
.plan h3 { font-size: 28px; margin: 12px 0; }
.amt { font: 400 44px var(--serif); margin-bottom: 18px; }
.amt small { font-size: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 9px 0; border-bottom: 1px solid rgba(120, 100, 70, .2); font-size: 15px; }
.plan.dark li { border-color: rgba(255,255,255,.15); }
.plan .btn { text-align: center; }

.qa { max-width: 760px; margin: 0 auto; }
.faq .head { text-align: center; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 400 20px var(--serif); }
summary::-webkit-details-marker { display: none; }
summary i { flex: none; width: 14px; height: 14px; position: relative; }
summary i::before, summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: var(--brown); transition: transform .25s; }
summary i::after { transform: rotate(90deg); }
details[open] summary i::after { transform: rotate(0); }
details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

.final { text-align: center; background: var(--green); color: #f4efe5; padding: clamp(60px, 9vw, 110px) 20px; }
.final em { color: #dcc189; }
.final .btn { margin-top: 30px; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px clamp(16px, 4vw, 48px); font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .stamp { right: 8px; top: 24px; width: 92px; height: 92px; font-size: 12px; }
  .hero-note { margin-top: 32px; }
  .top nav { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .restore { grid-template-columns: 1fr; }
  .cards, .fmt, .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .item { grid-template-columns: 64px 1fr; }
  .item img { width: 64px; height: 82px; }
  .hint { position: static; margin-top: 18px; }
  .brand span:last-child { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }

.priceline { margin: 0 0 18px; color: var(--muted); }
.priceline .pr { color: var(--ink); font: 400 26px var(--serif); margin-right: 6px; }
.order { max-width: 780px; margin: 36px auto 0; }
.order textarea { margin-bottom: 16px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.paybox { background: #f1f3ec; border: 1px solid #cfd8c8; border-radius: 8px; padding: 18px; margin: 14px 0; }
.paybox b.big { font: 400 28px var(--serif); display: block; }
.paybox .code { font: 500 20px var(--sans); letter-spacing: .12em; }
.okline { padding: 14px 16px; background: #f1f3ec; border-radius: 8px; border-left: 3px solid var(--green); }
.order label + label { margin-top: 12px; }
