/* ============================================================
   COURSE SITE — style.css
   Design: 1:1 match with romarayt.ru/system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,400;0,500;0,600&family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* ── RESET + BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Manrope', 'Arial', sans-serif;
  background: #0d0d0d;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  --bg:       #0d0d0d;
  --bg2:      #161616;
  --bg3:      #1c1c1c;
  --bg4:      #222222;
  --bg5:      #2a2a2a;
  --orange:   #e07429;
  --orange2:  #f09040;
  --pink:     linear-gradient(135deg, #cf3bad 0%, #e040b0 100%);
  --white:    #ffffff;
  --gray:     #8a8a8a;
  --gray2:    #555555;
  --gray3:    #3a3a3a;
  --radius:   16px;
  --radius-sm: 10px;
  --max-w:    1200px;
}

/* ── HELPERS ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section--dark { background: var(--bg2); }

/* Heading with orange brush-stroke underline */
.section-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 64px;
}
.section-title-wrap .section-subtitle {
  color: var(--gray);
  font-size: 16px;
  margin-top: 16px;
}

/* Orange brush-stroke underline SVG */
.section-title::after {
  content: '';
  display: block;
  height: 6px;
  width: 70%;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 20%, var(--orange2) 60%, transparent 100%);
  border-radius: 4px;
  filter: blur(0.5px);
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--pink {
  background: linear-gradient(135deg, #cf3bad 0%, #e040b0 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(207,59,173,0.35);
  position: relative;
  overflow: hidden;
}
.btn--pink::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: btn-shimmer 2.8s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%   { left: -100%; }
  60%  { left: 140%; }
  100% { left: 140%; }
}
.btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.btn--orange {
  background: var(--orange);
  color: #fff;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13,13,13,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__link:hover { color: #fff; }
.nav__cta {
  margin-left: auto;
  flex-shrink: 0;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 925px;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  background: url('/uploads/hero-bg.webp') center/cover no-repeat;
}

/* Code background text: orig color=rgb(94,63,45), opacity=0.9, x=992 y=162 → left=268 top=18 */
.hero__code-bg {
  position: absolute;
  left: 268px;
  top: 18px;
  width: 380px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgb(94, 63, 45);
  opacity: 0.9;
  white-space: pre;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 80px 6px;
  display: grid;
  grid-template-columns: 538px 1fr;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
}
.hero__content { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 5; }

.hero__title {
  font-family: SFProDisplay, 'Inter Tight', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(36px, 3.9vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0em;
  color: #fff;
}
.hero__title em {
  font-style: normal;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 6px;
}
.hero__title-u {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
  text-decoration-thickness: 4px;
}

.hero__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 500px;
}

.hero__bullets { display: flex; flex-direction: column; gap: 16px; }
.hero__bullet {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.hero__bullet-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg3);
}
.hero__bullet-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.hero__bullet-text { padding-top: 12px; }
.hero__bullet-text strong { color: #fff; font-weight: 700; }

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Hero right: photo + floating elements */
.hero__visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  min-height: 500px;
  overflow: visible;
}
.hero__photo {
  position: relative;
  z-index: 2;
  width: 680px;
  max-width: none;
  margin: -24px 0 0 0;
}
.hero__photo img {
  width: 100%;
  height: 780px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero__badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
  z-index: 4;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Floating elements */
.hero__float {
  position: absolute;
  z-index: 3;
  transition: transform 0.12s ease-out;
  will-change: transform;
}
.hero__float img { display: block; width: 100%; }

/* Claude Code logo: orig x=625 y=114 w=162, visual.x=724 visual.y=144 → top=-30 left=-99 w=162 */
.hero__float--claude {
  top: -30px;
  left: -99px;
  width: 162px;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.7));
  z-index: 5;
}
/* Orange asterisk: orig x=690 y=308 w=143 → top=164 left=-34 w=143 */
.hero__float--star {
  top: 164px;
  left: -34px;
  width: 143px;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.6));
  z-index: 5;
}
/* Colorful cube icon: orig x=1161 y=235 w=140 → top=91 left=437 w=140 */
.hero__float--icon {
  top: 91px;
  left: 437px;
  width: 140px;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  z-index: 6;
}
.hero__float--icon img { border-radius: 0; }
/* Коннектио card: orig x=1024 y=307 w=432 → top=163 left=300 w=432, BEHIND photo */
.hero__float--conn {
  top: 163px;
  left: 300px;
  width: 432px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 1;
}
/* Yoolip dashboard: orig x=602 y=479 w=432 → top=335 left=-122 w=432, BEHIND photo */
.hero__float--dashboard {
  top: 335px;
  left: -122px;
  width: 432px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  z-index: 1;
}
/* YouTube: orig x=1215 y=644 w=180 → top=500 left=491 w=180 */
.hero__float--yt {
  top: 500px;
  left: 491px;
  width: 180px;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.7));
  z-index: 5;
}
.hero__float--yt img { border-radius: 0; }
/* Yc green logo: orig x=736 y=722 w=137 → top=578 left=12 w=137, BEHIND photo */
.hero__float--yc {
  top: 578px;
  left: 12px;
  width: 137px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
  z-index: 7;
}
/* GetCourse badge: svg 292x95, circular part visible at right, orig x≈1285 y≈155 */
.hero__float--gc {
  top: 11px;
  left: 561px;
  width: 292px;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  z-index: 5;
}

