/* Ioneq — site styles
   Archivo throughout. Cobalt and lavender taken from the old site's logo and header bar.
   Flat blocks, a strict grid, thin rules. */

:root {
  --ink: #14161c;
  --body: #3a3e48;
  --mute: #6b707c;
  --line: #d9d7d0;
  --bg: #f6f5f1;
  --white: #fff;
  --blue: #2a48c9;
  --blue-deep: #1e3599;
  --lav: #e3def6;
  --lav-ink: #4a3d8f;
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --w: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.6 var(--f); }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; line-height: 1.05; font-stretch: 90%; }
h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.02em; }
h3 { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 50; }

/* header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--blue); font-size: 30px; font-weight: 500; letter-spacing: -.02em; font-stretch: 100%; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav a.here { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }
.head-phone { font-size: 15px; color: var(--mute); text-decoration: none; padding-left: 28px; border-left: 1px solid var(--line); }
.head-phone:hover { color: var(--ink); }
.burger { display: none; margin-left: auto; background: var(--ink); color: #fff; border: 0; font: 600 14px var(--f); padding: 10px 16px; cursor: pointer; }

/* buttons */
.btn { display: inline-block; font: 600 16px var(--f); text-decoration: none; padding: 15px 26px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.white { background: #fff; color: var(--blue); border-color: #fff; }
.btn.white:hover { background: var(--lav); border-color: var(--lav); color: var(--blue-deep); }
.arrow-link { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.arrow-link:hover { color: var(--blue); }
.arrow-link::after { content: " →"; }

/* hero */
.hero { background: var(--blue); color: #e8ebfb; }
.hero .wrap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 64px; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; margin-bottom: 28px; max-width: 13ch; }
.hero p { font-size: 19px; max-width: 46ch; margin-bottom: 36px; }
.hero-list { align-self: end; }
.hero-list li { border-bottom: 1px solid rgba(255,255,255,.35); }
.hero-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; color: #fff; text-decoration: none; font-size: 21px; font-weight: 600; font-stretch: 90%; }
.hero-list a span { font-size: 14px; font-weight: 400; color: #c3cbf2; font-stretch: 100%; }
.hero-list a:hover { padding-left: 8px; transition: padding .15s; }
.hero-list .cap { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #c3cbf2; padding: 0 0 12px; }

/* rows */
.row { padding: 96px 0; border-bottom: 1px solid var(--line); }
.row.white { background: var(--white); }
.row.lav { background: var(--lav); border-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.label { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; display: block; }
.big { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--ink); font-weight: 400; letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-top: 48px; }
.facts div { padding: 20px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 40px; color: var(--ink); font-stretch: 85%; line-height: 1; margin-bottom: 6px; }
.facts span { font-size: 15px; color: var(--mute); }

/* services table */
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.svc-head p { max-width: 46ch; margin: 0; color: var(--mute); }
.svc { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); }
.svc.three { grid-template-columns: repeat(3, 1fr); }
.svc article { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--line); }
.svc article:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.svc.three article { padding: 28px 28px; border-left: 1px solid var(--line); }
.svc.three article:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.svc h3 { margin-bottom: 10px; }
.svc p { margin: 0; font-size: 16px; }

/* statement */
.statement h2 { color: var(--lav-ink); max-width: 18ch; }
.statement .split { align-items: end; }
.statement p { font-size: 19px; color: #2f2a4f; }

/* page title */
.title { background: var(--white); border-bottom: 1px solid var(--line); padding: 72px 0 56px; }
.title h1 { font-size: clamp(44px, 6vw, 76px); }
.title p { max-width: 58ch; margin: 22px 0 0; font-size: 19px; color: var(--mute); }

/* about */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 28px 0 28px 64px; border-bottom: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 24px; width: 40px; height: 40px; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: 16px; }

/* training */
.course { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 48px 0; border-top: 1px solid var(--line); }
.course:first-of-type { border-top: 2px solid var(--ink); }
.course .meta { font-size: 15px; color: var(--mute); margin-top: 10px; }
.course h2 { font-size: clamp(30px, 3.4vw, 42px); }
.course dl { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.course dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.course dd { margin: 0 0 18px; color: var(--ink); }

/* career */
.job { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 48px 0; border-top: 1px solid var(--line); }
.job:first-of-type { border-top: 2px solid var(--ink); }
.job h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 26px 0 28px; }
.cols3 h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; font-stretch: 100%; }
.cols3 li { font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.info { border-top: 2px solid var(--ink); }
.info div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info span { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.info a, .info address { font-style: normal; color: var(--ink); font-size: 19px; text-decoration: none; }
.info a:hover { color: var(--blue); }
.panel { background: var(--white); border: 1px solid var(--line); padding: 36px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields .wide { grid-column: 1 / -1; }
label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
label em { font-style: normal; font-weight: 400; color: var(--mute); }
input, textarea { width: 100%; font: 16px var(--f); color: var(--ink); background: var(--bg); border: 0; border-bottom: 2px solid #bdbab2; padding: 12px; border-radius: 0; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--blue); background: #fff; }
textarea { min-height: 140px; resize: vertical; }
input[type="file"] { border-bottom-style: dashed; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--body); margin-top: 6px; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.bad input, .bad textarea { border-bottom-color: #c43d2f; background: #fbf1ef; }
.bad.check { color: #a8322a; }
.err { display: none; color: #a8322a; font-size: 14px; margin-top: 5px; }
.bad .err { display: block; }
.panel .go { margin-top: 26px; }
.done { display: none; }
.sent .done { display: block; }
.sent form { display: none; }
.done h3 { margin-bottom: 8px; }

/* footer */
.foot { background: var(--ink); color: #a7abb6; padding: 64px 0 30px; font-size: 15px; }
.foot .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #2d3039; }
.foot .logo { color: #fff; font-size: 26px; margin-bottom: 14px; }
.foot h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-stretch: 100%; }
.foot li { margin-bottom: 8px; }
.foot a { color: #d8dbe3; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot address { font-style: normal; }
.foot .base { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

@media (max-width: 1000px) {
  .hero .wrap, .split, .course, .job, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc.three { grid-template-columns: 1fr 1fr; }
  .svc.three article, .svc.three article:nth-child(3n+1) { padding: 26px 26px 26px 0; border-left: 0; }
  .svc.three article:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr 1fr; }
  .foot .grid { grid-template-columns: 1fr 1fr; }
  .head-phone { display: none; }
}
@media (max-width: 800px) {
  .burger { display: block; }
  .site-head { position: relative; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px 32px 16px; z-index: 20; }
  .open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .nav a.here { box-shadow: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav { padding-left: 18px; padding-right: 18px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .row { padding: 60px 0; }
  .title { padding: 48px 0 40px; }
  .svc, .svc.three { grid-template-columns: 1fr; }
  .svc article, .svc article:nth-child(even), .svc.three article, .svc.three article:nth-child(even) { padding: 24px 0; border-left: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps li { padding-left: 56px; }
  .cols3 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 24px 18px; }
  .foot .grid { grid-template-columns: 1fr; }
}
