/* Академік — навчальний центр */

:root {
  --ink: #14181f;
  --ink-2: #4b5566;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --brand: #1f5fd8;
  --brand-dk: #16459c;
  --brand-soft: #eaf1fe;
  --accent: #0d9f6e;
  --radius: 14px;
  --shadow: 0 6px 28px rgba(20, 24, 31, .07);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-nar { max-width: 800px; }

/* ---------- Header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.02em;
}

.logo:hover { text-decoration: none; }

.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.nav a:hover { color: var(--ink); text-decoration: none; }

.nav-btn {
  background: var(--brand);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-btn:hover { background: var(--brand-dk); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.burger i {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.burger.is-open i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 78%);
  padding: 64px 0 56px;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 48px;
  align-items: center;
}

.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #cfe0fb;
  color: var(--brand-dk);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 18px;
}

.sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 620px;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  font-family: inherit;
}

.btn:hover { text-decoration: none; }

.btn-main { background: var(--brand); color: #fff; }
.btn-main:hover { background: var(--brand-dk); }
.btn-main:disabled { opacity: .6; cursor: default; }

.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #b9c4d6; }

.btn-w { width: 100%; }

.note {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 540px;
}

.hero-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.hb-h {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}

.hb-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}

.hb-list li:first-child { border-top: 0; padding-top: 0; }

.hb-list li span {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-dk);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

/* ---------- Sections ---------- */

.sec { padding: 68px 0; }
.sec-alt { background: var(--bg-alt); }

.head { max-width: 720px; margin-bottom: 34px; }

.kick {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
}

.head h2 { font-size: 32px; margin-bottom: 12px; }
.head p { color: var(--ink-2); font-size: 17px; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

.line {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}

.line b { display: block; font-size: 16px; margin-bottom: 4px; }
.line span { color: var(--ink-2); font-size: 15px; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.steps li {
  border-top: 3px solid var(--brand-soft);
  padding-top: 18px;
}

.steps .n {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* ---------- Pricing ---------- */

.price {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-hi {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.price h3 { font-size: 19px; margin-bottom: 12px; }

.amt {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.amt small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0;
  margin-top: 4px;
}

.price ul { margin-bottom: 22px; }

.price ul li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 15px;
  color: var(--ink-2);
}

.price ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.price .btn { margin-top: auto; }

.fine {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  padding-right: 28px;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Lead form ---------- */

.lead {
  background: var(--ink);
  color: #fff;
  padding: 68px 0;
}

.lead-in {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 48px;
  align-items: start;
}

.lead-txt h2 { font-size: 30px; margin-bottom: 14px; }
.lead-txt p { color: #b9c2d1; font-size: 17px; }

.lead-ul { margin-top: 22px; }

.lead-ul li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: #d5dbe6;
  font-size: 15px;
}

.lead-ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px;
  color: var(--ink);
}

.fld { margin-bottom: 16px; }

.fld label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fld input,
.fld textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.fld input:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.fld.err input,
.fld.err textarea { border-color: #d9534f; }

.fld .err-txt {
  display: block;
  color: #d9534f;
  font-size: 13px;
  margin-top: 5px;
}

.pol {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

.msg {
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
  display: none;
}

.msg.show { display: block; }
.msg.ok { color: #0d7f58; font-weight: 600; }
.msg.bad { color: #d9534f; }

/* ---------- Footer ---------- */

.ftr {
  background: #0f1319;
  color: #aab3c2;
  padding-top: 52px;
  font-size: 15px;
}

.ftr-in {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.logo-ftr { color: #fff; }
.logo-ftr:hover { text-decoration: none; }

.ftr-ab {
  margin-top: 14px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
}

.ftr-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.ftr-col a,
.ftr-col span {
  display: block;
  color: #aab3c2;
  font-size: 14px;
  padding: 5px 0;
}

.ftr-col a:hover { color: #fff; text-decoration: none; }

.ftr-req {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #7f8899;
}

.ftr-bot {
  border-top: 1px solid #1e242e;
  padding: 20px 0;
  font-size: 13px;
  color: #7f8899;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lead-in { grid-template-columns: 1fr; gap: 32px; }
  .ftr-in { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-btn {
    border-bottom: 0;
    text-align: center;
    margin-top: 12px;
  }

  .hdr-in { position: relative; }
}

@media (max-width: 760px) {
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 30px; }
  .sub { font-size: 17px; }
  .head h2 { font-size: 26px; }
  .lead-txt h2 { font-size: 25px; }
  .steps { grid-template-columns: 1fr; }
  .btns .btn { width: 100%; }
  .ftr-in { grid-template-columns: 1fr; }
  .lead { padding: 52px 0; }
  .form { padding: 22px 18px; }
}
