/* Анна Кодочигова, психолог – стили сайта.
   Знак сайта – годовые кольца (рост и устойчивость). Тёплая бумага, хвойный, глина. */
:root {
  --paper: #F7F2EA;
  --paper-2: #EFE8DB;
  --card: #FFFCF7;
  --ink: #22302A;
  --ink-2: #566259;
  --pine: #2C473B;
  --pine-2: #3B5B4C;
  --sage: #8BA58F;
  --sage-soft: #DCE5D7;
  --clay: #A8532E;
  --clay-2: #8E4423;
  --peach: #EFD6C5;
  --line: #DDD3C2;
  --serif: 'Cormorant Variable', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Onest Variable', 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-bg: rgba(247, 242, 234, .86);
}
/* Светлая тема (выбирается в админке): белый фон, прохладные нейтральные полосы, акценты те же */
:root[data-theme="light"] {
  --paper: #FFFFFF;
  --paper-2: #F3F5F1;
  --card: #FFFFFF;
  --ink-2: #555E58;
  --sage-soft: #E2EAE0;
  --peach: #F6E3D7;
  --line: #E2E5DF;
  --header-bg: rgba(255, 255, 255, .88);
}
:root[data-theme="light"] .mcard, :root[data-theme="light"] .ncard, :root[data-theme="light"] .review, :root[data-theme="light"] .values li { box-shadow: 0 1px 2px rgba(34, 48, 42, .04); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; transition: color .25s, text-decoration-color .25s; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.1vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.8vw, 52px); }
h1 em, h2 em, blockquote em { font-style: italic; color: var(--clay); font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.wrap--text { max-width: 800px; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--pine); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.icon svg { width: 100%; height: 100%; stroke-width: 1.7; }
.icon--back svg { transform: rotate(180deg); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--clay); margin-bottom: 18px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 28px;
  border: 1px solid transparent; border-radius: 999px; font-weight: 500; font-size: 16px; line-height: 1.25; text-decoration: none; text-align: center;
  background: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--accent { background: var(--clay); color: #fff; }
.btn--accent:hover { background: var(--clay-2); }
.btn--ghost { border-color: var(--pine); color: var(--pine); }
.btn--ghost:hover { background: var(--pine); color: var(--paper); }
.btn--dark { background: var(--pine); color: var(--paper); }
.btn--dark:hover { background: var(--pine-2); }
.btn--sm { min-height: 44px; padding: 8px 22px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--pine); text-decoration: none; border-bottom: 1px solid var(--sage); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.more:hover { color: var(--clay); border-color: var(--clay); }

/* ---------- Плашка администратора ---------- */
.adminbar { background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.4; }
.adminbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.adminbar--maint { background: var(--clay-2); }
.adminbar__admin { margin-left: auto; font-weight: 500; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.header.is-scrolled { border-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; margin: 0; }
.logo__mark { flex: none; width: 34px; height: 37px; color: var(--pine); overflow: visible; }
.logo__mark g { transform-origin: 32px 50px; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.logo:hover .logo__mark g { transform: scale(1.06) rotate(-3deg); }
.logo__leaf { fill: var(--clay); stroke: var(--clay); }
.logo__text { display: flex; flex-direction: column; }
.logo b { font: 500 25px/1.1 var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.logo__text > span { font-size: 12px; letter-spacing: .08em; color: var(--ink-2); margin-top: 4px; }
.logo--light .logo__mark { color: var(--paper); }
.logo--light .logo__leaf { fill: #E6B596; stroke: #E6B596; }
.logo--light .logo__text > span { color: rgba(247, 242, 234, .7); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: 15px; padding: 6px 0; white-space: nowrap; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; padding: 0; background: none; border: 0; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; content: ''; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 76px 0 0; z-index: 39; background: var(--paper); overflow-y: auto; padding: 18px 0 40px; }
.mnav a { display: block; font: 500 32px/1.25 var(--serif); padding: 8px 0; text-decoration: none; }
.mnav a[aria-current] { color: var(--clay); }
.mnav__contact { margin-top: 26px; display: grid; gap: 18px; justify-items: start; }

/* ---------- Кольца ---------- */
.rings { width: 100%; height: auto; overflow: visible; }
.rings path { fill: rgba(139, 165, 143, .11); stroke: var(--pine); stroke-opacity: .32; stroke-width: 1.1; transform-box: view-box; transform-origin: 300px 300px; }
.sprout path { fill: var(--sage-soft); stroke: var(--pine); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill-rule: nonzero; }
.sprout path:first-child { fill: none; }
.portrait { position: relative; width: 100%; max-width: 620px; margin: 0 auto; }
.arch { position: relative; width: min(100%, 430px); margin: 0 auto; padding: 5% 0 2%; }
.arch__rings { position: absolute; left: -15%; top: -3%; width: 130%; max-width: none; z-index: 0; }
.arch__photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 26px 26px; background: var(--sage-soft); box-shadow: 0 30px 60px -32px rgba(34, 48, 42, .55); }
.arch__photo img { width: 100%; height: 100%; object-fit: cover; }
.arch__badge { position: absolute; z-index: 2; left: -22px; bottom: 9%; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--pine); color: var(--paper); font-size: 25px; box-shadow: 0 0 0 6px var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .portrait .rings path, .arch__rings path, .maint__rings path, .cta__rings path { animation: breathe 11s ease-in-out infinite; animation-delay: calc(var(--i) * -.42s); }
  .sprout { transform-box: view-box; transform-origin: 300px 352px; animation: sway 9s ease-in-out infinite; }
}
/* Слово-акцент в главном заголовке подчёркнуто мягким маркером */
h1 em { background: linear-gradient(var(--peach), var(--peach)) no-repeat 0 88% / 100% .2em; }
@media (prefers-reduced-motion: no-preference) {
  /* Первый экран и шапка страницы появляются по очереди, когда страница открылась */
  .hero__text > *, .phead .wrap > * { animation: rise .9s var(--ease) backwards; }
  .hero__text > :nth-child(2), .phead .wrap > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3), .phead .wrap > :nth-child(3) { animation-delay: .16s; }
  .hero__text > :nth-child(4), .phead .wrap > :nth-child(4) { animation-delay: .24s; }
  .hero__art { animation: fade 1.6s var(--ease) .2s backwards; }
  h1 em { background-size: 0 .2em; animation: mark 1.1s var(--ease) .75s forwards; }
  /* Росток в логотипе «прорастает» при открытии страницы */
  .header .logo__mark g { animation: sprout-in 1.1s var(--ease) .1s backwards; }
  /* Пунктир между шагами прорисовывается по очереди */
  .steps li.rv .steps__top::after { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) calc(var(--d, 0) * 180ms + .35s); }
  .steps li.rv.is-in .steps__top::after { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes mark { to { background-size: 100% .2em; } }
@keyframes sprout-in { from { opacity: 0; transform: scale(.35) rotate(-14deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.97); } 50% { transform: scale(1.03); } }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 84px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(20px, 4vw, 56px); }
.hero__lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 560px; margin: 26px 0 34px; }
.hero__art { transform: scale(1.12); transform-origin: left center; }

/* ---------- Девиз ---------- */
.motto { background: var(--pine); color: var(--paper); padding: clamp(56px, 8vw, 104px) 0; text-align: center; }
.motto__in { display: grid; justify-items: center; gap: 22px; }
.motto__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(247, 242, 234, .35); font-size: 22px; }
.motto blockquote { margin: 0; max-width: 980px; font: 500 clamp(34px, 5vw, 68px)/1.1 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.motto blockquote em { color: #E6B596; }
.motto p { max-width: 560px; color: rgba(247, 242, 234, .78); font-size: 18px; }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--top0 { padding-top: 0; }
.section--soft { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }
.section--cta { padding-top: clamp(40px, 5vw, 72px); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: clamp(26px, 3.5vw, 46px); }
.section__head .eyebrow { margin-bottom: 12px; }
.section__title { margin-bottom: 32px; }

/* ---------- Список запросов ---------- */
.rlist { border-top: 1px solid var(--line); }
.rrow {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px 26px; align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
/* Линия, которая пробегает по нижней границе при наведении */
.rrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.rrow__num { font: italic 500 21px/1 var(--serif); color: var(--clay); }
.rrow__title { font: 500 clamp(27px, 2.9vw, 40px)/1.1 var(--serif); transition: color .3s; }
.rrow__text { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.rrow__arrow { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
@media (hover: hover) {
  .rrow:hover::after { transform: scaleX(1); }
  .rrow:hover .rrow__title { color: var(--pine); }
  .rrow:hover .rrow__arrow { background: var(--clay); border-color: var(--clay); color: #fff; }
  /* Стрелка улетает вверх-вправо и возвращается снизу-слева – кружок остаётся на месте */
  .rrow:hover .rrow__arrow .icon { animation: rrow-arrow .55s var(--ease); }
}
@keyframes rrow-arrow {
  0% { transform: translate(0, 0); }
  45% { transform: translate(160%, -160%); }
  46% { transform: translate(-160%, 160%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Обо мне ---------- */
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.about__art .portrait { max-width: 480px; }
.about__text h2 { margin-bottom: 18px; }
.about__text .more { margin-top: 28px; }
.dirs { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.dirs li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dirs b { font: 500 22px/1.2 var(--serif); }
.dirs span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- Методы ---------- */
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(26px, 3vw, 40px); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s;
}
.mcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(34, 48, 42, .45); }
.mcard__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sage-soft); color: var(--pine); font-size: 21px; margin-bottom: 8px; transition: transform .5s var(--ease); }
@media (hover: hover) { .mcard:hover .mcard__icon { transform: rotate(-10deg) scale(1.08); } }
.mcard:nth-child(even) .mcard__icon { background: var(--peach); color: var(--clay-2); }
.mcard__title { font: 500 clamp(26px, 2.4vw, 34px)/1.12 var(--serif); }
.mcard__text { color: var(--ink-2); flex: 1; }
.mcard .more { margin-top: 10px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px); counter-reset: st; }
.steps li { display: grid; gap: 8px; align-content: start; }
.steps__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.steps__icon { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 18px; background: var(--sage-soft); color: var(--pine); font-size: 24px; }
.steps__num { font: italic 500 30px/1 var(--serif); color: var(--clay); }
/* Пунктир от шага к шагу, пока шаги стоят в один ряд */
.steps li:not(:last-child) .steps__top::after { content: ""; flex: 1; margin-left: 4px; border-top: 1.5px dashed var(--line); }
.steps b { font: 500 25px/1.15 var(--serif); }
.steps__text { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* ---------- Цены ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pricing--1 { grid-template-columns: minmax(0, 420px); }
.pricing--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(26px, 3vw, 38px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.price__title { font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); }
.price__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__value b { font: 500 clamp(40px, 4.4vw, 58px)/1 var(--serif); letter-spacing: -.01em; }
.price__value small { font-size: 16px; color: var(--ink-2); }
.price__value--long b { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.15; }
.price__text { color: var(--ink-2); flex: 1; }
.price .btn { margin-top: 6px; }
.price--accent { background: var(--pine); border-color: var(--pine); color: #F7F2EA; }
.price--accent .price__title { color: #E6B596; }
.price--accent .price__value small, .price--accent .price__text { color: rgba(247, 242, 234, .8); }
.pricing__note { margin-top: 20px; max-width: 720px; }

/* ---------- Отзывы ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.review { margin: 0; padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.review > .icon { color: var(--sage); font-size: 22px; }
.review blockquote { margin: 14px 0 16px; font-size: 17px; }
.review figcaption { font-weight: 500; color: var(--ink-2); font-size: 15px; }

/* ---------- Блог ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ncard { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.ncard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(34, 48, 42, .45); }
.ncard__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.04); }
.ncard__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.ncard__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--ink-2); }
.ncard__title { font: 500 26px/1.14 var(--serif); }
.ncard__text { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.ngrid--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngrid--blog .ncard:first-child { grid-column: 1 / -1; flex-direction: row; }
.ngrid--blog .ncard:first-child .ncard__media { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
.ngrid--blog .ncard:first-child .ncard__body { flex: 1; justify-content: center; padding: clamp(24px, 3.5vw, 48px); }
.ngrid--blog .ncard:first-child .ncard__title { font-size: clamp(30px, 3vw, 42px); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; }
.pager a[aria-current] { background: var(--pine); border-color: var(--pine); color: var(--paper); }

/* ---------- Блок с формой ---------- */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(28px, 5.5vw, 72px); background: var(--pine); color: var(--paper); border-radius: clamp(22px, 3vw, 36px); scroll-margin-top: 96px; }
.cta__rings { position: absolute; left: -14%; bottom: -46%; width: 62%; pointer-events: none; }
.cta__rings path { fill: rgba(247, 242, 234, .025); stroke: var(--paper); stroke-opacity: .17; }
.cta__text { position: relative; }
.cta__text h2 { font-size: clamp(38px, 4.6vw, 62px); margin-bottom: 18px; }
.cta__text h2 em { color: #E6B596; }
.cta__text p { color: rgba(247, 242, 234, .82); max-width: 460px; }
.cta__form { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); }

/* ---------- Формы ---------- */
.lform__fields { display: grid; gap: 14px; }
.lform__trap { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; font: 400 16px/1.45 var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #8d9188; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(44, 71, 59, .14); }
.field [aria-invalid="true"] { border-color: var(--clay); }
.consent { display: flex; gap: 10px; margin: 16px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.consent a { text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.consent a:hover { color: var(--clay); text-decoration-color: currentColor; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--pine); }
.lform__status { min-height: 0; font-size: 14.5px; margin-bottom: 10px; }
.lform__status:empty { margin: 0; }
.lform__status.is-ok { color: var(--pine); font-weight: 500; }
.lform__status.is-err { color: var(--clay-2); font-weight: 500; }
.lform .btn { width: 100%; }
.lform.is-sent .lform__fields, .lform.is-sent .consent, .lform.is-sent .btn { display: none; }
.lform.is-sent .lform__status { font: 500 24px/1.25 var(--serif); margin: 8px 0; }
/* После отправки остаётся только благодарность: заголовок и подсказка над формой скрываются */
:is(.modal, .contacts__form, .order):has(.lform.is-sent) > :is(h2, .muted) { display: none; }
.modal .lform.is-sent .lform__status { margin: 0; padding-right: 36px; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(247, 242, 234, .86); font-size: 15px; padding: clamp(44px, 5vw, 68px) 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: clamp(28px, 4vw, 64px); }
.footer a { text-decoration: none; }
/* Ссылки в подвале при наведении теплеют; у логотипа свой эффект – покачивается росток */
.footer a:not(.logo):hover { color: #E6B596; }
.footer b { display: block; font-weight: 500; color: var(--paper); margin-bottom: 12px; }
.footer .logo { margin-bottom: 18px; color: var(--paper); }
.footer .logo b { margin: 0; font-weight: 500; }
.footer__brand p { max-width: 360px; line-height: 1.55; }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer__book { background: none; border: 0; padding: 0; margin-top: 8px; color: #E6B596; font-weight: 500; text-align: left; transition: color .25s; }
.footer__book:hover { color: var(--paper); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 22px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(247, 242, 234, .15); font-size: 13.5px; color: rgba(247, 242, 234, .62); }
.footer__dev { color: rgba(247, 242, 234, .86); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--pine); transition: background .2s, color .2s; }
.social a:hover { background: var(--pine); color: var(--paper); text-decoration: none; }
.social--light a { border-color: rgba(247, 242, 234, .3); color: var(--paper); }
.social--light a:hover { background: var(--paper); color: var(--pine); }

/* ---------- Окно записи ---------- */
/* Сертификаты и дипломы */
.section__note { max-width: 460px; font-size: 15.5px; line-height: 1.55; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(22px, 2.6vw, 32px) clamp(16px, 2.2vw, 28px); }
.cert { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cert__img { display: block; aspect-ratio: 1; padding: clamp(12px, 1.6vw, 20px); margin-bottom: 9px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); cursor: zoom-in; transition: border-color .2s; }
.cert__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(34, 48, 42, .16)); transition: transform .35s ease; }
.cert__img:hover { border-color: var(--pine); }
.cert__img:hover img { transform: scale(1.03); }
.cert__title { font: 500 20px/1.2 var(--serif); }
.cert__note { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 64px 76px 18px; border: 0; background: rgba(20, 28, 24, .96); color: #F7F2EA; }
.lightbox::backdrop { background: transparent; }
.lightbox__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 14px; height: 100%; margin: 0; }
.lightbox__fig img { max-width: 100%; max-height: 100%; min-height: 0; align-self: center; object-fit: contain; border-radius: 4px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.lightbox figcaption { max-width: 720px; text-align: center; font-size: 15px; line-height: 1.45; color: rgba(247, 242, 234, .75); }
.lightbox figcaption b { font: 500 21px/1.25 var(--serif); color: #F7F2EA; }
.lightbox figcaption small { display: block; margin-top: 4px; font-size: 13px; color: rgba(247, 242, 234, .5); }
.lightbox__btn { position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(247, 242, 234, .1); color: #F7F2EA; }
.lightbox__btn:hover { background: rgba(247, 242, 234, .2); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev, .lightbox__next { top: calc(50% - 40px); }
.lightbox__prev { left: 14px; }
.lightbox__prev svg { transform: scaleX(-1); }
.lightbox__next { right: 14px; }
.modal { width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: 26px; background: var(--paper); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(34, 48, 42, .55); backdrop-filter: blur(3px); }
.modal h2 { font-size: 34px; padding-right: 36px; margin-bottom: 8px; }
.modal > .muted { font-size: 15.5px; line-height: 1.5; margin-bottom: 18px; }
.modal__close { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 18px; }
.modal__close:hover { background: var(--paper-2); }

/* ---------- Внутренние страницы ---------- */
.phead { padding: clamp(28px, 4vw, 52px) 0 clamp(30px, 4vw, 54px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 22px; font-size: 13.5px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--clay); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.phead h1 { font-size: clamp(40px, 5.4vw, 72px); }
.phead__lead { max-width: 720px; margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.phead__date { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.wrap--text h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; }
.phead--about { overflow: clip; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(20px, 4vw, 60px); }
.about-hero__art .portrait { max-width: 460px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: grid; gap: 8px; align-content: start; padding: 26px clamp(0px, 2vw, 28px); }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { font: 500 clamp(30px, 3vw, 40px)/1.1 var(--serif); color: var(--pine); }
.facts span { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.two { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(22px, 5vw, 72px); align-items: start; }
.two__head .muted { margin-top: 16px; max-width: 420px; }
.dirs--wide { margin-top: 30px; }
.values { display: grid; gap: 12px; }
.values li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 2px 18px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.values__icon { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sage-soft); color: var(--pine); font-size: 21px; }
.values b { font: 500 25px/1.2 var(--serif); }
.values span:last-child { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.detail__side { position: sticky; top: 96px; scroll-margin-top: 96px; }
.order { background: var(--paper-2); border-radius: var(--radius); padding: clamp(22px, 2.5vw, 32px); }
.order h2 { font-size: 34px; margin-bottom: 8px; }
.order > .muted { font-size: 15.5px; line-height: 1.5; margin-bottom: 18px; }
.prose { font-size: 17.5px; line-height: 1.72; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(29px, 2.9vw, 38px); margin-top: 1.5em; }
.prose h3 { font-size: 26px; margin-top: 1.3em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
/* В тексте подчёркивание остаётся, но бледное – при наведении оно и цвет становятся насыщеннее */
.prose a { color: var(--clay); text-underline-offset: 3px; text-decoration-color: rgba(168, 83, 46, .35); }
.prose a:hover { color: var(--clay-2); text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; margin-top: .5em; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border: 1.5px solid var(--clay); border-radius: 50%; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--clay); font: italic 500 clamp(25px, 2.5vw, 32px)/1.25 var(--serif); }
.about__text .prose { font-size: 17px; }
.cover { margin: 0 0 clamp(26px, 3vw, 40px); border-radius: var(--radius); overflow: hidden; }
.article-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font: 500 clamp(23px, 2vw, 27px)/1.2 var(--serif); cursor: pointer; list-style: none; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--pine); }
.faq summary .icon { color: var(--clay); transition: transform .45s var(--ease); }
.faq details[open]:not(.is-closing) summary .icon { transform: rotate(135deg); }
.faq__a { overflow: hidden; }
.faq p { padding: 0 44px 22px 0; color: var(--ink-2); }
.crisis { display: flex; gap: 14px; padding: 20px 22px; border-radius: 16px; background: var(--peach); color: #4f2a18; font-size: 15.5px; line-height: 1.55; }
.crisis .icon { margin-top: 2px; font-size: 19px; }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contacts__form { background: var(--paper-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); scroll-margin-top: 96px; }
.contacts__form h2 { font-size: clamp(30px, 3vw, 38px); margin-bottom: 8px; }
.contacts__form > .muted { margin-bottom: 18px; font-size: 15.5px; }
.contacts__info .crisis { margin-top: 28px; }
.clist { margin: 0; border-top: 1px solid var(--line); }
.clist > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.clist dt { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; }
.clist dd { margin: 0; font-weight: 500; }
.clist dd a { text-decoration: none; }
.clist dd a:hover { color: var(--clay); }
.clist dd .icon { vertical-align: -2px; font-size: 14px; }
.clist__phones { display: grid; gap: 4px; }
.clist__note { display: block; margin-top: 4px; font-weight: 400; font-size: 15px; color: var(--ink-2); }
.clist__map { display: table; margin-top: 6px; font-weight: 400; font-size: 15px; color: var(--clay); }
.clist dd .clist__map:hover { color: var(--clay-2); }
.map { overflow: hidden; height: clamp(320px, 42vw, 460px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.nf { padding: clamp(30px, 6vw, 70px) 0 clamp(50px, 8vw, 100px); text-align: center; }
.nf__in { display: grid; justify-items: center; gap: 16px; }
.nf__rings { width: min(280px, 60vw); }

/* Заглушка режима обслуживания */
.maint-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.maint { display: grid; justify-items: center; gap: 18px; max-width: 520px; text-align: center; }
.maint__rings { width: min(280px, 64vw); }
.maint .logo__text { align-items: center; }
.maint .logo b { font-size: 38px; }
.maint__text { color: var(--ink-2); font-size: 18px; }
.maint > a { color: var(--pine); font-weight: 500; text-decoration: none; }
.maint > a:hover { color: var(--clay); }

/* ---------- Появление при прокрутке ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li .steps__top::after { display: none; }
  .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngrid:not(.ngrid--blog) .ncard:nth-child(3) { display: none; }
  .mgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing, .pricing--2 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .mgrid--3 .mcard:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .hero__grid, .about, .about-hero, .two, .detail, .contacts, .cta { grid-template-columns: minmax(0, 1fr); }
  .hero__art { transform: none; max-width: 400px; margin: 8px auto 0; width: 100%; }
  .about__art .portrait, .about-hero__art .portrait { max-width: 340px; }
  .about-hero__art { padding: 16px 0 10px; }
  .arch { width: min(78%, 340px); }
  .arch__badge { left: -14px; width: 56px; height: 56px; font-size: 21px; }
  .detail__side { position: static; }
  .rrow { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .rrow__text { grid-column: 2 / -1; grid-row: 2; }
  .rrow__arrow { grid-column: 3; grid-row: 1; }
  .ngrid--blog .ncard:first-child { flex-direction: column; }
  .ngrid--blog .ncard:first-child .ncard__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .ngrid:not(.ngrid--blog) .ncard:nth-child(3) { display: flex; }
  .ngrid { grid-template-columns: minmax(0, 1fr); }
  .ngrid--blog { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta__rings { width: 110%; left: -30%; bottom: auto; top: -30%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert__title { font-size: 17px; }
  .cert__note { font-size: 13.5px; }
  .lightbox { padding: 60px 10px 14px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; }
  .lightbox figcaption { padding: 0 54px; }
  .lightbox figcaption b { font-size: 18px; }
  .header__in { min-height: 66px; }
  .mnav { inset: 66px 0 0; }
  .logo { gap: 10px; }
  .logo__mark { width: 30px; height: 33px; }
  .logo b { font-size: 22px; }
  .btn-row .btn { width: 100%; }
  .mgrid, .mgrid--3 { grid-template-columns: minmax(0, 1fr); }
  .mgrid--3 .mcard:nth-child(3) { display: flex; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; }
  .steps__top { grid-row: span 2; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
  .steps__icon { width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
  .steps__num { font-size: 22px; }
  .dirs li { grid-template-columns: minmax(0, 1fr); }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts li { padding: 20px 0; }
  .clist > div { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .faq p { padding-right: 0; }
  .prose { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .rrow:hover .rrow__arrow .icon { animation: none; }
}
