/* ========================================================================
   Код будущего · iSMART — landing
   Light brand: white bg, yellow #FFC600 primary, blue #2563EB accent
   Fonts: Unbounded (display) + Onest (body)
   ===================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f7fb;
  --ink:       #0f172a;
  --ink-soft:  #475569;
  --navy:      #1e3a8a;
  --blue:      #2563eb;
  --blue-700:  #1d4ed8;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;
  --yellow:    #ffcc00;
  --yellow-d:  #f0c000;
  --yellow-ink:#1a1407;
  --pink:      #ec4899;
  --pink-50:   #fdf2f8;
  --border:    #e5e9f0;
  --radius:    20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(15,23,42,.05);
  --shadow:    0 18px 50px -22px rgba(30,58,138,.28);
  --maxw:      1400px;
  --font-disp: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }

h1, h2, h3, h4 { font-family: var(--font-disp); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }

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

::selection { background: var(--yellow); color: var(--yellow-ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16.5px; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 8px 22px -10px rgba(245,184,0,.9); }
.btn-primary:hover { background: var(--yellow-d); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(245,184,0,1); }

.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { color: var(--blue); }

.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(15,23,42,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; padding-inline: 36px; max-width: none; }
.header-left { display: flex; align-items: center; gap: 56px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 29px; width: auto; display: block; }
.brand-div { width: 1px; height: 22px; background: var(--border); }
.brand-sub { font-family: var(--font-disp); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; color: var(--ink-soft); white-space: nowrap; }

.nav { display: flex; gap: 32px; }
.nav a { font-weight: 400; font-size: 16px; line-height: 24px; color: #101011; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: var(--yellow); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.btn-login {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 500; color: #101011;
  padding: 10px 16px; border-radius: 12px; transition: background .2s ease;
}
.btn-login svg { color: var(--blue); flex: none; }
.btn-login:hover { background: var(--bg-soft); }

.burger { display: none; width: 42px; height: 42px; border: none; background: var(--bg-soft); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger.active span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 6px; padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; border-top: 1px solid transparent; }
.mobile-nav.open { max-height: 360px; padding: 14px 24px 22px; border-top-color: var(--border); }
.mobile-nav a { font-weight: 600; padding: 12px 14px; border-radius: 12px; color: var(--ink); }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav .btn-primary { margin-top: 6px; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #fff; padding: 56px 0 64px; }
.hero-inner { text-align: center; max-width: 1000px; margin-inline: auto; }

.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 300; margin: 0 auto; letter-spacing: -.025em; }
.hero h1 .hl { position: relative; isolation: isolate; display: inline-block; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: -4px; width: calc(100% + 8px); bottom: .06em; height: .2em; background: var(--yellow); z-index: -1; }

.hero-pill { display: inline-block; margin-top: 22px; font-size: 16px; font-weight: 400; color: #3b82f6;
  background: #eff6ff; padding: 6px 14px; border-radius: 32px; }

.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 560px; margin: 20px auto 0; }

.hero-actions { display: flex; justify-content: center; margin-top: 28px; }

.btn-cta { display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: var(--yellow-ink); font-size: 16px; font-weight: 600;
  padding: 16px 28px; border-radius: 12px; transition: transform .18s ease, background .18s ease; }
.btn-cta:hover { background: var(--yellow-d); transform: translateY(-2px); }

.hero-stats { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; padding: 2px 48px; }
.hero-stats li + li { border-left: 1px solid var(--border); }
.hero-stats b { font-weight: 500; font-size: 40px; color: #7c3aed; line-height: 1.1; }
.hero-stats span { font-size: 18px; font-weight: 400; color: #101011; margin-top: 4px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 60px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-top: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; margin-top: 10px; }

.eyebrow { display: inline-block; font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }

/* ---------- Courses (pastel cards, ismart "С чего начать?" style) ---------- */
.courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.course {
  position: relative; overflow: hidden; border-radius: 24px; padding: 34px 36px;
  display: block; color: var(--ink); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.course:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(15,23,42,.35); }
