@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --cream: #F3EDE4;
  --sand: #E9E0D3;
  --paper: #FAF6F0;
  --ink: #2B211B;
  --muted: #74675C;
  --line: rgba(43, 33, 27, .14);
  --accent: #B5532F;
  --accent-dark: #9A4325;
  --olive: #59603F;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* мягкая «льняная» фактура поверх всего */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.02em; line-height: 1.02; }
h2 { font-size: clamp(40px, 6vw, 84px); }
h3 { font-size: 22px; letter-spacing: -.01em; }
em { font-style: italic; font-weight: 350; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 15px/1 var(--sans); cursor: pointer; border: 0;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
}
.btn svg { width: 20px; height: 20px; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(181, 83, 47, .7); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(181, 83, 47, .8); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--wide { width: 100%; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding .4s var(--ease), background .4s, box-shadow .4s;
}
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(243, 237, 228, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 500 26px/1 var(--serif); letter-spacing: -.02em; }
.logo svg { width: 30px; color: var(--accent); }
.nav__links { display: flex; gap: 40px; font-size: 14.5px; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding-bottom: 4px; border-bottom: 1.5px solid var(--accent); }
.nav__phone svg { width: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 120px var(--pad) 36px;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(255, 250, 240, .9), transparent 70%),
    linear-gradient(180deg, #F1E9DD 0%, #EFE6D9 62%, #E6DBCB 62.2%, #EAE0D2 100%);
}
/* солнечные полосы из окна */
.hero__light {
  position: absolute; inset: -10% -20% auto auto; width: 70%; height: 90%; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 70px, rgba(255, 252, 245, .55) 70px 120px);
  filter: blur(18px); mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  animation: sway 14s ease-in-out infinite alternate;
}
@keyframes sway { to { transform: translateX(-40px) rotate(-2deg); } }
.hero__text { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; padding-left: clamp(0px, 8vw, 120px); }
.hero__title { font-size: clamp(46px, 6.6vw, 108px); font-weight: 400; }
.hero__title em { font-weight: 300; }
.hero__sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink); opacity: .82; max-width: 560px; margin: 22px 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.sofa { position: relative; z-index: 1; align-self: center; width: min(1000px, 100%, 115svh); margin: -50px auto 0; user-select: none; touch-action: pan-y; }
.sofa__stage { position: relative; aspect-ratio: 1680 / 760; cursor: ew-resize;
  --m: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: var(--m); -webkit-mask-image: var(--m); mask-composite: intersect; -webkit-mask-composite: source-in; }
.sofa__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sofa__img--clean { clip-path: polygon(calc(var(--p, 50%) + 6%) 0, 100% 0, 100% 100%, calc(var(--p, 50%) - 6%) 100%); }
.sofa__beam { position: absolute; inset: 0; pointer-events: none; }
.sofa__beam i {
  position: absolute; top: -5%; bottom: -5%; left: var(--p, 50%); width: 3px; margin-left: -1.5px;
  transform: skewX(-14.9deg); transform-origin: center;
  background: linear-gradient(180deg, transparent, #fff 20%, #fff 80%, transparent);
  box-shadow: 0 0 12px 3px rgba(255, 236, 200, .95), 0 0 50px 14px rgba(255, 210, 150, .55), 0 0 120px 30px rgba(255, 200, 140, .25);
}
.sofa__sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sofa__hint { display: flex; align-items: center; justify-content: center; gap: 14px; margin: -6px 0 0; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sofa__hint i { width: 60px; height: 1px; background: var(--muted); position: relative; }
.sofa__hint i::before, .sofa__hint i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 0 1px 1px; }
.sofa__hint i::before { left: 0; transform: rotate(45deg); }
.sofa__hint i::after { right: 0; transform: rotate(-135deg); }

.badges { list-style: none; display: flex; justify-content: center; margin: 4px 0 0; padding: 0; }
.badges li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14.5px; line-height: 1.35; padding: 0 clamp(20px, 5vw, 70px); }
.badges li + li { border-left: 1px solid var(--line); }
.badges svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--paper); }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; font: 300 italic clamp(26px, 3vw, 40px)/1 var(--serif); }
.marquee__track b { color: var(--accent); font: 400 18px/1 var(--sans); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--pad); }
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__head h2 { margin-bottom: 22px; }
.section__head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.section__head--split h2 { margin: 0; }

/* services */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { background: var(--paper); border-radius: var(--radius); padding: 14px 14px 24px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(60, 40, 20, .35); }
.card__img { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--sand); margin-bottom: 20px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.07); }
.card h3, .card p { padding: 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; line-height: 1.5; }

/* before/after */
.compare { position: relative; aspect-ratio: 16/8; border-radius: 28px; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--sand); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--c, 50%)); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--c, 50%); width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, .25); outline: none;
}
.compare__handle span {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px);
  font: 600 18px/1 var(--sans); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: transform .3s var(--ease);
}
.compare:hover .compare__handle span, .compare__handle:focus-visible span { transform: scale(1.1); }
.compare__tag { position: absolute; bottom: 22px; padding: 8px 16px; border-radius: 99px; background: rgba(255, 255, 255, .85); font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.compare__tag--l { left: 22px; } .compare__tag--r { right: 22px; }

/* steps */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps__list li { padding: 0 32px 0 0; border-top: 1px solid var(--line); padding-top: 28px; position: relative; }
.steps__list li::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: var(--fill, 0%); background: var(--accent); transition: width 1.2s var(--ease); }
.steps__list li.is-in::before { --fill: 100%; }
.steps__n { display: block; font: 300 clamp(70px, 8vw, 120px)/.9 var(--serif); color: var(--olive); margin-bottom: 26px; }
.steps__list h3 { margin-bottom: 10px; }
.steps__list p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* safe */
.safe { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 80px var(--pad); overflow: hidden; }
.safe__img { position: absolute; inset: 0; }
.safe__img img { width: 100%; height: 120%; object-fit: cover; object-position: 45% 40%; }
.safe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(243, 237, 228, .95) 0%, rgba(243, 237, 228, .6) 40%, transparent 70%); }
.safe__card { position: relative; z-index: 1; max-width: 520px; margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.safe__card h2 { margin-bottom: 24px; }
.safe__card > p:not(.eyebrow) { font-size: 18px; color: var(--ink); opacity: .85; }
.safe__list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.safe__list li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 600; }

