:root {
  --milk: #faf8f5;
  --beige: #f2eae4;
  --rose: #e8dad5;
  --text: #5e5e5e;
  --heading: #393939;
  --olive: #a8b29a;
  --olive-dark: #737d68;
  --white: #ffffff;
  --line: rgba(94, 94, 94, 0.14);
  --shadow: 0 18px 40px rgba(84, 75, 68, 0.1);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--milk);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(168, 178, 154, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(232, 218, 213, 0.46), transparent 420px);
}

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

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(168, 178, 154, 0.7);
  outline-offset: 4px;
}

::selection {
  background: var(--rose);
  color: var(--heading);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  color: var(--heading);
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding: 10px max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(250, 248, 245, 0.9);
  box-shadow: 0 10px 28px rgba(73, 64, 58, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.hero-actions,
.button,
.value-card,
.contact-item,
.socials,
.slider-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(168, 178, 154, 0.45);
  border-radius: 50%;
  background: var(--white);
  color: var(--olive-dark);
  font-size: 0.88rem;
}

.main-nav {
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.94rem;
  color: rgba(57, 57, 57, 0.74);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.74fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  width: min(100% - 40px, var(--max-width));
  min-height: clamp(500px, 62vh, 620px);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 46px) 0 clamp(42px, 5vw, 56px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 40px;
  z-index: -1;
  width: min(43vw, 470px);
  height: min(43vw, 470px);
  content: "";
  border: 1px solid rgba(168, 178, 154, 0.28);
  border-radius: 42% 58% 48% 52%;
  background: rgba(242, 234, 228, 0.55);
}

.hero-copy {
  max-width: 660px;
  animation: fade-up 700ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.16;
  font-weight: 650;
}

h1 {
  max-width: 8.5em;
  margin-bottom: 24px;
  font-size: clamp(3.05rem, 6.4vw, 5rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.5vw, 4.1rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.16rem, 2vw, 1.42rem);
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-note {
  width: fit-content;
  margin-bottom: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(168, 178, 154, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--heading);
  font-weight: 650;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(115, 125, 104, 0.2);
}

.button-primary:hover {
  background: var(--olive-dark);
}

.button-secondary {
  border-color: rgba(168, 178, 154, 0.42);
  background: rgba(255, 255, 255, 0.62);
  color: var(--heading);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: auto;
  max-width: 100%;
  max-height: 650px;
  height: auto;
  display: block;
  border-radius: 92px 8px 92px 8px;
  box-shadow: var(--shadow);
}
.section,
.booking-section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 11vw, 124px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.about-copy {
  max-width: 640px;
  font-size: 1.08rem;
}

.about-copy p:last-child,
.booking-copy p:last-child {
  margin-bottom: 0;
}

.values,
.education-path,
.services-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}

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

.value-card,
.service-card,
.case-card,
.price-table-wrap,
.booking-form,
.contact-item {
  border: 1px solid rgba(94, 94, 94, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(84, 75, 68, 0.06);
}

.value-card {
  gap: 12px;
  min-height: 112px;
  padding: 22px;
}

.value-card .icon {
  color: var(--olive-dark);
}

.value-card h3 {
  margin: 0;
  font-size: 1rem;
}

.education-path {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 6vw, 62px);
}

.path-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(94, 94, 94, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.path-card span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--olive-dark);
  font-weight: 800;
}

.path-card p {
  margin-bottom: 0;
}

.services-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max-width)) / 2));
  padding-left: max(20px, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(242, 234, 228, 0.62));
}

.services-section .section-heading,
.services-grid {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

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

.service-card {
  min-height: 250px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 178, 154, 0.34);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 28px;
  color: var(--olive-dark);
}

.service-card p,
.case-card p {
  margin-bottom: 0;
}

.cases-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(420px, 0.88fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.cases-section .section-heading {
  margin-bottom: 0;
}

.case-slider {
  position: relative;
}

.case-slides {
  position: relative;
  min-height: 330px;
  overflow: hidden;
}

.case-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 46px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}

.case-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.case-number {
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--beige);
  color: var(--olive-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.case-card strong {
  color: var(--heading);
}

.slider-controls {
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(168, 178, 154, 0.44);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--heading);
  transition: background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  background: var(--olive);
  color: var(--white);
  transform: translateY(-2px);
}

.icon-rotate {
  transform: rotate(180deg);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(94, 94, 94, 0.22);
}

.dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--olive);
}

.pricing-section {
  padding-top: clamp(40px, 7vw, 88px);
}

.price-table-wrap {
  overflow-x: auto;
  background: var(--white);
}

.price-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.price-table th {
  color: var(--heading);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table td:last-child {
  color: var(--olive-dark);
  font-weight: 700;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: start;
  margin-bottom: clamp(72px, 10vw, 124px);
  padding: clamp(38px, 6vw, 72px);
  border: 1px solid rgba(168, 178, 154, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(232, 218, 213, 0.44)),
    var(--beige);
}

.booking-copy {
  position: sticky;
  top: 108px;
}

.booking-copy h2 {
  margin-bottom: 18px;
}

.booking-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.84);
}

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

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(94, 94, 94, 0.16);
  border-radius: 8px;
  background: var(--milk);
  color: var(--heading);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input,
select {
  min-height: 52px;
  padding: 0 15px;
}

textarea {
  min-height: 132px;
  resize: vertical;
  padding: 14px 15px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(168, 178, 154, 0.16);
  outline: none;
}

.form-button {
  width: fit-content;
  margin-top: 4px;
}

.form-message {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(168, 178, 154, 0.38);
  border-radius: 8px;
  background: rgba(168, 178, 154, 0.16);
  color: var(--heading);
  font-weight: 600;
}

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

.contact-section {
  padding-top: 0;
}

.contact-lead {
  max-width: 580px;
  margin-top: -26px;
  margin-bottom: 28px;
  font-size: 1.06rem;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.contact-item {
  gap: 14px;
  min-height: 88px;
  padding: 22px;
  color: var(--heading);
  font-weight: 650;
}

.contact-item .icon {
  color: var(--olive-dark);
}

.socials {
  gap: 12px;
}

.social-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(168, 178, 154, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--heading);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.social-link:hover {
  background: var(--olive);
  color: var(--white);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: rgba(94, 94, 94, 0.78);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--heading);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1020px) {
  .hero,
  .about-grid,
  .cases-section,
  .booking-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    height: auto;
  }

  .hero-visual img {
    width: 100%;
    max-width: 420px;
    height: auto;
  }

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

  .booking-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .section,
  .hero,
  .booking-section,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header.is-scrolled {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  h1 {
    max-width: 9em;
    font-size: clamp(2.45rem, 12.4vw, 3.2rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .hero-lead {
    margin-bottom: 10px;
    font-size: 1.04rem;
  }

  .hero-note {
    margin-bottom: 22px;
    font-size: 0.95rem;
  }
  
.hero-visual {
  width: 100%;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 46px 8px 46px 8px;
}
  .values,
  .education-path,
  .services-grid,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .case-slides {
    min-height: 430px;
  }

  .slider-controls {
    justify-content: center;
  }

  .booking-section {
    padding: 28px 18px;
  }

  .form-button {
    width: 100%;
  }

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

@media (max-width: 430px) {
  .case-slides {
    min-height: 490px;
  }

  .price-table {
    min-width: 590px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
