:root {
  --wine: #6d1d2e;
  --wine-deep: #4c1320;
  --wine-ink: #2c0a13;
  --rose: #b0485d;
  --silver: #a3a6ad;
  --silver-lt: #d9d9dc;
  --paper: #f4efe7;
  --paper-2: #ebe3d6;
  --ink: #231b1d;
  --muted: #6e6366;
  --line: rgba(35, 27, 29, .14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --head-h: 68px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--paper); color: var(--wine-deep); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: rgba(244, 239, 231, .45); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(244, 239, 231, .08); }
.btn--wine { background: var(--wine); color: var(--paper); }
.btn--wine:hover { background: var(--wine-deep); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: rgba(244, 239, 231, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: auto; }
.brand__word { font: 600 21px/1 "Cinzel", var(--serif); color: var(--wine); letter-spacing: .08em; display: flex; flex-direction: column; }
.brand__word small { font: 600 8.5px/1 var(--sans); letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }

.nav { display: none; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--wine); transition: right .3s var(--ease); }
.nav a:hover::after { right: 0; }

.top__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--wine); font-weight: 700; font-size: 15px; }
.top__phone svg { font-size: 22px; }
.top__phone span { display: none; }

.burger { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-content: center; gap: 7px; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav.is-open {
    display: flex; flex-direction: column;
    position: fixed; inset: var(--head-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 24px 40px -24px rgba(44, 10, 19, .35);
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
}

/* ---------- первый экран ---------- */
.hero { position: relative; display: grid; min-height: calc(100svh - var(--head-h)); color: var(--paper); background: var(--wine-ink); overflow: hidden; }
.hero__photo { margin: 0; position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44, 10, 19, .25) 0%, rgba(44, 10, 19, .55) 40%, rgba(44, 10, 19, .94) 78%);
}
.hero__text { position: relative; z-index: 2; align-self: end; padding: 120px var(--gutter) 40px; }
.hero__watermark { display: none; }
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--silver-lt); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--silver); }
.hero h1 { font-size: clamp(3.4rem, 15vw, 7rem); font-weight: 600; line-height: .92; margin: 18px 0 20px; letter-spacing: -.02em; }
.hero__lead { max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: 1.32rem; line-height: 1.35; color: rgba(244, 239, 231, .86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__cta .btn { flex: 1 1 200px; }
.hero__call { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; text-decoration: none; font-weight: 600; letter-spacing: .04em; color: var(--silver-lt); }
.hero__call svg { font-size: 18px; }

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__text { padding-bottom: 64px; }
  .hero__lead { max-width: 36ch; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --head-h: 80px; }
  .nav { display: flex; gap: 32px; }
  .burger { display: none; }
  .top__phone span { display: inline; }
  .brand img { width: 36px; }
  .brand__word { font-size: 24px; }

  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); background: var(--wine-deep); }
  .hero::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; z-index: 1; }
  .hero__photo { position: relative; inset: auto; grid-column: 2; grid-row: 1; }
  .hero__photo::after { background: linear-gradient(90deg, rgba(76, 19, 32, .55) 0%, rgba(76, 19, 32, 0) 30%); }
  .hero__text { grid-column: 1; grid-row: 1; align-self: center; padding: 72px 64px 72px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); }
  .hero__watermark {
    display: block; position: absolute; width: 520px; right: -150px; bottom: -90px;
    opacity: .07; filter: grayscale(1) brightness(3); pointer-events: none;
  }
  .hero h1 { font-size: clamp(4.6rem, 8.2vw, 8.4rem); }
  .hero__lead { font-size: 1.5rem; }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* ---------- общие секции ---------- */
.section { padding: 72px 0; }
.head { margin-bottom: 36px; }
.head__kicker { font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--wine); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.head__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.head h2 { font-size: clamp(2.3rem, 7vw, 3.6rem); color: var(--wine-ink); }
.head__sub { margin-top: 12px; color: var(--muted); }
.head--light .head__kicker { color: var(--silver-lt); }
.head--light h2 { color: var(--paper); }
.head--light h2 em { color: var(--silver-lt); font-weight: 500; }

@media (min-width: 900px) {
  .section { padding: 112px 0; }
  .head { margin-bottom: 56px; }
}

