@font-face {
  font-family: "Gothic60";
  src: url("assets/Gothic60-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Palette */
  --coral: #ff5665;
  --space: #0c0c1c;
  --celeste: #8df8f2;
  --purple: #6a6afc;
  --cloud: #f1f4f6;
  --grey: #d1d7db;
  --pink: #ffb6b6;
  --lavender: #b8b8ff;

  /* Back-compat aliases (to be removed during CSS "drying"). */
  --ink: var(--space);
  --aqua: var(--celeste);
  --violet: var(--purple);
  --milk: var(--cloud);
  --gray: var(--grey);
  --white: var(--cloud);

  /* Defaults */
  --page-bg: var(--grey);
  --ink-soft: rgba(12, 12, 28, 0.68);
  --line: rgba(12, 12, 28, 0.14);
  --shadow: 0 22px 70px rgba(12, 12, 28, 0.16);
  --radius: 8px;
  --section-shell-width: min(calc(100% - clamp(44px, 7vw, 220px)), 1580px);
  --p1: 16px;
  --p2: 14px;
  --h1: 50px;
  --h2: 32px;
  /* Fonts */
  --font-hero: "Gothic60", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --type-hero: clamp(2.8rem, 4.9vw, 6.2rem);
  --type-hero-alt: clamp(3.05rem, 5.7vw, 7rem);
  --type-section: clamp(1.7rem, 2.15vw, 2.2rem);
  --type-title: clamp(1.12rem, 1.2vw, 1.35rem);
  --type-title-sm: clamp(1.05rem, 1.16vw, 1.25rem);
  --type-body: var(--p1);
  --type-body-sm: clamp(15px, 1.02vw, 19px);
  --type-body-lg: clamp(18px, 1.28vw, 28px);
  --type-display: clamp(34px, 3.1vw, 66px);
  --type-display-mobile: clamp(28px, 7.6vw, 42px);
  --type-body-sm-mobile: clamp(15px, 4.1vw, 18px);
  --type-label: var(--p2);

  /* Unified typography (site-wide). */
  --type-section-title: clamp(2.75rem, 5.3vw, 6.8rem);
  --type-prose: var(--type-body);
  --weight-prose: 300;
  --line-section-title: 0.94;
  --line-prose: 1.5;

  /* Unified card typography (site-wide). */
  --type-card-title: var(--type-title-sm);
  --weight-card-title: 600;
  --line-card-title: 1.08;
  --type-card-body: 15px;
  --weight-card-body: var(--weight-prose);
  --line-card-body: 1.4;

  /* Unified card geometry (site-wide). */
  --card-radius: 18px;
  --card-inner-radius: 14px;
  --card-padding: clamp(18px, 1.8vw, 24px);
  /* Card insets (site-wide). */
  --card-content-padding: 23px;
  --card-media-padding: 14px;
  
  /* Index section spacing */
 --index-kicker-gap: clamp(24px, 2.6vw, 40px);
 --index-head-to-cards-gap: clamp(42px, 5vw, 64px);
 --index-section-top: clamp(56px, 5.2vw, 82px);
 --index-section-bottom: clamp(92px, 8vw, 126px);
  
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--space);
  background: var(--cloud);
  font-family: var(--font-body);
  font-synthesis: none;
  font-weight: var(--weight-prose);
  font-size: var(--type-body);
  line-height: var(--line-prose);
  letter-spacing: 0;
}

/* Section titles: match course "О курсе" style site-wide. */
.section-head h2,
.sitting-section h2,
.site-contact h2,
.consultation-profile h2,
.consultation-profile h3 {
  max-width: 1120px;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-section-title);
  font-weight: 800;
  line-height: var(--line-section-title);
  letter-spacing: 0;
}

/* Prose body: match course text-flow paragraph style, but at weight 400. */
.section-head > p,
.consultation-topics__intro > p,
.consultation-profile p {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-prose);
  line-height: var(--line-prose);
  letter-spacing: 0;
}

body,
button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.scroll-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(12, 12, 28, 0.16);
  border-radius: 999px;
  background: rgba(241, 244, 246, 0.9);
  color: var(--space);
  box-shadow: 0 12px 30px rgba(12, 12, 28, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.scroll-top-btn svg {
  width: 24px;
  height: 24px;
}

.scroll-top-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
  background: var(--cloud);
  border-color: rgba(12, 12, 28, 0.3);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid rgba(106, 106, 252, 0.65);
  outline-offset: 3px;
}

@media (min-width: 1024px) {
  .scroll-top-btn {
    display: inline-flex;
  }
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--coral);
}

button {
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.footer-brand {
  font-family: var(--font-body);
  font-weight: 600;
}

h2,
h3 {
  font-family: var(--font-body);
  font-weight: 500;
}

.line {
  display: block;
}

.shell {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.about__inner.shell,
.team-intro .shell,
.library > .shell,
.site-contact__inner.shell {
  width: var(--section-shell-width);
  max-width: none;
}

.sitting-page .shell,
.consultation-page .shell,
.course-page .shell {
  width: var(--section-shell-width);
  max-width: none;
}

.section-screen {
  position: relative;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 100;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-header.is-scrolled {
  opacity: 1;
  transform: translateY(0);
}

.topbar {
  position: relative;
  width: min(1180px, calc(100% - 24px));
  min-height: 40px;
  margin-inline: auto;
  padding: 6px 14px 6px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: var(--cloud);
  background: var(--space);
  border-radius: 999px;
  box-shadow: 0 12px 38px rgba(12, 12, 28, 0.14);
  pointer-events: auto;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.site-header.is-scrolled .topbar {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(12, 12, 28, 0.22);
}

.topbar__links,
.topbar__actions,
.topbar__socials,
.social-row,
.footer-links {
  display: flex;
  align-items: center;
}

.topbar__menu-toggle {
  display: none;
}

.topbar__links {
  justify-content: flex-start;
  gap: clamp(18px, 2.5vw, 34px);
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
  color: var(--lavender);
}

.topbar__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.topbar__link--accent {
  color: var(--celeste);
}

.topbar__brand {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--cloud);
}

.topbar__brand img {
  width: 30px;
  height: 28px;
  object-fit: contain;
  transform-origin: 50% 50%;
  will-change: transform;
}

.topbar__brand:hover,
.topbar__brand:focus-visible {
  color: var(--cloud);
}

.topbar__actions {
  justify-content: flex-end;
  gap: 14px;
}

.topbar__contact {
  min-width: 112px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--space);
  background: var(--cloud);
  border-radius: 999px;
}

.topbar__contact:hover,
.topbar__contact:focus-visible {
  color: var(--space);
  background: var(--lavender);
}

.topbar__links a,
.topbar__contact,
.topbar__socials a,
.footer-links a,
.social-row a,
.button {
  font-family: var(--font-body);
  font-weight: 500;
}

p {
  font-family: var(--font-body);
  font-size: var(--type-prose);
  font-weight: var(--weight-prose);
  line-height: var(--line-prose);
}

li {
  font-family: var(--font-body);
  font-size: var(--type-prose);
  font-weight: var(--weight-prose);
  line-height: var(--line-prose);
}

.topbar__links a,
.topbar__contact,
.topbar__socials a,
.footer-links a,
.social-row a {
  font-size: var(--type-label);
  font-weight: var(--weight-prose);
  line-height: 1;
}

.topbar__links a,
.topbar__contact {
  font-weight: 500;
}

.topbar__socials {
  gap: 12px;
}

.topbar__socials a {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--space);
  background: var(--cloud);
  border-radius: 999px;
}

.topbar__socials a:hover,
.topbar__socials a:focus-visible {
  color: var(--cloud);
  background: var(--coral);
  transform: translateY(-1px);
}

.topbar__socials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar__socials a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.hero {
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  --type-hero: clamp(3.2rem, 6.95vw, 8.8rem);
  --hero-pad-top: clamp(78px, 7.8vw, 132px);
  --hero-star-top: clamp(120px, 9.05vw, 142px);
  --hero-star-right: min(1100px, calc(54.85vw + 47px));
  --hero-star-size: clamp(36px, 2.85vw, 58px);
  padding: var(--hero-pad-top) 0 0;
  background: var(--cloud);
  isolation: isolate;
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - var(--hero-pad-top));
  padding-inline: clamp(46px, 2.3vw, 62px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.9vw, 28px);
  align-items: stretch;
}

.hero__copy {
  position: relative;
  grid-column: 4 / 13;
  max-width: none;
  margin-left: 0;
  padding-top: calc(clamp(18px, 1.18vw, 24px) - 4px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-hero);
  font-weight: 400;
  margin-bottom: 0;
  font-size: var(--type-hero);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__title {
  position: relative;
  width: max-content;
  max-width: 100%;
}

.hero h1 .line {
  white-space: nowrap;
}

.hero__line-text {
  position: relative;
  display: inline-grid;
  z-index: 1;
}

.typing-title {
  white-space: pre-line;
}

.typing-title::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.08em;
  background: currentColor;
  vertical-align: -0.08em;
  animation: typing-caret 0.8s steps(1) infinite;
}

