/* Keysora Education — общие стили для обеих языковых версий */

:root {
  --ink: #191919;
  --text: #374151;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --accent: #1774FF;
  --accent-soft: #F0F7FF;
  --accent-line: rgba(23, 116, 255, .18);
  --line: #EDEDED;
  --border: #DBDBDB;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --hover: #F2F3F5;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 16px 40px rgba(15, 23, 44, .08);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, a { transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
section[id], article[id] { scroll-margin-top: 88px; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 60px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 48px; border: 1px solid transparent; border-radius: 40px;
  font: 500 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { background: var(--hover); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn--white { background: #fff; color: var(--ink); height: 52px; font-weight: 700; padding: 0 36px; }
.btn--white:hover { background: #F0F0F0; transform: scale(.98); }

/* Promo bar — анонс розыгрыша над шапкой; site.js убирает его после даты в data-hide-after */
.promo { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; padding: 10px 16px; background: #E0336E; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
.promo:hover .promo__cta { text-decoration-thickness: 2px; }
.promo__cta { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Header */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; }
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 12px rgba(0, 0, 0, .04); }
.header__inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 60px; }
.header__logo img { width: 120px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-weight: 500; font-size: 15px; padding: 0 14px; height: 38px; display: flex; align-items: center; border-radius: 40px; }
.nav a:hover { background: var(--hover); }
.header__tools { display: flex; align-items: center; gap: 16px; }

.lang { display: flex; align-items: center; gap: 8px; }
.lang__link { font-weight: 600; font-size: 14px; color: var(--faint); padding: 8px 4px; }
.lang__link:hover { color: var(--ink); }
.lang__link[aria-current="page"] { color: var(--ink); cursor: default; }
.lang__sep { width: 1px; height: 13px; background: var(--border); }

.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.burger span { display: block; width: 16px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1001; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__panel { position: absolute; top: 0; right: 0; width: min(320px, 86vw); height: 100%; background: #fff; padding: 88px 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__panel a:not(.btn) { font-size: 18px; font-weight: 500; padding: 10px 0; }
.mobile-menu__panel .btn { margin-top: 18px; width: 100%; }
.mobile-menu__close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Hero */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 60px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero .pill { margin-bottom: 28px; }
.hero__title { font-size: clamp(38px, 4.6vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 24px; }
.hero__title span { color: var(--accent); }
.hero__lead { font-size: 18px; color: var(--muted); line-height: 1.75; max-width: 580px; margin-bottom: 36px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__buttons .btn { height: 52px; font-size: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px 36px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 580px; }
.stat__value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat__label { font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 170px; }
.hero__partner { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.hero__partner img { height: 16px; width: auto; }
.hero__partner a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--border); }
.hero__partner a:hover { border-color: var(--ink); }
.hero__image { display: flex; justify-content: flex-end; align-self: end; }
.hero__image img { width: 100%; max-width: 420px; border-radius: var(--radius) var(--radius) 0 0; }

/* Sections */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__header { margin-bottom: 48px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section__title { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 16px; }
.section__lead { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 660px; }

/* Course jump links */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font-size: 14px; font-weight: 600; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; }
.jump a:hover { border-color: var(--ink); }

/* Course cards */
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.course { display: flex; flex-direction: column; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s ease, box-shadow .25s ease; }
.course:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.course__info { display: flex; flex-direction: column; flex: 1; }
.course__title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.course__desc { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--accent); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag--ai { background: #fff; border: 1px solid var(--accent-line); padding: 4px 12px 4px 9px; }
.tag--ai svg { width: 12px; height: 12px; flex: none; }
.outcomes { margin-bottom: 28px; }
.outcomes__title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.outcomes li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.6; color: var(--text); }
.outcomes li + li { margin-top: 8px; }
.outcomes li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231774FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.nowrap { white-space: nowrap; }
.course__buy { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.price__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.price__value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }

/* AI mentors */
.ai { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.feature__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature__icon svg { width: 20px; height: 20px; }
.feature__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature__desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.ai__note { margin-top: 24px; font-size: 14px; color: var(--muted); line-height: 1.7; padding-left: 16px; border-left: 2px solid var(--accent); }

.chat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1774FF, #7AB2FF); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.chat__avatar svg { width: 18px; height: 18px; }
.chat__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.chat__module { font-size: 12px; color: var(--muted); line-height: 1.4; }
.chat__status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #16A34A; flex: none; }
.chat__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.chat__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.6; }
.msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 6px; }
.chat__caption { padding: 12px 22px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); }

/* Value props */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.card__icon { width: 44px; height: 44px; background: var(--accent-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 20px; }
.card__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card__desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* Tools */
.tool { display: flex; flex-direction: column; gap: 12px; }
.tool__mark { height: 44px; display: flex; align-items: center; }
.tool__mark img { height: 26px; width: auto; }
.tool__wordmark { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tool__label { font-size: 13px; font-weight: 700; color: var(--accent); }
.tool__link { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; }
.tool__link:hover { color: var(--accent); }

/* Bottom CTA */
.cta { padding: 24px 0 96px; }
.cta__box { background: linear-gradient(135deg, #0F1724 0%, #1774FF 100%); border-radius: 28px; padding: 72px 60px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta__title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: #fff; }
.cta__lead { font-size: 18px; color: rgba(255, 255, 255, .75); max-width: 560px; line-height: 1.65; }
.cta__note { font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.footer__brand img { width: 80px; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { font-size: 13px; color: var(--faint); }

/* Responsive */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .nav a { padding: 0 10px; }
}
@media (max-width: 1024px) {
  .container, .header__inner { padding-left: 40px; padding-right: 40px; }
  .nav, .header__tools .btn { display: none; }
  .burger { display: flex; }
  .ai { grid-template-columns: 1fr; gap: 40px; }
  .chat { max-width: 560px; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .container, .header__inner { padding-left: 16px; padding-right: 16px; }
  .header__inner { padding-top: 12px; padding-bottom: 12px; }
  .hero { padding-top: 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__image { justify-content: center; }
  .hero__image img { max-width: 300px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .stats { gap: 16px 28px; }
  .section { padding: 64px 0; }
  .courses { grid-template-columns: 1fr; }
  .course { padding: 24px 20px; }
  .course__buy .btn { width: 100%; }
  .features, .cards-3 { grid-template-columns: 1fr; }
  .cta { padding-bottom: 64px; }
  .cta__box { padding: 48px 24px; border-radius: 20px; }
  .cta__box .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
