@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --milk: #f3f0e9;
  --warm-white: #f9f7f2;
  --beige: #e3dbd1;
  --sand: #b09f89;
  --taupe: #8a8174;
  --sage: #8ba8a1;
  --sage-deep: #4a5d59;
  --seafoam: #7d9e96;
  --dust-rose: #c4a4a0;
  --ink: #2f3634;
  --ink-soft: #4f5855;
  --line: rgba(74, 93, 89, 0.16);
  --shadow: 0 12px 28px rgba(74, 93, 89, 0.08);
  --radius: 20px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image: url("../public/images/decor/soft-motif.svg");
  background-size: 880px 1100px;
  background-repeat: repeat;
  background-position: 6% 0;
  mix-blend-mode: multiply;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.36;
}

.motif--feather {
  width: min(46vw, 280px);
  height: min(28vw, 170px);
  background-image: url("../public/images/decor/accent-feather.svg");
}

.motif--lotus {
  width: min(26vw, 150px);
  height: min(30vw, 170px);
  background-image: url("../public/images/decor/accent-lotus.svg");
}

.motif--moon {
  width: min(22vw, 120px);
  height: min(24vw, 130px);
  background-image: url("../public/images/decor/accent-moon.svg");
}

.motif--profile {
  width: min(30vw, 180px);
  height: min(38vw, 230px);
  background-image: url("../public/images/decor/accent-profile.svg");
}

.motif--breath,
.motif--bloom,
.motif--leaf,
.motif--branch {
  display: none;
}

.section {
  position: relative;
  overflow: visible;
}

.hero {
  position: relative;
  overflow: visible;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sage-deep);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--warm-white);
  padding: 0.7rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.section[id],
.form-section[id],
.reviews-section[id],
.faq-section[id] {
  scroll-margin-top: 5.5rem;
}

#reviews {
  scroll-margin-top: 7.5rem;
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.92em;
}

.form-note--inline {
  margin-top: 0.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(249, 247, 242, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header .container.header-inner,
.site-header .header-inner {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  padding: 0.4rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.05;
}

.brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.05rem;
  line-height: 1.15;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 0.85rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2rem;
  height: 2rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--warm-white) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  transition: background 0.25s ease;
}

.nav-cta:hover {
  background: var(--seafoam);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  background: var(--warm-white);
  border-radius: 999px;
  padding: 0 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
}

.hero {
  padding: 0.85rem 0 2.4rem;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 0%, rgba(139, 168, 161, 0.18), transparent 42%),
    linear-gradient(180deg, #f7f4ee 0%, var(--warm-white) 70%);
}

.hero .motif--feather {
  left: -4%;
  bottom: 6%;
  opacity: 0.34;
}

.hero .motif--profile {
  right: -1%;
  top: 8%;
  opacity: 0.32;
  transform: scaleX(-1) rotate(4deg);
}

.hero .motif--moon {
  left: 38%;
  top: 4%;
  opacity: 0.28;
  transform: rotate(-12deg);
}

#about .motif--moon {
  right: 3%;
  top: 2rem;
  opacity: 0.3;
  transform: rotate(8deg);
}

#topics .motif--lotus {
  right: 3%;
  top: 1.2rem;
  opacity: 0.32;
}

#format .motif--feather {
  left: -3%;
  bottom: 1.5rem;
  opacity: 0.3;
  transform: scaleX(-1) rotate(-6deg);
}

#pricing .motif--moon {
  left: 2%;
  bottom: 1.5rem;
  opacity: 0.3;
  transform: rotate(-16deg);
}

#reviews .motif--profile {
  right: -2%;
  top: 0.5rem;
  opacity: 0.28;
}

#booking .motif--lotus {
  right: -1%;
  top: 2.5rem;
  opacity: 0.3;
  transform: rotate(10deg);
}

#booking .motif--feather {
  left: -2%;
  bottom: 1rem;
  opacity: 0.28;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
  min-height: 0;
  padding-top: 0.35rem;
}

