/* Сайт Юлии Михайловой — палитра по референсу: крем, оливка/шалфей, золото */
:root {
  --bg: #f3eee5; --paper: #faf7f1; --ink: #2e3329; --olive: #46503d; --olive-2: #5b6650;
  --sage: #7b8567; --sage-2: #9aa38a; --sage-soft: #e6e4d8; --gold: #b0925a; --gold-2: #c9ad74;
  --muted: #6b6f62; --line: #dcd4c4; --cream: #f6f1e7;
  --serif: 'Cormorant Garamond', Georgia, serif; --script: 'Marck Script', cursive; --sans: 'Manrope', system-ui, sans-serif;
  --r: 22px; --shadow: 0 1px 2px rgba(46,51,41,.05), 0 18px 40px rgba(70,80,61,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  background-image: radial-gradient(70% 40% at 90% 0%, #ebe4d4 0%, rgba(235,228,212,0) 70%); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 6px;
  background: var(--olive); color: var(--cream); font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid var(--olive); transition: background .25s, color .25s, transform .2s, box-shadow .25s; cursor: pointer; }
.btn svg { width: 20px; height: 20px; transition: transform .25s; }
.btn:hover { background: var(--olive-2); box-shadow: 0 10px 24px rgba(70,80,61,.25); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--olive); }
.btn-ghost:hover { background: var(--olive); color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn-light { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.btn-light:hover { background: #fff; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(243,238,229,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; transition: transform .3s; }
.logo:hover img { transform: rotate(-4deg) scale(1.04); }
.foot .logo img { height: 54px; }
.nav { display: none; margin-left: auto; gap: 30px; }
.nav a { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-2); position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .3s; }
.nav a:hover::after { right: 0; }
.top .btn-sm { margin-left: auto; }
.burger { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 7px; cursor: pointer; }
.burger i { display: block; width: 24px; height: 1.5px; background: var(--olive); transition: transform .3s; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px; padding: 18px 16px 24px; gap: 18px;
  background: var(--bg); box-shadow: 0 20px 30px rgba(46,51,41,.12); }
@media (min-width: 960px) {
  .nav { display: flex; } .burger { display: none; } .top .btn-sm { margin-left: 26px; }
}

/* ---------- первый экран ---------- */
.hero { display: grid; gap: 28px; padding-top: 18px; padding-bottom: 36px; }
.script { font-family: var(--script); font-size: clamp(30px, 7vw, 44px); color: var(--gold); line-height: 1; }
.display { font-family: var(--serif); font-weight: 600; text-transform: uppercase; color: var(--olive); line-height: .9;
  font-size: clamp(38px, 12.6vw, 116px); letter-spacing: -.01em; margin-top: 8px; }
.display span { display: block; }
.eyebrow { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.lead { margin-top: 16px; max-width: 470px; color: var(--muted); font-size: 17px; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 auto; }
.hero-media { position: relative; justify-self: center; width: min(calc(100% - 20px), 460px); }
.arch { position: relative; aspect-ratio: 4 / 5.2; border-radius: 999px 999px 18px 18px; overflow: hidden;
  background: linear-gradient(180deg, #c3c8b2 0%, #a7af95 60%, #959e83 100%); box-shadow: var(--shadow); }
.arch img { position: absolute; left: 50%; top: 15%; width: 70%; height: auto; max-width: none; transform: translateX(-50%);
  filter: saturate(.85) contrast(1.03); will-change: transform; }
.arch picture { display: block; position: absolute; inset: 0; will-change: transform; }
.arch-sm picture { position: static; width: 100%; height: 100%; }
.arch-line { position: absolute; inset: -12px -12px 24px 12px; border: 1px solid var(--gold-2); border-radius: 999px 999px 18px 18px; pointer-events: none; }
.badge { position: absolute; right: -8px; top: 20%; width: 104px; height: 104px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; }
.badge svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font: 700 8.6px var(--sans); text-transform: uppercase; fill: var(--olive); }
.badge-star { width: 22px; height: 22px; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.sprig { position: absolute; right: -70px; bottom: -10px; width: 120px; height: 300px; color: var(--sage); opacity: .8; display: none;
  transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; padding-top: 30px; padding-bottom: 56px; }
  .hero-cta .btn { flex: 0 0 auto; }
  .sprig { display: block; }
}

/* ---------- цифры ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; background: var(--sage); color: var(--cream); border-radius: 14px; overflow: hidden; }
.stat { position: relative; padding: 22px 18px 20px; display: grid; gap: 4px; }
.stat:nth-child(odd) { border-right: 1px solid rgba(246,241,231,.22); }
.stat:nth-child(-n+2) { border-bottom: 1px solid rgba(246,241,231,.22); }
.stat b { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 7vw, 40px); line-height: 1; white-space: nowrap; }
.stat span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; line-height: 1.4; }
.stat .spk { width: 18px; height: 18px; color: var(--gold-2); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 30px clamp(16px, 2.2vw, 30px) 28px; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
  .stat b { font-size: clamp(30px, 3vw, 40px); }
  .stat .spk { grid-row: span 2; width: 24px; height: 24px; }
  .stat, .stat:nth-child(odd) { border-right: 1px solid rgba(246,241,231,.22); } .stat:last-child { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 0; }
}

/* ---------- секции ---------- */
.sec { padding-top: 72px; }
@media (min-width: 900px) { .sec { padding-top: 110px; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.sec-head.center { justify-content: center; text-align: center; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
h2 { font-family: var(--serif); font-weight: 600; text-transform: uppercase; color: var(--olive); font-size: clamp(34px, 7vw, 56px); line-height: 1; letter-spacing: .01em; }
h2 em { font-style: italic; text-transform: none; color: var(--gold); font-weight: 500; }
h2 .spk { width: 22px; height: 22px; color: var(--gold); vertical-align: middle; margin-left: 6px; }
.more { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-2); }
.more svg { width: 18px; height: 18px; transition: transform .25s; } .more:hover svg { transform: translateX(4px); }

/* ---------- услуги ---------- */
.cards { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px 16px;
  transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,146,90,.16), rgba(176,146,90,0) 70%); transition: transform .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.card:hover::after { transform: scale(1.6); }
.card .ph { margin: -16px -14px 0; aspect-ratio: 4 / 3; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .ph img { transform: scale(1.06); }
.card .ic { position: relative; z-index: 1; width: 40px; height: 40px; padding: 8px; margin-top: -20px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 6px 14px rgba(46,51,41,.12); color: var(--olive); }
.card-dark .ic { background: var(--olive); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.card h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 379px) { .card { padding: 14px 11px; } .card .ph { margin: -14px -11px 0; } .card h3 { font-size: 17px; } .card p { font-size: 12px; } }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.1; color: var(--olive); margin-top: 8px; }
.card .sum { margin-top: 6px; font-weight: 800; font-size: 13px; letter-spacing: .02em; color: var(--gold); }
.card p { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
@media (min-width: 760px) {
  .card { border-radius: var(--r); padding: 24px 22px 22px; }
  .card .ph { margin: -24px -22px 0; }
  .card .ic { width: 52px; height: 52px; padding: 11px; margin-top: -26px; }
  .card h3 { font-size: 25px; margin-top: 12px; } .card .sum { font-size: 15px; margin-top: 8px; } .card p { font-size: 14.5px; margin-top: 8px; }
}
.card-dark { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.card-dark .ic, .card-dark h3 { color: var(--cream); } .card-dark p { color: rgba(246,241,231,.8); } .card-dark .sum { color: var(--gold-2); }

/* ---------- калькулятор ---------- */
.calc { display: grid; gap: 34px; background: var(--sage-soft); border-radius: 28px; padding: 34px 22px 0; overflow: hidden; position: relative; }
.calc::before { content: ''; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid var(--gold-2); opacity: .6; }
.calc-text p { margin: 14px 0 22px; color: var(--muted); max-width: 440px; }
.calc-url { margin-top: 14px; font-family: var(--serif); font-size: 22px; color: var(--olive-2); font-style: italic; }
.phone { justify-self: center; width: 270px; height: 420px; border-radius: 40px 40px 0 0; background: #2e3329; padding: 10px 10px 0; box-shadow: 0 30px 60px rgba(46,51,41,.25); position: relative; z-index: 1; }
.phone-in { width: 100%; height: 100%; border-radius: 31px 31px 0 0; overflow: hidden; background: #f7f2ea; }
.phone-in img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .calc { grid-template-columns: 1.1fr .9fr; align-items: end; padding: 60px 60px 0; }
  .calc-text { padding-bottom: 60px; }
  .phone { width: 300px; height: 470px; }
}

/* ---------- обо мне ---------- */
.about { display: grid; gap: 30px; align-items: center; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-size: 17px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1.5c.6 5.6 4.9 9.9 10.5 10.5-5.6.6-9.9 4.9-10.5 10.5C11.4 16.9 7.1 12.6 1.5 12 7.1 11.4 11.4 7.1 12 1.5z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 1.5c.6 5.6 4.9 9.9 10.5 10.5-5.6.6-9.9 4.9-10.5 10.5C11.4 16.9 7.1 12.6 1.5 12 7.1 11.4 11.4 7.1 12 1.5z'/></svg>") center/contain no-repeat; }
.sign { font-family: var(--script); font-size: 38px; color: var(--gold); margin-top: 26px; }
.about-photo { justify-self: center; width: min(100%, 340px); }
.arch-sm { aspect-ratio: 4 / 5; }
.arch-sm img { position: static; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr .8fr; gap: 60px; } .about-photo { justify-self: end; } }

/* ---------- шаги ---------- */
.steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { position: relative; display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.steps .n { position: absolute; right: 6px; top: 18px; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .1em; }
.steps .ic { grid-row: span 2; width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--sage-soft); color: var(--olive); }
.steps h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--olive); line-height: 1.1; }
.steps p { color: var(--muted); font-size: 14.5px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; }
  .steps li { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 10px 18px; border-bottom: 0; border-right: 1px solid var(--line); }
  .steps li:last-child { border-right: 0; }
  .steps .n { position: static; order: -1; margin-bottom: 10px; }
  .steps .ic { grid-row: auto; width: 64px; height: 64px; padding: 15px; margin-bottom: 14px; transition: transform .3s, background .3s; }
  .steps li:hover .ic { transform: translateY(-4px) rotate(-6deg); background: #dcdccb; }
  .steps h3 { font-size: 23px; } .steps p { margin-top: 6px; }
}

/* ---------- отзывы + призыв ---------- */
.band { margin-top: 80px; background: var(--sage); color: var(--cream); position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; left: -160px; top: -200px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(201,173,116,.35); }
.band-in { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; position: relative; }
.qmark { font-family: var(--serif); font-size: 96px; line-height: .6; color: var(--gold-2); height: 44px; }
.qviewport { position: relative; min-height: 190px; }
.q { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; pointer-events: none; }
.q.on { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.q blockquote { font-family: var(--serif); font-size: clamp(22px, 4.6vw, 28px); line-height: 1.3; font-style: italic; }
.q figcaption { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.dots { display: flex; gap: 10px; margin-top: 18px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(246,241,231,.4); cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.dots button.on { background: var(--gold-2); transform: scale(1.2); }
.env { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold-2); display: grid; place-items: center; color: var(--gold-2); margin-bottom: 18px; }
.env svg { width: 34px; height: 34px; }
.band-cta h2 { color: var(--cream); font-size: clamp(30px, 6vw, 44px); }
.band-cta h2 em { color: var(--gold-2); }
.band-cta p { margin: 12px 0 22px; color: rgba(246,241,231,.85); max-width: 420px; }
.band-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.soc { display: flex; gap: 10px; }
.soc a { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(246,241,231,.55); display: grid; place-items: center; transition: background .25s, color .25s; }
.soc a svg { width: 22px; height: 22px; }
.soc a:hover { background: var(--cream); color: var(--olive); }
@media (min-width: 900px) {
  .band-in { grid-template-columns: 1.15fr 1px .85fr; gap: 60px; padding-top: 80px; padding-bottom: 80px; align-items: center; }
  .band-in::after { content: ''; grid-column: 2; grid-row: 1; align-self: stretch; background: rgba(246,241,231,.25); }
  .band-cta { grid-column: 3; grid-row: 1; }
}

/* ---------- подвал ---------- */
.foot { display: grid; gap: 22px; padding-top: 34px; padding-bottom: 20px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-tag { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; line-height: 1.6; }
.foot-contacts { display: grid; gap: 8px; font-size: 15px; }
.foot-contacts a, .foot-contacts span { display: inline-flex; align-items: center; gap: 10px; }
.foot-contacts svg { width: 18px; height: 18px; color: var(--gold); }
.foot-soc { display: flex; gap: 10px; }
.foot-soc a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--olive); transition: background .25s, color .25s; }
.foot-soc a svg { width: 20px; height: 20px; } .foot-soc b { font-size: 10.5px; font-weight: 800; }
.foot-soc a:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.copy { padding-bottom: 28px; font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr auto auto; align-items: center; gap: 50px; } }

/* ---------- первый экран: анимация на CSS, стартует сразу с отрисовкой, не ждёт скриптов ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes archIn { from { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); } to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); } }
@keyframes zoomIn { from { transform: translateX(-50%) scale(1.08); } to { transform: translateX(-50%) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }
.rv-h { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text .rv-h:nth-child(1) { animation-delay: .05s; } .hero-text .rv-h:nth-child(2) { animation-delay: .12s; }
.hero-text .rv-h:nth-child(3) { animation-delay: .2s; }  .hero-text .rv-h:nth-child(4) { animation-delay: .27s; }
.hero-text .rv-h:nth-child(5) { animation-delay: .34s; }
.hero .arch { animation: archIn 1s .1s cubic-bezier(.65,0,.35,1) both; }
.hero .arch img { animation: zoomIn 1.3s .1s cubic-bezier(.2,.7,.2,1) both; }
.arch-line { animation: fadeIn .9s .55s both; }
.badge { animation: popIn .7s .75s cubic-bezier(.34,1.56,.64,1) both; }

/* ---------- появление при прокрутке (только если работает JS) ---------- */
.js .rv { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; } .badge svg:first-child, .sprig { animation: none; } html { scroll-behavior: auto; }
  .rv-h, .hero .arch, .hero .arch img, .arch-line, .badge { animation: none; }
}
