﻿:root {
  --bg: #f2ebe3;
  --soft: #f8f2ec;
  --paper: #fffdfa;
  --text: #2b2520;
  --muted: #7d7064;
  --line: #decebf;
  --accent: #6884ad;
  --accent-dark: #56729a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.motion-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.tex { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.35; animation: float 18s ease-in-out infinite; }
.tex-a { width: 380px; height: 380px; left: -100px; top: -80px; background: #dbe8f6; }
.tex-b { width: 360px; height: 360px; right: -70px; top: 220px; background: #f2dfd1; animation-delay: -6s; }
.tex-c { width: 300px; height: 300px; left: 35%; bottom: -120px; background: #dbeee8; animation-delay: -10s; }
@keyframes float { 0%, 100% { transform: translate(0,0) scale(1);} 50% { transform: translate(24px,-18px) scale(1.08);} }

.container { width: min(1160px, 92vw); margin: 0 auto; }
.section { padding: 92px 0; }
.soft { background: var(--soft); border-top: 1px solid var(--line); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(4px);
}

.nav-wrap {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.42);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.main-nav a:hover { color: #fff; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.42); }

.hero-full {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-paper-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #eee8dd;
  background-image:
    linear-gradient(180deg, rgba(246, 241, 233, 0.36) 0%, rgba(238, 230, 220, 0.62) 100%),
    url("https://images.squarespace-cdn.com/content/v1/61a4527da246256a48a2ac20/b422a4cb-cf68-41e8-9b6d-c511666891b2/Background1.jpg");
  background-size: cover;
  background-position: calc(25% + var(--hero-scroll-x, 0px) + var(--hero-mouse-x, 0px)) 36%;
  will-change: background-position;
}

.hero-wave {
  position: absolute;
  inset: -14%;
  z-index: 2;
  pointer-events: none;
}

.hero-wave-a {
  background:
    radial-gradient(72% 44% at 14% 58%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(56% 36% at 76% 44%, rgba(210, 190, 172, 0.32) 0%, rgba(210, 190, 172, 0) 74%);
  filter: blur(2px);
  animation: heroWaveA 6.2s ease-in-out infinite;
  opacity: 0.92;
}

.hero-wave-b {
  background:
    repeating-radial-gradient(140% 84% at 50% 118%, rgba(255, 255, 255, 0.12) 0 2px, rgba(255, 255, 255, 0) 2px 14px),
    linear-gradient(108deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 32%, rgba(196, 174, 156, 0.18) 60%, rgba(255, 255, 255, 0) 84%);
  animation: heroWaveB 7.4s ease-in-out infinite;
  opacity: 0.82;
}

@keyframes heroWaveA {
  0%, 100% {
    transform: translate3d(-5.4%, 3.2%, 0) rotate(-1.8deg) scale(1.07);
    background-position: 0% 52%, 100% 48%;
  }
  50% {
    transform: translate3d(6.2%, -3.8%, 0) rotate(1.8deg) scale(1.14);
    background-position: 100% 48%, 0% 52%;
  }
}

@keyframes heroWaveB {
  0%, 100% {
    transform: translate3d(4.2%, -2.4%, 0) rotate(0.9deg) scale(1.06);
    background-position: 0% 0%, 100% 100%;
  }
  50% {
    transform: translate3d(-5.8%, 3.4%, 0) rotate(-1.2deg) scale(1.12);
    background-position: 100% 100%, 0% 0%;
  }
}

.hero-photo-wrap {
  position: absolute;
  z-index: 4;
  left: 73.8%;
  transform: translateX(-50%) scale(1.01);
  top: calc(76px + 22px);
  width: min(41vw, 560px);
  height: min(80svh, 860px);
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 26px 56px rgba(22, 16, 12, 0.26), 0 10px 24px rgba(22, 16, 12, 0.12);
}

.hero-specialist {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  background: transparent;
}

.hero-right-texture {
  display: none;
}

.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.08) 0%, rgba(246, 240, 233, 0.28) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 4;
  width: min(1120px, 92vw);
  min-height: calc(100svh - 76px);
  margin-top: 76px;
  left: clamp(-414px, -25vw, -176px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #2d2924;
}

.section-no {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.1;
}

h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; font-weight: 700; }
h3 { font-size: 30px; font-weight: 700; }

#about h2,
#topics h2,
#services h2,
#methods h2,
#education h2,
#certificates h2,
#courses h2,
#contact h2 {
  font-family: "Marck Script", "Bad Script", "Caveat", cursive;
  font-weight: 300;
}

.hero-overline,
.hero-under-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-transform: none;
  text-align: center;
  color: #72685f;
  font-weight: 600;
}

.hero-credentials {
  margin: 0;
  text-align: center;
  color: #2f2a25;
}

.hero-overline { margin-top: 6px; }

.hero-title-main {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 0.96;
  text-align: center;
  max-width: 12ch;
  font-weight: 600;
}

.hero-under-title {
  margin-bottom: 12px;
  max-width: 56ch;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.015em;
  font-size: 18px;
}

.hero-credentials {
  position: absolute;
  z-index: 4;
  left: 72.8%;
  transform: translateX(-50%);
  top: calc(76px + 22px + min(80svh, 860px) + 10px);
  margin: 0;
  width: auto;
  max-width: none;
  letter-spacing: 0.11em;
  line-height: 1;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.hero-script-right {
  position: absolute;
  z-index: 4;
  left: 72.8%;
  transform: translateX(-50%) rotate(-0.6deg);
  top: calc(76px - 14px);
  margin: 0;
  font-family: "Marck Script", "Bad Script", "Caveat", cursive;
  font-size: clamp(34px, 2.9vw, 44px);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1;
  color: rgba(56, 48, 41, 0.92);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.hero-overlay .btn {
  justify-self: center;
  align-self: end;
  margin-bottom: 34px;
}

.hero-bottom-motion {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -46px;
  height: 230px;
  z-index: 1;
  background:
    radial-gradient(85% 70% at 24% 68%, rgba(245, 236, 228, 0.62) 0%, rgba(245, 236, 228, 0) 68%),
    radial-gradient(78% 66% at 72% 70%, rgba(222, 233, 248, 0.52) 0%, rgba(222, 233, 248, 0) 72%),
    radial-gradient(70% 64% at 52% 90%, rgba(222, 242, 236, 0.4) 0%, rgba(222, 242, 236, 0) 76%);
  filter: blur(10px);
  animation: lowerDrift 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes lowerDrift {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-18px) translateY(8px); }
}

.btn {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 14px 24px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1;
  transition: 180ms ease;
  backdrop-filter: blur(1px);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38);
}

.btn-primary {
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:active { background: rgba(0, 0, 0, 0.28); border-color: rgba(255, 255, 255, 0.5); color: #ffffff; }

.btn-ghost {
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover,
.btn-ghost:active { background: rgba(0, 0, 0, 0.24); border-color: rgba(255, 255, 255, 0.46); color: #ffffff; }

.split-grid, .booking-wrap, .footer-grid {
  display: grid;
  gap: 54px;
  align-items: start;
}

.split-grid { grid-template-columns: 0.95fr 1.05fr; }
.split-grid.reverse { grid-template-columns: 1.05fr 0.95fr; }
.booking-wrap { grid-template-columns: 1fr 0.95fr; }
.footer-grid { grid-template-columns: 1fr auto; align-items: center; }

.real-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  background: linear-gradient(165deg, #eee3d8 0%, #e0ceb7 100%);
}

.photo-stack { position: relative; }

.services-grid .section-photo,
.reverse .section-photo {
  height: 520px;
}

.photo-note {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: "Marck Script", "Bad Script", "Caveat", cursive;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.005em;
  text-transform: none;
  transform: rotate(-0.5deg);
  line-height: 1;
  color: rgba(58, 49, 41, 0.76);
  pointer-events: none;
}

.hero-script-right::first-letter,
.photo-note::first-letter {
  font-size: 1.22em;
}

.clinicians-grid {
  display: grid;
  gap: 24px;
}

.strip-photos {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.strip-photos .real-photo {
  height: 360px;
}

.mini-links { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.mini-links a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }

.about-cta {
  margin-top: 22px;
}

.about-photo-soft {
  filter: brightness(1.22) contrast(0.9) saturate(0.86);
  opacity: 0.8;
}

.about-section-photo {
  width: 100%;
  height: clamp(230px, 34vh, 320px);
  object-fit: cover;
  object-position: 50% 82%;
}

.topics-services-bg {
  position: relative;
  overflow: hidden;
}

.topics-services-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(248, 242, 236, 0.0) 0%, rgba(248, 242, 236, 0.46) 100%),
    url("./photos/IMG_6474.jpg");
  background-size: cover;
  background-position: center -240px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
}

.topics-services-bg > section {
  position: relative;
  z-index: 1;
}

.topics-services-bg #topics.soft {
  background: transparent;
}

.topics-services-bg #services {
  border-top: 1px solid #d1c2b3;
}

.course-bg-section {
  position: relative;
  overflow: hidden;
}

.course-bg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(248, 242, 236, 0.18) 0%, rgba(248, 242, 236, 0.56) 100%),
    url("./photos/IMG_6131.jpg");
  background-size: cover;
  background-position: right center;
  opacity: 0.34;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 0;
}

.course-bg-section > .container {
  position: relative;
  z-index: 1;
}

.method-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.method-list li {
  color: #4e443b;
}

.methods-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  color: #4e443b;
  font-size: 16px;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.blog-card p { margin-top: 12px; font-size: 16px; color: #4e443b; }

.service-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card-surface {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 20px;
}

.service-card h3 {
  margin: 0;
  color: #665a4f;
}

.service-card p {
  margin-top: 14px;
  color: #4b443e;
  font-size: 16px;
}

.service-card a {
  margin-top: 18px;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  transition: 180ms ease;
}

.service-card a:hover,
.service-card a:active {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
}

.course-feature {
  margin-top: 24px;
  max-width: 1060px;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.course-feature-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.22fr 0.78fr;
  align-items: start;
}

.course-feature-title {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: #665a4f;
}

.course-feature-text {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: #4e443b;
  max-width: 62ch;
}

.course-info-card {
  padding: 20px;
}

.course-feature-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.course-photo-slot {
  margin: 0;
  min-height: 360px;
  max-height: 520px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.course-photo-slot span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b7d6f;
}

.cert-item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(150, 134, 120, 0.28);
  background: transparent;
  color: #4e443b;
  text-align: left;
  font: inherit;
  font-size: 23px;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.5;
  padding: 12px 0;
  cursor: pointer;
  transition: 160ms ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cert-item::after {
  content: "↗";
  font-size: 18px;
  line-height: 1;
  color: rgba(110, 96, 82, 0.72);
  transform: translateX(0);
  transition: transform 160ms ease, color 160ms ease;
}

.cert-text-list {
  margin-top: 20px;
  display: grid;
  gap: 2px;
  max-width: 780px;
}

.cert-item:hover,
.cert-item:focus-visible {
  color: #2f2721;
  outline: none;
}

.cert-item:hover::after,
.cert-item:focus-visible::after {
  color: rgba(70, 58, 46, 0.92);
  transform: translateX(2px);
}

.cert-item.is-active {
  color: #2f2721;
}

.cert-hover-modal {
  position: fixed;
  right: 5vw;
  top: 52%;
  transform: translateY(-50%) scale(0.96);
  width: min(366px, 28vw);
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cert-hover-modal.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.cert-hover-frame {
  margin: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.cert-preview-image {
  width: 100%;
  height: clamp(238px, 26.4vw, 425px);
  object-fit: contain;
  background: transparent;
  transform: scale(var(--cert-preview-scale, 1));
  transform-origin: center center;
  transition: transform 180ms ease;
}

.booking-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.booking-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4e433a;
}

.booking-form input,
.booking-form textarea {
  border: 1px solid #d8c8b8;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 78px 0 96px;
  background: linear-gradient(180deg, #f6eee6 0%, #f1e5d9 100%);
}

.section-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}

.contact-line {
  margin-top: 8px;
}

.footer-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-form-wrap {
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(4px);
}

.contact-form-wrap h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.1;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  background: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: inset 0 0 0 0.5px #111;
}

.contact-form textarea {
  min-height: 86px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 2px;
}

.contact-form-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-form-status {
  min-height: 1.2em;
  margin: 2px 0 0;
  font-size: 13px;
  color: #5d5147;
}

.floating-form {
  position: fixed;
  right: 22px;
  top: 52%;
  width: min(360px, 88vw);
  transform: translateY(-50%) translateX(28px);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 220ms ease, transform 220ms ease;
}

.floating-form.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.floating-form.is-minimized {
  top: auto;
  right: 12px;
  bottom: 12px;
  width: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.floating-form-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}

.floating-form-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

.floating-form .contact-form-wrap {
  box-shadow: 0 16px 36px rgba(34, 25, 19, 0.28);
  position: relative;
}

.floating-form .contact-form-wrap h3 {
  padding-right: 38px;
}

.floating-form-title {
  cursor: grab;
  user-select: none;
}

.floating-form-title:active {
  cursor: grabbing;
}

.floating-form.is-minimized .contact-form-wrap,
.floating-form.is-minimized .floating-form-close {
  display: none;
}

.floating-form.is-minimized .floating-form-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-media {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.contact-media::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 33%;
  z-index: 2;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.photo-contact {
  height: 100%;
  min-height: 360px;
  max-height: 520px;
  border: 1px solid var(--line);
  filter: brightness(1.11) contrast(0.92) saturate(0.9);
  opacity: 0.9;
  object-position: 18% center;
}

@media (max-width: 1020px) {
  .hero-wave {
    display: none;
  }

  .hero-paper-bg {
    background-position: 32% 38%;
    will-change: auto;
  }

  .nav-wrap {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .logo {
    font-size: 26px;
    justify-self: center;
  }

  .main-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 3px 0;
  }

  .split-grid, .split-grid.reverse, .booking-wrap, .footer-grid, .blog-grid, .strip-photos, .service-grid, .course-feature-grid, .methods-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }

  .site-header { background: rgba(0, 0, 0, 0.28); }

  .hero-full {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero-overlay {
    width: min(94vw, 720px);
    min-height: auto;
    margin-top: 96px;
    padding-top: 20px;
    gap: 10px;
    left: 0;
  }

  h1 { font-size: clamp(34px, 11vw, 58px); }

  .hero-photo-wrap {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(84vw, 420px);
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 16px auto 0;
  }

  .hero-specialist {
    width: 100%;
    height: 100%;
  }

  .hero-title-main {
    font-size: clamp(34px, 8.8vw, 56px);
    max-width: 13ch;
  }

  .hero-overline,
  .hero-under-title,
  .hero-credentials { font-size: 12px; letter-spacing: 0.04em; }

  .hero-credentials {
    position: static;
    transform: none;
    max-width: 34ch;
    line-height: 1.45;
    margin-top: 8px;
    text-align: center;
    white-space: normal;
  }

  .hero-script-right {
    position: static;
    transform: rotate(-0.5deg);
    font-size: 32px;
    margin-top: 6px;
  }

  .services-grid .section-photo,
  .reverse .section-photo,
  .strip-photos .real-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .course-feature {
    margin-top: 24px;
    max-width: 100%;
  }

  .course-info-card {
    padding: 18px;
  }

  .course-feature-actions {
    align-items: center;
  }

  .course-photo-slot {
    min-height: 260px;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .contact-form-wrap {
    padding: 18px;
  }

  .floating-form {
    right: 10px;
    left: 10px;
    width: auto;
    top: auto;
    bottom: 10px;
    transform: translateY(12px);
  }

  .floating-form.is-visible {
    transform: translateY(0);
  }

  .floating-form.is-minimized {
    left: auto;
    right: 10px;
    bottom: 10px;
  }

  .cert-item {
    font-size: 19px;
  }

  .cert-hover-modal {
    position: static;
    width: min(578px, 78vw);
    margin: 18px auto 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .cert-hover-modal.is-visible {
    transform: none;
  }

  .cert-preview-image {
    height: auto;
    max-height: 53svh;
  }

  .site-footer {
    padding: 64px 0 80px;
  }

  .photo-contact {
    min-height: 260px;
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 680px) {
  .logo {
    font-size: 22px;
  }

  .main-nav a {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .hero-under-title {
    font-size: 16px;
    line-height: 1.35;
  }

  .course-feature-text,
  .service-card p,
  .blog-card p,
  .method-card {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave-a,
  .hero-wave-b { animation: none; }
}











