:root {
  --ink: #273432;
  --muted: #687674;
  --cream: #f8f5ef;
  --paper: #fffdf9;
  --blue: #b9d9dd;
  --blue-deep: #3f777c;
  --blue-dark: #315e62;
  --peach: #efc6af;
  --peach-light: #f6e5db;
  --sand: #e9e0d2;
  --line: rgba(39, 52, 50, 0.12);
  --shadow: 0 24px 70px rgba(48, 76, 73, 0.12);
  --radius-lg: 34px;
  --radius-md: 24px;
  --container: 1180px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #e49d74;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

.section-compact {
  padding: 54px 0;
}

.section-tint {
  background: #edf4f3;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.eyebrow.light {
  color: #cfe8e9;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.25rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2.55rem, 4.4vw, 4.35rem);
}

h1 em,
h2 em {
  color: var(--blue-deep);
  font-weight: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: rgba(248, 245, 239, 0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 36px rgba(52, 73, 70, 0.08);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50% 50% 50% 16px;
  background: var(--blue-deep);
  color: white;
  font-family: Georgia, serif;
  font-size: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 0.93rem;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 25px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: #52605e;
  font-size: 0.84rem;
  font-weight: 650;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--blue-deep);
  content: "";
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-phone {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.header-phone span {
  color: var(--muted);
  font-size: 0.68rem;
}

.header-phone strong {
  margin-top: 4px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  padding: 142px 0 80px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: clamp(40px, 7vw, 100px);
}

.hero-copy {
  padding-top: 95px;
}

.hero-lead {
  max-width: 670px;
  margin: 28px 0 0;
  color: #52605e;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.58;
}

.hero-person {
  display: flex;
  margin-top: 30px;
  flex-direction: column;
  gap: 3px;
}

.hero-person strong {
  font-size: 1rem;
}

.hero-person span {
  color: var(--muted);
  font-size: 0.9rem;
}

.button-row {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: var(--blue-deep);
  box-shadow: 0 14px 30px rgba(63, 119, 124, 0.22);
  color: white;
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 18px 36px rgba(63, 119, 124, 0.3);
}

.button-secondary {
  border-color: rgba(39, 52, 50, 0.16);
  background: rgba(255, 253, 249, 0.65);
}

.button-secondary:hover {
  background: white;
}

.trust-line {
  display: flex;
  margin-top: 31px;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.trust-line span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-line span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach);
  content: "";
}

.hero-visual {
  position: relative;
  max-width: 485px;
  justify-self: end;
}

.hero-photo-wrap {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 34px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 26px;
  object-fit: cover;
  object-position: 50% 34%;
}

.photo-caption {
  position: absolute;
  right: 26px;
  bottom: 28px;
  left: 26px;
  display: flex;
  padding: 14px 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(36, 56, 53, 0.15);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.photo-caption strong {
  display: block;
  color: var(--ink);
}

.caption-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--peach-light);
  color: #a75f3b;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  top: 100px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: rgba(185, 217, 221, 0.42);
}

.hero-orb-two {
  bottom: -190px;
  left: -130px;
  width: 390px;
  height: 390px;
  background: rgba(239, 198, 175, 0.31);
}

.quote-card {
  position: relative;
  display: grid;
  margin: 0;
  padding: 42px 75px 42px 116px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  grid-template-columns: 1fr auto;
  gap: 35px;
  box-shadow: 0 18px 50px rgba(50, 73, 69, 0.06);
}

.quote-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 100%;
  background: var(--peach);
  content: "";
}

.quote-mark {
  position: absolute;
  top: 20px;
  left: 39px;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
}

.quote-card p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.35;
}

.quote-card footer {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.62fr);
  gap: clamp(50px, 9vw, 125px);
}

.section-copy h2 {
  margin-bottom: 35px;
}

.section-copy p {
  max-width: 720px;
  margin: 0 0 19px;
  color: #53615f;
}

.facts-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: #ddeced;
}

