/* The main page of ai-dan.kz: the look of the cabinet and of its presentation — night blue, sky blue, gold.
   System fonts only: the page asks nothing from other sites. */
:root {
  --night: #072B42; --deep: #0B4566; --deep-2: #0E5479; --deep-3: #12678F;
  --sky: #00A6C9; --sky-600: #0089A9; --sky-300: #6FD0E8; --sky-200: #A9E3F1; --sky-100: #D4F1F8; --sky-50: #ECF9FC;
  --sun: #FEC50C; --sun-300: #FFDF7A; --sun-600: #E0A600; --sun-ink: #3A2A00;
  --coral: #E66A50; --mint: #2F9F6A; --violet: #6F6AD6;
  --ink: #0B2233; --ink-2: #3A5063; --ink-3: #6C8194; --line: #D8E4EC; --bg: #F3F8FB;
  --digits: 'DIN Condensed', 'DIN Alternate', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--ink); background: var(--night); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* one language at a time */
html[data-lang="ru"] [lang="kk"], html[data-lang="kk"] [lang="ru"] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 max(24px, calc((100% - var(--wrap)) / 2));
  background: rgba(7, 43, 66, .78); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(143, 227, 247, .16); color: #fff; transition: background .25s; }
.top.solid { background: rgba(7, 43, 66, .95); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.brand b i { font-style: normal; color: var(--sky-300); }
.menu { display: flex; gap: 6px; margin-left: 12px; }
.menu a { text-decoration: none; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .86); padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.menu a:hover { background: rgba(143, 227, 247, .14); color: #fff; }
.top-side { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.lang button { font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .7); background: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
html[data-lang="ru"] .lang [data-set-lang="ru"], html[data-lang="kk"] .lang [data-set-lang="kk"] { background: #fff; color: var(--deep); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; padding: 12px 10px; flex-direction: column; justify-content: space-between; }
.burger i { display: block; height: 2px; border-radius: 2px; background: #fff; }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 700; text-decoration: none; padding: 16px 30px; border-radius: 999px;
  border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.small { font-size: 15px; padding: 10px 20px; }
.btn.gold { background: var(--sun); color: var(--sun-ink); box-shadow: 0 10px 24px -10px rgba(254, 197, 12, .7); }
.btn.gold:hover { background: #FFD13F; }
.btn.ghost { border-color: rgba(143, 227, 247, .5); color: #fff; }
.btn.ghost:hover { background: rgba(143, 227, 247, .12); }
.btn.deep { background: var(--deep); color: #fff; box-shadow: 0 12px 26px -12px rgba(11, 69, 102, .8); }
.btn.line { border-color: var(--deep); color: var(--deep); }
.btn.line:hover { background: rgba(11, 69, 102, .06); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.actions.center { justify-content: center; margin-top: 56px; }

/* ── text ───────────────────────────────────────────────────────────────── */
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-600); }
.dark .kicker, .blue .kicker, .hero .kicker { color: var(--sky-300); }
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin-top: 16px; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.026em; font-weight: 800; margin-top: 12px; max-width: 27ch; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.012em; font-weight: 750; }
h1 em, h2 em { font-style: normal; color: var(--sky-600); }
.hero h1 em, .dark h2 em, .blue h2 em { color: var(--sun); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); margin-top: 18px; max-width: 62ch; }
.hero .lead, .dark .lead, .blue .lead { color: var(--sky-200); }
.fine { font-size: 15px; line-height: 1.5; color: var(--sky-200); margin-top: 26px; max-width: 58ch; opacity: .9; }
.tag { display: inline-grid; place-items: center; min-width: 56px; height: 56px; padding: .12em 10px 0; border-radius: 16px; font-family: var(--digits); font-size: 32px; font-weight: 400; color: #fff; background: var(--sky); }
.t-sky { background: var(--sky); } .t-sun { background: var(--sun); color: var(--sun-ink); } .t-mint { background: var(--mint); }
.t-violet { background: var(--violet); } .t-deep { background: var(--deep-3); } .t-coral { background: var(--coral); }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; padding: 132px 0 64px; overflow: hidden;
  background: radial-gradient(1100px 700px at 82% 30%, rgba(0, 166, 201, .34), rgba(0, 166, 201, 0) 62%),
    radial-gradient(900px 600px at 0% 100%, rgba(18, 103, 143, .5), rgba(18, 103, 143, 0) 70%), var(--night); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); animation: float 7s ease-in-out infinite; }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(254, 197, 12, .28), rgba(0, 166, 201, .22) 55%, rgba(0, 166, 201, 0)); filter: blur(10px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.maker { margin-top: 34px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .9); padding-left: 16px; border-left: 4px solid var(--sun); }
.facts-title { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(143, 227, 247, .22); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-300); }
.hero-facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.hero-facts li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.25; color: rgba(255, 255, 255, .88); }
.hero-facts b { font-family: var(--digits); font-weight: 400; font-size: 64px; line-height: .86; color: var(--sun); padding-top: .12em; white-space: nowrap; }

/* ── bands ──────────────────────────────────────────────────────────────── */
.band { padding: 96px 0; position: relative; }
.light { background: radial-gradient(900px 520px at 100% 0%, rgba(0, 166, 201, .12), rgba(0, 166, 201, 0) 70%), var(--bg); }
.dark { color: #fff; background: radial-gradient(1000px 620px at 0% 0%, rgba(0, 166, 201, .2), rgba(0, 166, 201, 0) 65%), var(--night); }
.blue { color: #fff; background: linear-gradient(125deg, #072B42 0%, #0B4566 40%, #0E6C96 82%, #0A8FB3 100%); }
.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid rgba(11, 69, 102, .12); border-radius: 24px; padding: 28px 26px 30px; box-shadow: 0 18px 40px -28px rgba(7, 43, 66, .45); }
.rule h3 { margin-top: 20px; }
.rule p { margin-top: 10px; font-size: 16.5px; color: var(--ink-2); }

/* directions */
.dir { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px 28px; border-radius: 26px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(143, 227, 247, .24); transition: transform .2s, border-color .2s, background .2s; }
.dir:hover { transform: translateY(-4px); border-color: rgba(143, 227, 247, .5); }
.dir img { width: 78%; align-self: center; margin: 4px 0 10px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4)); }
.dir.ready { background: rgba(254, 197, 12, .1); border-color: rgba(254, 197, 12, .65); }
.dir h3 { margin-top: 14px; font-size: 25px; }
.dir p { margin-top: 8px; font-size: 16px; color: var(--sky-200); flex: 1; }
.dir .btn { margin-top: 20px; }
.state { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; color: var(--sky-200); background: rgba(143, 227, 247, .14); }
.state.ok { color: var(--sun-ink); background: var(--sun); }

