/* ==========================================================================
   School #11 Krasnogorsk — landing
   Palette: deep navy, warm paper, terracotta accent, muted sage.
   ========================================================================== */

:root {
  --ink: #12263a;
  --ink-soft: #3c5064;
  --paper: #f7f2e8;
  --paper-deep: #efe7d8;
  --surface: #fffdf8;
  --surface-soft: #fbf8f0;
  --accent: #b24a2e;
  --accent-strong: #953a22;
  --accent-soft: #f2ded3;
  --sage: #5f7d68;
  --line: rgba(18, 38, 58, 0.14);
  --line-strong: rgba(18, 38, 58, 0.24);
  --shadow-sm: 0 6px 18px rgba(18, 38, 58, 0.07);
  --shadow-md: 0 18px 50px rgba(18, 38, 58, 0.11);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1160px;
  --gutter: 24px;
  --section: 88px;
  --font-body: "Segoe UI", system-ui, -apple-system, "Liberation Sans", Roboto, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Liberation Serif", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid rgba(178, 74, 46, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.noscript-banner {
  background: #fff1cf;
  color: #4b3510;
  border-bottom: 1px solid rgba(75, 53, 16, 0.22);
  padding: 14px 0;
  font-size: 14px;
}

.noscript-banner strong {
  font-weight: 700;
}

.noscript-banner a {
  color: #6d3b0b;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(178, 74, 46, 0.22);
}

.btn--primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(149, 58, 34, 0.28);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
  color: var(--ink);
  transform: translateY(-1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 232, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand__logo {
  width: 42px;
  height: 45px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand__text span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover {
  background: var(--surface);
  color: var(--ink);
}

.header-phone {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.header-phone__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.header-phone:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 154, 59, 0.15), transparent 34%),
    radial-gradient(circle at 8% 84%, rgba(95, 125, 104, 0.13), transparent 38%),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow__line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: #e8c48a;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(40px, 5.6vw, 64px);
  letter-spacing: -0.025em;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 52ch;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-contacts {
  display: grid;
  gap: 10px;
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-contacts li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
}

.hero-contacts__label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-contacts a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: rgba(178, 74, 46, 0.35);
}

.hero-contacts a:hover {
  color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.hero-art__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  background: var(--paper-deep);
}