.facts-title {
  margin: 0 0 19px;
  color: var(--blue-dark);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fact {
  display: flex;
  min-height: 145px;
  padding: 20px 17px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(49, 94, 98, 0.16);
  border-bottom: 1px solid rgba(49, 94, 98, 0.16);
}

.fact:nth-child(even) {
  border-right: 0;
}

.fact:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fact strong {
  color: var(--blue-dark);
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
}

.fact span {
  margin-top: 5px;
  color: #536f70;
  font-size: 0.75rem;
  line-height: 1.4;
}

.approach-section {
  padding-top: 30px;
}

.approach-card {
  display: grid;
  min-height: 500px;
  padding: clamp(45px, 7vw, 82px);
  align-items: start;
  overflow: hidden;
  border-radius: 46px;
  background: #dcebea;
  grid-template-columns: 0.42fr 1fr;
  gap: 60px;
}

.approach-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.approach-label span {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 50% 50% 18px 50%;
  background: var(--paper);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: none;
}

.approach-copy h2 {
  max-width: 780px;
  margin-bottom: 35px;
  font-size: clamp(2.45rem, 4vw, 4rem);
}

.approach-copy p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #486365;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.1fr;
  gap: clamp(55px, 10vw, 150px);
}

.diagnostic-heading {
  align-self: start;
}

.diagnostic-heading h2 {
  margin-bottom: 34px;
}

.text-link {
  display: inline-flex;
  padding-bottom: 5px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.text-link span {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.diagnostic-body > p {
  margin: 0 0 20px;
  color: #53615f;
}

.diagnostic-body > p:first-child {
  color: var(--ink);
  font-size: 1.2rem;
}

.diagnostic-steps {
  display: grid;
  margin-top: 45px;
  grid-template-columns: repeat(3, 1fr);
}

.diagnostic-steps > div {
  display: flex;
  min-height: 155px;
  padding: 20px 20px 20px 0;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.diagnostic-steps > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.diagnostic-steps span {
  margin-bottom: auto;
  color: #a76c4d;
  font-family: Georgia, serif;
  font-size: 1rem;
}

.diagnostic-steps strong {
  font-size: 0.9rem;
}

.diagnostic-steps small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.section-heading {
  margin-bottom: 55px;
}

.section-heading.centered {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.centered .eyebrow {
  justify-content: center;
}

.section-heading > p:not(.eyebrow) {
  margin: 25px auto 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 265px;
  padding: 28px;
  border: 1px solid rgba(50, 94, 98, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(51, 82, 79, 0.1);
}

.service-card > span {
  display: inline-flex;
  margin-bottom: 50px;
  color: #a76c4d;
  font-family: Georgia, serif;
  font-size: 0.92rem;
}

.service-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.lesson-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(330px, 0.75fr) 1fr;
  gap: clamp(55px, 10vw, 140px);
}

.lesson-image-card {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 190px 190px 34px 34px;
  background: white;
  box-shadow: var(--shadow);
}

.lesson-image-card img {
  width: 100%;
  aspect-ratio: 0.77;
  border-radius: 180px 180px 28px 28px;
  object-fit: cover;
  object-position: 50% 48%;
}

.lesson-image-card > span {
  position: absolute;
  right: 26px;
  bottom: 25px;
  left: 26px;
  padding: 15px 18px;
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.lesson-copy h2 {
  max-width: 700px;
  margin-bottom: 31px;
}

.lesson-copy .lead {
  margin: 0;
  color: #53615f;
  font-size: 1.1rem;
}

.method-note {
  display: flex;
  margin-top: 35px;
  padding: 24px 28px;
  align-items: flex-start;
  gap: 18px;
  border-radius: 18px;
  background: var(--peach-light);
}

.method-note > span {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: #a76c4d;
}

.method-note p {
  margin: 0;
  color: #745847;
  font-size: 0.84rem;
  line-height: 1.6;
}

.gallery-section {
  background: #f0eae1;
}

.split-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr 0.52fr;
  gap: 70px;
}

.split-heading > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.8fr 0.8fr;
  grid-template-rows: repeat(2, 300px);
  gap: 14px;
}

.gallery-card,
.gallery-placeholder {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper);
}

.gallery-wide {
  grid-row: span 2;
}

.gallery-grid > :nth-child(4) {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-wide img {
  object-position: 58% 50%;
}

.gallery-portrait img {
  object-position: 50% 28%;
}

.gallery-office img {
  object-position: 50% 62%;
}

.gallery-materials img {
  object-position: 50% 52%;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(28, 40, 38, 0.7));
  content: "";
  pointer-events: none;
}

.gallery-card figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  flex-direction: column;
  color: white;
  line-height: 1.35;
}

.gallery-card figcaption strong {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.gallery-card figcaption span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.73rem;
}

.gallery-placeholder {
  display: flex;
  padding: 30px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed rgba(63, 119, 124, 0.35);
  background: rgba(255, 253, 249, 0.44);
  text-align: center;
}

.placeholder-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--blue-dark);
  font-size: 1.6rem;
  font-weight: 300;
}