.course-ai { background: #eaf1ff; }
.course-py { background: #fdeaf3; }

.course-body { position: relative; z-index: 1; max-width: 78%; }
.course h3 { font-size: 1.5rem; margin-bottom: 8px; }
.course-sub { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); text-transform: uppercase; }
.course-lead { color: var(--ink-soft); font-size: .96rem; margin-top: 14px; }

.course-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lv-chip { font-size: 12.5px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 999px; }

.course-go { display: inline-block; margin-top: 20px; font-weight: 600; font-size: .95rem; color: var(--blue-700); transition: transform .2s; }
.course:hover .course-go { transform: translateX(4px); }

.course-art { position: absolute; right: 22px; bottom: 20px; width: 132px; height: 132px; opacity: .9; pointer-events: none; filter: drop-shadow(0 8px 16px rgba(15,23,42,.12)); }
.course-art-ai { color: var(--blue); }
.course-art-py { color: var(--pink); }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.format { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.format:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.format-ic { display: inline-grid; place-items: center; width: 58px; height: 58px; font-size: 28px; border-radius: 16px; background: var(--blue-50); margin-bottom: 18px; }
.format h3 { font-size: 1.4rem; margin-bottom: 10px; }
.format p { color: var(--ink-soft); }

/* ---------- Certificate ---------- */
.cert {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, var(--navy), #2540a8); color: #fff;
  border-radius: 28px; padding: 48px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.cert::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,198,0,.45), transparent 65%); }
.cert-text { position: relative; }
.cert .eyebrow { color: var(--yellow); }
.cert h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 12px 0 16px; }
.cert p { color: rgba(255,255,255,.82); }
.cert-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 22px; }
.cert .lnk { font-weight: 600; color: var(--yellow); border-bottom: 1px solid transparent; transition: border-color .2s; }
.cert .lnk:hover { border-bottom-color: var(--yellow); }

.cert-stats { list-style: none; display: flex; flex-direction: column; gap: 16px; position: relative; }
.cert-stats li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; align-items: baseline; gap: 14px; }
.cert-stats b { font-weight: 600; font-size: 1.8rem; color: var(--yellow); line-height: 1; letter-spacing: -.02em; }
.cert-stats span { font-size: .92rem; color: rgba(255,255,255,.85); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s ease, box-shadow .25s ease; }
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.why-item h4 { font-size: 1.12rem; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.why-item h4::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); flex: none; }
.why-item p { color: var(--ink-soft); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-700) 55%, var(--navy) 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 22ch; }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 12px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer (white, ismart-exact) ---------- */
/* Palette: links/contacts #667085 · muted legal #98A2B3 · arrow #4B5563
   Type: Inter 16px / 400 / line-height 24px. Content max-width 1126px. */
.site-footer { background: #fff; color: var(--ink); padding: 56px 0 40px; font-size: 16px; line-height: 24px; }
.site-footer .wrap { max-width: 1158px; }

.footer-top { display: grid; grid-template-columns: 1.78fr 1fr 1.45fr; gap: 32px; padding-bottom: 44px; }
.footer-brand .brand-logo { height: 29px; width: 104px; display: block; }
.footer-contacts { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.footer-contacts li { font-size: 16px; line-height: 24px; color: #667085; display: flex; align-items: center; gap: 8px; }
.footer-contacts a { color: #667085; }
.footer-contacts .fc-ic { width: 18px; height: 18px; color: #98a2b3; flex: none; }
.footer-contacts a:hover { color: var(--blue); }

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #667085; font-size: 16px; line-height: 24px; }
.footer-col a:hover { color: #101011; }

.footer-bottom {
  padding-top: 40px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap;
}
.footer-legal { display: flex; flex-direction: column; gap: 16px; max-width: 608px; }
.footer-legal p { font-size: 16px; line-height: 24px; color: #98a2b3; }
.footer-legal b { color: #98a2b3; font-weight: 600; }
.footer-legal a { color: #98a2b3; text-decoration: none; }
.footer-legal a:hover { color: var(--blue); }
.footer-legal .legal-mail { color: #98a2b3; font-weight: 600; }
.footer-legal .footer-copy { margin-top: 26px; font-size: 14px; line-height: 20px; color: #98a2b3; }

.footer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.skolkovo { display: inline-flex; align-items: center; gap: 8px; color: #4b5563; }
.skolkovo img { height: 32px; width: auto; display: block; }
.skolkovo svg { width: 24px; height: 24px; color: #4b5563; flex: none; }
.skolkovo:hover { opacity: .85; }

.footer-social { list-style: none; display: flex; gap: 16px; }
.footer-social a { display: inline-flex; transition: opacity .18s ease, transform .18s ease; }
.footer-social img { width: 32px; height: 32px; display: block; }
.footer-social a:hover { opacity: .8; transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .btn-login { display: none; }
  .burger { display: block; }
  .mobile-nav { display: flex; }
  .courses, .formats, .cert, .why { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .footer-meta { align-items: flex-start; flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .cert { padding: 34px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .course-body { max-width: 80%; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .course-body { max-width: 100%; }
  .course-art { width: 84px; height: 84px; opacity: .5; right: 14px; bottom: 12px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 52px; }
  .hero-stats { gap: 18px 0; }
  .hero-stats li { padding: 2px 22px; }
  .hero-stats li + li { border-left: none; }
  .course, .format { padding: 24px; }
  .header-cta .btn-primary { padding: 9px 16px; }
}