@keyframes typing-caret {
  50% {
    opacity: 0;
  }
}

.hero__note {
  position: relative;
  grid-column: 1 / 3;
  grid-row: 1;
  display: block;
  padding-top: clamp(22px, 1.65vw, 34px);
}

.hero__note p {
  max-width: clamp(240px, 15vw, 310px);
  margin-bottom: 0;
  font-size: var(--type-title);
  line-height: 1.22;
  font-weight: 400;
}

.hero__star {
  position: absolute;
  top: var(--hero-star-top);
  right: var(--hero-star-right);
  z-index: 2;
  width: var(--hero-star-size);
  height: var(--hero-star-size);
  margin: 0;
  pointer-events: none;
  animation: spin 1.4s linear infinite;
  transform-origin: center;
  will-change: transform;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(32px, 2.9vw, 58px);
  width: max-content;
  margin: auto clamp(260px, 34vw, 700px) clamp(82px, 10.5vh, 132px) 0;
}

/* Buttons
   Base .button is intentionally minimal: no fixed height/width.
   Every visual type sets its own geometry. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

/* 1) Main Stroke Button */
.button--main-stroke {
  min-height: 35px;
  min-width: 25px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--space);
  border-color: rgba(12, 12, 28, 0.72);
  background: transparent;
  box-shadow: none;
}

.button--main-stroke:hover,
.button--main-stroke:focus-visible {
  color: var(--cloud);
  background: var(--space);
  border-color: var(--space);
}

/* 2) Main Lined Button */
.button--main-lined {
  min-height: 35px;
    min-width: 25px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--space);
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;

}

.button--main-lined:hover,
.button--main-lined:focus-visible {
  color: var(--coral);
}

/* 3) Card Button */
.button--card {
  min-height: 0;
  min-width: 0;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--space);
  border-color: var(--space);
  background: transparent;
  box-shadow: none;
}

.button--card:hover,
.button--card:focus-visible {
  color: var(--cloud);
  border-color: transparent;
  background: var(--space);
}

/* 4) Menu Button */
.button--menu {
  min-height: 26px;
  min-width: 112px;
  padding: 0 22px;
  color: var(--space);
  background: var(--cloud);
  border-color: transparent;
}

.button--menu:hover,
.button--menu:focus-visible {
  color: var(--cloud);
  background: var(--coral);
}

.hero__graphic {
  position: absolute;
  left: clamp(-32px, -1.4vw, -18px);
  right: auto;
  bottom: -2px;
  z-index: 1;
  width: min(860px, 43vw);
  aspect-ratio: 5357 / 2770;
  pointer-events: none;
}

.hero__beast {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
  transform-origin: center;
}

.hero__pupil {
  position: absolute;
  z-index: 2;
  left: 48.8%;
  top: 74.7%;
  width: 6.2%;
  aspect-ratio: 344 / 361;
  background: url("assets/02.png") center / contain no-repeat;
  border-radius: 50%;
  transform:
    translate(-50%, -50%)
    translate(var(--pupil-x, 0px), var(--pupil-y, 0px));
  transition: transform 80ms linear;
  will-change: transform;
}

.about {
  min-height: clamp(520px, 66.7vw, 960px);
  color: var(--cloud);
  background:
    linear-gradient(180deg, rgba(12, 12, 28, 0.42), rgba(12, 12, 28, 0.34)),
    url("assets/background.webp") center 54% / cover fixed;
  overflow: hidden;
}


.about__inner {
  min-height: clamp(520px, 66.7vw, 960px);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(54px, 4.6vw, 72px) 0 clamp(46px, 4.6vw, 70px);
}

.section-kicker {
  display: flex;
  align-items: center;
  width: auto;
  margin-left: 0;
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1;
}

.section-kicker span {
  display: inline;
}

.section-kicker::after {
  content: none;
}

.section-kicker--dark {
  color: var(--space);
}

.about__copy {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: start;
  gap: clamp(16px, 1.6vw, 24px);
  padding-top: var(--index-kicker-gap);
}

.team-intro .section-kicker,
.library .section-kicker {
  margin-bottom: var(--index-kicker-gap);
}

.about h2 {
  grid-row: 1 / span 4;
  letter-spacing: 0;
}

.about h2 .line,
.section-head h2 .line {
  white-space: nowrap;
}

.index-section-title {
  width: 100%;
  max-width: 600px;
  margin: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--type-section);
  font-weight: 500;
  line-height: 1.15;
}

.about p {
  max-width: 470px;
  margin-bottom: 0;
  color: rgba(241, 244, 246, 0.92);
  font-size: var(--type-body);
  font-weight: 200;
  line-height: 1.42;
}

.about p:nth-of-type(1),
.about p:nth-of-type(3) {
  grid-column: 8 / 12;
}

.about p:nth-of-type(1) {
  padding-top: 60px;
}

@media (max-width: 760px) {
  .about p:nth-of-type(1) {
    padding-top: 0;
  }
}

.about p:nth-of-type(3) {
  margin-top: 0;
}

.about p:nth-of-type(2) {
  grid-column: 8 / 12;
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease var(--delay),
    transform 700ms ease var(--delay);
}

.reveal-group.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.team {
  min-height: auto;
  padding: 0 0 var(--index-section-bottom);
  background: var(--grey);
}

/* Team cards shell: keeps 3-column cards from becoming oversized. */
.team > .shell {
  width: min(calc(100% - 96px), 900px);
  max-width: none;
}

.team-intro {
  min-height: auto;
  padding: var(--index-section-top) 0 var(--index-head-to-cards-gap);
  background: var(--grey);
}


.team-intro .section-head {
  max-width: none;
  margin-bottom: 0;
}

.team-intro .section-head,
.library .section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}


.about h2,
.team-intro .section-head h2,
.library .section-head h2 {
  grid-column: 1 / 9;
  width: 100%;
  max-width: 1000px;
  margin: 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--type-section);
  font-weight: 500;
  line-height: 1.15;
}

.section-head {
  max-width: 860px;
  margin-bottom: clamp(34px, 5.5vw, 58px);
}

.team-intro .section-head,
.library .section-head {
  max-width: none;
  border-top: 0;
  padding-top: 0;
}

.library .section-head {
  margin-bottom: var(--index-head-to-cards-gap);
}


.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(270px, 0.42fr);
  gap: clamp(30px, 6vw, 92px);
  align-items: end;
}

.section-head--split > p {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: var(--type-body);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--purple);
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0;
  font-size: var(--type-section);
  line-height: 1.15;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 0;
  background: var(--cloud);
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: none;
}

.team-card > * {
  min-width: 0;
}

.team-card__media {
  /* Media inset is smaller than text inset site-wide. */
  padding: var(--card-media-padding);
}

.team-card__media .card-media,
.team-card__media .card-media-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--card-inner-radius);
  background: var(--grey);
}

.team-card__media .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-card__body {
  padding: var(--card-content-padding);
  min-height: 258px;
  display: flex;
  flex-direction: column;
}

.team-card--media-bottom .team-card__body {
  padding-top: calc(var(--card-content-padding) + 10px);
}

.team-card h3,
.library-card h3 {
  margin-bottom: 13px;
  font-size: var(--type-card-title);
  line-height: var(--line-card-title);
  font-weight: var(--weight-card-title);
}

.team-card p,
.library-card__text {
  margin-bottom: 0;
  color: var(--space);
  font-size: var(--type-card-body);
  font-weight: var(--weight-card-body);
  line-height: var(--line-card-body);
}

.team-card .team-role {
  min-height: 38px;
  margin-bottom: 4px;
  color: var(--purple);
  font-style: normal;
  font-weight: 400;
  line-height: 1.08;
}

.team-description {
  line-height: 1.5;
}

.team-description .line,
.team-role .line {
  white-space: nowrap;
}

.library {
  min-height: auto;
  padding: var(--index-section-top) 0 var(--index-section-bottom);
  background: var(--grey);
}

/* Services cards on Index (separate component from Team cards). */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.15vw, 18px);
  align-items: stretch;
}

.library-card {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 0;
  background: var(--cloud);
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: none;
}

.library-card__media {
  padding: var(--card-media-padding);
}

.library-card__body {
  padding: var(--card-content-padding);
  min-height: 258px;
  display: flex;
  flex-direction: column;
}

.library-card--media-bottom .library-card__body {
  padding-top: calc(var(--card-content-padding) + 10px);
}

/* Card buttons: same class everywhere, no extra per-card button classes. */
.team-card__body .button--card,
.library-card__body .button--card {
  align-self: flex-start;
  margin-top: auto;
}

.library-card--celeste {
  background: var(--celeste);
}

.library-card--pink {
  background: var(--pink);
}

.library-card--lavender {
  background: var(--lavender);
}

.library-card--space {
  background: var(--space);
}

