/* ============================================================
   NAVCENTER.RU — Навигатор образовательных решений
   ============================================================ */
:root {
  --navy: #0b1b33;
  --navy-2: #10294d;
  --navy-3: #16345f;
  --ink: #1a2b4a;
  --slate: #5a6b85;
  --line: #e3e9f2;
  --bg: #f6f8fb;
  --white: #ffffff;
  --amber: #f5a623;
  --amber-2: #ffc94d;
  --amber-dark: #d98e12;
  --green: #1f9d68;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 27, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, 0.14);
  --font-head: "Manrope", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
ul, ol { padding-left: 1.3em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }

.section { padding: 88px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--slate); margin-top: 14px; font-size: 17px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: var(--navy); line-height: 1.15; }
.logo__name span { display: block; font-weight: 600; font-size: 12px; color: var(--slate); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-weight: 500; font-size: 15px; color: var(--ink); transition: color 0.2s; }
.nav__link:hover { color: var(--amber-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s; white-space: nowrap;
}
.btn--primary { background: var(--amber); color: var(--navy); box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35); }
.btn--primary:hover { background: var(--amber-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--amber); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--amber-2); transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 16px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, #0b1b33 0%, #10294d 55%, #16345f 100%); overflow: hidden; color: #dbe4f3; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(245, 166, 35, 0.18), transparent 60%),
    radial-gradient(500px 500px at 10% 90%, rgba(56, 120, 255, 0.16), transparent 60%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 96px 0 104px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  color: var(--amber-2); margin-bottom: 24px;
}
.hero__title { font-size: clamp(34px, 5vw, 54px); font-weight: 800; color: #fff; letter-spacing: -0.025em; }
.hero__title em { font-style: normal; color: var(--amber-2); }
.hero__text { margin: 22px 0 34px; font-size: 18px; color: #c3d0e6; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 26px; font-size: 13.5px; color: #8fa3c4; display: flex; align-items: center; gap: 8px; }
.hero__note svg { flex: none; }

.hero__visual { position: relative; }
.hero__card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px; padding: 34px 30px; backdrop-filter: blur(6px);
}
.hero__card-title { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 19px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero__route { display: flex; flex-direction: column; gap: 14px; }
.route-step { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #d7e2f5; }
.route-step__dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(245, 166, 35, 0.16); border: 1px solid rgba(245, 166, 35, 0.5); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--amber-2); }
.route-step__line { width: 2px; height: 14px; background: rgba(255, 255, 255, 0.18); margin-left: 14px; border-radius: 2px; }

.hero__stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 96px; padding-bottom: 24px; }
.stat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 20px 18px; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--amber-2); }
.stat__label { font-size: 13px; color: #9fb2d2; margin-top: 4px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__text p + p { margin-top: 16px; }
.about__text p { color: var(--slate); font-size: 16.5px; }
.about__text strong { color: var(--navy); }
.about__list { margin-top: 26px; display: grid; gap: 14px; }
.about__item { display: flex; gap: 14px; align-items: flex-start; }
.about__item-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(245, 166, 35, 0.14); display: flex; align-items: center; justify-content: center; }
.about__item b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 15.5px; }
.about__item span { font-size: 14.5px; color: var(--slate); }

.about__visual { position: relative; }
.about__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow);
}
.about__card + .about__card { margin-top: 20px; }
.about__card--dark { background: var(--navy); border-color: var(--navy); color: #c3d0e6; }
.about__card--dark h4 { color: #fff; }
.about__card h4 { font-size: 17px; margin-bottom: 8px; }
.about__card p { font-size: 14.5px; color: var(--slate); }
.about__card--dark p { color: #9fb2d2; }
.about__tag {
  display: inline-block; background: rgba(245, 166, 35, 0.14); color: var(--amber-dark);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 100px; margin-bottom: 10px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--amber), var(--amber-2)); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 8px 18px rgba(245, 166, 35, 0.3); }
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--slate); }
.service-card__list { margin-top: 14px; padding-left: 1.2em; font-size: 14px; color: var(--slate); }
.service-card__list li { margin-bottom: 6px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 30px 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 34px;
  color: rgba(245, 166, 35, 0.9); display: block; margin-bottom: 14px; letter-spacing: -0.03em;
}
.step h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: #9fb2d2; }
.section--dark .section-title { color: #fff; }
.section--dark .section-sub { color: #9fb2d2; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 18px; text-align: center; font-family: var(--font-head); font-weight: 700;
  color: var(--navy-2); font-size: 15px; transition: 0.2s;
}
.partner:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: var(--shadow); }
.partner small { display: block; font-weight: 500; font-size: 12px; color: var(--slate); margin-top: 4px; font-family: var(--font-body); }

