@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");
@font-face {
  font-family: "Helvetica";
  src:
    url("./fonts/Helvetica.woff2") format("woff2"),
    url("./fonts/Helvetica.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === Light (300) === */
@font-face {
  font-family: "HelveticaLight";
  src:
    url("./fonts/Helvetica-Light.woff2") format("woff2"),
    url("./fonts/Helvetica-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* === Bold (700) === */
@font-face {
  font-family: "HelveticaBold";
  src:
    url("./fonts/Helvetica-Bold.woff2") format("woff2"),
    url("./fonts/Helvetica-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --back: rgba(245, 241, 234, 1);
  --accent: #7a8a6b;
  --text: #333;
  --white: #ffffff;
  --border: rgba(63, 74, 60, 0.12);
  --shadow: 0 10px 30px rgba(63, 74, 60, 0.08);
  --radius: 18px;
  --transition: 0.3s ease;
  --container: 1280px;
  --logoText: "Merriweather", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  user-drag: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

input,
button,
textarea,
select {
  font: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

:focus {
  outline: none;
}

body {
  font-family: "Helvetica";
  background: var(--back);
  color: var(--text);
  overflow-x: hidden;
  font-size: 21px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0%;
  scroll-behavior: smooth;
  margin: 0;
  height: 100%;
}

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

.site-header {
  z-index: 1000;
  padding: 0 30px;
  background: rgba(245, 241, 234, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: #fff;
  border-radius: 60px;
  box-shadow: 2px 20px 30px 0 rgba(122, 138, 107, 0.12);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 30px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 100%;
  max-width: 290px;
  height: auto;
  object-fit: contain;
  position: absolute;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: auto;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
  outline: none;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
  opacity: 0.8;
}

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

.burger {
  display: none;
  position: relative;
  background-color: transparent;
  width: 52px;
  height: 52px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.burger span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
  transform: translateX(-50%);
  transition:
    transform var(--transition),
    opacity var(--transition),
    top var(--transition);
}

.burger span:nth-child(1) {
  top: 18px;
}
.burger span:nth-child(2) {
  top: 25px;
}
.burger span:nth-child(3) {
  top: 32px;
}

.burger.is-active span:nth-child(1) {
  top: 25px;
  transform: translateX(-50%) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  top: 25px;
  transform: translateX(-50%) rotate(-45deg);
}

section {
  padding: 60px 30px;
}

.pt-0 {
  padding-top: 0px;
}

/* ===== HERO ===== */
.back {
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  isolation: isolate;
}

.back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center/cover no-repeat;
  opacity: 0.2;
  z-index: -2;
}

.back::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(245, 241, 234, 1) 0%,
    rgba(245, 241, 234, 0) 25%,
    rgba(245, 241, 234, 0) 75%,
    rgba(245, 241, 234, 1) 100%
  );

  z-index: -1;
}
.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(122, 138, 107, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(63, 74, 60, 0.06);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.hero-title {
  max-width: 980px;
  margin: auto;
  text-align: center;
  font-family: "HelveticaBold";
  font-size: clamp(30px, 6vw, 88px);
  line-height: 0.95;
  color: var(--text);
  letter-spacing: -0.04em;
}

.hero-title span {
  display: block;
  margin-top: 10px;
  font-family: var(--logoText);
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.08;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.hero-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 30px;
  max-width: 720px;
}

.hero-list li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--text);
  animation: fadeUp 0.9s ease both;
  text-align: center;
}

.hero-list li:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-list li:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-list li:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow:
    0 0 0 6px rgba(122, 138, 107, 0.12),
    0 10px 20px rgba(122, 138, 107, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 60px;
  margin-top: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  line-height: 1;
  box-shadow: 0 16px 30px rgba(122, 138, 107, 0.22);
  border: 1px solid rgba(122, 138, 107, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(63, 74, 60, 0.06);
  transition: all 0.3s ease;
  animation: fadeUp 1s ease 0.35s both;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(122, 138, 107, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.65;
  }
}

/* ===== ABOUT ===== */
.about {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background-color: #fff;
  border-radius: 60px;
  max-width: 1280px;
  margin: auto;
  padding: 60px;
}

.about-bg-number {
  position: absolute;
  font-family: "HelveticaBold";
  font-size: clamp(90px, 18vw, 260px);
  line-height: 0.8;
  color: rgba(122, 138, 107, 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.06em;
}

.about-bg-number--one {
  top: 140px;
  left: 2%;
}

.about-bg-number--two {
  bottom: 30px;
  right: 2%;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.title {
  font-family: "HelveticaBold";
  font-size: 50px;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 30px;
}

.about-text {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.14);
  box-shadow: 0 14px 30px rgba(63, 74, 60, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(63, 74, 60, 0.1);
}

.about-feature-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 40px;
}

.about-feature h3 {
  font-family: "HelveticaBold";
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}

.about-feature p {
  font-size: 18px;
  line-height: 1.65;
}

.about-media {
  position: relative;
}

.about-image-box {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  min-height: 640px;
  box-shadow: 0 30px 60px rgba(63, 74, 60, 0.14);
}

.about-image-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(243, 242, 241, 0.12) 0%,
    rgba(122, 138, 107, 0.08) 45%,
    rgba(63, 74, 60, 0.28) 100%
  );
  z-index: 1;
}

.about-image-box img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  transform: scale(1.02);
}

.about-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 30px rgba(63, 74, 60, 0.12);
}

.about-card span {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.about-card strong {
  font-family: "HelveticaBold";
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

/* ===== UNIVERSAL SECTION ===== */

.section-paper {
  background: #fff;
}

.section-head {
  max-width: 900px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.18);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(63, 74, 60, 0.05);
}

.section-title {
  margin-bottom: 22px;
  font-family: "HelveticaBold";
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.section-text {
  max-width: 860px;
  margin: 0 auto;
}

.section-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.section-text p:last-child {
  margin-bottom: 0;
}

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

.person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--back);
  border: 1px solid rgba(122, 138, 107, 0.14);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(63, 74, 60, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.person-card__image {
  aspect-ratio: 4 / 3.6;
  overflow: hidden;
  background: #e9e1d2;
}

.person-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  object-position: top;
}

.person-card:hover .person-card__image img {
  transform: scale(1.04);
}

.person-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
  padding: 30px 0 0;
}

.card-title {
  font-family: "HelveticaBold";
  font-size: 24px;
  line-height: 1.15;
  color: var(--text);
  padding: 0 30px;
}

.card-text {
  font-size: 18px;
  padding: 0 30px 0;
  line-height: 1.75;
}

.card-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 10px 25px rgba(63, 74, 60, 0.05);
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-meta i,
.card-meta span span {
  font-size: 22px;
  color: antiquewhite;
}

.logo-text {
  max-width: 400px;
  margin: auto;
}

/* ===== UNIVERSAL SLIDER ===== */
.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
  touch-action: pan-y;
}

.slider .person-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  display: flex;
  min-height: 760px;
  flex-direction: column;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.slider-arrow {
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7a8a6b;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}

.slider-arrow:hover {
  transform: translateY(-3px) scale(1.03);
  color: #585757;
}

.slider-arrow:active {
  transform: scale(0.96);
}

.slider-arrow:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: none;
  padding: 0;
  border-radius: 999px;
  background: rgba(122, 138, 107, 0.25);
  cursor: pointer;
  transition:
    width 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.slider-dot.active {
  width: 34px;
  background: #7a8a6b;
}

.slider-dot:hover {
  transform: scale(1.08);
}

/* ===== EDUCATION / COURSE ===== */
.course-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  gap: 30px;
  align-items: start;
}