.library-card--space h3,
.library-card--space .library-card__text {
  color: var(--cloud);
}

.library-card--space .button--card {
  color: var(--cloud);
  border-color: var(--cloud);
}

.library-card--space .button--card:hover,
.library-card--space .button--card:focus-visible {
  color: var(--space);
  border-color: transparent;
  background: var(--cloud);
}

.card-media-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--card-inner-radius);
  background: var(--grey);
}

.library-card__media .card-media,
.library-card__media .card-media-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--card-inner-radius);
  background: var(--grey);
}

.library-card__media .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-contact {
  padding: clamp(88px, 10vw, 140px) 0;
  color: var(--cloud);
  background: var(--space);
  scroll-margin-top: 96px;
}

.site-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.34fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: start;
}

.site-contact__copy {
  min-width: 0;
}

.site-contact h2 {
  max-width: 860px;
  margin: 0;
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: var(--type-section);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.site-contact__copy p {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(241, 244, 246, 0.72);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 300;
  line-height: 1.45;
}

.site-contact__actions {
  display: grid;
  gap: 14px;
  width: min(100%, 270px);
  justify-self: end;
  justify-items: stretch;
}

.site-contact__actions .button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 24px;
  color: var(--cloud);
  background: transparent;
  border: 1px solid rgba(241, 244, 246, 0.72);
  box-shadow: none;
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

/* Индивидуальный hover кнопок в предподвале */

/* Главная */
.home-page .site-contact .button--primary:hover,
.home-page .site-contact .button--primary:focus-visible,
.home-page .site-contact .button--secondary:hover,
.home-page .site-contact .button--secondary:focus-visible {
  color: var(--space);
  background: var(--celeste);
  border-color: var(--celeste);
}

/* Ситтинг */
.sitting-page .site-contact .button--primary:hover,
.sitting-page .site-contact .button--primary:focus-visible,
.sitting-page .site-contact .button--secondary:hover,
.sitting-page .site-contact .button--secondary:focus-visible {
  color: var(--space);
  background: var(--pink);
  border-color: var(--pink);
}

/* Консультация */
.consultation-page .site-contact .button--primary:hover,
.consultation-page .site-contact .button--primary:focus-visible,
.consultation-page .site-contact .button--secondary:hover,
.consultation-page .site-contact .button--secondary:focus-visible {
  color: var(--cloud);
  background: var(--purple);
  border-color: var(--purple);
}

/* Курс */
.course-page .site-contact .button--primary:hover,
.course-page .site-contact .button--primary:focus-visible,
.course-page .site-contact .button--secondary:hover,
.course-page .site-contact .button--secondary:focus-visible {
  color: var(--space);
  background: var(--lavender);
  border-color: var(--lavender);
}


.site-contact .button--secondary {
  border-color: rgba(241, 244, 246, 0.34);
}

.site-contact__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.site-contact__social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--cloud);
  border-radius: 999px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.site-contact__social:hover,
.site-contact__social:focus-visible {
  transform: translateY(-2px);
}

.site-contact__social--instagram {
  background: var(--coral);
}

.site-contact__social--instagram:hover,
.site-contact__social--instagram:focus-visible {
  color: var(--space);
  background: var(--pink);
}

.site-contact__social--telegram {
  color: var(--space);
  background: var(--celeste);
}

.site-contact__social--telegram:hover,
.site-contact__social--telegram:focus-visible {
  color: var(--cloud);
  background: var(--purple);
}

.site-contact__social svg {
  width: 22px;
  height: 22px;
}

.site-contact__social--instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-contact__social--telegram svg {
  fill: currentColor;
}

@media (max-width: 900px) {
  .site-contact__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .site-contact__actions {
    width: min(100%, 360px);
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-contact {
    padding: 58px 0 64px;
  }

  .site-contact h2 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.12;
  }

  .site-contact__copy p {
    margin-top: 18px;
  }

  .site-contact__actions {
    width: 100%;
  }

  .site-contact__socials {
    margin-top: 4px;
  }
}

.legal-page {
  color: var(--space);
  background: var(--cloud);
  overflow-x: hidden;
}

.legal-page main {
  background: var(--cloud);
}

.legal-hero {
  padding: clamp(118px, 13vw, 188px) 0 clamp(42px, 7vw, 86px);
  background: var(--cloud);
}

.legal-hero .section-kicker {
  width: fit-content;
  margin: 0 0 24px;
}

.legal-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--space);
  font-family: var(--font-body);
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-content {
  padding: 0 0 clamp(74px, 9vw, 132px);
  background: var(--cloud);
}

.legal-content__inner {
  display: grid;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}

.legal-document {
  width: 100%;
  color: rgba(12, 12, 28, 0.82);
}

.legal-document > *:first-child {
  margin-top: 0;
}

.legal-document p,
.legal-document li,
.legal-document th,
.legal-document td {
  color: currentColor;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.02vw, 18px);
  font-weight: 300;
  line-height: 1.68;
  letter-spacing: 0;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document h2,
.legal-document h3 {
  color: var(--space);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

.legal-document h2 {
  margin: clamp(42px, 5vw, 64px) 0 18px;
  font-size: clamp(1.45rem, 2.25vw, 2.2rem);
  line-height: 1.12;
}

.legal-document h3 {
  margin: 30px 0 14px;
  font-size: clamp(1.06rem, 1.28vw, 1.28rem);
  line-height: 1.32;
}

.legal-document a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.legal-check-list li {
  position: relative;
  padding-left: 28px;
}

.legal-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--purple);
  font-weight: 700;
}

.legal-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border-top: 1px solid rgba(12, 12, 28, 0.18);
}

.legal-table th,
.legal-table td {
  padding: 16px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(12, 12, 28, 0.18);
}

.legal-table th {
  width: 34%;
  padding-right: 24px;
  color: var(--space);
  font-weight: 600;
}

.legal-page .site-contact .button--primary:hover,
.legal-page .site-contact .button--primary:focus-visible,
.legal-page .site-contact .button--secondary:hover,
.legal-page .site-contact .button--secondary:focus-visible {
  color: var(--space);
  background: var(--celeste);
  border-color: var(--celeste);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: rgba(12, 12, 28, 0.7);
  font-family: var(--font-body);
  font-size: var(--type-label);
  font-weight: 300;
  line-height: 1.45;
}

.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--purple);
}

.form-consent a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .legal-hero {
    padding: 104px 0 42px;
  }

  .legal-hero .section-kicker {
    margin-bottom: 18px;
  }

  .legal-document h2 {
    margin-top: 36px;
  }
}

.social-row {
  gap: 22px;
  color: rgba(241, 244, 246, 0.72);
}

/* Футер с анимацией*/

.site-footer {
  --footer-logo-progress: 0;

  padding: clamp(42px, 6vw, 88px) 0 clamp(20px, 2.2vw, 30px);
  color: var(--cloud);
  background: var(--space);
  overflow: hidden;
}

.site-footer > .footer__inner.shell {
  width: min(calc(100% - clamp(28px, 4vw, 72px)), 1888px);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: stretch;
}

.footer-logo-mark {
  display: block;
  width: 100%;
  color: var(--cloud);
  transform: scaleY(calc(0.08 + (var(--footer-logo-progress, 0) * 0.92)));
  transform-origin: center bottom;
  will-change: transform;
}

.footer-logo-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  color: rgba(241, 244, 246, 0.72);
}

.footer-bottom p {
  margin: 0;
  color: currentColor;
  font-size: var(--type-label);
  line-height: 1.2;
  white-space: nowrap;
}

.footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: currentColor;
}

.footer-links a {
  color: currentColor;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cloud);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer {
    --footer-logo-progress: 1;
  }

  .footer-logo-mark {
    transform: scaleY(1);
    will-change: auto;
  }
}

.sitting-page,
.consultation-page,
.course-page {
  background: var(--cloud);
  overflow-x: hidden;
}

.sitting-page :where(p, li, summary, h3, h4, a, button, strong),
.consultation-page :where(p, li, summary, h3, h4, a, button, strong),
.course-page :where(p, li, summary, h3, h4, a, button, strong) {
  font-family: var(--font-body);
}

.sitting-page main,
.consultation-page main,
.course-page main {
  overflow: visible;
  background: var(--cloud);
}

.sitting-section h2 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}

.sitting-section p,
.sitting-section li {
  font-family: var(--font-body);
  color: var(--space);
  font-weight: 300;
  font-size: var(--type-body);
  line-height: 1.45;
}

.sitting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(30px, 4vw, 58px);
}

.hero-gallery {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-self: stretch;
  overflow: hidden;
}

.hero-gallery__column {
  position: relative;
  overflow: hidden;
  background: var(--cloud);
}