/* ── VIDEO SECTION ────────────────────────────────────────── */
#video {
  padding: 80px 0;
  background: var(--bg2);
}
.video__inner { max-width: 860px; margin: 0 auto; padding: 0 40px; }
.video__heading { text-align: center; margin-bottom: 40px; }
.video__heading .section-title { font-size: clamp(28px, 3.5vw, 46px); }

.video__player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--bg3);
}
.video__player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video__player:hover img { transform: scale(1.02); }

.video__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.2s;
}
.video__player:hover .video__play-btn { background: rgba(0,0,0,0.1); }
.video__play-btn svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.video__player:hover .video__play-btn svg { transform: scale(1.1); }

.video__label {
  position: absolute;
  bottom: 20px;
  left: 24px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.video__label-time {
  color: var(--gray);
  font-weight: 400;
}

/* ── ABOUT SECTION ────────────────────────────────────────── */
#about {
  padding: 100px 0;
  background: var(--bg);
}
.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about__content { display: flex; flex-direction: column; gap: 20px; }
.about__heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.about__para {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
.about__highlight {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin: 8px 0;
}
.about__check-list { display: flex; flex-direction: column; gap: 10px; }
.about__check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}
.about__check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}
.about__visual { position: relative; }
.about__visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ── KOMU SECTION ─────────────────────────────────────────── */
#komu {
  padding: 100px 0 60px;
  background: var(--bg);
  /* Orange glow from bottom center */
  background-image: radial-gradient(ellipse 80% 50% at 50% 110%, rgba(180,80,20,0.18) 0%, transparent 70%);
}
.komu__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.komu__heading-wrap { margin-bottom: 64px; }

.komu__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.komu__card {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.komu__card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg4);
}
.komu__card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.komu__card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.komu__card-num {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.komu__card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.3;
}
.komu__card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  flex: 1;
}
.komu__card-after-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.komu__card-after {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  text-align: center;
}
.komu__card-check {
  color: var(--orange);
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
  text-align: center;
}