.course-main {
  padding: 36px;
  border-radius: 34px;
  background: var(--back);
  border: 1px solid rgba(122, 138, 107, 0.14);
  box-shadow: 0 18px 40px rgba(63, 74, 60, 0.08);
}

.course-top {
  margin-bottom: 0;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(122, 138, 107, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-family: "HelveticaBold";
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-title-lg {
  font-family: "HelveticaBold";
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 14px;
}

.course-title-h4 {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 14px;
}

h3.course-title-lg {
  text-transform: uppercase;
}

span.course-title-lg {
  font-size: clamp(15px, 2.5vw, 30px);
  font-family: "Helvetica";
}

.course-desc {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(122, 138, 107, 0.12);
  color: var(--text);
  font-size: 14px;
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.course-block {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.12);
  box-shadow: 0 12px 28px rgba(63, 74, 60, 0.05);
  position: relative;
  padding-top: 60px;
}

.course-block .card-meta {
  top: 0;
  bottom: auto;
  justify-content: center;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.course-block h5 {
  margin-bottom: 14px;
  text-align: center;
  text-transform: uppercase;
}

.course-block h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "HelveticaBold";
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}

.course-main {
  position: relative;
}

.course-main .logo-text {
  margin-bottom: 30px;
  max-width: 260px;
  position: absolute;
  top: -60px;
  right: -20px;
  opacity: 0.8;
}

.course-block h4 i {
  color: var(--accent);
  font-size: 18px;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.course-list li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.65;
}

.course-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.course-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

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

.course-info-card strong {
  display: block;
  font-family: "HelveticaBold";
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text);
}

.course-side {
  position: relative;
  top: 24px;
}

.price-card {
  padding: 30px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(122, 138, 107, 0.14);
  box-shadow: 0 18px 40px rgba(63, 74, 60, 0.08);
}

.price-card-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.price-card-value {
  font-family: "HelveticaBold";
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
}

.price-card-note {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.price-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-btn-main,
.course-btn-secondary {
  width: 100%;
  margin-top: 0;
  font-size: 14px;
}

.btn-light {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  border: 1px solid rgba(122, 138, 107, 0.22);
}

.btn-light:hover {
  background: var(--accent);
  color: var(--white);
}

.course-card + .course-card {
  margin-top: 28px;
}

.course-card:nth-child(2) .course-badge {
  background: rgba(122, 138, 107, 0.14);
}

.course-card:nth-child(3) .course-badge {
  background: rgba(160, 140, 110, 0.14);
}
.course-card:nth-child(3) .course-badge {
  background: rgba(90, 110, 140, 0.12);
}

.price-card::before {
  content: "IIPIR Psycourses";
  position: absolute;
  font-family: var(--logoText);
  right: -100px;
  top: 700px;
  transform: translateY(-50%) rotate(90deg);
  line-height: 0.9;
  font-size: 120px;
  color: rgba(122, 138, 107, 0.5);
}

/* ===== PROGRAM SECTION ===== */
.program-section {
  position: relative;
  overflow: hidden;
  padding: 110px 30px;
  isolation: isolate;
}

.program-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center/cover no-repeat;
  opacity: 0.62;
  z-index: -1;
}

.program-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 234, 1) 0%,
    rgba(245, 241, 234, 0.78) 18%,
    rgba(245, 241, 234, 0.5) 50%,
    rgba(245, 241, 234, 0.78) 82%,
    rgba(245, 241, 234, 1) 100%
  );
  z-index: -2;
}

