/* ============================================================
   КартоДизайн — style.css
   White / Black / Lime #93e42b — контрастный editorial дизайн
   ============================================================ */

:root {
  --lime:       #93e42b;
  --lime-dark:  #78c420;
  --lime-light: #f0fde4;
  --black:      #111111;
  --white:      #ffffff;
  --off:        #F7F7F5;      /* очень светлый off-white */
  --dark-2:     #1C1C1C;
  --text:       #111111;
  --text-2:     #555555;
  --text-muted: #999999;
  --border:     #E8E8E8;

  --font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Caveat', cursive;

  --header-h:   64px;
  --max-w:      1200px;
  --r:          12px;
  --r-lg:       20px;
  --r-xl:       28px;
  --t:          220ms ease;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- Layout ----------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* Чередование фонов секций */
.section--white  { background: var(--white); }
.section--off    { background: var(--off); }
.section--black  { background: #eaeaea; }
.section--lime   { background: var(--lime); }

.section { padding: 96px 0; }

.section__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 14px;
}

/* --- Split heading ---------------------------------------- */
.split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
  margin-bottom: 56px;
}
.split-head__right--text {
  display: flex;
  align-items: flex-end;
  padding-bottom: 6px;
}
.split-head__right--text p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 400px;
}

.split-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--black);
}
.split-title--outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--black);
}
.split-title--white  { color: var(--white); }
.split-title--white-outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--white);
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 275px;
  min-height: 60px;
  padding: 14px 32px;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--t), transform 140ms ease, box-shadow var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn--lime {
  background: var(--lime);
  color: var(--black);
}
.btn--lime:hover {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147,228,43,0.35);
}
.btn--black {
  background: var(--black);
  color: var(--white);
}
.btn--black:hover { background: #333; transform: translateY(-2px); }
.btn--white-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--white-outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.header.is-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
}

.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 150ms, background 150ms;
}
.nav__link:hover, .nav__link.is-active {
  color: var(--black);
  background: var(--off);
}
.nav__link--cta {
  background: var(--black);
  color: var(--lime) !important;
  margin-left: 8px;
  border-radius: 8px;
  padding: 9px 18px;
}
.nav__link--cta:hover { background: #222; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 6px;
  border-radius: 8px;
  transition: background 150ms;
}
.burger:hover { background: var(--off); }
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO  — белый фон, фото справа
   ============================================================ */
.hero {
  padding: calc(var(--header-h) + 64px) 0 0;
  background: var(--white);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--lime);
  color: var(--black);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.hero__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 180px;
}

.hero__stats-row {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: fit-content;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px;
  border-right: 1px solid var(--border);
  background: var(--off);
}
.hero__stat:last-child { border-right: none; }
.hero__stat strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat span {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero__right { position: relative; align-self: flex-end; }
.hero__img {
  width: 100%;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: block;
}

/* ============================================================
   FORMAT  — светло-серый фон
   ============================================================ */
.format {
  background: #eaeaea;
  padding: 96px 0;
}
.format .split-title { color: var(--black); }
.format .split-title--outline { color: transparent; -webkit-text-stroke: 2.5px var(--black); }

.format__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d0d0d0;
  border: 1px solid #d0d0d0;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 40px;
}
.format__card {
  position: relative;
  background: var(--white);
  padding: 36px 28px;
  transition: background var(--t);
}
.format__card:hover { background: #f5f5f5; }
.format__card:hover .format__icon-wrap { background: var(--lime); color: var(--black); }

.format__num {
  position: absolute;
  top: 20px; right: 22px;
  font-size: 0.875rem;
  font-weight: 900;
  color: #bbb;
  letter-spacing: -0.01em;
}
.format__icon-wrap {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  border-radius: var(--r);
  color: var(--black);
  margin-bottom: 20px;
  transition: background var(--t), color var(--t);
}
.format__card h3 {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
}
.format__card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   WHO  — светлый off-white фон
   ============================================================ */
.who { background: var(--off); padding: 96px 0; }

.who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.who__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  border: 1.5px solid var(--border);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.who__card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.who__card:hover .who__num { color: var(--lime); }

.who__num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  display: block;
  transition: color var(--t);
}
.who__card h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
}
.who__card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   RESULT  — белый фон
   ============================================================ */
.result { background: var(--white); padding: 96px 0; }

.result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}
.result__img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
  transition: transform var(--t), box-shadow var(--t);
}
.result__img:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(0,0,0,0.14); }
.result__img--featured {
  transform: scale(1.04) translateY(-12px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.14);
  z-index: 1; position: relative;
}
.result__img--featured:hover { transform: scale(1.04) translateY(-20px); }