.hero-copy {
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero-identity {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  line-height: 1.35;
}

.hero h1 {
  font-size: clamp(1.65rem, 3.1vw, 2.55rem);
  max-width: 22ch;
  line-height: 1.18;
  margin: 0 0 1rem;
}

.hero-title__soft {
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 87%, var(--warm-white));
}

.hero .lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-benefits {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.hero-benefits__icon {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  background: rgba(139, 168, 161, 0.16);
}

.hero-benefits__icon svg {
  display: block;
}

.hero-topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0 0;
  padding: 0;
  max-width: 36rem;
}

.hero-topics li {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 93, 89, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--taupe);
  font-size: 0.84rem;
  line-height: 1.3;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--taupe);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

h3 {
  font-size: 1.55rem;
}

.lead,
.section-lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  max-width: 34rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(74, 93, 89, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-note__icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--sage-deep);
  opacity: 0.85;
}

.hero-note__icon svg {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
  margin: 0 0 1.45rem;
}

.hero-actions .button {
  box-sizing: border-box;
  min-height: 3rem;
  padding-block: 0.8rem;
}

.hero-actions .button-secondary {
  min-width: 13.5rem;
  padding-inline: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: none;
}

.button:focus-visible,
.copy-btn:focus-visible,
.nav a:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--seafoam);
  outline-offset: 3px;
}

.button-primary {
  background: var(--sage-deep);
  color: var(--warm-white);
}

.button-primary:hover {
  background: var(--seafoam);
  color: var(--warm-white);
}

.button-secondary {
  background: transparent;
  border-color: rgba(47, 42, 38, 0.22);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero-media {
  position: relative;
  width: 105%;
  max-width: 36rem;
  justify-self: end;
  animation: fade-in 1.1s ease both 0.1s;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--beige);
  box-shadow: var(--shadow);
}

/* Без оверлея на лице — раньше давал заметную полосу */
.media-frame::after {
  content: none;
}

.media-frame img,
.media-frame picture {
  width: 100%;
  height: 100%;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .media-frame {
  aspect-ratio: 5 / 4;
}

.hero-media img {
  object-fit: cover;
  object-position: 48% 28%;
}

/* Настоящий вырез (как у референса): фигура без фона */
.cutout-wrap {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 460px;
  max-width: 400px;
  margin-inline: auto;
  overflow: visible;
}

.cutout-wrap::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 68%;
  bottom: 6%;
  left: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 168, 161, 0.2) 0%, rgba(232, 226, 216, 0.5) 44%, transparent 72%);
  z-index: 0;
}