/* ---------- Article preview ---------- */
.article-preview { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.article-preview__body h3 { font-size: clamp(22px, 3vw, 30px); margin: 14px 0 16px; }
.article-preview__body p { color: var(--slate); font-size: 16px; }
.article-preview__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--slate); margin-bottom: 20px; }
.article-preview__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-preview__points { margin: 22px 0 28px; display: grid; gap: 10px; padding: 0; list-style: none; }
.article-preview__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.article-preview__points svg { flex: none; margin-top: 3px; }
.article-preview__img {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  border-radius: 24px; padding: 40px 34px; color: #fff; position: relative; overflow: hidden;
}
.article-preview__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 300px at 90% 10%, rgba(245, 166, 35, 0.2), transparent 60%); }
.article-preview__img-inner { position: relative; }
.article-preview__img .tag { display: inline-block; background: rgba(245, 166, 35, 0.2); color: var(--amber-2); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 100px; font-family: var(--font-head); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.article-preview__img h4 { color: #fff; font-size: 22px; line-height: 1.3; }
.article-preview__img p { color: #b9c8e2; font-size: 14.5px; margin-top: 12px; }
.article-preview__img .progress { margin-top: 26px; }
.article-preview__img .progress-bar { height: 8px; background: rgba(255, 255, 255, 0.14); border-radius: 100px; overflow: hidden; }
.article-preview__img .progress-fill { height: 100%; width: 62%; background: linear-gradient(90deg, var(--amber), var(--amber-2)); border-radius: 100px; }
.article-preview__img .progress-label { font-size: 12.5px; color: #9fb2d2; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item.open { box-shadow: var(--shadow); border-color: var(--amber); }
.faq-item__q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 20px 22px; font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item__q .icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: transform 0.25s, background 0.25s; }
.faq-item.open .faq-item__q .icon { transform: rotate(45deg); background: var(--amber); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item__a-inner { padding: 0 22px 22px; color: var(--slate); font-size: 15px; }
.faq-item__a-inner a { color: var(--amber-dark); font-weight: 600; }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contacts__info p { color: var(--slate); font-size: 16.5px; }
.contacts__cards { margin-top: 30px; display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.contact-card__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(245, 166, 35, 0.14); display: flex; align-items: center; justify-content: center; }
.contact-card b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 15px; }
.contact-card span, .contact-card a { font-size: 14.5px; color: var(--slate); }
.contact-card a { color: var(--navy-3); font-weight: 600; }
.contact-card a:hover { color: var(--amber-dark); }

.contacts__map { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 380px; background: var(--navy); }
.map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; background: var(--amber); border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.5); animation: pulse 2.4s infinite;
}
.map-pin svg { transform: rotate(45deg); }
.map-pin::after { content: ""; position: absolute; inset: -14px; border: 2px solid rgba(245, 166, 35, 0.5); border-radius: 50%; animation: ring 2.4s infinite; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) rotate(-45deg) scale(1); } 50% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.08); } }
@keyframes ring { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.map-address {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: rgba(255, 255, 255, 0.95); border-radius: 14px; padding: 16px 20px;
  font-size: 14.5px; color: var(--ink); box-shadow: var(--shadow);
}
.map-address b { font-family: var(--font-head); display: block; margin-bottom: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #9fb2d2; padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer .logo__name { color: #fff; }
.footer .logo__name span { color: #8fa3c4; }
.footer__about p { font-size: 14px; margin-top: 14px; max-width: 340px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer__links { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__links a { color: #9fb2d2; font-size: 14.5px; }
.footer__links a:hover { color: var(--amber-2); }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer__bottom a { color: #9fb2d2; }
.footer__bottom a:hover { color: var(--amber-2); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }

/* ---------- Article page ---------- */
.page-hero { background: linear-gradient(135deg, #0b1b33, #16345f); padding: 72px 0 64px; color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 85% 10%, rgba(245, 166, 35, 0.16), transparent 60%); }
.page-hero .container { position: relative; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #8fa3c4; margin-bottom: 22px; }
.breadcrumbs a { color: #8fa3c4; }
.breadcrumbs a:hover { color: var(--amber-2); }
.page-hero__tag { display: inline-block; background: rgba(245, 166, 35, 0.18); color: var(--amber-2); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 100px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); font-weight: 800; max-width: 860px; letter-spacing: -0.02em; }
.page-hero__meta { margin-top: 20px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #9fb2d2; }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }

.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 56px 0 80px; align-items: start; }
.toc { position: sticky; top: 96px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 14px; }
.toc ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.toc a { font-size: 13.5px; color: var(--ink); line-height: 1.4; }
.toc a:hover { color: var(--amber-dark); }

.article-body { max-width: 760px; }
.article-body > h2 { font-size: clamp(22px, 3vw, 28px); margin: 44px 0 16px; scroll-margin-top: 96px; }
.article-body > h2:first-child { margin-top: 0; }
.article-body > h3 { font-size: 19px; margin: 30px 0 12px; }
.article-body p { color: var(--slate); font-size: 16.5px; margin-bottom: 16px; }
.article-body p strong { color: var(--navy); }
.article-body ul, .article-body ol { color: var(--slate); font-size: 16px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--amber-dark); font-weight: 600; border-bottom: 1px solid rgba(217, 142, 18, 0.3); }
.article-body a:hover { border-bottom-color: var(--amber-dark); }

.callout { background: var(--bg); border-left: 4px solid var(--amber); border-radius: 0 14px 14px 0; padding: 22px 24px; margin: 26px 0; }
.callout p { margin: 0; font-size: 15.5px; }
.callout p + p { margin-top: 8px; }

.checklist { background: var(--navy); border-radius: 18px; padding: 30px 30px 26px; color: #fff; margin: 28px 0; }
.checklist h3 { color: #fff; font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.checklist ol { margin: 0; padding-left: 1.4em; color: #c3d0e6; font-size: 15.5px; }
.checklist li { margin-bottom: 12px; }
.checklist li::marker { color: var(--amber-2); font-weight: 700; }

.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.module { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--white); }
.module h4 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.module h4 svg { flex: none; }
.module ul { margin: 0; font-size: 14.5px; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav a { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy-3); }
.article-nav a:hover { color: var(--amber-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .hero__visual { max-width: 480px; }
  .hero__stats { margin-top: 56px; }
  .about__grid, .article-preview, .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px;
    border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform 0.3s;
    box-shadow: var(--shadow-lg); z-index: 49;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { font-size: 17px; }
  .burger { display: flex; }
  .services-grid, .steps, .partners, .module-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .btn--lg { width: 100%; }
}