/* the school cabinet */
.feature { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center; margin-top: 72px; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 20px; letter-spacing: -.02em; }
.feature-text p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.shot { border-radius: 20px; overflow: hidden; border: 1px solid rgba(11, 69, 102, .16); background: #fff; box-shadow: 0 40px 70px -40px rgba(7, 43, 66, .55), 14px 14px 0 0 rgba(0, 166, 201, .16); }
.blue .shot { border-color: rgba(143, 227, 247, .45); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6), 14px 14px 0 0 rgba(143, 227, 247, .16); }
.shot.tilt { transform: rotate(1.2deg); }

/* demo */
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.steps { list-style: none; margin-top: 34px; display: grid; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps b { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding-top: .12em; border-radius: 14px; background: var(--sun); color: var(--sun-ink); font-family: var(--digits); font-size: 30px; font-weight: 400; }
.steps p { margin-top: 4px; font-size: 16.5px; color: var(--sky-200); }

/* how it works */
.fact { text-align: left; padding: 8px 4px; }
.fact img { width: 62%; margin: 0 auto 6px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4)); }
.fact h3 { margin-top: 12px; font-size: 24px; }
.fact p { margin-top: 10px; font-size: 16.5px; color: var(--sky-200); }

/* footer */
.foot { background: #05202F; color: rgba(255, 255, 255, .78); padding: 40px 0; font-size: 15.5px; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot .copy { margin-left: auto; color: rgba(255, 255, 255, .5); }

/* a page that is not the main one: a post or a page made in WordPress */
.page { background: var(--bg); padding: 132px 0 80px; min-height: 70vh; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(30px, 4vw, 46px); color: var(--ink); }
.page .entry { margin-top: 26px; font-size: 18px; color: var(--ink-2); }
.page .entry > * + * { margin-top: 1em; }
.page .entry a { color: var(--sky-600); }

/* ── narrower screens ───────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .feature, .demo-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .feature-text { order: 0; }
  .feature { margin-top: 60px; }
}
@media (max-width: 860px) {
  .hero { padding-top: 112px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; order: -1; }
  .menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 10px 16px 18px; background: rgba(7, 43, 66, .98);
    border-bottom: 1px solid rgba(143, 227, 247, .2); display: none; }
  .menu.open { display: flex; }
  .menu a { font-size: 18px; padding: 14px 12px; border-radius: 12px; }
  .burger { display: flex; }
  .top { gap: 12px; }
  .grid.three { grid-template-columns: 1fr; }
  .fact { display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; align-items: center; }
  .fact img { width: 100%; grid-row: span 2; margin: 0; }
  .band { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .top { padding: 0 18px; height: 64px; }
  .menu { inset: 64px 0 auto 0; }
  .top-side .btn { display: none; }
  .grid.four { grid-template-columns: 1fr; }
  .dir { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; }
  .dir img { width: 96px; margin: 0; align-self: flex-start; }
  .dir .state { order: -1; width: fit-content; }
  .dir h3 { flex: 1 1 50%; margin-top: 0; }
  .dir p, .dir .btn { flex: 1 1 100%; }
  .hero-facts b { font-size: 48px; }
  .hero-facts li { font-size: 14.5px; gap: 10px; }
  .btn { font-size: 17px; padding: 15px 24px; width: 100%; }
  .btn.small { width: auto; }
  .shot { border-radius: 14px; box-shadow: 0 24px 40px -28px rgba(7, 43, 66, .55), 8px 8px 0 0 rgba(0, 166, 201, .16); }
  .foot .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-art img { animation: none; } .btn, .dir { transition: none; } }

/* WordPress shows its black bar above the page to a signed-in administrator */
.admin-bar .top { top: 32px; }
.admin-bar .menu { inset-block-start: 104px; }
@media (max-width: 782px) { .admin-bar .top { top: 46px; } .admin-bar .menu { inset-block-start: 118px; } }