.program-bg-number {
  position: absolute;
  font-family: "HelveticaBold";
  font-size: clamp(70px, 11vw, 170px);
  line-height: 0.8;
  color: rgba(122, 138, 107, 0.4);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  letter-spacing: -0.05em;
}

.program-bg-number--one {
  top: 40px;
  left: 1%;
}

.program-bg-number--two {
  bottom: 80px;
  right: 1%;
}

.program-head {
  margin-bottom: 60px;
}

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

.program-card {
  position: relative;
  min-height: 100%;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.14);
  box-shadow: 0 18px 40px rgba(63, 74, 60, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.program-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(122, 138, 107, 0) 0%,
    rgba(122, 138, 107, 0.24) 50%,
    rgba(122, 138, 107, 0) 100%
  );
}

.program-card-number {
  position: absolute;
  right: 28px;
  top: 24px;
  font-family: "HelveticaBold";
  font-size: clamp(74px, 14vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: rgba(122, 138, 107, 0.14);
}

.program-card-body {
  position: relative;
  z-index: 1;
}

.program-card-title {
  font-family: "HelveticaBold";
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.program-list li {
  position: relative;
  padding-left: 20px;
  font-size: 18px;
  line-height: 1.75;
}

.program-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(122, 138, 107, 0.08);
}

.card-docs-btn {
  width: calc(100% - 60px);
  margin: 0 30px 80px;
  min-height: 46px;
  border-radius: 999px;
  background: rgba(122, 138, 107, 0.08);
  border: 1px solid rgba(122, 138, 107, 0.18);
  color: var(--accent);
  font-size: 14px;
  font-family: "HelveticaBold";
  text-transform: uppercase;
  transition: 0.25s ease;
}

.card-docs-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.teacher-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.3s ease;
}

.teacher-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.teacher-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 18, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.teacher-modal__dialog {
  position: relative;
  width: min(60vw, calc(100% - 32px));
  margin: 30px auto;
  padding: 24px;
  border-radius: 30px;
  background: rgba(245, 241, 234, 0.98);
  box-shadow: 0 30px 70px rgba(20, 24, 18, 0.2);
}

.teacher-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-modal__title {
  font-size: clamp(20px, 3vw, 42px);
  line-height: 1;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.teacher-certs-slider {
  overflow: hidden;
}

.teacher-certs-track {
  display: flex;
  gap: 18px;
  transition: transform 0.4s ease;
  will-change: transform;
  touch-action: pan-y;
}

.teacher-cert-slide {
  flex: 0 0 100%;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.teacher-cert-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.teacher-certs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.teacher-certs-arrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-certs-arrow:disabled {
  color: #585757;
}

.teacher-certs-dots {
  display: flex;
  gap: 10px;
}

.teacher-certs-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(122, 138, 107, 0.25);
}

.teacher-certs-dot.is-active {
  width: 28px;
  background: var(--accent);
}

/* ===== CONTACTS ===== */
.contacts-section {
  position: relative;
  padding: 120px 30px;
  overflow: hidden;
  isolation: isolate;
}

/* фон як у hero */
.contacts-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center/cover no-repeat;
  opacity: 0.2;
  z-index: -3;
}

