/* ПОКОДИМ — маркетинговый сайт. Modern EdTech, акцент — жёлтый (из лого). */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --yellow: #FFD70C;
  --yellow-wash: #FFF6CC;
  --navy: #1E2A6B;
  --graphite: #2B2E3A;
  --mint: #33A873;
  --mint-wash: #E3F5EC;
  --pink: #C4006B;
  --pink-wash: #FBE3EE;
  --orange: #E39A2E;
  --orange-wash: #FCEFD9;
  --bg: #FFFDF6;
  --card: #FFFFFF;
  --border: #ECE7D8;
  --text-sub: #6B6960;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 10px 30px rgba(30,42,107,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap { padding: 84px 0; }
.wrap.tight { padding: 56px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow-wash); color: #6B5A00;
  font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px;
}
.eyebrow { color: var(--mint); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 14px; font-weight: 800; font-size: 15px;
  cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 0 #D9B800; }
.btn-primary:hover { box-shadow: 0 4px 0 #D9B800; transform: translateY(2px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--border); }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 10px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,253,246,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.site-logo img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 14px; color: var(--graphite); }
.nav-links a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.city-picker { position: relative; }
.city-picker button {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--border);
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; font-family: inherit;
}
.city-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow); border: 1px solid var(--border); padding: 8px; width: 260px;
  max-height: 320px; overflow-y: auto; display: none; z-index: 60;
}
.city-dropdown.open { display: block; }
.city-dropdown button { width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: none; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--graphite); cursor: pointer; }
.city-dropdown button:hover { background: var(--yellow-wash); }
.city-dropdown button.active { background: var(--mint-wash); color: #1D6E4C; }
.burger { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .accent { position: relative; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 12px;
  background: var(--yellow); opacity: .55; z-index: -1; border-radius: 6px;
}
.hero p.lead { font-size: 18px; color: var(--text-sub); margin: 20px 0 28px; max-width: 480px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px;}
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-chip { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.stat-chip .num { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 22px; color: var(--navy); }
.stat-chip .lbl { font-size: 12px; color: var(--text-sub); font-weight: 600; max-width: 120px; }

.hero-art { position: relative; }
.hero-art .panel {
  background: linear-gradient(160deg, #1E2A6B, #131B4A); border-radius: var(--radius-lg);
  padding: 40px; min-height: 360px; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.hero-art .panel .glow { position: absolute; inset: -40%; background: radial-gradient(circle at 30% 20%, rgba(255,215,12,0.25), transparent 60%); }
.hero-art .badge-float {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-weight: 800; font-size: 13px; color: var(--navy); display: flex; align-items: center; gap: 8px;
}
.hero-art .badge-1 { top: 20px; right: -14px; }
.hero-art .badge-2 { bottom: 24px; left: -18px; }
.hero-art .code-lines { color: rgba(255,255,255,0.85); font-family: 'Space Grotesk', monospace; font-size: 14px; line-height: 2; position: relative; z-index: 2;}
.hero-art .code-lines .k { color: var(--yellow); }
.hero-art .code-lines .s { color: #7FE0B8; }

/* ---------- sections ---------- */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 34px; margin-top: 10px; }
.section-head p { color: var(--text-sub); font-size: 16px; margin-top: 14px; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); }
.icon-circle {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}

/* курсы */
.course-card { display: flex; flex-direction: column; gap: 14px; }
.course-card .age { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 30px; }
.course-card ul { margin: 0; padding-left: 20px; color: var(--text-sub); font-size: 14px; line-height: 1.9; }
.course-card .btn { align-self: flex-start; margin-top: 8px; }

/* города */
.city-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.city-strip button {
  background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: 14px; color: var(--graphite); cursor: pointer; font-family: inherit;
}
.city-strip button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.address-card { background: var(--mint-wash); border-radius: var(--radius-md); padding: 26px 30px; margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.address-card .pin { font-size: 30px; }
.address-card b { color: var(--navy); font-size: 17px; }
.address-card div.lines { color: #1D6E4C; font-weight: 600; font-size: 14px; }

/* contact / footer */
.contact-band { background: var(--navy); border-radius: var(--radius-lg); padding: 50px; color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.contact-band h2 { color: #fff; }
.contact-band .links { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.contact-band .links a { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.contact-band .links a:hover { color: var(--yellow); }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 30px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sub); margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--graphite); margin-bottom: 8px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-sub); flex-wrap: wrap; gap: 10px; }
.footer-links-small { display: flex; gap: 14px; }
.footer-links-small a { color: var(--text-sub); font-weight: 600; }

/* PWA install hint */
.install-hint { background: var(--yellow-wash); border-radius: 16px; padding: 14px 18px; font-size: 13px; color: #6B5A00; font-weight: 600; display: none; align-items: center; gap: 10px; margin-top: 18px; }
.install-hint.show { display: flex; }
.install-hint button { margin-left: auto; background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 12px; cursor: pointer; font-family: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-band { grid-template-columns: 1fr; padding: 34px 24px; }
  .nav-links { display: none; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 54px 0; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 16px; }
  .section-head h2 { font-size: 26px; }
  .footer-grid { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .header-actions .btn-lg-label { display: none; }
}

.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--bg); z-index: 100;
  flex-direction: column; padding: 20px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav a { font-size: 20px; font-weight: 800; padding: 14px 0; border-bottom: 1px solid var(--border); }