/* За вырезом — мягкие пятна + крошечный лист (как на референсе) */
.cutout-decor {
  position: absolute;
  inset: -4% -12% 0;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.cutout-img {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(61, 69, 67, 0.14));
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.section-cta p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 34rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 93, 89, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.section {
  padding: 3.2rem 0;
}

.section--alt {
  background: linear-gradient(180deg, #efeae3 0%, #f4f0ea 100%);
}

.section--soft {
  background: linear-gradient(180deg, rgba(139, 168, 161, 0.12), rgba(249, 247, 242, 0.9));
}

.section-head {
  margin-bottom: 1.6rem;
  max-width: 40rem;
}

.topics-limit {
  margin: 2rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

#topics .section-head {
  max-width: 42rem;
  margin-bottom: 2.2rem;
}

#topics .section-lead {
  max-width: 40rem;
}

.trust-block {
  max-width: 40rem;
}

.trust-block h2 {
  margin-bottom: 1rem;
}

.trust-block p {
  color: var(--ink-soft);
  max-width: 38rem;
}

.trust-block .button {
  margin-top: 0.6rem;
}

.recognize-block {
  max-width: 40rem;
}

.recognize-block h2 {
  margin-bottom: 1rem;
}

.recognize-block .soft-list {
  margin: 0 0 1rem;
}

.recognize-block__note {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 1.05rem;
}

.contact-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
  max-width: 34rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-row--messengers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.contact-row .contact-action {
  flex: 1 1 12rem;
}

.contact-row--messengers .contact-action {
  flex: none;
  width: 100%;
}

.contact-row > a:not(.button) {
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 93, 89, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-action:hover {
  border-color: rgba(74, 93, 89, 0.4);
  background: #fff;
  transform: translateY(-1px);
}

.contact-action--primary {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: #f7f5f0;
}

.contact-action--primary:hover {
  background: #3f524e;
  border-color: #3f524e;
  color: #f7f5f0;
}

.contact-action.is-disabled,
.footer-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-action__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.copy-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: rgba(74, 93, 89, 0.35);
}

.copy-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.92rem;
  color: var(--sage-deep);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.copy-status.is-visible {
  opacity: 1;
}

.max-link {
  gap: 0.45rem;
}

.max-icon {
  display: inline-flex;
}

.field-error {
  margin: 0.2rem 0 0;
  min-height: 0;
  color: #8a4f3d;
  font-size: 0.9rem;
}

.field-error:empty {
  display: none;
}

[aria-invalid="true"] {
  border-color: #b0725d !important;
}

.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.breadcrumbs a {
  text-decoration: none;
}

.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.legal .updated {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.about-grid,
.format-grid,
.cta-grid,
.pricing-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.about-media {
  min-width: 0;
  max-width: 100%;
}

.about-media .media-frame {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
}

.about-media img {
  object-fit: cover;
  object-position: 28% 12%;
}

.about-copy {
  max-width: 36rem;
}

.about-copy .section-head {
  margin-bottom: 1.35rem;
}

.about-copy > p {
  margin: 0 0 1.2rem;
  max-width: 34rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-copy .note {
  margin-top: 1.5rem;
  line-height: 1.6;
}

.soft-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.soft-list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.soft-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sage);
}

.story-block {
  margin-top: 1.6rem;
  padding: 1.25rem 1.35rem 1.35rem;
  border-left: 2px solid rgba(139, 168, 161, 0.55);
  background: linear-gradient(90deg, rgba(139, 168, 161, 0.1), transparent 72%);
  border-radius: 0 16px 16px 0;
}

.story-block h3 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.story-block p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.story-block p:last-child {
  margin-bottom: 0;
}

.pricing-footnote {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.pricing-footnote a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 93, 89, 0.35);
}

.faq-section .section-head {
  margin-bottom: 1.6rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.15rem 1.1rem;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(74, 93, 89, 0.22);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  padding: 1rem 1.6rem 1rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.05rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.topics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.55rem 1.8rem;
  width: min(100%, 56rem);
  align-items: stretch;
}

.topics .topic {
  grid-column: span 2;
}

.topics .topic:nth-child(4) {
  grid-column: 2 / span 2;
}

.topics .topic:nth-child(5) {
  grid-column: 4 / span 2;
}

.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 11.5rem;
  padding: 1.55rem 1.4rem 1.5rem;
  border: 1px solid rgba(74, 93, 89, 0.08);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 18px rgba(74, 93, 89, 0.04);
  transform: translateY(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .topic:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(74, 93, 89, 0.1);
  }
}

.topic__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.85rem;
  color: var(--sage-deep);
  opacity: 0.55;
}

.topic__icon svg {
  display: block;
}

.topic__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.55vw, 1.28rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.topic__desc {
  margin: 0;
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
}

.topic h3 {
  margin-bottom: 0.45rem;
}

.topic p {
  margin: 0;
  color: var(--ink-soft);
}

.consultation-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
}

.consultation-point {
  min-width: 0;
  padding: 1.25rem 1.15rem;
  border-top: 2px solid rgba(74, 93, 89, 0.28);
}

.consultation-point h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  overflow-wrap: break-word;
  hyphens: manual;
}

.consultation-point p {
  margin: 0;
  color: var(--ink-soft);
}