/* prices */
.prices__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price { position: relative; background: var(--paper); border-radius: var(--radius); padding: 30px; text-align: center; border: 1px solid transparent; transition: border-color .4s, transform .5s var(--ease); }
.price:hover { border-color: var(--accent); transform: translateY(-6px); }
.price img { width: 70%; margin: 0 auto 20px; mix-blend-mode: multiply; border-radius: 10px; }
.price__val { margin: 14px 0 0; font: 400 44px/1 var(--serif); color: var(--accent); }
.price__val small { display: block; font: 500 12px/1 var(--sans); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }

/* zone + map */
.zone { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.zone .lead { margin: 22px 0 30px; }
.zone h2 { margin: 0; }
.zone__list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 30px; }
.zone__list li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; break-inside: avoid; }
.zone__list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 6px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .land path { fill: #E4D9C8; stroke: var(--cream); stroke-width: 1.2; transition: fill .4s; }
.map .land path:hover { fill: #D9CBB6; }
.map .city circle.dot { fill: var(--accent); }
.map .city circle.pulse { fill: none; stroke: var(--accent); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
.map .city text { font: 600 11px var(--sans); fill: var(--ink); }
.map .route { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 5; opacity: .5; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }

/* faq */
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 400 clamp(19px, 2vw, 24px)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font: 300 22px/1 var(--sans); transition: transform .4s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq details p { margin: 0; padding: 0 60px 28px 0; color: var(--muted); max-width: 760px; }

/* contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center;
  margin: 0 clamp(0px, 2vw, 24px); border-radius: 36px 36px 0 0;
  padding: clamp(70px, 10vw, 130px) max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  background: var(--olive); color: #F3EDE4; position: relative; overflow: hidden;
}
.contact::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 230, 190, .18), transparent); }
.contact .eyebrow { color: #E9C9A8; }
.contact h2 { margin-bottom: 30px; }
.contact__perks { list-style: none; padding: 0; margin: 0 0 40px; }
.contact__perks li { padding: 6px 0 6px 30px; position: relative; opacity: .9; }
.contact__perks li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 7px; border: solid #E9C9A8; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.contact__phone { display: block; font: 400 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -.02em; margin-bottom: 14px; }
.contact__wa { font-weight: 600; color: #E9C9A8; }
.form { position: relative; background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form input, .form select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font: 500 16px var(--sans); color: var(--ink); outline: none; transition: border-color .3s, box-shadow .3s;
}
.form input:focus, .form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(181, 83, 47, .12); }
.form input.is-invalid { border-color: #C0392B; }
.form__file { position: relative; display: grid; place-items: center; height: 88px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; transition: border-color .3s, background .3s; }
.form__file:hover { border-color: var(--accent); background: rgba(181, 83, 47, .04); }
.form__file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }
.form__file span { margin: 0 !important; font-size: 14px !important; color: var(--ink) !important; }
.form__hp { position: absolute; left: -9999px; }
.form__status { margin: 0; min-height: 1.4em; font-size: 14.5px; text-align: center; }
.form__status.ok { color: var(--olive); font-weight: 700; }
.form__status.err { color: #B03A2E; }

/* footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 30px var(--pad) 40px; background: var(--olive); color: #E7DFD2; margin: 0 clamp(0px, 2vw, 24px); border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer .logo { font-size: 22px; }
.footer nav { display: flex; gap: 24px; }
.footer p { margin: 0; opacity: .6; }
.footer__cross { color: #E9C9A8; font-weight: 600; }

/* mobile dock */
.dock { display: none; }

/* ---------- reveal helpers ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .prices__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__phone span { display: none; }
  .nav__phone { border: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; justify-content: center; padding: 0; }
  .logo { font-size: 22px; }
  .hero { padding-top: 110px; padding-bottom: 110px; min-height: auto; }
  .hero__text { padding-left: 0; }
  .hero__cta .btn { width: 100%; }
  .sofa { width: 135%; margin-left: -17.5%; margin-top: 20px; }
  .badges li { padding: 0 12px; font-size: 12.5px; }
  .section__head--split, .zone, .contact { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:last-child { grid-column: span 2; }
  .compare { aspect-ratio: 4/3; border-radius: 20px; }
  .steps__list { grid-template-columns: 1fr; }
  .safe { min-height: auto; padding-top: 340px; align-items: flex-end; }
  .safe__img { bottom: auto; height: 380px; }
  .safe__img img { height: 100%; }
  .safe::after { background: linear-gradient(180deg, transparent 0, transparent 200px, var(--cream) 380px); }
  .zone__list { columns: 1; }
  .form__row { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .footer { flex-direction: column; text-align: center; padding-bottom: 110px; }
  .dock {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
    padding: 10px; border-radius: 999px; background: rgba(250, 246, 240, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -10px rgba(40, 25, 15, .35); transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .dock.is-visible { transform: none; }
  .dock .btn { height: 50px; padding: 0 16px; }
}
@media (max-width: 520px) {
  .prices__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .price { padding: 18px 12px; }
  .price h3 { font-size: 17px; }
  .price__val { font-size: 32px; }
}
