:root {
  --blue: #0876ba;
  --blue-dark: #073f7c;
  --red: #ee3328;
  --red-dark: #9c2019;
  --yellow: #ffc928;
  --yellow-soft: #fff2b8;
  --ink: #162331;
  --muted: #62717f;
  --line: rgba(8, 118, 186, 0.18);
  --surface: #ffffff;
  --soft: #f5f9fc;
  --container: min(100% - 40px, 1160px);
  --radius: 24px;
  --shadow: 0 24px 60px rgba(7, 63, 124, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0, #f4f9fc 42%, #ffffff 100%);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
}

img {
  max-width: 100%;
}

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

section[id] {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  padding: 16px 0;
}

.brand,
.site-nav {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(7, 63, 124, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
}

.brand img {
  width: 48px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 999px;
}

.site-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue-dark);
  background: rgba(8, 118, 186, 0.09);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  color: var(--ink);
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(7, 63, 124, 0.14);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 54px;
  align-items: center;
  width: var(--container);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 48px 0 74px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.section__head h2,
.detox-panel h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  max-width: 640px;
  margin-top: 14px;
  color: var(--red);
  font-size: clamp(58px, 7.4vw, 104px);
  text-shadow: 0 5px 0 #ffffff, 0 14px 34px rgba(156, 32, 25, 0.16);
  -webkit-text-stroke: 2px var(--red-dark);
}

.hero p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 16px 34px rgba(255, 201, 40, 0.34);
}

.button--secondary {
  color: var(--blue-dark);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(7, 63, 124, 0.1);
}

.hero__media {
  position: relative;
  min-height: 590px;
}

.hero__logo {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: min(330px, 58%);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(560px, 88%);
  height: 430px;
  object-fit: cover;
  border: 10px solid #ffffff;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(7, 63, 124, 0.16);
}

.hero-badge--blue {
  right: 20px;
  top: 142px;
  color: #ffffff;
  background: var(--blue);
}

.hero-badge--yellow {
  left: 105px;
  bottom: 52px;
  color: var(--ink);
  background: var(--yellow);
}

.facts,
.section {
  width: var(--container);
  margin: 0 auto;
}

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

.fact-card,
.program-card,
.team-card,
.price-list article,
.contact-panel,
.season-table,
.detox-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(7, 63, 124, 0.08);
}

.fact-card {
  padding: 24px;
}

.fact-card span,
.price-list span,
.team-card span {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  margin: 8px 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 30px;
  line-height: 1.05;
}

.fact-card p,
.program-card p,
.price-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 86px 0;
}

.section__head {
  max-width: 780px;
  margin-bottom: 32px;
}

.about-section .section__head {
  max-width: 980px;
  margin-bottom: 26px;
}

.about-section .section__head h2 {
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.04;
}

.section__head h2,
.detox-panel h2,
.contact-panel h2 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 62px);
}

.about-grid,
.season-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}

.about-grid {
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(8, 118, 186, 0.16);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 248, 255, 0.92));
  box-shadow: 0 24px 60px rgba(7, 63, 124, 0.1);
}

.about-copy {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 34px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fff9df 100%);
  box-shadow: none;
}

.about-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--red), var(--yellow));
}

.about-copy p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.about-copy p:first-child {
  color: var(--ink);
  font-weight: 700;
}

.program-cards {
  display: grid;
  gap: 14px;
}

.program-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "text text";
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  min-height: 128px;
  padding: 20px;
  border-color: rgba(8, 118, 186, 0.13);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover,
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.program-card i {
  grid-area: icon;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 17px;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(8, 118, 186, 0.18);
}

.program-card h3 {
  grid-area: title;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.18;
}

.program-card p {
  grid-area: text;
  max-width: 100%;
  padding-top: 4px;
  font-size: 16px;
}

.detox-section,
.team-section,
.contact-section {
  width: 100%;
  padding-right: max(20px, calc((100% - 1160px) / 2));
  padding-left: max(20px, calc((100% - 1160px) / 2));
  background: linear-gradient(135deg, rgba(8, 118, 186, 0.08), rgba(255, 201, 40, 0.16));
}