.consultation-note {
  max-width: 42rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.reviews-grid .review-card {
  display: flex;
  flex-direction: column;
  flex: none;
  width: auto;
  min-width: 0;
  min-height: 230px;
  height: 100%;
  margin: 0;
  padding: 1.3rem 1.4rem 1.35rem;
  opacity: 1;
  transform: translateY(0);
  position: relative;
  box-shadow: 0 10px 28px rgba(74, 93, 89, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .reviews-grid .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(74, 93, 89, 0.14);
  }
}

.reviews-grid .review-card__head {
  gap: 0.7rem;
  margin-bottom: 0.35rem;
}

.reviews-grid .review-card__name {
  font-weight: 800;
}

.reviews-stars {
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
  color: #c2a882;
  font-size: 1.01rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.reviews-grid .review-card__text {
  margin: 0;
  padding: 0;
  border: 0;
  quotes: none;
  font-style: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

.reviews-grid .review-card__meta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.8rem;
  color: #9a9590;
  line-height: 1.4;
}

.reviews-avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e4ddd3;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55), inset 0 -1px 2px rgba(138, 129, 116, 0.12);
}

.reviews-avatar--illus {
  display: block;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: #ebe4da;
  box-shadow: 0 0 0 1px rgba(74, 93, 89, 0.12);
}

.review-card__head picture {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background: #ebe4da;
  box-shadow: 0 0 0 1px rgba(74, 93, 89, 0.12);
}

.review-card__head picture .reviews-avatar {
  width: 100%;
  height: 100%;
  box-shadow: none;
}

.channel-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.channel-fieldset legend {
  padding: 0;
  margin-bottom: 0.45rem;
}

.channel-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0.15rem 0 0.85rem;
}

.channel-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
}

.channel-option input {
  width: auto;
  margin: 0;
  accent-color: var(--sage-deep);
}

.channel-contact-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.review-card--message .review-card__name {
  font-weight: 600;
  color: var(--ink-soft);
}

.review-message {
  margin: 0.35rem 0 0;
}

.review-message__bubble {
  position: relative;
  margin: 0;
  padding: 0.95rem 1.05rem 1rem;
  max-width: 100%;
  border-radius: 4px 18px 18px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(74, 93, 89, 0.1);
  box-shadow: 0 4px 14px rgba(74, 93, 89, 0.05);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.review-message__bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 12px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.88);
  border-left: 1px solid rgba(74, 93, 89, 0.1);
  border-bottom: 1px solid rgba(74, 93, 89, 0.1);
  transform: rotate(45deg);
}

.reviews-grid .review-card--message {
  background: rgba(243, 240, 233, 0.55);
  opacity: 1;
  transform: none;
}

.contact-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1rem;
}

.contact-compact .copy-status {
  flex: 1 0 100%;
  min-height: 1.35em;
}

.footer-email-copy {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.footer-email-copy:hover,
.footer-email-copy:focus-visible {
  color: var(--sage-deep);
}

.channels-block {
  max-width: 40rem;
}

.channels-block h2 {
  margin-bottom: 0.75rem;
}

.channels-block p {
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}

.channels-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.practice-list {
  display: grid;
  gap: 1.35rem;
}

.practice-card {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.practice-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.practice-card p {
  color: var(--ink-soft);
}

.practice-card .note {
  margin-bottom: 0;
}

.format-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.format-text {
  max-width: 920px;
}

.practices-teaser {
  max-width: 40rem;
}

.practices-teaser h2 {
  margin-bottom: 0.75rem;
}

.practices-teaser p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

.format-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.format-media .media-frame {
  width: min(100%, 320px);
  max-width: 100%;
  aspect-ratio: 682 / 1023;
  height: auto;
  margin-inline: auto;
  overflow: hidden;
  background: #ebe6de;
}

.format-media .media-frame picture,
.format-media .media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.format-media img {
  object-fit: contain;
  object-position: center center;
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sage-deep);
  line-height: 1;
  padding-top: 0.15rem;
}

.steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.steps span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card {
  padding: 1.8rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.8);
}

