:root {
  color-scheme: dark;
  --bg: #1B2B27;
  --paper: #223630;
  --tint: #2A423A;
  --ink: #E8EDE8;
  --ink-soft: #AEC0B9;
  --moss: #EBC4B0;
  --moss-deep: #F6D9CA;
  --water: #A8C4C0;
  --skin: #EBC4B0;
  --line: rgba(232, 237, 232, .18);
  --radius: 14px;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 50; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 128px); }
.sec-title { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 16ch; }

/* ---------- header ---------- */
.site-header { padding-block: 22px; position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: grid; line-height: 1.2; }
.brand b { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.brand span { font-size: .85rem; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a { text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav .btn { border-bottom: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: .95rem; color: inherit; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--moss);
  background: var(--moss); color: var(--paper); cursor: pointer; font-family: var(--sans);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--moss-deep); border-color: var(--moss-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.sm { padding: 10px 20px; font-size: .95rem; }

/* ---------- hero ---------- */
.hero { overflow-x: clip; padding-block: clamp(32px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); line-height: 1.04; max-width: 13ch; }
.hero p.lead { max-width: 46ch; margin-top: 28px; color: var(--ink-soft); font-size: 1.15rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-visual { display: grid; gap: 20px; justify-items: center; }
.hero-stage { position: relative; width: min(100%, 460px); aspect-ratio: 1; display: grid; place-items: center; }
.rings i { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(.8); animation: breathe 10s ease-in-out infinite both, morph 22s ease-in-out infinite both; }
.rings i:nth-child(1) { width: 100%; background: var(--water); opacity: .6; }
.rings i:nth-child(2) { width: 82%; background: var(--skin); opacity: .8; animation-delay: .3s, -8s; }
.hero-photo { position: relative; z-index: 1; width: 66%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper); box-shadow: 0 26px 56px -26px rgba(30, 47, 43, .55); animation: breathe-photo 10s ease-in-out infinite both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.breath-word { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); z-index: 2; display: inline-grid; justify-items: center; min-width: 7.5ch; padding: 6px 22px 8px; border-radius: 999px; background: rgba(232, 237, 232, .95); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55); font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.2; color: #1B2B27; }
.breath-word span { grid-area: 1 / 1; opacity: 0; animation: word 10s ease-in-out infinite; }
.breath-word .w-out { animation-name: word-out; }
.breath-word .w-still { display: none; opacity: 1; animation: none; }
.breath-tip { font-size: .95rem; color: var(--ink-soft); text-align: center; max-width: 30ch; margin: 0; }
@keyframes breathe-photo { 0%, 100% { transform: scale(.92); } 40% { transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.8); } 40% { transform: translate(-50%, -50%) scale(1); } }
@keyframes morph {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  33% { border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%; }
  66% { border-radius: 54% 46% 48% 52% / 48% 54% 46% 52%; }
}
@keyframes word { 0% { opacity: 0; } 8%, 34% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes word-out { 0%, 40% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- topics ---------- */
.topics .wrap, .approach .wrap, .process .wrap, .pricing .wrap, .faq .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
.topics .intro, .pricing .intro { margin-top: 20px; color: var(--ink-soft); max-width: 34ch; }
.approach .intro { margin-top: 20px; color: var(--ink-soft); max-width: 40ch; font-size: 1rem; }
.side-photo { margin: 36px 0 0; max-width: 360px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--water); }
.side-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.topic-list.one { grid-template-columns: 1fr; }
.topic-list.one li { padding: 30px 0; }
.topic-list.one p { max-width: 54ch; }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.topic-list li { padding: 26px 0; border-top: 1px solid var(--line); }
.topic-list h3 { font-size: 1.5rem; margin-bottom: 8px; }
.topic-list p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- process ---------- */
.process { background: var(--paper); }
.process .wrap { grid-template-columns: 1fr; }
.steps { list-style: none; padding: 0; margin: clamp(32px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { border-top: 2px solid var(--moss); padding-top: 20px; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2.4rem; color: var(--moss); line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- map ---------- */
.map { background: var(--tint); }
.map-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 64px); }
.map-head .intro { margin-top: 20px; color: var(--ink-soft); }
.map-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.map-col { border-top: 3px solid var(--c, var(--moss)); padding-top: 22px; }
.map-col:nth-child(1) { --c: var(--skin); }
.map-col:nth-child(2) { --c: #7FA3A0; }
.map-col:nth-child(3) { --c: var(--water); }
.map-col h3 { font-size: 2rem; }
.map-col .q { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin: 6px 0 20px; }
.map-col dl { margin: 0; }
.map-col dt { font-weight: 500; padding-top: 14px; border-top: 1px solid var(--line); }
.map-col dd { margin: 2px 0 14px; color: var(--ink-soft); font-size: .97rem; }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--water); max-width: 460px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait img { object-position: 50% 20%; }
.about .text { margin-top: 24px; max-width: 58ch; }
.creds { list-style: none; margin: 28px 0 0; padding: 0; max-width: 58ch; }
.creds li { padding: 12px 0 12px 22px; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--skin); }

/* ---------- pricing ---------- */
.pricing { background: var(--paper); }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 24px 0; border-top: 1px solid var(--line); align-items: baseline; }
.price-list li:last-child { border-bottom: 1px solid var(--line); }
.price-list h3 { font-size: 1.5rem; }
.price-list .dur { color: var(--ink-soft); font-size: .95rem; grid-column: 1; }
.price-list .price { grid-column: 2; grid-row: 1 / span 2; font-family: var(--serif); font-size: 1.7rem; white-space: nowrap; }
.price-note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- faq ---------- */
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details .answer { padding: 0 40px 24px 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------- contact ---------- */
.contact { background: var(--moss-deep); color: var(--paper); }
.contact .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); }
.contact .sec-title { max-width: 12ch; }
.contact .lead { margin-top: 20px; max-width: 36ch; color: rgba(245, 247, 243, .82); }
.links { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.links a { text-decoration: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(245, 247, 243, .25); }
.links a:hover span:last-child { text-decoration: underline; }
.links li:last-child a { border-bottom: 1px solid rgba(245, 247, 243, .25); }
.links span:first-child { color: rgba(245, 247, 243, .65); }
.hours { margin-top: 18px; font-size: .95rem; color: rgba(245, 247, 243, .7); }

form { display: grid; gap: 22px; align-content: start; }
label { display: grid; gap: 6px; font-size: .92rem; color: rgba(245, 247, 243, .75); }
input[type=text], textarea {
  font: inherit; font-size: 1.05rem; color: var(--paper); background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(245, 247, 243, .45); padding: 10px 0; border-radius: 0;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(245, 247, 243, .4); }
input:focus-visible, textarea:focus-visible { outline: none; border-bottom-color: var(--skin); border-bottom-width: 2.5px; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: 12px; font-size: .88rem; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--skin); }
.consent a { color: var(--skin); }
.contact .btn { background: var(--skin); border-color: var(--skin); color: var(--moss-deep); justify-self: start; }
.contact .btn:hover { background: var(--paper); border-color: var(--paper); }
.form-status { min-height: 1.5em; margin: 0; font-size: .95rem; color: var(--skin); }
.hp { position: absolute; left: -9999px; }

.addr { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(245, 247, 243, .25); }
.addr h3 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: rgba(245, 247, 243, .65); margin-bottom: 8px; }
.addr p { margin: 0 0 6px; }