/* Not for section */
.komu__not-for { padding: 40px 0 60px; }
.komu__not-for-heading {
  text-align: center;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.komu__not-for-heading strong {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
}
.komu__not-for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.komu__not-for-item {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.komu__not-for-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(224,116,41,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.komu__not-for-text {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  line-height: 1.4;
}

/* ── NAVYKI SECTION ───────────────────────────────────────── */
#navyki {
  padding: 100px 0;
  background: var(--bg2);
  background-image: radial-gradient(ellipse 100% 60% at 50% 100%, rgba(180,80,20,0.15) 0%, transparent 60%);
}
.navyki__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.navyki__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}
.navyki__item { display: flex; flex-direction: column; gap: 16px; }
.navyki__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg3);
  position: relative;
}
.navyki__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.navyki__num {
  font-size: clamp(60px, 8vw, 100px);
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  position: absolute;
  right: 12px;
  bottom: -10px;
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.navyki__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.01em;
  font-variant: all-small-caps;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.06em;
}
.navyki__desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.navyki__note {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.navyki__note-num {
  display: block;
  color: var(--orange);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}

/* ── PROGRAM SECTION ──────────────────────────────────────── */
#program {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
/* Watermark text behind heading */
.program__watermark {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
}
.program__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.program__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}
.program__prefix {
  font-family: 'Courier New', monospace;
  color: var(--orange);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.program__desc {
  text-align: center;
  font-size: 16px;
  color: var(--gray);
  margin-top: 12px;
  max-width: 560px;
}

.program__list { display: flex; flex-direction: column; gap: 12px; }
.program__module {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.program__module:hover { border-color: rgba(255,255,255,0.12); }
.program__module.open { border-color: rgba(224,116,41,0.2); }

.program__module-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
}
.program__module-num {
  width: 48px;
  height: 48px;
  background: var(--bg4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.program__module-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex: 1;
  letter-spacing: -0.01em;
}
.program__module-tag {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.program__module-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.program__module.open .program__module-arrow { transform: rotate(180deg); color: var(--orange); }

.program__module-body {
  display: none;
  padding: 0 28px 24px 96px;
}
.program__module.open .program__module-body { display: block; }
.program__module-tagline {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}
.program__module-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.program__module-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
}
.program__module-item::before {
  content: '✓';
  color: var(--orange);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── OTLICHIE SECTION ─────────────────────────────────────── */
#otlichie {
  padding: 100px 0;
  background: var(--bg);
}
.otlichie__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.otlichie__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.otlichie__grid--last-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
  max-width: calc(66.66% + 8px);
  margin-left: auto;
  margin-right: auto;
}
.otlichie__card { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.otlichie__card-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  position: relative;
}
.otlichie__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.otlichie__card-num {
  position: absolute;
  right: 12px;
  bottom: 0;
  font-size: 80px;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}
.otlichie__card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-variant: all-small-caps;
}
.otlichie__card-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* ── COMMENTS SECTION ────────────────────────────────────── */
#comments {
  padding: 100px 0 80px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.comments__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