.hero-gallery__track {
  display: flex;
  width: 100%;
  flex-direction: column;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero-gallery__column--down .hero-gallery__track {
  animation: gallery-scroll-down 42s linear infinite;
}

.hero-gallery__column--left .hero-gallery__track {
  animation-duration: 36s;
}

.hero-gallery__column--up .hero-gallery__track {
  animation: gallery-scroll-up 40s linear infinite;
}

.hero-gallery__track img {
  width: 100%;
  height: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
}

.sitting-section {
  position: relative;
  z-index: 2;
  padding: clamp(108px, 11vw, 176px) 0;
  background: var(--cloud);
}

.sitting-page .section-head,
.consultation-page .section-head,
.course-page .section-head {
  max-width: none;
  border-top: 1px solid var(--space);
  padding-top: 26px;
}

.sitting-section h2 {
  margin-bottom: 0;
  font-size: var(--type-section);
  line-height: 1.15;
}

.sitting-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 0.82fr);
  gap: clamp(46px, 9vw, 170px);
  align-items: start;
  border-top: 1px solid var(--space);
  padding-top: 26px;
}

.sitting-split--wide {
  grid-template-columns: minmax(260px, 0.55fr) minmax(320px, 0.75fr);
  align-items: end;
  margin-bottom: 48px;
}

.sitting-text-stack {
  display: grid;
  gap: clamp(14px, 1.7vw, 24px);
  max-width: 850px;
  padding-top: 2px;
}

.sitting-text-stack p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: var(--type-body);
}

.price-card,
.process-step,
.faq-list details {
  background: transparent;
  border-radius: 0;
}

.trust-item h3,
.process-step h3,
.price-card h3 {
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1.15;
}

.trust-item p:last-child,
.process-step p:last-child,
.price-card p:last-child {
  margin-bottom: 0;
}

.sitting-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitting-list li {
  padding: 10px 0;
  border-top: 1px solid rgba(12, 12, 28, 0.2);
}

.sitting-list li:last-child {
  border-bottom: 1px solid rgba(12, 12, 28, 0.2);
}

.sitting-list--plain {
  align-self: start;
  margin-top: 0;
}

.sitting-list--plain li {
  position: relative;
  padding: 0 0 10px 1.1em;
  border: 0;
}

.sitting-list--plain li:last-child {
  border: 0;
}

.sitting-list--plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 0.7em;
  height: 0.7em;
  background: url("assets/check.svg") center / contain no-repeat;
}

@media (max-width: 980px) {
  .trust-item h3 {
    font-size: var(--type-body-sm-mobile);
    line-height: 1.55;
  }

  .trust-item p {
    font-size: var(--type-body-sm-mobile);
  }
}

.process-list {
  display: grid;
  border-top: 1px solid var(--space);
}

.process-step {
  display: grid;
  grid-template-columns: clamp(15px, 4.2vw, 30px) minmax(0, 1fr);
  gap: clamp(14px, 2.8vw, 20px);
  padding: clamp(10px, 2.5vw, 15px) 0;
  border-bottom: 1px solid var(--space);
}

.process-step > span {
  color: var(--purple);
  font-family: var(--font-body);
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1;
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: var(--type-title);
}

.process-step p {
  max-width: 850px;
}

.process-note {
  max-width: 780px;
  display: grid;
  grid-template-columns: 1em 1fr;
  gap: 9px;
  margin-top: 22px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(12, 12, 28, 0.24);
  align-items: start;
}

.process-note img {
  width: 1em;
  height: 1em;
  margin-top: 0.18em;
}

.process-note p {
  color: var(--space);
}

.sitting-prices {
  background: var(--cloud);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 0.82fr);
  gap: clamp(46px, 9vw, 170px);
}

.section-head--split p {
  max-width: 760px;
  align-self: start;
  margin: 0;
  font-size: var(--type-body);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(58px, 6vw, 92px);
  border-top: 1px solid var(--space);
  border-left: 1px solid rgba(12, 12, 28, 0.24);
}

.price-card {
  min-height: 360px;
  padding: var(--card-content-padding);
  border-right: 1px solid rgba(12, 12, 28, 0.24);
  border-bottom: 1px solid rgba(12, 12, 28, 0.24);
  border-radius: var(--card-radius);
}

.price-card--featured {
  background: var(--cloud);
}

.price-card--note {
  color: var(--cloud);
  background: var(--space);
}

.sitting-section .price-card--note :where(h3, h4, p, li, strong),
.price-card--note :where(h3, h4, p, li, strong) {
  color: var(--cloud);
}

.price-card--note .sitting-list li {
  border-color: rgba(241, 244, 246, 0.24);
}

.price-card h3 {
  margin-bottom: clamp(20px, 2vw, 34px);
  font-size: var(--type-title);
}

.price-card h4 {
  margin: 26px 0 10px;
  color: var(--purple);
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.price-card ul {
  margin-top: 12px;
}

.price-note {
  margin-top: 18px;
  font-size: var(--type-label);
}

.price-alert {
  display: grid;
  grid-template-columns: 1em 1fr;
  gap: 8px;
  align-items: start;
}

.price-alert img {
  width: 1em;
  height: 1em;
  margin-top: 0.18em;
}

.sitting-faq {
  background: var(--cloud);
}

/* FAQ component */
.faq-list {
  display: grid;
  border-top: 0;
}

.faq-list details {
  overflow: hidden;
  background: transparent;
  border-bottom: 0;
}

.faq-list summary {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 22px 72px 22px 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1.12;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--space);
  border: 1px solid var(--purple);
  border-radius: 999px;
  font-size: var(--type-title);
  line-height: 1;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.faq-list details[open] summary::after {
  content: "+";
  transform: rotate(45deg);
  background: var(--purple);
  color: var(--cloud);
}

.faq-list .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    grid-template-rows 260ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.faq-list .faq-answer > * {
  overflow: hidden;
}

.faq-list details[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  animation: faq-answer-reveal 260ms ease both;
}

.faq-list details[open] .faq-answer p {
  animation: faq-copy-reveal 280ms ease both;
}

.faq-list details p,
.faq-list .faq-answer p {
  max-width: 860px;
  padding: 0 74px 28px 0;
  margin-bottom: 0;
  font-size: var(--type-body);
  font-weight: var(--weight-prose);
  line-height: var(--line-prose);
}

.faq-list details p + p,
.faq-list .faq-answer p + p {
  padding-top: 0;
}

@keyframes faq-answer-reveal {
  from {
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes faq-copy-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-button {
  justify-self: start;
  margin-top: 24px;
}

.sitting-reviews {
  min-height: 100svh;
  overflow: hidden;
  background: var(--cloud);
}

.sitting-reviews .section-head {
  margin-bottom: clamp(38px, 5vw, 76px);
}

.reviews-carousel {
  position: relative;
  width: min(100%, 1880px);
  margin-inline: auto;
  padding: 0 clamp(68px, 6vw, 108px);
}

.reviews-track {
  height: clamp(680px, 74vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 34px);
  overflow: visible;
}

.review-slide {
  display: none;
  margin: 0;
  flex: 0 0 clamp(170px, 12vw, 228px);
  opacity: 0.5;
  transform: scale(0.78);
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    flex-basis 240ms ease;
}

.review-slide.is-far-prev,
.review-slide.is-prev,
.review-slide.is-active,
.review-slide.is-next,
.review-slide.is-far-next {
  display: block;
}

.review-slide.is-far-prev,
.review-slide.is-far-next {
  flex-basis: clamp(120px, 8vw, 158px);
  opacity: 0.34;
  transform: scale(0.68);
}

.review-slide.is-prev,
.review-slide.is-next {
  flex-basis: clamp(180px, 13.2vw, 250px);
  opacity: 0.5;
  transform: scale(0.82);
}

.review-slide.is-active {
  z-index: 2;
  flex-basis: clamp(260px, 18vw, 330px);
  opacity: 1;
  transform: scale(1);
}

.review-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  filter: drop-shadow(0 22px 28px rgba(12, 12, 28, 0.1));
}

.reviews-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.reviews-arrow:hover,
.reviews-arrow:focus-visible {
  color: var(--cloud);
  background: var(--purple);
  transform: translateY(-50%) scale(1.04);
}

.reviews-arrow--prev {
  left: clamp(12px, 2.5vw, 46px);
}

.reviews-arrow--next {
  right: clamp(12px, 2.5vw, 46px);
}

.reviews-arrow svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.consultation-page {
  --consultation-tight: clamp(64px, 7vw, 112px);
  --consultation-col-1: clamp(220px, 18vw, 300px);
  --consultation-col-2: clamp(260px, 24vw, 360px);
  --consultation-col-3: clamp(320px, 29vw, 420px);
  --consultation-gap: clamp(42px, 5.8vw, 116px);
  --consultation-grid: var(--consultation-col-1) var(--consultation-col-2) var(--consultation-col-3);
}

.consultation-hero {
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: var(--cloud);
}

.consultation-hero__inner {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  padding: clamp(116px, 12vh, 158px) 0 clamp(58px, 7vh, 88px);
}

.consultation-hero__copy {
  min-width: 0;
}

.consultation-hero h1 {
  max-width: 980px;
  margin-bottom: clamp(28px, 4vw, 56px);
  font-family: var(--font-hero);
  font-size: var(--type-hero-alt);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
}

.consultation-hero h1 .line {
  white-space: nowrap;
}

.consultation-hero .sitting-lead {
  max-width: 760px;
}

.consultation-hero__photo {
  position: relative;
  align-self: stretch;
  min-height: clamp(520px, 72vh, 780px);
  margin: 0;
  overflow: hidden;
  background: var(--grey);
}

.consultation-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.consultation-about {
  padding-top: var(--consultation-tight);
  background: var(--cloud);
}

.consultation-profile {
  display: grid;
  grid-template-columns: var(--consultation-grid);
  gap: var(--consultation-gap);
  align-items: start;
  justify-content: space-between;
}

.consultation-profile__photo {
  width: 100%;
  max-width: 300px;
  margin: 0;
  overflow: hidden;
  background: none;
}

.consultation-profile__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 0;
}

.consultation-profile__bio,
.consultation-profile__details {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.consultation-profile__details > *,
.diploma-details,
.diploma-strip,
.diploma-carousel {
  min-width: 0;
  max-width: 100%;
}

.consultation-profile h2,
.consultation-profile h3 {
  margin: 0;
  font-size: var(--type-body);
  font-weight: 700;
  line-height: 1.16;
}

.consultation-profile p {
  max-width: 31ch;
  margin: 0 0 22px;
  font-size: var(--type-body);
  font-weight: 200;
  line-height: 1.4;
}

.consultation-profile h2 + p,
.consultation-profile h3 + p {
  margin-top: 0;
}

.consultation-profile__details {
  display: grid;
  gap: 22px;
  align-content: start;
}

.consultation-profile__bio p:last-child,
.consultation-profile__details p {
  margin-bottom: 0;
}

.diploma-details {
  margin-top: 0;
}

.diploma-details summary {
  position: relative;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  cursor: pointer;
  font-size: var(--type-body);
  font-weight: 700;
  line-height: 1.16;
  list-style: none;
}

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

.diploma-details summary::after {
  content: "";
  position: static;
  width: 8px;
  height: 8px;
  display: inline-block;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-2px);
}

.diploma-details[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.diploma-strip,
.diploma-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 28px;
  padding: 0 0 10px;
  scroll-snap-type: x mandatory;
}

.diploma-strip figure,
.diploma-carousel figure {
  width: clamp(150px, 12vw, 210px);
  min-height: 0;
  margin: 0;
  flex: 0 0 clamp(150px, 12vw, 210px);
  aspect-ratio: 1.16 / 1;
  display: grid;
  place-items: center;
  color: rgba(12, 12, 28, 0.58);
  background: #d1d7db;
  scroll-snap-align: start;
}

.diploma-strip span,
.diploma-carousel span {
  font-size: var(--type-label);
  font-weight: 600;
  text-transform: uppercase;
}

.consultation-topics {
  padding-top: var(--consultation-tight);
}

.consultation-topics__intro {
  display: grid;
  gap: 18px;
}

.consultation-topics__intro > p {
  margin-bottom: 0;
}

.consultation-topic-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(10px, 1.1vw, 16px);
  margin-top: clamp(42px, 5vw, 74px);
  border-top: 1px solid var(--space);
  padding-top: clamp(30px, 3vw, 44px);
}