.detox-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: linear-gradient(135deg, #ffffff, #eef8ff);
}

.detox-panel p,
.contact-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.detox-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 14px;
  border-radius: 18px;
  color: var(--blue-dark);
  background: #ffffff;
  font-weight: 800;
}

.detox-list i {
  color: var(--red);
}

.season-table {
  overflow: hidden;
}

.season-table__head,
.season-table__row {
  display: grid;
  grid-template-columns: 0.64fr 1fr;
}

.season-table__head {
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow), #fff7cf);
  font-weight: 900;
}

.season-table__head span,
.season-table__row > * {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.season-table__head span:last-child,
.season-table__row > *:last-child {
  border-right: 0;
}

.season-table__row {
  border-top: 1px solid var(--line);
}

.season-table__row strong {
  color: var(--blue-dark);
}

.price-list {
  display: grid;
  gap: 14px;
}

.price-list article {
  padding: 22px;
}

.price-list strong {
  display: block;
  margin-top: 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.1;
}

.documents-section {
  padding-top: 70px;
}

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

.document-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(8, 118, 186, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #f4fbff);
  box-shadow: 0 14px 38px rgba(7, 63, 124, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.document-card:hover {
  border-color: rgba(238, 51, 40, 0.24);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.document-card i {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 18px;
  font-size: 28px;
}

.document-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.document-card h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.16;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.team-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f8ff, #ffffff 48%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--red));
}

.team-card img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  background: linear-gradient(135deg, #fff6c9, #eaf6ff);
}

.team-card--portrait img {
  object-fit: contain;
  object-position: center;
}

.team-card div {
  min-height: 136px;
  padding: 22px;
  background: #ffffff;
}

.team-card span {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(8, 118, 186, 0.1);
}

.team-card h3 {
  margin: 12px 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.16;
}

.gallery-section {
  padding-bottom: 98px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 158px;
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.gallery-grid img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: #ffffff;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--soft);
}

.contact-list a {
  color: var(--red);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--muted);
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
  font-weight: 900;
}

.site-footer p {
  margin: 5px 0 0;
}

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

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

.reveal.is-visible.program-card:hover,
.reveal.is-visible.team-card:hover {
  transform: translateY(-6px);
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .season-layout,
  .detox-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .hero__media {
    min-height: 500px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery-grid img,
  .gallery-grid img:first-child {
    height: 100%;
  }

  .gallery-grid img:first-child,
  .gallery-grid img:nth-child(6) {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 24px, 1160px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(280px, 100%);
    align-items: stretch;
    border-radius: 24px;
    flex-direction: column;
  }

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

  .site-nav a {
    text-align: center;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(44px, 12.5vw, 60px);
    -webkit-text-stroke-width: 1px;
  }

  .hero p {
    font-size: 17px;
  }

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

  .hero__media {
    min-height: 360px;
  }

  .hero__logo {
    width: 62%;
  }

  .hero__photo {
    width: 90%;
    height: 255px;
  }

  .hero-badge--blue {
    top: 92px;
    right: 0;
  }

  .hero-badge--yellow {
    left: 12px;
    bottom: 22px;
  }

  .facts,
  .team-grid,
  .gallery-grid,
  .documents-grid,
  .detox-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .about-section .section__head h2 {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.08;
  }

  .detox-section,
  .team-section,
  .contact-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .about-copy,
  .detox-panel,
  .contact-panel {
    padding: 24px;
  }

  .about-copy p {
    font-size: 16px;
  }

  .about-grid {
    padding: 12px;
    border-radius: 26px;
  }

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

  .document-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .season-table__head span,
  .season-table__row > * {
    min-height: 64px;
    padding: 16px 14px;
  }

  .team-card img {
    height: 250px;
  }

  .gallery-grid img,
  .gallery-grid img:first-child {
    height: 260px;
  }

  .gallery-grid img:first-child,
  .gallery-grid img:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 360px) {
  .program-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "title"
      "text";
  }
}

@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;
  }
}