.contacts-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 234, 1) 0%,
    rgba(245, 241, 234, 0.7) 50%,
    rgba(245, 241, 234, 1) 100%
  );
  z-index: -2;
}

.contacts-bg-text {
  position: absolute;
  font-family: "HelveticaBold";
  font-size: clamp(80px, 18vw, 260px);
  color: rgba(122, 138, 107, 0.05);
  pointer-events: none;
  z-index: -1;
}

.contacts-bg-text--two {
  bottom: 40px;
  right: 2%;
}

/* GRID */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

/* CARD */
.contact-card {
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.14);
  box-shadow: 0 18px 40px rgba(63, 74, 60, 0.08);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-card:hover {
  background: rgba(122, 138, 107, 0.12);
  box-shadow: 0 25px 50px rgba(63, 74, 60, 0.12);
}

/* ICON */
.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 138, 107, 0.12);
  font-size: 30px;
  color: var(--accent);
}

/* TEXT */
.contact-title {
  font-family: "HelveticaBold";
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-text {
  font-size: 16px;
  line-height: 1.6;
}

.contact-text a {
  color: var(--text);
  text-decoration: none;
}

/* LOGO */
.contacts-logo {
  margin-top: 70px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-logo img {
  width: 400px;
  opacity: 0.7;
  transition: 0.3s ease;
}

.contacts-logo img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ===== CONTACTS LEGAL ACTIONS ===== */
.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.contact-legal-btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.18);
  color: var(--accent);
  font-family: "HelveticaBold";
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-legal-btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(122, 138, 107, 0.18);
}

/* ===== LEGAL MODALS ===== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.legal-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 18, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-modal__dialog {
  position: relative;
  width: min(980px, calc(100% - 32px));
  max-height: calc(100vh - 30px);
  margin: 15px auto;
  padding: 26px;
  overflow: auto;
  border-radius: 32px;
  background: rgba(245, 241, 234, 0.98);
  box-shadow: 0 30px 80px rgba(20, 24, 18, 0.22);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s ease;
}

.legal-modal.is-open .legal-modal__dialog {
  transform: translateY(0) scale(1);
}

.legal-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(122, 138, 107, 0.14);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.legal-modal__close:hover {
  transform: rotate(90deg);
  background: var(--accent);
  color: var(--white);
}

.legal-modal__head {
  margin-bottom: 24px;
  padding-right: 54px;
}

.legal-modal__title {
  font-family: "HelveticaBold";
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}

.legal-modal__content {
  display: grid;
  gap: 16px;
}

.legal-modal__content--text p {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.12);
  box-shadow: 0 10px 24px rgba(63, 74, 60, 0.05);
  font-size: 16px;
  line-height: 1.8;
  white-space: normal;
}

.legal-info-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 138, 107, 0.12);
  box-shadow: 0 10px 24px rgba(63, 74, 60, 0.05);
}

.legal-info-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "HelveticaBold";
  font-size: 18px;
  color: var(--text);
}

.legal-info-card span {
  display: block;
  font-size: 17px;
  line-height: 1.7;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-phone-main {
  font-family: "HelveticaBold";
  font-size: 18px;
}

.contact-note {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(65, 76, 61, 0.75);
  max-width: 240px;
}

.contact-messengers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-messengers a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 138, 107, 0.12);
  color: var(--accent);
  font-size: 20px;
  transition: all 0.3s ease;
}

.contact-messengers a:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--white);
}

/* CERTIFICATE */

.certificate-block {
  margin-top: 60px;
  text-align: center;
}

.certificate-title {
  font-size: 28px;
  margin-bottom: 30px;
  font-family: "HelveticaBold";
}

.certificate-card {
  max-width: 600px;
  margin: 0 auto;
}

.certificate-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
}

.certificate-image:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.certificate-caption {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(65, 76, 61, 0.75);
}

.course-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(122, 138, 107, 0.1);
  border: 1px solid rgba(122, 138, 107, 0.18);
  color: var(--accent);
  font-size: 14px;
  font-family: "HelveticaBold";
  text-transform: uppercase;
  transition: 0.25s ease;
}

.course-toggle-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.course-details {
  display: none;
  margin-top: 24px;
}

.course-details.is-open {
  display: block;
  animation: fadeInCourse 0.35s ease;
}

@keyframes fadeInCourse {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.price-card::before {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card.is-open .price-card::before {
  opacity: 1;
}

.course-mobile-price {
  display: none;
}