/* ---------- footer ---------- */
.site-footer { padding-block: 36px; font-size: .88rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }
.site-footer p { margin: 0; max-width: 62ch; }

/* ---------- legal page ---------- */
.legal { padding-block: 48px 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.5rem; margin: 36px 0 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .hero-visual { order: -1; }
  .hero-stage { width: min(100%, 320px); }
  .hero { padding-top: 8px; }
  .topics .wrap, .approach .wrap, .pricing .wrap, .faq .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .map-cols { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-radius: var(--radius); padding: 10px 22px 18px; box-shadow: 0 18px 40px -20px rgba(30, 47, 43, .35); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 1.5px solid var(--moss); }
  .topic-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .price-list .price { font-size: 1.4rem; }
  .hero .actions .btn { flex: 1 1 100%; text-align: center; }
}
/* ---------- тёмная гамма: переопределения ---------- */
.contact { background: #2F4A41; color: var(--ink); }
.contact .lead { color: rgba(232, 237, 232, .82); }
input[type=text], textarea { color: var(--ink); border-bottom-color: rgba(232, 237, 232, .5); }
input::placeholder, textarea::placeholder { color: rgba(232, 237, 232, .45); }
.contact .btn { background: var(--skin); border-color: var(--skin); color: #1B2B27; }
.contact .btn:hover { background: #F6D9CA; border-color: #F6D9CA; color: #1B2B27; }
.rings i:nth-child(1) { opacity: .5; }
.rings i:nth-child(2) { opacity: .85; }
.portrait, .side-photo { box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .6); }
.nav { box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); }
.btn.ghost { border-color: rgba(232, 237, 232, .45); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #1B2B27; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings i { animation: none; transform: translate(-50%, -50%) scale(.92); }
  .hero-photo { animation: none; }
  .breath-word .w-in, .breath-word .w-out { display: none; }
  .breath-word .w-still { display: inline; }
}
