/* === Школа 21. Приморье — лендинг === */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --bg-card: #f8f9fa;
  --border: #e5e7eb;
  --border-soft: #eef0f2;
  --text: #0f1419;
  --text-muted: #5b6470;
  --text-light: #8a929d;
  --accent: #21a038;
  --accent-hover: #1a8a2e;
  --accent-soft: #d6f0dc;
  --accent-bg: #eaf7ee;
  --navy: #1a2a4a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(15, 20, 25, .04), 0 8px 24px rgba(15, 20, 25, .04);
  --shadow-card: 0 1px 2px rgba(15, 20, 25, .04), 0 12px 32px rgba(15, 20, 25, .06);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-py: clamp(80px, 10vw, 140px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Типографика */
h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(40px, 6vw, 78px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.015em; }
h4 { font-size: 18px; }
p { color: var(--text-muted); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text-muted); }

/* Контейнер */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-py) 0; position: relative; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 24px;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.section-title { margin-bottom: 24px; }
.section-intro { max-width: 720px; margin-bottom: 64px; }

/* Хедер */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.header.scrolled { border-bottom-color: var(--border-soft); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-family: 'Manrope', sans-serif; font-size: 17px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--text); color: white;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; letter-spacing: -.02em;
}
.brand-mark span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; color: var(--text-muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }
.btn-header {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--text); color: white;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.btn-header:hover { background: #1c2530; transform: translateY(-1px); }
@media (max-width: 800px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .btn-header { padding: 8px 14px; font-size: 13px; }
  .btn-header svg { display: none; }
  .brand-mark { width: 32px; height: 32px; font-size: 13px; }
  .brand { font-size: 15px; }
}

/* HERO */
.hero {
  padding-top: calc(64px + 80px);
  padding-bottom: clamp(80px, 10vw, 120px);
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--accent-bg);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); display: inline-block; }
.hero-lead { margin-bottom: 40px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: white; }
.btn-primary:hover { background: #1c2530; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 20, 25, .15); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text); background: var(--bg-soft); }
.btn svg { width: 18px; height: 18px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 540px;
}
.stat-num { font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-card);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 60%, rgba(33, 160, 56, .08));
}
.hero-tag {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.hero-tag-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-bg);
  display: grid; place-items: center; flex-shrink: 0;
  color: var(--accent);
}
.hero-tag-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.hero-tag-text span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; aspect-ratio: 4/4.5; }
  .hero-stats { max-width: none; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-stats > :nth-child(3) { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--border-soft); }
  .stat-num { font-size: 28px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-tag { padding: 14px 16px; gap: 12px; }
  .hero-tag-text strong { font-size: 13px; }
  .hero-tag-text span { font-size: 12px; }
}

/* О ШКОЛЕ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-card);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border); }
.feature-card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.5; }
.about-note { margin-top: 28px; padding: 16px 20px; background: var(--accent-bg); border-radius: 12px; border-left: 3px solid var(--accent); font-size: 15px; color: var(--text); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 480px; aspect-ratio: 4/4.5; }
}
@media (max-width: 560px) { .feature-cards { grid-template-columns: 1fr; } }

/* КАМПУС */
.campus { background: var(--bg-soft); }
.campus-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.campus-image {
  aspect-ratio: 16/10;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-card);
}
.campus-image img { width: 100%; height: 100%; object-fit: cover; }
.campus-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.campus-stat {
  background: white; border-radius: 12px; padding: 18px 20px;
  border: 1px solid var(--border-soft);
}
.campus-stat .num { font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.campus-stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.spaces-list { list-style: none; margin-top: 24px; }
.spaces-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px;
}
.spaces-list li:last-child { border-bottom: 0; }
.spaces-list li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  margin-top: 8px; flex-shrink: 0;
}
.campus-address {
  margin-top: 28px; padding: 18px 22px;
  background: white; border-radius: 14px;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 14px;
}
.campus-address svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.campus-address strong { display: block; font-weight: 600; }
.campus-address small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 900px) { .campus-grid { grid-template-columns: 1fr; } }