.hero-art__caption {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(18, 38, 58, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--one {
  width: 430px;
  height: 430px;
}

.hero-orbit--two {
  width: 520px;
  height: 520px;
  border-style: dashed;
  opacity: 0.7;
}

.hero-emblem {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  padding: 32px 28px 26px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-emblem::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  pointer-events: none;
}

.hero-emblem__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 234px;
  margin: 0 auto 18px;
  background: var(--paper);
  border-radius: 50% 50% 46% 46%;
}

.hero-emblem__inner img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.hero-emblem__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.hero-emblem__sub {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.hero-tag strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.hero-tag span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.hero-tag--year {
  top: 34px;
  left: 0;
  background: var(--accent);
}

.hero-tag--team {
  right: 0;
  bottom: 58px;
}

.hero-caption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* -------------------------------------------------------------------- facts */

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

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.fact {
  padding: 30px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1;
  color: #f1c98f;
}

.fact span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}

/* ------------------------------------------------------------------ sections */

.section {
  padding: var(--section) 0;
}

.section--alt {
  background: var(--paper-deep);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.about-copy p {
  max-width: 64ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 600;
}

.check-list li span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.source-note {
  font-size: 14px !important;
  color: var(--ink-soft);
}

.about-figure {
  position: relative;
  margin: 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.about-figure::after {
  content: "";
  position: absolute;
  top: 18px;
  right: -14px;
  bottom: 42px;
  width: 14px;
  border-radius: 0 8px 8px 0;
  background: var(--accent);
}

.about-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.about-stack {
  display: grid;
  gap: 24px;
}

.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.panel__head h3 {
  font-size: 24px;
}

.panel__head span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.building-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.building {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.building:last-child {
  border-bottom: 0;
}

.building__index {
  flex: 0 0 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.building__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.building__body strong {
  font-size: 16px;
}

.building__body small {
  font-size: 12px;
  color: var(--ink-soft);
}

.building--main .building__body strong {
  color: var(--accent-strong);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 7px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.plain-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
}

.plain-list strong {
  font-size: 15px;
}

.plain-list span {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ teachers */

.teacher-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 112px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7c8791;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(178, 74, 46, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a1281a;
  box-shadow: 0 0 0 3px rgba(161, 40, 26, 0.13);
}

.field--search input {
  background: var(--surface);
}

.field-error {
  margin: 0;
  font-size: 13px;
  color: #8f2417;
  font-weight: 600;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 12px;
  color: var(--ink);
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.teachers-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.results-count {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.teachers-source {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.people-group {
  margin-bottom: 40px;
}

.people-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.people-group__head h3 {
  font-size: 26px;
}

.people-group__head span {
  font-size: 13px;
  color: var(--ink-soft);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 104px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.person:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.person--lead {
  background: #fff8ee;
  border-color: rgba(178, 74, 46, 0.28);
}

.person__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.person--lead .person__avatar {
  background: var(--accent);
  color: #fff;
}

.person__body {
  min-width: 0;
}

.person__name {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.person__role {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.person__link {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.person__link:hover {
  text-decoration: underline;
}

.teacher-empty {
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--ink-soft);
}

.teacher-more {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.teacher-noscript {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ----------------------------------------------------------------- cta band */

.cta-band {
  padding: 56px 0;
  background: var(--ink);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
}

.cta-band p {
  max-width: 62ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

/* -------------------------------------------------------------------- apply */

.apply-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 56px;
  align-items: start;
}

.apply-copy .section-lead {
  margin-top: 18px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 52ch;
}

.steps__num {
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.steps li span:last-child {
  font-size: 15px;
  color: var(--ink-soft);
}

.steps strong {
  color: var(--ink);
}

.apply-contact {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-soft);
}

.apply-contact a {
  font-weight: 700;
  white-space: nowrap;
}

.form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  font-size: 28px;
}

.form-card__hint {
  margin: 8px 0 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-card form {
  display: grid;
  gap: 16px;
}

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

.required {
  color: var(--accent);
}

.field--consent {
  gap: 8px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-label input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.consent-link {
  padding-left: 30px;
  font-size: 13px;
  color: var(--ink-soft);
}

.form-actions {
  margin-top: 4px;
}

.btn--submit {
  width: 100%;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.form-status.is-success {
  background: #e7f0e6;
  color: #274a2c;
  border: 1px solid #b9d3b7;
}

.form-status.is-error {
  background: #fbe9e4;
  color: #7d2317;
  border: 1px solid #e6b6aa;
}

.notice-slot:empty {
  display: none;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.notice--success {
  background: #e7f0e6;
  color: #274a2c;
  border: 1px solid #b9d3b7;
}

.notice--error {
  background: #fbe9e4;
  color: #7d2317;
  border: 1px solid #e6b6aa;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ----------------------------------------------------------------- contacts */

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

.contact-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.contact-card address {
  font-style: normal;
  font-size: 17px;
  line-height: 1.55;
}

.contact-card__rule {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.contact-value:hover {
  color: var(--accent);
}

.contact-value--small {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.muted {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  padding: 56px 0 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 40px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
}

.footer-brand p {
  max-width: 58ch;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  align-content: start;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
  .hero-inner {
    gap: 40px;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    gap: 32px;
  }
}

@media (max-width: 900px) {
  :root {
    --section: 72px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-inner,
  .about-grid,
  .apply-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 0;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }

  .about-columns {
    grid-template-columns: 1fr;
  }

  .about-figure {
    max-width: 620px;
  }

  .teacher-controls {
    grid-template-columns: 1fr;
  }

  .chip-group {
    justify-content: flex-start;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    order: 1;
  }

  .header-phone {
    order: 2;
    font-size: 15px;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    margin: 4px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
    padding: 8px 10px;
  }

  .hero-contacts li {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact {
    padding: 22px 18px;
  }

  .fact:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
    --section: 64px;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .header-phone__label {
    display: none;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-emblem {
    width: min(100%, 300px);
    padding: 26px 20px 22px;
  }

  .hero-emblem__inner {
    width: 170px;
    height: 184px;
  }

  .hero-emblem__inner img {
    width: 140px;
  }

  .hero-emblem__label {
    font-size: 21px;
  }

  .hero-orbit--one {
    width: 330px;
    height: 330px;
  }

  .hero-orbit--two {
    width: 390px;
    height: 390px;
  }

  .hero-tag {
    padding: 10px 12px;
  }

  .hero-tag strong {
    font-size: 22px;
  }

  .hero-tag span {
    font-size: 11px;
  }

  .hero-tag--year {
    top: 18px;
    left: -6px;
  }

  .hero-tag--team {
    right: -6px;
    bottom: 44px;
  }

  .hero-caption {
    font-size: 11px;
    white-space: normal;
    width: 100%;
    text-align: center;
  }

  .hero-contacts li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero-contacts__label {
    font-size: 11px;
  }

  .panel,
  .contact-card {
    padding: 22px 18px;
  }

  .about-figure::after {
    display: none;
  }

  .chip-group {
    gap: 6px;
  }

  .chip {
    padding: 7px 11px;
    font-size: 13px;
  }

  .cta-band {
    padding: 44px 0;
  }

  .form-card {
    padding: 22px 16px;
    border-radius: var(--radius);
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