.gallery-placeholder strong {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.gallery-placeholder small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.qualification-heading {
  max-width: 830px !important;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.document-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(50, 71, 68, 0.06);
}

.document-image {
  height: 315px;
  overflow: hidden;
  background: #ede9e2;
}

.document-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.document-card:hover img {
  transform: scale(1.025);
}

.document-card figcaption {
  display: flex;
  min-height: 116px;
  padding: 20px;
  flex-direction: column;
}

.document-card figcaption strong {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
}

.document-card figcaption span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.fit-section {
  padding-top: 60px;
}

.fit-grid {
  display: grid;
  align-items: start;
  padding: clamp(45px, 7vw, 78px);
  border-radius: 42px;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(49, 74, 71, 0.08);
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(55px, 10vw, 130px);
}

.fit-intro p:not(.eyebrow) {
  margin: 27px 0 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.check-list li {
  position: relative;
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.check-list li::before {
  position: absolute;
  top: 22px;
  left: 1px;
  width: 10px;
  height: 6px;
  transform: rotate(-45deg);
  border-bottom: 2px solid var(--blue-deep);
  border-left: 2px solid var(--blue-deep);
  content: "";
}

.cta-section {
  padding-top: 40px;
}

.cta-card {
  position: relative;
  display: grid;
  padding: clamp(48px, 7vw, 80px);
  align-items: center;
  overflow: hidden;
  border-radius: 44px;
  background: var(--blue-dark);
  color: white;
  grid-template-columns: 1fr 0.72fr;
  gap: 70px;
}

.cta-copy,
.cta-action {
  position: relative;
  z-index: 2;
}

.cta-copy h2 {
  color: white;
}

.cta-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.cta-location {
  display: flex;
  margin-top: 28px;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.cta-location span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.cta-action {
  display: flex;
  padding: 28px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.cta-action > span {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.button-light {
  width: 100%;
  background: var(--paper);
  color: var(--blue-dark);
}

.button-light:hover {
  box-shadow: 0 15px 35px rgba(16, 38, 40, 0.22);
}

.telegram-button {
  width: 100%;
  margin-top: 10px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.telegram-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cta-action small {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.67rem;
  text-align: center;
}

.cta-decor {
  position: absolute;
  right: -35px;
  bottom: -155px;
  color: rgba(255, 255, 255, 0.045);
  font-family: Georgia, serif;
  font-size: 30rem;
  line-height: 1;
}

.site-footer {
  padding: 25px 0 32px;
  background: var(--cream);
}

.footer-grid {
  display: grid;
  padding: 38px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1.1fr 1fr auto;
  gap: 30px;
}

.footer-person,
.footer-details {
  display: flex;
  flex-direction: column;
}

.footer-person strong {
  font-family: Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
}

.footer-person span,
.footer-details span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-telegram {
  width: fit-content;
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--blue-deep);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-phone {
  font-size: 1rem;
  font-weight: 750;
}

.footer-bottom {
  display: flex;
  padding-top: 24px;
  justify-content: space-between;
  color: #7d8785;
  font-size: 0.69rem;
}

.footer-bottom a {
  color: var(--ink);
  font-weight: 700;
}

.mobile-call {
  display: none;
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 17px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .header-phone {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.66fr);
    gap: 50px;
  }

  .service-grid,
  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: repeat(3, 270px);
  }

  .gallery-wide {
    grid-row: span 2;
  }

  .gallery-grid > :nth-child(4) {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 74px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .section {
    padding: 82px 0;
  }

  .header-inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: 70px;
    right: 0;
    left: 0;
    display: flex;
    max-height: 0;
    margin: 0;
    padding: 0 24px;
    overflow: hidden;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    box-shadow: 0 24px 40px rgba(38, 56, 53, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 430px;
    padding-top: 15px;
    padding-bottom: 24px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 70px;
  }

  .hero-grid,
  .about-grid,
  .diagnostic-grid,
  .lesson-grid,
  .fit-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 55px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .quote-card {
    padding: 55px 35px 35px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quote-mark {
    top: 9px;
    left: 25px;
    font-size: 4.5rem;
  }

  .facts-card {
    max-width: 560px;
  }

  .approach-card {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .diagnostic-grid,
  .lesson-grid,
  .fit-grid {
    gap: 55px;
  }

  .lesson-image-card {
    width: min(100%, 520px);
    justify-self: center;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .cta-card {
    gap: 45px;
  }

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

  .footer-phone {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: 68px;
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .section-compact {
    padding: 30px 0;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .brand-text strong {
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding-top: 103px;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 1rem;
  }

  .hero-person {
    margin-top: 24px;
  }

  .button-row {
    display: grid;
    margin-top: 28px;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .trust-line {
    gap: 7px 13px;
    font-size: 0.7rem;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-photo-wrap {
    padding: 8px;
  }

  .photo-caption {
    right: 17px;
    bottom: 17px;
    left: 17px;
  }

  .quote-card {
    padding: 52px 25px 30px;
    border-radius: 24px;
  }

  .quote-card p br {
    display: none;
  }

  .quote-card footer {
    font-size: 0.7rem;
  }

  .about-grid {
    gap: 38px;
  }

  .facts-card {
    padding: 26px 20px;
    border-radius: 25px;
  }

  .fact {
    min-height: 130px;
    padding: 17px 12px;
  }

  .approach-section {
    padding-top: 10px;
  }

  .approach-card,
  .fit-grid,
  .cta-card {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .approach-label {
    font-size: 0.7rem;
  }

  .approach-label span {
    width: 46px;
    height: 46px;
  }

  .diagnostic-steps {
    grid-template-columns: 1fr;
  }

  .diagnostic-steps > div {
    min-height: auto;
    padding: 17px 0;
  }

  .diagnostic-steps > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .diagnostic-steps span {
    margin-bottom: 18px;
  }

  .service-grid,
  .document-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 235px;
  }

  .service-card > span {
    margin-bottom: 38px;
  }

  .method-note {
    padding: 21px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 430px 350px 230px 230px;
  }

  .gallery-wide,
  .gallery-grid > :nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-wide img {
    object-position: 60% 50%;
  }

  .document-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .document-image {
    height: 245px;
  }

  .document-card figcaption {
    min-height: 125px;
    padding: 16px 13px;
  }

  .fit-grid {
    gap: 38px;
  }

  .check-list li {
    font-size: 0.84rem;
  }

  .cta-action {
    padding: 20px;
  }

  .button-light {
    padding-right: 16px;
    padding-left: 16px;
    font-size: 0.83rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-phone {
    grid-column: auto;
  }

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

  .mobile-call {
    position: fixed;
    z-index: 90;
    right: 14px;
    bottom: 12px;
    left: 14px;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    background: var(--blue-dark);
    box-shadow: 0 14px 34px rgba(27, 55, 57, 0.32);
    color: white;
    font-size: 0.91rem;
    font-weight: 750;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