.price-card.featured {
  background: linear-gradient(160deg, #e7efec, #f7f5f0 55%, #e3dbd1);
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0.4rem 0 0.8rem;
}

.price small {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.note {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.crisis-note {
  margin-top: 1.1rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.crisis-note a {
  font-weight: 600;
  text-decoration: none;
}

.panel {
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
}

.cta-band {
  padding: 0 0 2.8rem;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(139, 168, 161, 0.2), transparent 42%),
    linear-gradient(145deg, #f7f5f0 0%, #e8e2d8 48%, #dde8e3 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.cta-copy {
  position: relative;
  z-index: 2;
  order: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.4rem 2.6rem 2.4rem 2.5rem;
  background: rgba(248, 246, 241, 0.98);
}

.cta-media {
  position: relative;
  z-index: 1;
  order: 2;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6e0d7;
}

.cta-media .media-frame {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  /* Полный кадр — плечи и руки не режем */
  aspect-ratio: 1024 / 683;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: #e6e0d7;
}

.cta-media .media-frame picture,
.cta-media .media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.cta-media img {
  object-fit: contain;
  object-position: center center;
}

.form-section {
  position: relative;
  padding-bottom: 5rem;
  overflow: visible;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label,
.checkbox label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(47, 42, 38, 0.16);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--warm-white);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(111, 122, 104, 0.35);
  border-color: var(--sage-deep);
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.checkbox input {
  margin-top: 0.3rem;
}

.form-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-status {
  display: none;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #e7efec;
  color: var(--ink);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #e4f0ea;
  border: 1px solid rgba(74, 93, 89, 0.22);
}

.form-status.is-error {
  background: #f4ebe6;
  border: 1px solid rgba(138, 96, 74, 0.22);
}

.form-status.is-info {
  background: #eef3f1;
  border: 1px solid rgba(74, 93, 89, 0.18);
}

.form button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.contacts {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.contacts a {
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background:
    linear-gradient(180deg, rgba(249, 247, 242, 0.2), rgba(243, 240, 233, 0.95) 28%, #efeae2);
}

.footer-ask {
  position: relative;
  padding: 2.4rem 0 1.8rem;
  overflow: hidden;
}

.footer-ask__decor {
  display: none;
}

.footer-ask__title {
  position: relative;
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--sage-deep);
  line-height: 1.15;
}

.footer-ask__lead {
  position: relative;
  margin: 0 0 1.8rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

.footer-contacts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: none;
}

.footer-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.8rem;
  min-height: 118px;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(74, 93, 89, 0.1);
  box-shadow: 0 10px 28px rgba(74, 93, 89, 0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.footer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 93, 89, 0.28);
  box-shadow: 0 14px 32px rgba(74, 93, 89, 0.1);
}

.footer-card:hover .footer-card__value {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-card[hidden] {
  display: none !important;
}

.contact-action[hidden] {
  display: none !important;
}

a.footer-card::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--sage-deep);
  font-size: 1.15rem;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

a.footer-card:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

button.footer-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-contacts .copy-status {
  grid-column: 1 / -1;
}

.footer-card__label {
  grid-column: 1;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}

.footer-card__value {
  grid-column: 1;
  align-self: end;
  font-size: 1.02rem;
  color: var(--ink-soft);
  word-break: break-word;
}

.footer-card__icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
  width: 28px;
  height: 28px;
  color: rgba(74, 93, 89, 0.45);
}

.footer-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-legal {
  padding: 1.6rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  align-items: flex-start;
}

.footer-legal__info p {
  margin: 0.2rem 0 0;
}

.footer-legal__info p:first-child {
  margin-top: 0;
}

.footer-legal__name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.footer-legal__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  text-align: right;
}

.footer-legal__links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  color: var(--sage-deep);
}

.footer-legal a:not(.footer-legal__links a) {
  color: inherit;
  text-decoration: none;
}

.footer-legal a:not(.footer-legal__links a):hover {
  color: var(--sage-deep);
}

.footer-crisis {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}

.footer-crisis a {
  font-weight: 600;
  font-style: normal;
  text-decoration: none;
}

.reviews-section {
  overflow: hidden;
}

.reviews-section .section-head {
  margin-bottom: 1.8rem;
}

.reviews-carousel {
  position: relative;
  margin: 0 auto;
  max-width: 920px;
}

.reviews-viewport {
  overflow: hidden;
  padding: 0.4rem 0 0.2rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reviews-track {
  --reviews-gap: 1.2rem;
  --review-card-width: min(520px, 82vw);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 1rem;
  display: flex;
  gap: var(--reviews-gap);
  transition: transform 0.9s cubic-bezier(0.33, 1, 0.32, 1);
  will-change: transform;
  cursor: default;
  touch-action: pan-y;
}

.reviews-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.review-card {
  flex: 0 0 var(--review-card-width);
  min-height: 280px;
  margin: 0;
  padding: 1.55rem 1.65rem 1.7rem;
  background: #fff;
  border: 1px solid rgba(74, 93, 89, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(74, 93, 89, 0.08);
  opacity: 0.42;
  transform: scale(0.94);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.review-card.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 16px 36px rgba(74, 93, 89, 0.12);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.review-card__photo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #d7e2df;
  display: block;
}

.review-card__name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.25;
}

.review-card__meta {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: #6f8490;
}

.review-card__text {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.reviews-dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(74, 93, 89, 0.22);
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.reviews-dot.is-active {
  background: var(--sage-deep);
  transform: scale(1.15);
}

.reviews-dot:focus-visible {
  outline: 2px solid var(--seafoam);
  outline-offset: 3px;
}

.reviews-footnote {
  margin: 1.6rem auto 0;
  max-width: 36rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.page-hero {
  position: relative;
  padding: 3rem 0 2rem;
}

.page-hero .motif--lotus {
  right: 4%;
  top: 1.5rem;
  opacity: 0.3;
}

.page-hero .motif--moon {
  left: 3%;
  bottom: 0.5rem;
  opacity: 0.28;
  transform: rotate(-10deg);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.edu-main {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 3rem;
  overflow: visible;
}

.edu-card {
  padding: 1.6rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.86);
}

.edu-card.main {
  background: linear-gradient(150deg, #e7efec, #f7f5f0);
}

.edu-meta {
  color: var(--taupe);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.edu-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem 1.2rem;
  align-items: start;
  overflow: visible;
  padding: 4rem 1rem 6rem;
}

.doc-card {
  padding: 0.7rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  position: relative;
  z-index: 1;
  text-align: center;
}

.doc-card:hover,
.doc-card:focus-within {
  z-index: 30;
}

.doc-card h3 {
  font-size: 0.98rem;
  margin: 0.65rem 0 0.25rem;
}

.doc-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.doc-trigger {
  display: block;
  width: 100%;
  max-width: 86px;
  margin-inline: auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: visible;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  text-align: center;
}

.doc-trigger img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  object-position: center;
  background: #eef2ef;
  border-radius: 10px;
  border: 1px solid rgba(74, 93, 89, 0.12);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  transform-origin: center center;
  will-change: transform;
}

.doc-trigger-main {
  margin-top: 1rem;
  max-width: 220px;
  margin-inline: auto;
}

.doc-trigger-main img {
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.doc-card:hover .doc-trigger img,
.doc-card:focus-within .doc-trigger img,
.doc-trigger:hover img,
.doc-trigger:focus-visible img {
  transform: scale(4);
  box-shadow: 0 28px 56px rgba(74, 93, 89, 0.32);
  z-index: 5;
  position: relative;
}

.doc-trigger-main:hover img,
.doc-trigger-main:focus-visible img {
  transform: scale(4);
}

.doc-zoom-hint {
  display: block;
  padding: 0.45rem 0.4rem 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: transparent;
  border-top: none;
  text-align: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 0;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 23, 0.92);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(249, 247, 242, 0.95);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  cursor: pointer;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.edu-notice {
  margin-top: 2rem;
  padding: 1.3rem 1.4rem;
  border-left: 3px solid var(--sage);
  background: rgba(141, 150, 132, 0.1);
  border-radius: 0 14px 14px 0;
}

.legal {
  max-width: 46rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  #reviews {
    scroll-margin-top: 6rem;
  }

  .footer-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-row--messengers {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem;
    background: rgba(249, 247, 242, 0.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 2.4rem;
    padding: 0 0.35rem;
  }

  .nav-cta {
    width: 100%;
    height: auto;
    min-height: 2.4rem;
    margin-top: 0.25rem;
    justify-content: center;
  }

  .hero-grid,
  .about-grid,
  .format-grid,
  .pricing-grid,
  .cta-grid,
  .form-layout,
  .consultation-points,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 1.25rem 1.4rem;
  }

  .topics .topic,
  .topics .topic:nth-child(4),
  .topics .topic:nth-child(5) {
    grid-column: auto;
  }

  .topics .topic:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 1.4rem) / 2);
    justify-self: center;
  }

  .edu-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    min-height: auto;
    gap: 2rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    max-width: 28ch;
    font-size: clamp(1.55rem, 6.2vw, 2.1rem);
  }

  .hero-media {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .hero-media .media-frame {
    aspect-ratio: 5 / 4;
  }

  .hero-media img {
    object-position: 48% 26%;
  }

  .hero-actions .button-secondary {
    min-width: 0;
  }

  .section-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cutout-wrap {
    min-height: 360px;
    max-width: 300px;
  }

  .cutout-img {
    width: min(100%, 250px);
  }

  .motif--feather {
    width: 170px;
    height: 105px;
  }

  .motif--lotus,
  .motif--moon {
    width: 88px;
    height: 100px;
  }

  .motif--profile {
    width: 110px;
    height: 140px;
  }

  body::before {
    opacity: 0.28;
    background-size: 720px 900px;
  }

  .motif {
    opacity: 0.32;
  }

  .about-media .media-frame {
    aspect-ratio: 5 / 4;
  }

  .about-media img {
    object-position: 30% 10%;
  }

  .cta-media .media-frame {
    min-height: 0;
    height: auto;
    aspect-ratio: 1024 / 683;
    max-height: none;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-media {
    order: -1;
  }

  .format-media .media-frame {
    width: min(100%, 280px);
    aspect-ratio: 682 / 1023;
  }

  .cta-media img {
    object-fit: contain;
    object-position: center center;
  }

  .format-media img {
    object-fit: contain;
    object-position: center center;
  }

  .cta-copy {
    order: 2;
    padding: 1.6rem;
  }

  .section {
    padding: 3.2rem 0;
  }
}

@media (max-width: 560px) {
  .topics {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .topics .topic,
  .topics .topic:nth-child(4),
  .topics .topic:nth-child(5),
  .topics .topic:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .topic {
    min-height: 0;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  h1 {
    font-size: 2.45rem;
  }

  .reviews-track {
    --review-card-width: min(300px, 86vw);
    --reviews-gap: 0.85rem;
  }

  .review-card {
    min-height: 240px;
    padding: 1.25rem 1.2rem 1.35rem;
  }

  .review-card__text {
    font-size: 0.98rem;
  }

  .reviews-viewport {
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .footer-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-legal__row {
    flex-direction: column;
  }

  .footer-legal__links {
    align-items: flex-start;
    text-align: left;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .edu-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 0.8rem;
    padding-bottom: 2.5rem;
  }

  .doc-trigger {
    max-width: 72px;
  }

  .doc-trigger img {
    height: 78px;
  }

  .doc-trigger-main {
    max-width: 180px;
  }

  .doc-trigger-main img {
    max-height: 96px;
  }

  .doc-card:hover .doc-trigger img,
  .doc-card:focus-within .doc-trigger img,
  .doc-trigger:hover img,
  .doc-trigger:focus-visible img {
    transform: scale(4);
  }

  .doc-trigger-main:hover img,
  .doc-trigger-main:focus-visible img {
    transform: scale(4);
  }

  .doc-card h3 {
    font-size: 0.9rem;
  }
}

@media (hover: none) {
  .doc-card:hover .doc-trigger img,
  .doc-trigger:hover img {
    transform: none;
    box-shadow: none;
  }

  .doc-trigger:focus-visible img,
  .doc-card:focus-within .doc-trigger img {
    transform: scale(3.2);
    box-shadow: 0 16px 34px rgba(74, 93, 89, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-copy,
  .hero-media,
  .button,
  .doc-trigger img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }

  .reveal,
  .hero-copy,
  .hero-media,
  .button {
    transform: none !important;
  }

  .reviews-track,
  .review-card {
    transition: none !important;
  }

  .reviews-grid .review-card:hover {
    transform: none;
    box-shadow: 0 10px 28px rgba(74, 93, 89, 0.08);
  }

  .topic {
    transition: none !important;
  }

  .topic:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(74, 93, 89, 0.04);
  }
}
