/* Rich Boss — Business & IT School */
@font-face { font-family: "Rubik Mono One"; src: url(fonts/rubik_mono_one-r.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-r.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-m.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-s-b.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(fonts/montserrat-b.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #090815;
  --bg-2: #12111f;
  --panel: #1c1b28;
  --panel-2: #252433;
  --line: rgba(255, 255, 255, .08);
  --text: #ffffff;
  --muted: #b9b8c6;
  --orange: #ff6400;
  --amber: #ffa300;
  --grad: linear-gradient(33deg, var(--orange) 0%, var(--amber) 100%);
  --display: "Rubik Mono One", "Arial Black", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --wrap: 1240px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.ap { margin: 0 -.34em; }
.kg { margin-left: -.12em; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; }
.eyebrow { font-size: clamp(16px, 2vw, 26px); text-transform: uppercase; font-weight: 400; letter-spacing: .02em; margin: 0 0 18px; color: #e9e8f3; }
.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section-title { font-size: clamp(30px, 5vw, 58px); margin: 0 0 clamp(28px, 4vw, 48px); }
.section-title span { color: var(--orange); }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 56px; padding: 0 34px; border: 0; border-radius: 999px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-family: var(--display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(255, 100, 0, .25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 100, 0, .35); filter: saturate(1.1); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.btn--ghost { background: transparent; border: 2px solid var(--orange); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 100, 0, .12); box-shadow: none; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0; transition: padding .25s ease; }
.header.is-scrolled { padding: 8px 0; }
.header__bar {
  display: flex; align-items: center; gap: 20px; min-width: 0;
  background: rgba(31, 30, 42, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px 12px 14px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { width: 62px; height: 62px; border-radius: 50%; flex: none; }
.brand__name { white-space: nowrap; font-family: var(--display); color: var(--orange); font-size: 15px; letter-spacing: .04em; line-height: 1.2; }
.brand__sub { white-space: nowrap; font-size: 13px; color: #e2e1ec; line-height: 1.3; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a {
  font-family: var(--display); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; color: #fff; padding: 8px 0; position: relative; white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s ease; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--orange); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: var(--panel-2); border-radius: 999px; padding: 4px; }
.lang button { border: 0; background: transparent; border-radius: 999px; padding: 7px 12px; font-family: var(--display); font-size: 11px; letter-spacing: .05em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--grad); color: #fff; }
.header .btn { min-height: 52px; padding: 0 20px; font-size: 12px; }
.burger { display: none; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--grad); position: relative; flex: none; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger::before { top: 18px; } .burger span { top: 25px; } .burger::after { top: 32px; }
.menu-open .burger::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; padding: 170px 0 60px; overflow: hidden; }
.hero::before { /* chalk formulas */
  content: ""; position: absolute; left: 36%; bottom: 40px; width: 420px; height: 200px;
  background: url(img/chalk-formulas.webp) no-repeat center / contain; opacity: .35; pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center; }
.hero__title { margin: 0; }
.hero__grid > div:first-child { position: relative; z-index: 2; }
.hero__title .t1 { display: block; color: var(--orange); font-size: clamp(56px, 9.5vw, 132px); }
.hero__title .t2 { display: block; font-size: clamp(36px, 6vw, 86px); padding-left: .55em; margin-top: .12em; }
.hero__lead { max-width: 440px; margin: 34px 0 0; color: #e7e6f0; font-size: 16px; }
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.circle-cta {
  width: 168px; height: 168px; border-radius: 50%; border: 0; background: var(--grad);
  font-family: var(--display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.35;
  display: grid; place-items: center; text-align: center; padding: 20px; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(255, 100, 0, .5); animation: pulse 2.6s infinite;
  transition: transform .2s ease;
}
.circle-cta:hover { transform: scale(1.05); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 100, 0, .45); } 70% { box-shadow: 0 0 0 26px rgba(255, 100, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 100, 0, 0); } }
.hero__visual { position: relative; aspect-ratio: 1 / .9; }
.hero__visual::before { /* big dashed chalk loop */
  content: ""; position: absolute; left: -10%; top: -4%; width: 150%; height: 100%;
  background: url(img/chalk-wide.webp) no-repeat 30% 30% / auto 115%; opacity: .8; pointer-events: none;
}
.hero__girl { position: absolute; left: -12%; bottom: -8%; width: 142%; max-width: none; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.hero__leaf { position: absolute; left: -40px; bottom: -40px; width: 230px; opacity: .95; transform: rotate(-8deg); pointer-events: none; }
.hero__info { position: relative; display: flex; gap: 28px 60px; flex-wrap: wrap; margin-top: 56px; }
.info { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.info__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.info__icon svg { width: 24px; height: 24px; }
.info__text { font-family: var(--display); font-size: 14px; letter-spacing: .03em; line-height: 1.6; }
.info__text a { text-decoration: none; display: block; white-space: nowrap; }
.info__text a:hover { color: var(--amber); }

/* About */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.about__img { position: relative; }
.about__img::before { content: ""; position: absolute; inset: 8% 4% 2% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 140, 0, .35), transparent 65%); }
.about__img img { position: relative; margin: 0 auto; width: 100%; max-width: 480px; }
.about p { margin: 0 0 18px; color: #dddce7; font-size: 17px; }
.about .btn { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; color: var(--orange); font-size: 20px; line-height: 1.2; margin-bottom: 6px; }
.stat span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; }

/* Directions */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 100, 0, .5); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px 22px 26px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 10px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Day schedule */
.day { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card__time { display: inline-block; font-family: var(--display); font-size: 13px; letter-spacing: .03em; color: #fff; background: var(--grad); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }

/* Courses */
.courses { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.section-lead { max-width: 640px; margin: -14px 0 36px; color: var(--muted); font-size: 17px; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.course { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; transition: transform .25s ease, border-color .25s ease; }
.course:hover { transform: translateY(-4px); border-color: rgba(255, 100, 0, .5); }
.course__ico { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.course__ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-txt { font: 700 18px/1 var(--body); color: #fff; letter-spacing: .02em; }
.course__name { font-family: var(--display); font-size: 14px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.35; }
.sub-title { font-size: clamp(18px, 2.2vw, 24px); margin: 56px 0 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sub-title--first { margin-top: 0; }
.sub-title + .section-lead { margin-top: -8px; }
.sub-time { font-size: 13px; letter-spacing: .03em; background: var(--grad); border-radius: 999px; padding: 6px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }
.chip--more { background: transparent; border-style: dashed; color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.spec { display: flex; gap: 20px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.spec h4 { font-family: var(--display); font-weight: 400; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; margin: 4px 0 8px; }
.spec p { margin: 0; color: var(--muted); font-size: 15px; }

/* Why */
.why { overflow: hidden; }
.why::before { content: ""; position: absolute; right: -60px; top: 40px; width: 300px; height: 300px; background: url(img/leaf.webp) no-repeat center / contain; opacity: .9; transform: rotate(160deg); pointer-events: none; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; background: var(--panel); border-radius: var(--radius); padding: 30px 24px 30px; border: 1px solid var(--line); }
.step__num { font-family: var(--display); font-size: 54px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 18px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; line-height: 1.4; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
#faq .section-title { font-size: clamp(28px, 3.6vw, 46px); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq__img { position: relative; }
.faq__img img { margin: 0 auto; width: 100%; max-width: 520px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--display); font-size: 15px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-size: 22px; transition: transform .25s ease, background .25s ease; }
.qa[open] summary::after { transform: rotate(45deg); background: var(--orange); }
.qa summary:hover { color: var(--amber); }
.qa p { margin: 0 0 24px; color: var(--muted); max-width: 640px; }

/* Contacts */
.contacts { padding-bottom: 0; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 26px; }
.contact-card .info__text { font-size: 15px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { width: 50px; height: 50px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.socials a:hover { background: var(--orange); transform: translateY(-2px); }
.socials svg { width: 22px; height: 22px; fill: #fff; }
.cta-card { position: relative; overflow: hidden; background: var(--grad); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cta-card h3 { position: relative; z-index: 1; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; margin: 0; text-transform: uppercase; max-width: 62%; }
.cta-card p { position: relative; z-index: 1; margin: 0; max-width: 58%; font-weight: 500; }
.cta-card .btn { background: #fff; color: var(--orange); align-self: flex-start; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.cta-card img { position: absolute; right: -10px; bottom: -40px; width: 34%; max-width: 230px; pointer-events: none; }
.map { margin-top: 60px; height: 460px; background: var(--panel); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.2); }

.footer { padding: 34px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.to-top { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--grad); position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 12, .78); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box { position: relative; width: 100%; max-width: 480px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px 30px; transform: translateY(16px); transition: transform .25s ease; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--panel-2); font-size: 24px; line-height: 1; }
.modal h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1.2; margin: 0 40px 10px 0; }
.modal p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: #fff; padding: 0 18px; font: 500 16px var(--body); }
.field input:focus { border-color: var(--orange); outline: none; }
.modal .btn { width: 100%; margin-top: 8px; }
.phone-list { display: grid; gap: 12px; }
.phone-list .btn { margin: 0; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 1em; }
.form-status:empty { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.consent a { color: var(--amber); }
#applyForm + #callBlock { margin-top: 18px; }
.footer a { color: inherit; }
.footer a:hover { color: var(--amber); }
.form-status.is-error { color: #ff8a7a; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .circle-cta { animation: none; }
}

/* Responsive */
@media (max-width: 1440px) {
  .brand__sub { display: none; }
}
@media (max-width: 1280px) {
  .header .btn--head { display: none; }
}
@media (max-width: 1024px) {
  .cards, .steps, .stats, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .burger { display: block; }
  /* backdrop-filter делает шапку контейнером для fixed-меню — на мобильных отключаем */
  .header__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(31, 30, 42, .97); }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(9, 8, 21, .97); opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .nav a { font-size: 20px; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open { overflow: hidden; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 860px) {
  .hero { padding-top: 130px; min-height: 0; }
  .hero__grid, .about__grid, .faq__grid, .contacts__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin: 10px auto 0; }
  .hero::before { display: none; }
  .about__img { order: 2; } .about__img img { max-width: 340px; }
  .day, .spec-grid { grid-template-columns: 1fr; }
  .faq__img { display: none; }
  .cta-card h3, .cta-card p { max-width: 100%; }
  .cta-card img { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --radius: 22px; }
  .header { padding: 10px 0; }
  .header__bar { padding: 8px 8px 8px 8px; gap: 10px; }
  .brand img { width: 46px; height: 46px; }
  .brand__name { font-size: 12px; }
  .burger { width: 46px; height: 46px; }
  .burger span, .burger::before, .burger::after { left: 13px; right: 13px; }
  .burger::before { top: 15px; } .burger span { top: 22px; } .burger::after { top: 29px; }
  .lang button { padding: 6px 9px; font-size: 10px; }
  .cards, .steps, .day { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .course { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .course__ico { width: 46px; height: 46px; }
  .course__name { font-size: 12px; }
  .spec { padding: 20px; gap: 16px; }
  .hero__title .t2 { padding-left: 0; }
  .hero__cta { gap: 18px; }
  .circle-cta { width: 140px; height: 140px; font-size: 12px; }
  .hero__leaf { width: 150px; left: -50px; }
  .hero__info { gap: 20px; margin-top: 40px; }
  .info__text, .contact-card .info__text { font-size: 12.5px; }
  .map { height: 360px; }
  .section-title, #faq .section-title { font-size: 25px; }
  .stat b { font-size: 15px; white-space: nowrap; }
}