.consultation-topic-grid article {
  min-height: clamp(36px, 3vw, 46px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(14px, 1.6vw, 24px);
  color: var(--cloud);
  background: var(--purple);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.consultation-topic-grid article:nth-child(1),
.consultation-topic-grid article:nth-child(4),
.consultation-topic-grid article:nth-child(7) {
  background: var(--space);
}

.consultation-topic-grid article:nth-child(2),
.consultation-topic-grid article:nth-child(6),
.consultation-topic-grid article:nth-child(10) {
  color: var(--space);
  background: var(--celeste);
}

.consultation-topic-grid article:nth-child(5),
.consultation-topic-grid article:nth-child(9) {
  background: var(--coral);
}

.consultation-topic-grid article:nth-child(3),
.consultation-topic-grid article:nth-child(8),
.consultation-topic-grid article:nth-child(11) {
  background: var(--purple);
}

.consultation-location {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.consultation-location img {
  width: 24px;
  height: 24px;
}

.consultation-location p {
  max-width: 760px;
  margin-bottom: 0;
  font-weight: 300;
}

.consultation-process {
  margin-top: clamp(42px, 5vw, 72px);
}

.consultation-services {
  overflow: hidden;
  background: var(--grey);
}

.services-carousel {
  position: relative;
  width: min(100%, 1880px);
  margin: clamp(46px, 5vw, 76px) auto 0;
  padding: 0 clamp(70px, 6vw, 108px);
}

.services-track {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.4vw, 22px);
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 0 14px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.services-track::-webkit-scrollbar,
.diploma-strip::-webkit-scrollbar,
.diploma-carousel::-webkit-scrollbar {
  height: 0;
}

.service-card {
  --service-card-bg: var(--lavender);
  flex: 0 0 clamp(320px, 25vw, 380px);
  min-height: 0;
  overflow: visible;
  padding: var(--card-content-padding);
  color: var(--space);
  background: var(--service-card-bg);
  border: 0;
  border-radius: var(--card-radius);
  scroll-snap-align: center;
}

.service-card:nth-child(2) {
  --service-card-bg: var(--cloud);
}

.service-card:nth-child(3) {
  --service-card-bg: var(--lavender);
}

.service-card:nth-child(4) {
  --service-card-bg: var(--cloud);
}

.service-card:nth-child(5) {
  --service-card-bg: var(--lavender);
}

.service-card:nth-child(6) {
  --service-card-bg: var(--cloud);
}

.service-card:nth-child(7) {
  --service-card-bg: var(--lavender);
}

.service-card:nth-child(8) {
  --service-card-bg: var(--cloud);
}

.service-card--lavender {
  --service-card-bg: var(--lavender);
}

.service-card h3 {
  margin: 0 0 clamp(22px, 2.2vw, 34px);
  color: var(--space);
  font-size: var(--type-title-sm);
  font-weight: 600;
  line-height: 1.08;
  text-align: center;
  text-transform: none;
}

.service-prices {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0 0 clamp(22px, 2.4vw, 34px);
  padding: 0;
  list-style: none;
}

.service-prices--lines {
  gap: 0;
  border-top: 1px solid rgba(12, 12, 28, 0.38);
  border-bottom: 1px solid rgba(12, 12, 28, 0.38);
  margin-bottom: clamp(16px, 2vw, 26px);
}

.service-prices li {
  display: grid;
  grid-template-columns: auto minmax(28px, 1fr) auto;
  gap: 2px;
  align-items: baseline;
  padding: 0;
  border: 0;
  font-size: var(--type-label);
  font-weight: 300;
  line-height: 1.25;
}

.service-prices--lines li {
  display: block;
  padding: 9px 0;
  border: 0;
  font-size: var(--type-label);
  font-weight: 300;
  line-height: 1.3;
}

.service-prices--lines li + li {
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(12, 12, 28, 0.38);
}

.service-prices--lines li:last-child {
  border-bottom: 0;
}

.service-prices--lines i {
  display: none;
}

.service-card--lavender .service-prices--lines {
  border-top-color: rgba(12, 12, 28, 0.26);
  border-bottom-color: rgba(12, 12, 28, 0.26);
}

.service-card--lavender .service-prices--lines li + li {
  box-shadow: inset 0 1px 0 rgba(12, 12, 28, 0.26);
}

.service-prices i {
  align-self: end;
  height: 1px;
  margin-bottom: 0.28em;
  border-bottom: 1px dotted currentColor;
  opacity: 0.78;
}

.service-prices strong {
  font-weight: 300;
}

.service-card h4 {
  margin: 0 0 10px;
  color: currentColor;
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

.service-list {
  display: grid;
  gap: 7px;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 1.18em;
  border: 0;
  font-size: var(--type-label);
  font-weight: 300;
  line-height: 1.3;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.37em;
  width: 0.34em;
  height: 0.34em;
  background: currentColor;
  border-radius: 999px;
}

.service-card p {
  margin: 0 0 14px;
  color: var(--space);
  font-size: var(--type-label);
  font-weight: 300;
  line-height: 1.3;
}

.service-note {
  position: relative;
  padding-left: 1.55em;
}

.service-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.05em;
  height: 1.05em;
  background: url("assets/attention.svg") center / contain no-repeat;
}

.section-head,
.team .section-head,
.sitting-page .section-head,
.sitting-split,
.sitting-split--wide,
.process-list,
.process-step,
.price-grid,
.price-card,
.faq-list,
.faq-list details,
.diploma-details,
.diploma-carousel,
.consultation-topic-grid,
.consultation-location,
.consultation-note,
.site-footer {
  border: 0;
}

.services-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.services-arrow:hover,
.services-arrow:focus-visible {
  color: var(--cloud);
  background: var(--purple);
  transform: translateY(-50%) scale(1.04);
}

.services-arrow--prev {
  left: clamp(12px, 2.5vw, 46px);
}

.services-arrow--next {
  right: clamp(12px, 2.5vw, 46px);
}

.services-arrow svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.consultation-note {
  margin-top: 28px;
  border-top: 1px solid var(--space);
  padding-top: 18px;
}

.consultation-note p {
  max-width: 760px;
  margin-bottom: 0;
  font-weight: 300;
}

.consultation-page .section-head--split,
.consultation-page .sitting-split {
  display: grid;
  grid-template-columns: var(--consultation-grid);
  gap: var(--consultation-gap);
  align-items: start;
  justify-content: space-between;
}

.consultation-page .section-head--split > :first-child,
.consultation-page .sitting-split > :first-child {
  grid-column: 1;
}

.consultation-page .section-head--split > :last-child:not(:first-child),
.consultation-page .sitting-split > :last-child:not(:first-child) {
  grid-column: 2 / 4;
  max-width: 720px;
}

.consultation-page .sitting-section h2 {
  max-width: 11em;
}

.consultation-page .sitting-text-stack,
.consultation-page .faq-list {
  max-width: 720px;
}

.consultation-page .consultation-topic-grid {
  width: var(--section-shell-width);
  padding-left: 0;
}

.consultation-page .consultation-process {
  display: grid;
  gap: 14px;
}

.consultation-page .consultation-process .process-step {
  display: grid;
  grid-template-columns: var(--consultation-grid);
  gap: var(--consultation-gap);
  align-items: start;
  width: auto;
  margin-left: 0;
  padding: 0;
}

.consultation-page .consultation-process .process-step > span {
  grid-column: 1;
  justify-self: end;
  margin-top: 0.08em;
}

.consultation-page .consultation-process .process-step > div {
  grid-column: 2 / 4;
  max-width: 720px;
}

.consultation-page .consultation-process .process-step h3 {
  max-width: 720px;
  margin-bottom: 0;
}


@keyframes spin {
  from {
    transform: translate3d(var(--star-x, 0px), var(--star-y, 0px), 0) rotate(0deg);
  }

  to {
    transform: translate3d(var(--star-x, 0px), var(--star-y, 0px), 0) rotate(360deg);
  }
}

@keyframes brand-spin {
  to {
    transform: rotate(720deg);
  }
}

@keyframes gallery-scroll-up {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -25%, 0);
  }
}

@keyframes gallery-scroll-down {
  from {
    transform: translate3d(0, -25%, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .topbar__brand:hover img,
  .topbar__brand:focus-visible img {
    animation: brand-spin 620ms ease-in-out 1;
  }
}

@media (max-width: 1240px) {
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-gallery {
    order: 1;
    height: clamp(360px, 50vh, 520px);
    min-height: 0;
  }
}

@media (max-width: 1060px) {
  :root {
    --p1: 17px;
    --p2: 13.6px;
    --h1: 51px;
    --h2: 34px;
  }

  .hero {
    min-height: 780px;
    --hero-star-top: clamp(104px, 11vw, 122px);
    --hero-star-right: clamp(464px, calc(57.75vw + 25px), 637px);
  }

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

  .hero__copy {
    grid-column: 3 / 9;
  }

  .hero__note {
    grid-column: 1 / 3;
    max-width: 260px;
    padding-top: 0;
    margin-left: 0;
  }

  .hero__actions {
    margin: auto clamp(76px, 13vw, 150px) clamp(50px, 7vh, 72px) 0;
  }

  .hero__graphic {
    width: min(650px, 61vw);
    left: -78px;
    right: auto;
    bottom: -2px;
  }

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

  .section-head--split,
  .consultation-hero__inner,
  .consultation-credentials,
  .sitting-split,
  .sitting-split--wide {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .consultation-hero {
    min-height: auto;
  }

  .consultation-hero__inner {
    min-height: auto;
    padding-top: clamp(92px, 11vw, 128px);
  }

  .consultation-hero__photo {
    order: -1;
    min-height: clamp(360px, 58vh, 620px);
  }

  .consultation-profile {
    grid-template-columns: minmax(170px, 230px) minmax(220px, 1fr) minmax(260px, 1fr);
    gap: clamp(28px, 4vw, 54px);
  }

  .consultation-profile__details {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .diploma-details {
    grid-column: auto;
  }

}

@media (max-width: 760px) {
  :root {
    --p1: 15px;
    --p2: 12px;
    --h1: 42px;
    --h2: 32px;
    --type-hero: clamp(2.35rem, 10vw, 2.55rem);
  }

  html {
    scroll-padding-top: 166px;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  .sitting-page .shell,
  .consultation-page .shell,
  .course-page .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    inset: 10px 0 auto;
  }

  .topbar {
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 18px;
  }

  .topbar__brand {
    order: -1;
    justify-self: center;
  }

  .topbar__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px 18px;
  }

  .topbar__actions {
    justify-content: center;
  }

  .topbar__links a {
    font-size: var(--type-label);
  }

  .hero {
    min-height: 760px;
    padding-top: 118px;
    --hero-star-top: clamp(280px, 35vh, 320px);
    --hero-star-right: calc(100% - 315px);
    --hero-star-size: 28px;
  }

  .hero__content {
    min-height: calc(760px - 118px);
    display: flex;
    flex-direction: column;
    padding-inline: 14px;
  }

  .hero__copy,
  .hero__note {
    grid-column: 1 / -1;
  }

  .hero__copy {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding-top: clamp(138px, 24vh, 210px);
    justify-content: flex-start;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: var(--type-section);
    line-height: 0.94;
  }

  .hero__actions {
    align-self: flex-end;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: max-content;
    margin: clamp(24px, 4vh, 34px) 0 clamp(164px, 23vh, 214px);
  }

  .hero__note {
    order: 1;
    margin-left: 0;
    margin-bottom: 34px;
    max-width: 230px;
  }

  .hero__graphic {
    width: 136vw;
    left: -33vw;
    right: auto;
    bottom: -54px;
  }

  .hero__pupil {
    left: 51.2%;
    top: 74.7%;
  }

  .about {
    background-attachment: scroll;
  }

  .about__inner {
    padding: 70px 0 84px;
  }

  .about__copy {
    display: block;
    padding-top: clamp(40px, 12vw, 56px);
  }

  .about h2 {
    margin-bottom: 44px;
    font-size: var(--type-section);
    overflow-wrap: normal;
  }

  .about h2 .line,
  .section-head h2 .line {
    white-space: normal;
  }

  .about p {
    max-width: 100%;
    margin-bottom: 28px;
    overflow-wrap: anywhere;
  }

  .about p:nth-of-type(3) {
    margin-top: 40px;
  }

  .team-grid,
  .offer-grid,
  .price-grid,
  .consultation-topic-grid {
    grid-template-columns: 1fr;
  }

  .team > .shell {
    width: min(calc(100% - 28px), 900px);
  }

  .consultation-hero__inner {
    gap: 24px;
    padding: 86px 0 54px;
  }

  .consultation-hero h1 {
    font-size: var(--type-hero);
    line-height: 1.04;
  }

  .consultation-hero h1 .line {
    white-space: normal;
  }

  .consultation-hero__photo {
    min-height: min(520px, 92vw);
  }

  .consultation-credentials {
    gap: 34px;
  }

  .consultation-profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .consultation-profile__photo {
    width: min(100%, 320px);
  }

  .consultation-profile__details {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .consultation-profile h2,
  .consultation-profile h3,
  .consultation-profile p,
  .diploma-details summary {
    font-size: var(--type-body);
  }

  .consultation-profile p {
    margin-bottom: 22px;
  }

  .diploma-strip figure,
  .diploma-carousel figure {
    flex-basis: min(58vw, 210px);
  }

  .consultation-topic-grid article {
    max-width: 100%;
    min-height: 34px;
    padding: 7px 14px;
    font-size: var(--type-body);
    line-height: 1.08;
    white-space: normal;
    text-align: center;
  }

  .consultation-location {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .consultation-location img {
    width: 22px;
    height: 22px;
  }

  .services-carousel {
    width: 100%;
    padding: 0;
  }

  .services-track {
    padding: 0 22px 12px;
  }

  .service-card {
    flex-basis: min(84vw, 330px);
    min-height: 0;
  }

  .services-arrow {
    display: none;
  }

  .hero-gallery {
    width: 100%;
    height: clamp(300px, 45vh, 380px);
    gap: 0;
  }

  .sitting-section p,
  .sitting-section li {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .sitting-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .sitting-section h2 {
    font-size: var(--type-section);
    line-height: 1.15;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .consultation-process .process-step {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .consultation-process .process-step > span {
    margin-top: 1px;
    font-size: 20px;
  }

  .consultation-process .process-step h3 {
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.14;
  }

  .consultation-process .process-step:last-child h3 br {
    display: none;
  }

  .team-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 0;
  }

  .team-card__media {
    padding: 0;
  }

  .team-card__media .card-media,
  .team-card__media .card-media-placeholder {
    border-radius: var(--card-inner-radius);
  }

  .team-card__body {
    min-height: 0;
    padding: 0;
  }

  .team-card h3 {
    margin: 0 0 6px;
    font-size: var(--type-title-sm);
    line-height: 1.12;
  }

  .team-card .team-role {
    min-height: 0;
    margin-bottom: 8px;
    line-height: 1.16;
  }

  .team-card p {
    font-size: 14px;
    line-height: 1.35;
  }

  .team-description .line,
  .team-role .line {
    white-space: normal;
  }

  .team-card__body .button--card {
    margin-top: 16px;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-logo-mark {
    transform: none;
    will-change: auto;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .topbar__links a {
    font-size: var(--type-label);
  }

  .hero {
    min-height: 760px;
  }

  .button {
    width: 100%;
  }

  .hero .button {
    width: auto;
  }

  .team-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    inset: 10px 0 auto;
  }

  .topbar {
    width: 40px;
    min-height: 40px;
    grid-template-columns: 40px;
    gap: 0;
    margin-inline: 10px auto;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    transition:
      border-radius 180ms ease,
      box-shadow 160ms ease,
      transform 160ms ease;
  }

  .topbar.is-menu-open {
    width: calc(100% - 20px);
    min-height: 56px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    margin-inline: auto;
    padding: 7px 9px;
    border-radius: 24px;
    background: var(--space);
    box-shadow: 0 16px 44px rgba(12, 12, 28, 0.22);
  }

  .topbar__menu-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    justify-self: start;
    color: var(--space);
    background: var(--cloud);
    border-radius: 999px;
    cursor: pointer;
    transition:
      color 160ms ease,
      background-color 160ms ease,
      transform 160ms ease;
  }

  .topbar__menu-toggle:hover,
  .topbar__menu-toggle:focus-visible {
    color: var(--cloud);
    background: var(--coral);
  }

  .topbar__menu-toggle span {
    grid-area: 1 / 1;
    width: 17px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition:
      transform 180ms ease,
      opacity 140ms ease;
  }

  .topbar__menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
  }

  .topbar__menu-toggle span:nth-child(3) {
    transform: translateY(6px);
  }

  .topbar.is-menu-open .topbar__menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

  .topbar.is-menu-open .topbar__menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-menu-open .topbar__menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .topbar__brand {
    display: none;
    order: initial;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .topbar.is-menu-open .topbar__brand {
    display: grid;
  }

  .topbar__links,
  .topbar__actions {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
  }

  .topbar.is-menu-open .topbar__links,
  .topbar.is-menu-open .topbar__actions {
    display: flex;
  }

  .topbar__links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-top: 12px;
    padding: 13px 8px 8px;
    border-top: 1px solid rgba(241, 244, 246, 0.18);
  }

  .topbar__links a {
    padding: 13px 10px;
    font-size: var(--type-label);
    line-height: 1;
    border-radius: var(--radius);
  }

  .topbar__links a:hover,
  .topbar__links a:focus-visible {
    color: var(--lavender);
    background: rgba(241, 244, 246, 0.06);
  }

  .topbar__actions {
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    padding: 0 8px 8px;
  }

  .topbar__contact {
    flex: 1;
    min-height: 40px;
    padding-inline: 18px;
  }

  .reviews-carousel {
    width: 100%;
    padding: 0;
  }

  .reviews-track {
    height: auto;
    min-height: auto;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 22px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .reviews-track::-webkit-scrollbar {
    height: 0;
  }

  .review-slide,
  .review-slide.is-far-prev,
  .review-slide.is-prev,
  .review-slide.is-active,
  .review-slide.is-next,
  .review-slide.is-far-next {
    order: initial !important;
    display: block;
    flex: 0 0 min(78vw, 320px);
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
  }

  .review-slide img {
    border-radius: 16px;
    box-shadow: none;
    filter: drop-shadow(0 18px 22px rgba(12, 12, 28, 0.08));
  }

  .reviews-arrow {
    display: none;
  }
}

/* Global removal of decorative section/card divider lines. */
.section-head,
.team .section-head,
.library .section-head,
.sitting-page .section-head,
.sitting-split,
.sitting-split--wide,
.process-list,
.process-step,
.price-grid,
.price-card,
.faq-list,
.faq-list details,
.diploma-details,
.consultation-topic-grid,
.consultation-location,
.consultation-note,
.site-footer {
  border: 0;
}

/* Consultation page alignment system. Kept last so older responsive rules do not fight it. */
.consultation-page {
  --consultation-col-1: clamp(220px, 18vw, 300px);
  --consultation-col-2: clamp(260px, 24vw, 360px);
  --consultation-col-3: clamp(320px, 29vw, 420px);
  --consultation-gap: clamp(42px, 5.8vw, 116px);
  --consultation-grid: var(--consultation-col-1) var(--consultation-col-2) var(--consultation-col-3);
}

.consultation-page .consultation-hero {
  min-height: auto;
}

.consultation-page .consultation-hero__inner {
  min-height: clamp(460px, 62svh, 640px);
  grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(86px, 9vh, 118px);
  padding-bottom: clamp(32px, 4.6vh, 52px);
}

.consultation-page .consultation-hero__copy {
  max-width: 980px;
}

.consultation-page .sitting-section {
  padding-top: clamp(38px, 4vw, 64px);
  padding-bottom: clamp(38px, 4vw, 64px);
}

.consultation-page .consultation-about,
.consultation-page .consultation-topics {
  padding-top: clamp(36px, 3.8vw, 58px);
}

.consultation-page .section-head {
  margin-bottom: clamp(18px, 2.2vw, 30px);
}

.consultation-page .consultation-profile,
.consultation-page .section-head--split,
.consultation-page .sitting-split {
  display: grid;
  grid-template-columns: var(--consultation-grid);
  gap: var(--consultation-gap);
  align-items: start;
  justify-content: space-between;
}

.consultation-page .consultation-profile__details > .diploma-details {
  width: 100%;
  max-width: none;
}

.consultation-page .consultation-profile__details > .diploma-details summary {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.consultation-page .consultation-profile__details > .diploma-details summary span {
  min-width: 0;
}

.consultation-page .consultation-profile__details > .diploma-details summary::after {
  width: 8px;
  height: 8px;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translateY(-1px);
}

.consultation-page .consultation-profile__details > .diploma-details[open] summary::after {
  transform: rotate(-135deg) translateY(0);
}

.consultation-page .consultation-profile__details > .diploma-details .diploma-strip {
  width: 100%;
  max-width: none;
  margin-left: 0;
}

.consultation-page .consultation-profile {
  column-gap: var(--consultation-gap);
  row-gap: clamp(20px, 2.4vw, 34px);
}

.consultation-page .consultation-profile > .diploma-carousel {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  display: none;
  margin-top: 0;
}

.consultation-page .consultation-profile:has(.diploma-details[open]) > .diploma-carousel {
  display: flex;
}

.consultation-page .consultation-profile > .diploma-carousel figure {
  flex-basis: clamp(230px, 21vw, 360px);
}

.consultation-page .section-head--split > :first-child,
.consultation-page .sitting-split > :first-child {
  grid-column: 1;
}

.consultation-page .section-head--split > :last-child:not(:first-child),
.consultation-page .sitting-split > :last-child:not(:first-child) {
  grid-column: 2 / 4;
  max-width: 720px;
}

.consultation-page .consultation-process-layout {
  align-items: start;
}

.consultation-page .sitting-split.consultation-process-layout > .consultation-process-text {
  grid-column: 2;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
  color: var(--space);
  font-size: var(--type-body);
  font-weight: 300;
  line-height: 1.38;
}

.consultation-page .sitting-split.consultation-process-layout > .consultation-process-text li {
  padding: 0;
}

.consultation-page .sitting-split.consultation-process-layout > .sitting-text-stack {
  grid-column: 3;
  max-width: var(--consultation-col-3);
  gap: clamp(14px, 1.4vw, 20px);
}

.consultation-page .consultation-attention-note {
  position: relative;
  padding-left: 1.55em;
}

.consultation-page .consultation-attention-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.05em;
  height: 1.05em;
  background: url("assets/attention.svg") center / contain no-repeat;
}

.consultation-page .consultation-topic-grid {
  display: grid;
  grid-template-columns: var(--consultation-grid);
  align-items: start;
  gap: var(--consultation-gap);
  justify-content: space-between;
  width: var(--section-shell-width);
  max-width: none;
  margin-top: clamp(14px, 1.8vw, 24px);
  margin-left: auto;
  padding-top: 0;
  padding-left: 0;
}

.consultation-page .consultation-topic-flow {
  grid-column: 2 / 4;
  width: min(720px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.1vw, 16px);
  justify-self: start;
}

.consultation-page .consultation-topic-grid article {
  width: auto;
  max-width: 100%;
  padding-block: 10px;
  line-height: 1.12;
  white-space: nowrap;
}

.consultation-page .consultation-process {
  margin-top: 0;
  grid-template-columns: var(--consultation-grid);
  gap: 14px var(--consultation-gap);
  justify-content: space-between;
}

.consultation-page .consultation-services .section-head {
  margin-bottom: 0;
}

.consultation-page .services-carousel {
  margin-top: clamp(22px, 2.4vw, 36px);
}

.consultation-page .consultation-note {
  margin-top: clamp(18px, 2vw, 28px);
  padding-top: 0;
}

.consultation-page .sitting-faq {
  padding-top: clamp(38px, 3.8vw, 58px);
  padding-bottom: clamp(38px, 3.8vw, 58px);
}

@media (max-width: 1180px) {
  .consultation-page {
    --consultation-col-1: clamp(160px, 20vw, 220px);
    --consultation-col-2: clamp(220px, 29vw, 300px);
    --consultation-col-3: clamp(240px, 31vw, 320px);
    --consultation-gap: clamp(24px, 3.8vw, 54px);
  }

  .consultation-page .consultation-profile__photo {
    max-width: 220px;
  }
}

@media (max-width: 760px) {
  .consultation-page .sitting-section,
  .consultation-page .consultation-services,
  .consultation-page .sitting-faq {
    scroll-margin-top: 96px;
  }

  .consultation-page .consultation-hero__inner {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 34px;
  }

  .consultation-page .sitting-section,
  .consultation-page .sitting-faq {
    padding-top: 30px;
    padding-bottom: 34px;
  }

  .consultation-page .section-head {
    margin-bottom: 18px;
  }

  .consultation-page .consultation-profile,
  .consultation-page .section-head--split,
  .consultation-page .sitting-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .consultation-page .section-head--split > :first-child,
  .consultation-page .section-head--split > :last-child,
  .consultation-page .sitting-split > :first-child,
  .consultation-page .sitting-split > :last-child {
    grid-column: 1;
    max-width: none;
  }

  .consultation-page .consultation-profile__photo {
    max-width: 320px;
  }

  .consultation-page .sitting-split.consultation-process-layout > .sitting-text-stack,
  .consultation-page .sitting-split.consultation-process-layout > .consultation-process-text {
    grid-column: 1;
    max-width: none;
  }

  .consultation-page .sitting-split.consultation-process-layout > .sitting-text-stack {
    order: 2;
  }

  .consultation-page .sitting-split.consultation-process-layout > .consultation-process-text {
    order: 3;
    list-style-position: outside;
    padding-left: 1.35em;
  }

  .consultation-page .consultation-topic-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    margin-inline: auto;
    padding-left: 0;
  }

  .consultation-page .consultation-topic-flow {
    grid-column: auto;
    width: 100%;
  }

  .consultation-page .consultation-topic-grid article {
    width: fit-content;
    white-space: normal;
  }

  .consultation-page .consultation-process {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

}

/* UI review fixes: navigation, grid, type scale, and mobile hero safety. */
:root {
  --section-shell-width: min(calc(100% - clamp(44px, 7vw, 160px)), 1360px);
  --type-section: clamp(1.7rem, 2.05vw, 2.1rem);
  --type-title: clamp(1.1rem, 1.12vw, 1.3rem);
}

html,
body {
  overflow-x: hidden;
}

.site-header {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header.is-scrolled .topbar {
  transform: translateY(-5px);
}

.topbar__actions {
  gap: 0;
}

.topbar__contact {
  font-weight: 600;
}

.section-head h2,
.sitting-section h2 {
  font-weight: 500;
  line-height: 1.15;
}

.team-card h3,
.service-card h3,
.price-card h3,
.trust-item h3,
.process-step h3 {
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  line-height: var(--line-card-title);
}

.team-card p,
.service-card p,
.price-card p,
.trust-item p,
.process-step p,
.service-list li {
  font-size: var(--type-card-body);
  font-weight: var(--weight-card-body);
  line-height: var(--line-card-body);
}

.service-prices li {
  font-size: var(--type-card-body);
  font-weight: var(--weight-card-body);
  line-height: var(--line-card-body);
}

.service-prices strong {
  font-weight: var(--weight-card-body);
}
.team-card p,
.sitting-section p,
.sitting-section li,
.consultation-profile p,
.service-card p,
.service-list li {
  font-weight: var(--weight-prose);
}
.consultation-hero h1,
.sitting-hero h1 {
  max-width: 100%;
}

.hero h1 .line,
.consultation-hero h1 .line,
.sitting-hero h1 .line {
  max-width: 100%;
}

@media (max-width: 760px) {
  .faq-section > .sitting-split {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .faq-section h2 {
    max-width: none;
  }

  .faq-section .faq-list {
    width: 100%;
    margin-top: 0;
    transform: none;
  }

  .faq-list summary {
    width: 100%;
    min-height: 0;
    padding: 20px 52px 20px 0;
    font-size: clamp(15px, 5.4vw, 20px);
    line-height: 1.12;
  }

  .faq-list summary::after {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .faq-list details p,
  .faq-list .faq-answer p {
    padding: 0 52px 24px 0;
    font-size: var(--type-body);
    line-height: var(--line-prose);
  }

  :root {
    --section-shell-width: min(calc(100% - 28px), 1180px);
    --type-section: clamp(1.7rem, 7.1vw, 2rem);
    --type-title: clamp(1.05rem, 4.4vw, 1.2rem);
  }

  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    inset: 10px 0 auto;
  }

  .topbar {
    min-height: 40px;
    grid-template-columns: 40px;
  }

  .topbar.is-menu-open {
    min-height: 56px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .topbar__actions {
    justify-content: stretch;
  }

  .topbar__contact {
    width: 100%;
  }

  .hero,
  .consultation-hero,
  .sitting-hero {
    overflow: hidden;
  }

  .hero__content,
  .consultation-hero__inner {
    width: min(calc(100% - 28px), 1180px);
    max-width: 100%;
    margin-inline: auto;
  }

  .hero__copy,
  .consultation-hero__copy,
  .sitting-hero__copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero__title,
  .hero h1,
  .consultation-hero h1,
  .sitting-hero h1 {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 .line,
  .consultation-hero h1 .line,
  .sitting-hero h1 .line {
    display: inline;
    white-space: normal;
  }

  .hero h1 .line::after,
  .consultation-hero h1 .line::after,
  .sitting-hero h1 .line::after {
    content: " ";
  }

  .hero__line-text {
    display: inline;
  }

  .consultation-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .consultation-hero .sitting-lead {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .consultation-page .consultation-hero {
    min-height: auto;
  }

  .consultation-page .consultation-hero__inner {
    padding-top: 104px;
    padding-bottom: 42px;
  }

  .consultation-hero h1 {
    margin-bottom: 24px;
    font-size: clamp(1.9rem, 7.8vw, 2.08rem);
    line-height: 1.03;
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: 760px;
    padding-top: 94px;
  }

  .hero__content {
    min-height: calc(760px - 94px);
    padding-inline: 0;
  }

  .hero__note {
    max-width: 250px;
    margin-bottom: 0;
  }

  .hero__copy {
    padding-top: clamp(76px, 14vh, 124px);
    align-items: flex-start;
    text-align: left;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 7.8vw, 2.2rem);
    line-height: 1.03;
    overflow-wrap: anywhere;
  }

  .hero__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-self: flex-start;
    margin: 24px 0 clamp(150px, 20vh, 190px);
  }

  .hero .button {
    width: auto;
    max-width: 100%;
  }

  .hero__graphic {
    width: 118vw;
    left: -30vw;
    bottom: -30px;
  }

  .sitting-page .sitting-hero__inner {
    width: 100%;
  }

  .sitting-hero__copy {
    width: min(calc(100% - 56px), 1180px);
    margin-inline: auto;
    padding-inline: 0;
  }

  .sitting-hero .sitting-lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .sitting-hero h1 {
    font-size: clamp(1.95rem, 8vw, 2.16rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .sitting-actions {
    width: 100%;
  }

  .sitting-actions .button {
    width: min(100%, 360px);
  }

  .section-head h2,
  .sitting-section h2 {
    font-size: var(--type-section);
    line-height: 1.15;
  }
}

/* Global page background: use brand grey on all pages. */
:root {
  --page-bg: #d1d7db;
}

body,
main,
.hero,
.sitting-hero,
.consultation-hero,
.sitting-section {
  background: var(--page-bg) !important;
}

@media (max-width: 760px) {
  .team {
    --team-card-width: min(280px, calc(100vw - 44px));
  }
}

/* Index service cards shadow + hover */
.offer-grid .library-card {
  box-shadow: 0 12px 28px rgba(12, 12, 28, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .offer-grid .library-card {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
    will-change: transform;
  }

  .offer-grid .library-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(12, 12, 28, 0.12);
  }
}
