/* The theme «Aidana»: the portal pages of «Стандарт» in the colors of theme.json (preset aidana) and the
   fonts of the client (MAK Bold for titles, Montserrat for text); the landing is in 60-69. */

html { background: var(--bg); color-scheme: dark; }
body {
  background: var(--bg); color: var(--text); font: 15px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased; counter-reset: sec; overflow-x: clip;
  font-synthesis: style;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: min(1312px, 100% - 128px); margin-inline: auto; position: relative; }

/* Icons */
.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-fill { fill: currentColor; stroke: none; }

/* Typography */
.display { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: .95; }
.mono { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-4) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hollow {
  position: absolute; font-family: var(--f-display); font-weight: 900; color: transparent; text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09); white-space: nowrap; letter-spacing: .02em; line-height: .8;
  pointer-events: none; user-select: none;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 12px var(--accent); flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; font: 700 16px/1 var(--f-body); white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-lg { height: 64px; padding: 0 34px; font-size: 17px; }
.ic-btn {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); flex: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ic-btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.ic-lg { width: 60px; height: 60px; }
@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 12px 40px -6px var(--accent); transform: translateY(-2px); }
  .btn-secondary:hover { border-color: rgba(255, 255, 255, .3); background: color-mix(in srgb, var(--surface-3) 80%, var(--text)); }
  .btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .04); }
  .ic-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
}

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface-2) 62%, transparent); color: var(--text);
  white-space: nowrap;
}
.chip.mono { font-size: 11px; }
.chip .dot { width: 6px; height: 6px; }

/* Sections */
.sec { padding-top: 104px; position: relative; }
.sec--page { padding-top: 0; }
.sec--tight { padding-top: 56px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 32px 0 36px; }
.sec-hd-text { min-width: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--accent); text-transform: uppercase;
}
.eyebrow-ln { width: 28px; height: 2px; background: var(--accent); flex: none; }
.h1 { font: 800 clamp(36px, 6vw, 88px)/.95 var(--f-display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.h2 { font: 800 clamp(30px, 4.2vw, 60px)/.98 var(--f-display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.h3 { font: 800 clamp(22px, 2.4vw, 32px)/1.1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 20px; }
.link-all {
  white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2); font-weight: 700; font-size: 16px; transition: border-color .2s ease;
}
.link-all .ar { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.link-all .ar .i { width: 18px; height: 18px; }
@media (hover: hover) { .link-all:hover { border-color: var(--text); } }
.narrow { max-width: 860px; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-top: 28px; font-size: 13px; color: var(--text-3); min-width: 0; }
.crumbs .i { width: 14px; height: 14px; }
.crumbs b { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(520px, 100%); }
.crumbs a { transition: color .15s ease; }
.crumbs a:hover { color: var(--text); }

/* An empty state */
.empty {
  display: grid; justify-items: start; gap: 16px; padding: 48px; border-radius: 28px;
  border: 1px dashed var(--line-2); background: var(--surface-1);
}
.empty .h3 { margin-bottom: 0; }

/* The grid of course cards */
.grid-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .sec { padding-top: 80px; }
  .grid-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 32px); }
  .sec { padding-top: 56px; }
  .sec--page { padding-top: 0; }
  .sec-hd { flex-direction: column; align-items: stretch; gap: 16px; margin: 20px 0 24px; }
  .sec-hd .link-all { align-self: flex-start; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .btn-lg { height: 56px; padding: 0 24px; font-size: 16px; }
  .btn { white-space: normal; text-align: center; }
  .empty { padding: 28px 20px; }
  .grid-courses { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