/* НАПРАВЛЕНИЯ */
.directions-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 32px; flex-wrap: wrap;
}
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.direction-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.direction-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.direction-card:hover { border-color: var(--text); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.direction-card:hover::before { transform: scaleX(1); }
.direction-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.direction-card h3 { margin-bottom: 8px; font-size: 19px; }
.direction-card p { font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .directions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .directions-grid { grid-template-columns: 1fr; } }

/* СОТРУДНИЧЕСТВО — before/after */
.collab { background: var(--bg-soft); }
.collab-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}
.compare-col {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border-soft);
}
.compare-col.before { opacity: .85; }
.compare-col.after {
  border: 1px solid var(--accent-soft);
  box-shadow: 0 1px 2px rgba(33, 160, 56, .06), 0 12px 32px rgba(33, 160, 56, .08);
}
.compare-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.compare-col.before .compare-label { background: #f0e8e8; color: #8b6e6e; }
.compare-col.after .compare-label { background: var(--accent-bg); color: var(--accent); }
.compare-list { list-style: none; }
.compare-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  font-size: 15px;
}
.compare-list li + li { border-top: 1px solid var(--border-soft); }
.compare-list svg { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; }
.compare-col.before .compare-list svg { color: #c4a8a8; }
.compare-col.after .compare-list svg { color: var(--accent); }
@media (max-width: 800px) { .collab-compare { grid-template-columns: 1fr; } }

/* ПРОЦЕСС */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; }
.process-step { position: relative; padding-top: 32px; }
.process-step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--text);
}
.process-num { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; letter-spacing: .04em; }
.process-step h3 { margin-bottom: 12px; }
.process-step p { font-size: 15px; line-height: 1.55; }
.process-step em { font-style: italic; color: var(--text); background: var(--accent-bg); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

.formats-title { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 24px; }
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.format-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all .25s;
}
.format-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.format-duration { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .02em; }
.format-card h4 { margin-bottom: 8px; font-size: 18px; }
.format-card p { font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) {
  .process-steps, .formats-grid { grid-template-columns: 1fr; }
}

/* ИИ ОБУЧЕНИЕ */
.ai { background: var(--bg-soft); }
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.ai-image {
  aspect-ratio: 16/10;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-card);
}
.ai-image img { width: 100%; height: 100%; object-fit: cover; }
.ai-programs { display: grid; gap: 12px; margin-top: 32px; }
.ai-program {
  background: white;
  border-radius: 14px;
  padding: 20px 24px;
  border: 1px solid var(--border-soft);
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .2s, transform .2s;
}
.ai-program:hover { border-color: var(--accent); transform: translateX(4px); }
.ai-program-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ai-program strong { display: block; font-weight: 700; margin-bottom: 4px; }
.ai-program span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

/* ЭКОСИСТЕМА */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
  margin-bottom: 48px;
}
.ecosystem-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.ecosystem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--text); }
.ecosystem-num {
  position: absolute; top: 28px; right: 32px;
  font-family: 'Manrope', sans-serif;
  font-size: 64px; font-weight: 800;
  color: var(--accent-bg); letter-spacing: -.04em;
  line-height: .85;
}
.ecosystem-card h3 { margin-bottom: 14px; position: relative; }
.ecosystem-card p { font-size: 15px; line-height: 1.55; position: relative; }
.ecosystem-mission {
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--text), #1c2530);
  color: white;
  border-radius: var(--radius);
  display: flex; gap: 20px; align-items: flex-start;
}
.ecosystem-mission-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(33, 160, 56, .2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ecosystem-mission strong { display: block; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ecosystem-mission p { color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .ecosystem-grid { grid-template-columns: 1fr; } }

/* CTA — НАЧНИТЕ */
.cta { background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%); }
.cta-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 56px;
}
.timeline-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
}
.timeline-stage {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.timeline-stage::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.timeline-card h3 { margin-bottom: 24px; }
.timeline-list { list-style: none; }
.timeline-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  font-size: 15px;
}
.timeline-list li + li { border-top: 1px solid var(--border-soft); }
.timeline-list svg { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; color: var(--accent); }
@media (max-width: 800px) { .cta-timeline { grid-template-columns: 1fr; } }

/* ОЦЕНКА ЦИФРОВОЙ ЗРЕЛОСТИ */
.assessment {
  background: linear-gradient(135deg, var(--text), #1c2530);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
  color: white;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 56px;
}
.assessment h3 { color: white; margin-bottom: 12px; }
.assessment p { color: rgba(255, 255, 255, .82); max-width: 480px; }
.assessment .btn-primary {
  background: var(--accent); justify-self: flex-end;
}
.assessment .btn-primary:hover { background: var(--accent-hover); }
@media (max-width: 800px) {
  .assessment { grid-template-columns: 1fr; }
  .assessment .btn-primary { justify-self: flex-start; }
}

/* КОНТАКТЫ */
.contacts {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(32px, 5vw, 56px);
}
.contacts-title { margin-bottom: 32px; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-block { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; }
.contact-block + .contact-block { border-top: 1px solid var(--border-soft); }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.contact-block strong { display: block; font-size: 15px; margin-bottom: 4px; }
.contact-block a, .contact-block span { color: var(--text-muted); font-size: 15px; transition: color .2s; }
.contact-block a:hover { color: var(--accent); }
@media (max-width: 700px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ФУТЕР */
.footer { padding: 40px 0 32px; border-top: 1px solid var(--border-soft); margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-credit { font-size: 13px; color: var(--text-light); }
.footer-credit a { color: var(--text-muted); font-weight: 500; }
.footer-credit a:hover { color: var(--accent); }

/* Анимации появления */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