.comments__bg-text {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  z-index: 0;
}
#comments .section-title-wrap {
  position: relative;
  z-index: 1;
}
.comments__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  margin-top: 48px;
}
.comments__card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.comments__card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── FEATURES SECTION ("Что внутри") ─────────────────────── */
#features {
  padding: 100px 0;
  background: var(--bg2);
  background-image: radial-gradient(ellipse 80% 50% at 50% 80%, rgba(180,80,20,0.13) 0%, transparent 60%);
}
.features__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.features__card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.features__card-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
}
.features__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.features__card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-variant: all-small-caps;
}
.features__card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ── PRICING SECTION ──────────────────────────────────────── */
#tarif {
  padding: 100px 0;
  background: var(--bg);
}
.pricing__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 60px;
}
.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.countdown__num {
  background: var(--orange);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
.countdown__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.countdown__sep {
  font-size: 32px;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  margin-bottom: 24px;
}

/* Pricing cards */
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing__card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing__card--popular {
  border-color: rgba(34,197,94,0.3);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.1);
}
.pricing__card-badge {
  background: #22c55e;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pricing__card-badge--pink {
  background: linear-gradient(135deg, #cf3bad, #e040b0);
}
.pricing__card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 0; }
.pricing__card-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-variant: all-small-caps;
}
.pricing__card-desc {
  font-size: 14px;
  color: var(--gray);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pricing__card-price-box {
  background: var(--bg3);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}
.pricing__card-old-price {
  font-size: 16px;
  color: var(--gray);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.pricing__card-price {
  font-size: 38px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.pricing__card--popular .pricing__card-price { color: var(--orange); }
.pricing__card-installment {
  font-size: 13px;
  color: var(--gray);
}

/* Modules list in card */
.pricing__card-section-label {
  display: inline-block;
  background: var(--bg4);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pricing__card-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pricing__card-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}
.pricing__card-item::before {
  content: '✓';
  color: var(--orange);
  font-weight: 800;
  flex-shrink: 0;
}
.pricing__card-item--excluded {
  color: rgba(255,255,255,0.3);
}
.pricing__card-item--excluded::before { color: rgba(255,255,255,0.2); content: '✕'; }

.pricing__card-cta { margin-top: auto; }
.pricing__card-cta .btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
}
.pricing__card--popular .btn--orange { background: var(--orange); }

/* ── FAQ SECTION ──────────────────────────────────────────── */
#faq {
  padding: 100px 0;
  background: var(--bg2);
}
.faq__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
}
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.faq__item:hover { border-color: rgba(255,255,255,0.1); }
.faq__item.open { border-color: rgba(224,116,41,0.2); }
.faq__item-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}
.faq__item-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  min-width: 28px;
  flex-shrink: 0;
}
.faq__item-question {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  flex: 1;
  line-height: 1.4;
}
.faq__item-arrow {
  color: var(--gray);
  transition: transform 0.3s, color 0.2s;
  flex-shrink: 0;
}
.faq__item.open .faq__item-arrow { transform: rotate(180deg); color: var(--orange); }
.faq__item-answer {
  display: none;
  padding: 0 24px 20px 72px;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.faq__item.open .faq__item-answer { display: block; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  padding: 60px 0 40px;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__logo {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}
.footer__desc {
  font-size: 14px;
  color: var(--gray);
  max-width: 280px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer__link {
  font-size: 13px;
  color: var(--gray);
  transition: color 0.2s;
}
.footer__link:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--gray2);
}

/* ── SCROLL ANIMATIONS ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ── EDIT BAR (admin inline mode) ─────────────────────────── */
#edit-bar {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 10px 20px;
  gap: 12px;
  backdrop-filter: blur(12px);
}
#edit-bar.visible { display: flex; align-items: center; }
#edit-save-btn, #edit-exit-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#edit-save-btn { background: var(--orange); color: #fff; }
#edit-exit-btn { background: transparent; color: var(--gray); }
#edit-tooltip {
  position: fixed;
  background: rgba(20,20,20,0.9);
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  display: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .komu__cards { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .navyki__grid { grid-template-columns: 1fr; }
  .navyki__item { flex-direction: row; align-items: flex-start; }
  .navyki__img { width: 200px; flex-shrink: 0; aspect-ratio: 4/3; }
}

@media (max-width: 900px) {
  #hero { min-height: auto; padding-bottom: 60px; }
  .hero__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { display: none; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; }
  .pricing__cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .navyki__item { flex-direction: column; }
  .navyki__img { width: 100%; }
  .otlichie__grid { grid-template-columns: repeat(2, 1fr); }
  .otlichie__grid--last-2 { max-width: 100%; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container, .hero__inner, .video__inner, .about__inner, .komu__inner, .navyki__inner,
  .program__inner, .otlichie__inner, .features__inner, .pricing__inner, .faq__inner, .footer__inner {
    padding: 0 20px;
  }
  .section { padding: 60px 0; }
  #hero { padding-top: 64px; }
  .hero__inner { padding: 60px 20px; gap: 40px; }
  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13,13,13,0.97);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .komu__cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .komu__not-for-grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .otlichie__grid { grid-template-columns: 1fr; }
  .otlichie__grid--last-2 { grid-template-columns: 1fr; max-width: 100%; }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
  .program__module-body { padding-left: 28px; }
  .program__module-items { grid-template-columns: 1fr; }
  .countdown__num { width: 60px; height: 60px; font-size: 26px; }
}

@media (max-width: 480px) {
  .komu__cards { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}