/* ---------- сферы: «папки дел» ---------- */
.cases { border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); }
.case summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 34px 30px 1fr 24px; align-items: center; gap: 12px;
  padding: 22px 0; transition: color .25s var(--ease);
}
.case summary::-webkit-details-marker { display: none; }
.case__num { font: italic 600 20px/1 var(--serif); color: var(--silver); }
.case__ico { font-size: 28px; color: var(--wine); }
.case__title { font: 600 clamp(1.35rem, 4.6vw, 1.9rem)/1.15 var(--serif); color: var(--wine-ink); }
.case__count { display: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case__toggle { position: relative; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; }
.case__toggle::before, .case__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--wine); translate: -50% -50%; transition: transform .3s var(--ease); }
.case__toggle::after { transform: rotate(90deg); }
.case[open] .case__toggle::after { transform: rotate(0deg); }
.case summary:hover .case__title { color: var(--wine); }
.case ul { list-style: none; margin: 0; padding: 0 0 26px 76px; display: grid; gap: 2px; }
.case[open] ul { animation: drop .45s var(--ease); }
.case li { position: relative; padding: 9px 0 9px 22px; color: var(--ink); border-top: 1px dashed var(--line); }
.case li:first-child { border-top: 0; }
.case li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 1px; background: var(--wine); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .case summary { grid-template-columns: 20px 24px 1fr 24px; gap: 10px; }
  .case__num { font-size: 17px; }
  .case__ico { font-size: 23px; }
  .case ul { padding-left: 34px; }
}
@media (min-width: 900px) {
  .case summary { grid-template-columns: 56px 40px 1fr auto 28px; gap: 20px; padding: 28px 0; }
  .case__num { font-size: 24px; }
  .case__ico { font-size: 32px; }
  .case__count { display: block; }
  .case__toggle { width: 28px; height: 28px; }
  .case ul { padding-left: 116px; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .case li:nth-child(2) { border-top: 0; }
}

/* ---------- преимущества ---------- */
.benefits { background: var(--paper-2); position: relative; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.perks li { background: var(--paper-2); padding: 30px 24px 34px; position: relative; transition: background .3s var(--ease); }
.perks li:hover { background: var(--paper); }
.perks__n { font: 500 3.2rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--silver); opacity: .75; }
.perks h3 { font-size: 1.85rem; color: var(--wine); margin: 18px 0 10px; }
.perks p { color: var(--muted); max-width: 32ch; }
@media (min-width: 640px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .perks { grid-template-columns: repeat(4, 1fr); } .perks li { padding: 40px 28px 48px; } }

/* ---------- прайс ---------- */
.prices { list-style: none; margin: 0; padding: 0; column-gap: 64px; }
.prices li { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.prices span { flex: 0 1 auto; }
.prices i { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted rgba(109, 29, 46, .45); translate: 0 -5px; }
.prices b { flex: none; font: 700 1.25rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--wine); white-space: nowrap; }
@media (min-width: 900px) { .prices { columns: 2; } .prices li { padding: 20px 0; } }
.price__cta { margin-top: 44px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding: 28px 24px; border-left: 2px solid var(--wine); background: var(--paper-2); }
.price__cta p { font: italic 500 1.35rem/1.3 var(--serif); color: var(--wine-ink); }
@media (min-width: 900px) { .price__cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 40px; } }

/* ---------- контакты и форма ---------- */
.contact { background: var(--wine-deep); color: var(--paper); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .2; mix-blend-mode: overlay; pointer-events: none; }
.contact__grid { position: relative; display: grid; gap: 48px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list svg { font-size: 22px; color: var(--silver-lt); margin-top: 18px; }
.contact__list small, .messengers small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--silver); margin-bottom: 4px; }
.contact__list a, .contact__list span { font-size: 1.08rem; text-decoration: none; color: var(--paper); }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.messengers { margin-top: 36px; }
.messengers__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.mlink { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid rgba(244, 239, 231, .25); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .25s var(--ease), border-color .25s var(--ease); }
.mlink svg { font-size: 20px; }
.mlink--viber svg { color: #a89bff; }
.mlink--tg svg { color: #5cc4f2; }
.mlink--wa svg { color: #4fdc8a; }
.mlink:hover { background: rgba(244, 239, 231, .08); border-color: rgba(244, 239, 231, .55); }

.formcard { background: var(--paper); color: var(--ink); padding: 32px 22px; position: relative; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.formcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--wine), var(--silver)); }
.formcard h3 { font-size: 1.9rem; color: var(--wine-ink); }
.formcard__sub { color: var(--muted); margin: 10px 0 24px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: #fffdf9; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(109, 29, 46, .12); }
.field.is-bad input { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.ts { margin-bottom: 16px; }
.form__err { color: #b3261e; font-size: 14px; margin-bottom: 12px; }
.form__note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form__note a { color: var(--wine); }
.form__done, .form__fail { text-align: center; padding: 24px 0 8px; }
.form__done img { margin: 0 auto 16px; }
.form__done h4, .form__fail h4 { font-size: 2rem; color: var(--wine); margin-bottom: 8px; }
.form__fail p { margin-bottom: 20px; color: var(--muted); }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr minmax(0, 470px); gap: 80px; align-items: center; }
  .formcard { padding: 44px 40px; }
}

/* ---------- подвал ---------- */
.foot { background: var(--wine-ink); color: rgba(244, 239, 231, .6); font-size: 13px; padding: 26px 0 96px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.foot a { color: rgba(244, 239, 231, .8); }
@media (min-width: 900px) { .foot { padding-bottom: 26px; } }

/* ---------- плавающая кнопка ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__btn {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--wine); color: var(--paper); display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(244, 239, 231, .85), 0 12px 28px -8px rgba(44, 10, 19, .6);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.fab__btn:hover { background: var(--wine-deep); transform: scale(1.05); }
.fab__btn svg { font-size: 26px; grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.fab__close { opacity: 0; transform: rotate(-90deg); }
.fab.is-open .fab__open { opacity: 0; transform: rotate(90deg); }
.fab.is-open .fab__close { opacity: 1; transform: none; }
.fab__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--wine); animation: ring 2.6s var(--ease) infinite; }
.fab.is-open .fab__btn::after { animation: none; opacity: 0; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.fab__menu { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fab__menu[hidden] { display: none; }
.fab__menu a {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px;
  background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(44, 10, 19, .5);
  animation: pop .3s var(--ease) both;
}
.fab__menu a:nth-child(2) { animation-delay: .04s; } .fab__menu a:nth-child(3) { animation-delay: .08s; } .fab__menu a:nth-child(4) { animation-delay: .12s; }
.fab__menu svg { font-size: 20px; color: var(--wine); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(3) { transition-delay: .08s; } .hero .reveal:nth-child(4) { transition-delay: .16s; }
.hero .reveal:nth-child(5) { transition-delay: .24s; } .hero .reveal:nth-child(6) { transition-delay: .32s; }

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

/* ---------- страница политики ---------- */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); color: var(--wine-ink); margin-bottom: 8px; }
.doc .doc__date { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 1.6rem; color: var(--wine); margin: 36px 0 12px; }
.doc p, .doc li { margin-bottom: 10px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--wine); }