/* ============================================================
   PROGRAM  — off-white фон
   ============================================================ */
.program { background: var(--off); padding: 96px 0; }

.modules {
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--white);
}
.module {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background var(--t);
}
.module:last-child { border-bottom: none; }
.module:hover { background: var(--off); }
.module:hover .module__num { color: var(--lime); }
.module:hover .module__tag { background: var(--lime); color: var(--black); }

.module__num {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -0.05em;
  line-height: 1;
  min-width: 68px;
  flex-shrink: 0;
  transition: color var(--t);
}
.module__body { flex: 1; min-width: 0; }
.module__title {
  font-size: 1.0625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 5px;
}
.module__text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}
.module__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.module__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--off);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  transition: background var(--t), color var(--t), border-color var(--t);
}

/* ============================================================
   AUTHOR  — белый фон
   ============================================================ */
.author { background: var(--white); padding: 96px 0; }

.author__grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: start;
}
.author__photo-wrap { position: relative; }
.author__photo {
  width: 100%;
  border-radius: var(--r-xl);
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}
.author__photo-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 8px 20px;
  border-radius: 6px;
  white-space: nowrap;
}

.author__name {
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 0.95;
  margin-bottom: 12px;
}
.author__role {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.5;
}

.author__metrics {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.author__metric {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--off);
}
.author__metric:last-child { border-right: none; }
.author__metric strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.author__metric span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

.author__bio-text { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.author__bio-text:last-of-type { margin-bottom: 32px; }

.author__facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.author__facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}
.author__facts li::before {
  content: '→';
  color: var(--lime-dark);
  font-weight: 900;
  flex-shrink: 0;
}

/* ============================================================
   PORTFOLIO  — светло-серый фон
   ============================================================ */
.portfolio { background: #eaeaea; padding: 96px 0; }
.portfolio .split-title { color: var(--black); }
.portfolio .split-title--outline { color: transparent; -webkit-text-stroke: 2.5px var(--black); }

.portfolio__sub {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-bottom: 40px;
  margin-top: -32px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.work-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.work-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  z-index: 1; position: relative;
}
.work-img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.portfolio__cta {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 40px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  flex-wrap: wrap;
}
.portfolio__cta-text {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--black);
  flex: 1;
  line-height: 1.3;
}

/* ============================================================
   WHY  — off-white слева, чёрная карточка справа
   ============================================================ */
.why { background: var(--off); padding: 96px 0; }

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.why__left .split-title { font-size: clamp(2.25rem, 4.5vw, 4rem); margin-bottom: 24px; }
.why__text { margin-bottom: 36px; }
.why__text p { font-size: 1rem; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.why__text p:last-child { margin-bottom: 0; }

.why__system {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}
.why__system-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.why__step { display: flex; align-items: flex-start; gap: 18px; }
.why__step-num {
  width: 40px; height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--black);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.why__step-body strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.why__step-body p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.why__step-line { width: 2px; height: 24px; background: var(--border); margin: 8px 0 8px 19px; }
.why__conclusion { font-size: 0.9375rem; font-weight: 700; color: var(--black); margin-top: 24px; }

/* ============================================================
   CTA BANNER  — лаймовый фон
   ============================================================ */
.cta-section { background: var(--lime); }
.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 32px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}
.cta-section__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--black);
}
.cta-section__right { max-width: 360px; }
.cta-section__sub {
  font-size: 1rem;
  color: rgba(0,0,0,0.55);
  line-height: 1.65;
  margin-bottom: 28px;
}
.cta-section__note {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-top: 16px;
}

/* ============================================================
   CONTACT  — белый фон
   ============================================================ */
.contact { background: var(--white); padding: 96px 0; }

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1.0;
  margin-bottom: 28px;
}
.contact__list { display: flex; flex-direction: column; gap: 13px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
}
.contact__list li::before { content: '✓'; font-weight: 900; color: var(--lime-dark); }

.contact__right {
  background: var(--off);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.contact__field { display: flex; flex-direction: column; gap: 8px; }
.contact__field label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.contact__field input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.contact__field input::placeholder { color: var(--text-muted); }
.contact__field input:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(147,228,43,0.2);
}
.contact__legal {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.contact__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--lime);
  color: var(--black);
  border-radius: var(--r);
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #eaeaea; padding: 40px 0; border-top: 1px solid #d0d0d0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo { font-family: var(--font-logo); font-size: 1.5rem; font-weight: 700; color: var(--black); }
.footer__copy { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #888; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #888;
  transition: color 150ms;
}
.footer__nav a:hover { color: var(--lime-dark); }
