/* =========================================================
   Скиллотека — redesign 2026
   Современная дизайн-система (полностью заменяет Oxygen CSS)
   ========================================================= */
@import url("/assets/fonts/inter.css");

:root {
  --violet: #5b4be0;
  --violet-dark: #3a2ea8;
  --violet-soft: #efedfb;
  --coral: #ff6b6b;
  --amber: #ffb23e;
  --mint: #2bd9a8;
  --sky: #38b6ff;
  --pink: #ff7bc2;

  --ink: #1e1b33;
  --muted: #6b6880;
  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --line: #eceaf4;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-sm: 0 4px 14px rgba(30, 27, 51, 0.06);
  --shadow: 0 14px 40px rgba(46, 35, 120, 0.10);
  --shadow-lg: 0 26px 70px rgba(46, 35, 120, 0.16);

  --container: 1160px;
  --header-h: 76px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { overflow-wrap: break-word; }
.hero-inner > *, .layout > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet-dark); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--violet);
  background: var(--violet-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section__head { max-width: 720px; margin: 0 auto clamp(34px, 4vw, 56px); text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 10px 24px rgba(91, 75, 224, .35); }
.btn--primary:hover { background: var(--violet-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(91, 75, 224, .4); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px rgba(255, 107, 107, .35); }
.btn--coral:hover { background: #ff5252; color: #fff; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--violet); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-dark); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li > a {
  display: block; padding: 9px 13px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .96rem;
}
.nav-list > li > a:hover, .nav-list > li.is-active > a { background: var(--violet-soft); color: var(--violet-dark); }
.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 5px; opacity: .6; }
.sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.sub-menu a:hover { background: var(--bg-soft); color: var(--violet-dark); }
.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--violet); }
.header-phone svg { width: 18px; height: 18px; color: var(--violet); }
.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; padding: 0; flex-shrink: 0;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #6a4be8 0%, #5b4be0 45%, #4731c4 100%);
  color: #fff;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35;
}
.hero::before { width: 420px; height: 420px; background: radial-gradient(circle, var(--pink), transparent 70%); top: -120px; right: -80px; }
.hero::after { width: 380px; height: 380px; background: radial-gradient(circle, var(--amber), transparent 70%); bottom: -160px; left: -60px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: clamp(48px, 6vw, 92px) 0; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero .btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 22px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.7rem; font-weight: 800; }
.hero-stat span { font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255,255,255,.2);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 26px;
  backdrop-filter: blur(4px);
}
.hero-art div {
  display: flex; align-items: center; justify-content: center; font-size: clamp(28px, 4vw, 46px);
  background: rgba(255, 255, 255, .14); border-radius: var(--radius); aspect-ratio: 1;
  animation: floaty 4s ease-in-out infinite;
}
.hero-art div:nth-child(2n) { animation-delay: .6s; }
.hero-art div:nth-child(3n) { animation-delay: 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- programs grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent, var(--violet)); opacity: .9; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  font-size: 30px; margin-bottom: 18px; background: var(--accent-soft, var(--violet-soft));
}
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); }
.card:hover h3 a { color: var(--violet-dark); }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; flex: 1; }
.card-link { font-weight: 700; color: var(--violet); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.card:hover .card-link { gap: 10px; }
.card-stretch { position: absolute; inset: 0; z-index: 1; } /* full-card click */
.card-link, .card h3 a { position: relative; z-index: 2; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; background: var(--bg-soft); }
.feature h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.contact-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--violet-soft); color: var(--violet-dark); }
.contact-list b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list span { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--violet); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius-l); box-shadow: var(--shadow-sm); }

/* ---------- page hero (inner) ---------- */
.page-hero {
  background: linear-gradient(135deg, #5b4be0 0%, #4731c4 100%);
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--amber), transparent 70%); opacity: .3; top: -140px; right: -60px; }
.page-hero-inner { position: relative; z-index: 1; padding: clamp(34px, 5vw, 64px) 0; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; font-size: 1.1rem; margin: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 16px; color: rgba(255,255,255,.75); flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .6; }

/* ---------- article layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.prose { font-size: 1.06rem; color: #34324a; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before { content: ""; position: absolute; left: 8px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 8px; background: var(--violet-soft); color: var(--violet-dark); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }

.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.cta-card { background: linear-gradient(150deg, var(--violet), var(--violet-dark)); color: #fff; border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow); }
.cta-card h3 { color: #fff; font-size: 1.3rem; }
.cta-card p { color: rgba(255,255,255,.85); font-size: .96rem; }
.cta-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.cta-card .btn--white { background: #fff; color: var(--violet-dark); }
.cta-card .btn--white:hover { background: #f1eefc; color: var(--violet-dark); transform: translateY(-2px); }
.cta-card .btn--wa { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); margin-top: 12px; }
.cta-card .btn--wa:hover { background: rgba(255,255,255,.24); color: #fff; }
.aside-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.aside-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aside-info li { display: flex; gap: 11px; align-items: center; font-size: .96rem; }
.aside-info .ci { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-dark); }

/* ---------- footer ---------- */
.site-footer { background: #1b1733; color: rgba(255,255,255,.78); padding: 58px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- mobile call bar ---------- */
.callbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 360px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav, .header-phone { display: none; }
  .burger { display: block; }
  .nav.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 14px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.is-open .nav-list > li > a { padding: 13px 14px; font-size: 1.02rem; }
  .nav.is-open .has-sub > a::after { float: right; }
  .nav.is-open .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 14px; padding: 0;
  }
  .header-cta .btn { display: none; }
  .callbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06);
  }
  .callbar a { flex: 1; text-align: center; padding: 14px 6px; font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: center; gap: 7px; }
  .callbar a + a { border-left: 1px solid var(--line); }
  .callbar .c-wa { color: #25a667; }
  body { padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .cards, .features, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
}
