@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-4.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-11.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-14.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golostext-1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golostext-3.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golostext-5.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/golostext-7.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  --brand-blue: #304aa0;
  --brand-sky: #168fd0;
  --brand-red: #ef2f49;
  --brand-orange: #ff7a1a;
  --brand-yellow: #f4c52f;
  --brand-purple: #7b378f;
  --ink: #272638;
  --muted: #6b6975;
  --paper: #fffefa;
  --canvas: #f3f0e9;
  --line: #d9d5cc;
  --white: #ffffff;
  --success: #1a6b49;
  --radius: 18px;
  --radius-small: 12px;
  --shell: min(100% - 32px, 1240px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Golos Text", system-ui, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 {
  font-family: "Raleway", system-ui, sans-serif;
  line-height: 1.02;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(3.15rem, 13vw, 6.2rem); }
h2 { font-size: clamp(2.35rem, 9vw, 4.75rem); }
h3 { font-size: 1.45rem; }
p { color: var(--muted); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand-yellow);
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 4px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--brand-blue);
  outline: 3px solid rgba(48, 74, 160, .2);
  outline-offset: 1px;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 76px;
  width: 100%;
  padding: 8px max(16px, calc((100vw - 1240px) / 2));
  align-items: center;
  gap: 16px;
  background: var(--brand-blue);
  color: var(--white);
}
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; text-decoration: none; }
.brand img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 11px; object-fit: cover; }
.brand span, .brand strong, .brand small { display: block; }
.brand strong { font-family: "Raleway", sans-serif; font-size: 1.08rem; line-height: 1; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.7); font-size: .63rem; line-height: 1; white-space: nowrap; }
.desktop-nav, .header-phone { display: none; }
.site-header > .button { margin-left: auto; }

.button {
  display: inline-flex;
  min-height: 50px;
  width: fit-content;
  padding: 0 21px;
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--brand-blue);
  color: var(--white);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { border-color: var(--brand-purple); background: var(--brand-purple); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 44px; padding-inline: 15px; border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--ink); font-size: .78rem; }
.button-small:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.button-light { border-color: var(--white); background: var(--white); color: var(--brand-blue); }
.button-light:hover { border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--ink); }
.button-coral { border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--ink); }
.button-coral:hover { border-color: var(--brand-orange); background: var(--brand-orange); color: var(--ink); }
.section-shell { width: var(--shell); margin-inline: auto; padding-block: 78px; }
.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-yellow);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--brand-blue); }

.hero {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 76px);
  padding: 54px max(16px, calc((100vw - 1240px) / 2)) 62px;
  overflow: hidden;
  background: var(--brand-blue);
  color: var(--white);
  gap: 42px;
}
.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--brand-red) 0 21%, var(--brand-orange) 21% 42%, var(--brand-yellow) 42% 62%, var(--brand-sky) 62% 82%, var(--brand-purple) 82% 100%);
  content: "";
}
.hero-copy, .hero-portraits { min-width: 0; }
.hero h1 { max-width: 10ch; }
.hero h1 em { color: var(--brand-yellow); font-style: normal; }
.hero-lead { max-width: 52ch; margin-top: 24px; color: rgba(255,255,255,.76); font-size: 1rem; }
.hero-quicklinks { display: grid; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.3); }
.hero-quicklinks a {
  display: grid;
  min-height: 58px;
  border-bottom: 1px solid rgba(255,255,255,.3);
  align-items: center;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  grid-template-columns: 38px 1fr;
}
.hero-quicklinks a:hover { color: var(--brand-yellow); }
.hero-quicklinks span { color: var(--brand-yellow); font-size: .67rem; }
.hero-quicklinks a:first-child {
  padding-inline: 14px;
  border-color: var(--brand-yellow);
  border-radius: 10px;
  background: var(--brand-yellow);
  color: var(--ink);
}
.hero-quicklinks a:first-child:hover { background: var(--white); color: var(--ink); }
.hero-quicklinks a:first-child span { color: var(--brand-blue); }
.hero-portraits {
  display: grid;
  width: calc(100% + 16px);
  padding-right: 16px;
  overflow-x: auto;
  grid-auto-flow: column;
  grid-auto-columns: min(64vw, 240px);
  gap: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-portraits::-webkit-scrollbar, .profile-grid::-webkit-scrollbar, .space-grid::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
.portrait { overflow: hidden; border-radius: var(--radius); background: var(--paper); color: var(--ink); scroll-snap-align: start; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { display: grid; min-height: 68px; padding: 13px 15px; align-content: center; background: var(--paper); }
.portrait figcaption strong, .portrait figcaption span { display: block; }
.portrait figcaption strong { font-size: .88rem; }
.portrait figcaption span { margin-top: 3px; color: var(--muted); font-size: .7rem; }

.section-heading { margin-bottom: 30px; }
.section-heading h2 { max-width: 11ch; }
.section-heading > p { max-width: 55ch; margin-top: 18px; font-size: .98rem; }
.specialists { padding-bottom: 96px; }
.filters {
  display: grid;
  width: 100%;
  padding: 14px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}
.filters .field:first-child { grid-column: 1 / -1; }
.field { display: grid; min-width: 0; gap: 7px; }
.field label { color: var(--ink); font-size: .76rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #aaa6b1;
  border-radius: var(--radius-small);
  background-color: var(--paper);
  color: var(--ink);
}
.field select {
  padding-right: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='m2 2 6 6 6-6' fill='none' stroke='%23304aa0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 10px;
}
.filters select { font-size: .9rem; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-blue); }
.filter-reset {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
}
.filter-reset:hover { border-color: var(--brand-blue); background: var(--paper); }
.catalog-meta { display: flex; min-height: 44px; margin: 12px 0 8px; align-items: center; gap: 12px; }
.catalog-meta p { color: var(--ink); font-weight: 600; }
.rail-hint { margin-left: auto; color: var(--brand-blue); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.profile-grid {
  display: grid;
  width: calc(100% + 16px);
  padding: 0 16px 10px 0;
  overflow-x: auto;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 286px);
  gap: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.profile-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); scroll-snap-align: start; }
.profile-visual { position: relative; aspect-ratio: 1 / 1.06; overflow: hidden; background: #e1ddd5; }
.profile-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 280ms ease; }
.profile-card:hover .profile-visual img { transform: scale(1.018); }
.profile-visual > span { position: absolute; top: 12px; left: 12px; display: grid; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--brand-blue); place-items: center; font-size: .7rem; font-weight: 600; }
.profile-copy { display: grid; min-height: 382px; padding: 20px; gap: 12px; }
.profile-meta { color: var(--brand-blue); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.profile-card h3 { font-size: 1.65rem; }
.profile-role { min-height: 58px; color: var(--ink); font-size: .78rem; line-height: 1.4; }
.profile-summary { font-size: .88rem; }
.profile-tags { display: flex; align-content: start; gap: 6px; flex-wrap: wrap; }
.profile-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .67rem; }
.profile-footer { display: flex; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); align-items: end; justify-content: space-between; gap: 10px; }
.profile-footer strong, .profile-footer span { display: block; }
.profile-footer strong {
  font-family: "Golos Text", sans-serif;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
.profile-footer div > span { margin-top: 3px; color: var(--muted); font-size: .64rem; }
.card-link { display: inline-flex; min-height: 44px; padding: 0; border: 0; align-items: center; gap: 7px; background: transparent; color: var(--brand-blue); font-weight: 600; text-decoration: none; cursor: pointer; }
.card-link span { font-size: 1.15rem; text-decoration: none; }
.empty-state { padding: 42px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { max-width: 46ch; margin: 0 auto 20px; }
.empty-state .button { margin-inline: auto; }

.students { display: grid; background: var(--brand-purple); color: var(--white); }
.student-photo { min-height: 360px; background: url("assets/spaces/fenix-hall.jpg") center / cover no-repeat; }
.student-copy { padding: 60px 16px 70px; }
.student-copy h2 { max-width: 14ch; font-size: clamp(2.7rem, 6vw, 4rem); }
.student-lead { max-width: 52ch; margin-top: 22px; color: rgba(255,255,255,.76); font-size: 1rem; }
.status-card { display: grid; max-width: 650px; margin-top: 26px; padding: 18px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); grid-template-columns: auto 1fr; gap: 12px; }
.status-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--brand-yellow); box-shadow: 0 0 0 5px rgba(244,197,47,.17); }
.status-card strong { font-family: "Raleway", sans-serif; font-size: 1.12rem; }
.status-card p { margin-top: 7px; color: rgba(255,255,255,.7); font-size: .84rem; }
.student-actions { display: flex; margin-top: 26px; align-items: center; gap: 12px; flex-wrap: wrap; }
.secondary-action {
  display: inline-flex;
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.secondary-action:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }
.secondary-action span { display: inline-grid; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); place-items: center; text-decoration: none; }

.spaces { padding-block: 92px; }
.space-rail-hint { margin: -14px 0 14px auto; width: fit-content; }
.space-grid {
  display: grid;
  width: calc(100% + 16px);
  padding: 0 16px 10px 0;
  overflow-x: auto;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 330px);
  gap: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.space-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); scroll-snap-align: start; }
.space-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.space-card[data-space-id="babochki"] img { object-position: center 68%; }
.space-card[data-space-id="gobeleny"] img { object-position: center 58%; }
.space-copy { padding: 20px; }
.space-copy h3 { font-size: 1.55rem; }
.space-copy > p { margin-top: 12px; font-size: .87rem; }
.space-specs { display: flex; margin-top: 15px; gap: 7px; flex-wrap: wrap; }
.space-specs span { padding: 5px 8px; border-radius: 999px; background: #ece8df; color: var(--ink); font-size: .7rem; font-weight: 600; }
.space-tariffs { margin-top: 18px; border-top: 1px solid var(--line); }
.space-tariffs div { display: flex; min-height: 42px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 16px; }
.space-tariffs dt { color: var(--muted); font-size: .75rem; }
.space-tariffs dd { color: var(--ink); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.space-footer { display: grid; margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); gap: 18px; }
.space-footer p { max-width: 62ch; font-size: .75rem; }
.space-footer .button { width: 100%; }

.reviews { padding-top: 20px; }
.reviews-heading { margin-bottom: 28px; }
.reviews-heading h2 { max-width: 10ch; }
.review-grid { display: grid; gap: 12px; }
.review-card { display: grid; min-height: 260px; padding: 23px; border: 1px solid var(--line); border-top: 5px solid var(--brand-blue); border-radius: var(--radius); background: var(--paper); grid-template-rows: auto 1fr auto; }
.review-2 { border-top-color: var(--brand-red); }
.review-3 { border-top-color: var(--brand-orange); }
.quote-mark { height: 47px; color: var(--brand-blue); font-family: Georgia, serif; font-size: 4.5rem; line-height: .9; }
.review-card > p { align-self: center; color: var(--ink); font-family: "Raleway", sans-serif; font-size: 1.08rem; font-weight: 700; line-height: 1.28; letter-spacing: -.02em; }
.review-card footer { display: grid; padding-top: 16px; border-top: 1px solid var(--line); gap: 2px; }
.review-card footer strong { font-size: .8rem; }
.review-card footer span { color: var(--muted); font-size: .68rem; }
.reviews-links { display: grid; margin-top: 18px; gap: 10px; }
.social-button {
  display: flex;
  min-height: 70px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  text-decoration: none;
}
.social-button:hover { border-color: var(--brand-blue); }
.social-button > span:last-child, .social-button strong, .social-button small { display: block; }
.social-button strong { color: var(--ink); font-size: .86rem; }
.social-button small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.social-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; place-items: center; font-size: .75rem; font-weight: 700; }
.social-vk .social-icon { background: #0066d6; color: white; }
.map-pin { position: relative; background: #fff3ef; }
.map-pin::before { width: 20px; height: 25px; border-radius: 50% 50% 50% 0; background: #fc3f1d; content: ""; transform: rotate(-45deg); }
.map-pin::after { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--white); content: ""; }

.request { display: grid; margin-top: 92px; padding: 68px 16px; background: var(--brand-blue); color: var(--white); gap: 36px; }
.request-copy h2 { max-width: 11ch; font-size: clamp(2.55rem, 7vw, 4.8rem); }
.request-copy > p:not(.eyebrow) { max-width: 50ch; margin-top: 20px; color: rgba(255,255,255,.72); }
.request address { display: grid; margin-top: 30px; gap: 3px; color: rgba(255,255,255,.7); font-style: normal; }
.request address strong { color: var(--white); }
.request address a { display: inline-flex; min-height: 44px; align-items: center; color: var(--brand-yellow); font-size: 1.1rem; font-weight: 600; }
.request-form { display: grid; padding: 20px; border-radius: var(--radius); background: var(--paper); color: var(--ink); gap: 17px; }
.consent-check { display: flex; min-height: 44px; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .77rem; }
.consent-check input { flex: 0 0 20px; width: 20px; min-height: 20px; margin-top: 1px; accent-color: var(--brand-blue); }
.request-form .button { width: 100%; }
.form-status { min-height: 22px; color: var(--muted); font-size: .76rem; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: #a22828; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.optional-label { color: var(--muted); font-size: .72em; font-weight: 500; }
.consent-check a { color: inherit; text-underline-offset: 3px; }
.button[disabled] { cursor: wait; opacity: .68; }

.site-footer { display: grid; padding: 48px 16px 30px; background: #242f78; color: var(--white); gap: 27px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.footer-brand strong { font-family: "Raleway", sans-serif; font-size: 1.3rem; }
.footer-brand p { margin-top: 2px; color: rgba(255,255,255,.65); font-size: .76rem; }
.footer-contact { display: grid; gap: 5px; color: rgba(255,255,255,.68); font-size: .84rem; }
.footer-contact a { display: inline-flex; min-height: 44px; align-items: center; color: var(--white); font-size: 1.12rem; font-weight: 600; }
.site-footer nav { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; align-items: center; justify-content: center; color: var(--white); font-weight: 600; text-decoration: none; }
.site-footer nav a:hover { border-color: var(--brand-yellow); color: var(--brand-yellow); }
.prototype-label { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.64); font-size: .65rem; }

.profile-dialog {
  width: min(100% - 18px, 850px);
  max-height: calc(100dvh - 18px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0,0,0,.38);
}
.profile-dialog::backdrop { background: rgba(20,24,60,.78); }
.dialog-shell { position: relative; padding: 58px 18px 24px; }
.dialog-close { position: absolute; top: 10px; right: 12px; z-index: 2; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--brand-blue); cursor: pointer; }
.dialog-profile { display: grid; gap: 20px; }
.dialog-profile > img { width: 100%; height: 230px; border-radius: 14px; background: #ece8df; object-fit: contain; }
.dialog-kicker { margin-bottom: 8px; color: var(--brand-blue); font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.dialog-profile h2 { font-size: clamp(2.2rem, 9vw, 4rem); }
.dialog-profile > div > p:not(.dialog-kicker) { margin-top: 11px; }
.dialog-links { margin-top: 12px; }
.dialog-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--brand-blue); font-weight: 600; text-underline-offset: 4px; }
.dialog-details { display: grid; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); gap: 22px; }
.dialog-details h3, .dialog-form h3 { margin-bottom: 11px; font-size: 1.3rem; }
.dialog-details ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .86rem; }
.dialog-details li + li { margin-top: 6px; }
.dialog-form { display: grid; margin-top: 26px; padding: 19px; border-radius: 15px; background: #ebe9f2; gap: 15px; }
.dialog-form > p:not(.form-status) { font-size: .76rem; }
.dialog-fields { display: grid; gap: 13px; }
.dialog-form .button { width: 100%; }

@media (min-width: 600px) {
  .hero-portraits { grid-auto-columns: min(44vw, 290px); }
  .profile-grid { grid-auto-columns: min(46vw, 330px); }
  .space-grid { grid-auto-columns: min(48vw, 365px); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-3 { grid-column: 1 / -1; }
  .reviews-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space-footer { grid-template-columns: 1fr auto; align-items: center; }
  .space-footer .button { width: fit-content; }
  .dialog-profile { grid-template-columns: minmax(220px, .75fr) 1.25fr; align-items: center; }
  .dialog-profile > img { height: auto; aspect-ratio: 1; object-fit: contain; }
  .dialog-details, .dialog-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .rail-hint { display: none; }
  .site-header { min-height: 82px; }
  .brand img { width: 52px; height: 52px; }
  .brand strong { font-size: 1.18rem; }
  .hero { min-height: calc(100dvh - 82px); padding-block: 64px; grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr); align-items: center; gap: 50px; }
  .hero h1 { font-size: clamp(4rem, 7vw, 5.6rem); }
  .hero-quicklinks { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(255,255,255,.3); }
  .hero-quicklinks a { min-height: 82px; padding: 10px 15px; border-right: 1px solid rgba(255,255,255,.3); border-bottom: 0; align-content: center; grid-template-columns: 1fr; gap: 5px; }
  .hero-portraits { width: 100%; padding: 0; overflow: visible; grid-auto-flow: initial; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .portrait img { aspect-ratio: 1; }
  .portrait figcaption { min-height: 76px; padding-inline: 12px; }
  .section-shell { padding-block: 108px; }
  .split-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 48px; }
  .split-heading > p { margin: 0 0 7px; }
  .filters { padding: 16px; grid-template-columns: 1.4fr 1fr 1fr auto; }
  .filters .field:first-child, .filter-reset { grid-column: auto; }
  .filters select { font-size: 1rem; }
  .profile-grid { width: 100%; padding: 0; overflow: visible; grid-auto-flow: initial; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .students { grid-template-columns: .9fr 1.1fr; }
  .student-photo { min-height: 100%; }
  .student-copy { display: flex; min-height: 680px; padding: 76px clamp(42px, 6vw, 92px); flex-direction: column; justify-content: center; }
  .space-grid { width: 100%; padding: 0; overflow: visible; grid-auto-flow: initial; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-3 { grid-column: auto; }
  .request { padding: 90px max(32px, calc((100vw - 1240px) / 2)); grid-template-columns: 1fr .85fr; align-items: center; gap: 74px; }
  .request-form { padding: 32px; }
  .site-footer { padding-inline: max(32px, calc((100vw - 1240px) / 2)); grid-template-columns: 1fr 1fr; }
  .site-footer nav { justify-content: flex-end; }
  .prototype-label { grid-column: 1 / -1; }
  .dialog-shell { padding: 40px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero { min-height: auto; padding-block: 72px; }
  .students { grid-template-columns: 1fr; }
  .student-photo { min-height: 500px; }
  .student-copy { min-height: auto; padding-block: 72px; }
  .request { padding-block: 72px; grid-template-columns: 1fr; gap: 48px; }
  .request-copy h2 { max-width: 13ch; }
}

@media (min-width: 900px) {
  .profile-grid, .space-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; margin-left: auto; align-items: center; gap: clamp(18px, 2vw, 32px); }
  .desktop-nav a, .header-phone { display: inline-flex; min-height: 44px; align-items: center; color: rgba(255,255,255,.75); font-size: .8rem; text-decoration: none; }
  .desktop-nav a:hover, .header-phone:hover { color: var(--brand-yellow); }
  .header-phone { font-weight: 600; }
  .site-header > .button { margin-left: 0; }
  .hero {
    height: calc(100dvh - 82px);
    min-height: 620px;
    max-height: 760px;
    padding-block: 30px;
    grid-template-columns: minmax(0, .92fr) minmax(540px, 1.08fr);
    gap: 58px;
  }
  .hero h1 { font-size: clamp(4.25rem, 5.55vw, 5.75rem); }
  .hero-lead { margin-top: 16px; font-size: 1rem; }
  .hero-quicklinks { margin-top: 18px; }
  .hero-quicklinks a { min-height: 68px; }
  .portrait img { aspect-ratio: 1; }
  .portrait figcaption { min-height: 66px; }
  .profile-copy { min-height: 410px; }
  .students { grid-template-columns: .9fr 1.1fr; }
  .student-copy { min-height: 680px; }
  .space-card img { aspect-ratio: 1 / 1.02; }
  .request { min-height: 690px; margin-top: 120px; }
  .site-footer { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
  .site-footer nav { justify-content: flex-start; }
}

@media (min-width: 1150px) {
  .profile-grid, .space-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .brand small { font-size: .58rem; }
  .site-header .button { min-height: 44px; padding-inline: 13px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 3.55rem); }
  .social-button strong { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Editorial redesign: fewer repeated cards, denser mobile rhythm, clearer actions. */
:root {
  --canvas: #f5f2eb;
  --paper: #fffdf8;
  --ink: #242339;
  --muted: #666573;
  --line: #d8d4ca;
  --radius: 12px;
  --radius-small: 8px;
}

h1, h2, h3 { letter-spacing: -.045em; }
h2 { font-size: clamp(2.35rem, 7vw, 4.2rem); }
.section-shell { padding-block: 68px; }
.section-index {
  margin-bottom: 13px;
  color: var(--brand-blue);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.section-index-light { color: var(--brand-yellow); }

.site-header {
  min-height: 68px;
  padding-block: 7px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.brand { gap: 9px; }
.brand img { width: 44px; height: 44px; flex-basis: 44px; border-radius: 8px; }
.brand strong { font-size: 1rem; }
.brand small { font-size: .6rem; }
.header-call {
  display: inline-flex;
  min-height: 44px;
  margin-left: auto;
  padding-inline: 4px;
  align-items: center;
  color: var(--brand-yellow);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.header-call:hover { color: var(--white); }

.hero {
  min-height: 0;
  padding: 36px max(16px, calc((100vw - 1240px) / 2)) 42px;
  gap: 32px;
}
.hero-kicker {
  margin-bottom: 14px;
  color: rgba(255,255,255,.66);
  font-size: .72rem;
  font-weight: 600;
}
.hero h1 { max-width: 9ch; font-size: clamp(3.2rem, 13vw, 5.8rem); }
.hero-lead { max-width: 45ch; margin-top: 18px; font-size: .94rem; }
.hero-actions { display: flex; margin-top: 24px; align-items: center; gap: 18px; flex-wrap: wrap; }
.button-primary { border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--ink); }
.button-primary:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.hero-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}
.hero-text-link:hover { color: var(--brand-yellow); }
.hero-routes {
  display: grid;
  margin-top: 25px;
  border-top: 1px solid rgba(255,255,255,.25);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-routes a {
  display: grid;
  min-height: 72px;
  padding: 13px 12px 11px 0;
  align-content: center;
  color: var(--white);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: none;
}
.hero-routes a + a { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.hero-routes span { margin-bottom: 4px; color: rgba(255,255,255,.56); font-size: .64rem; font-weight: 400; }
.hero-routes a:hover { color: var(--brand-yellow); }

.hero-portraits {
  width: 100%;
  height: 292px;
  padding: 0;
  overflow: visible;
  grid-auto-flow: initial;
  grid-auto-columns: auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.portrait { position: relative; border-radius: 10px; }
.portrait-main { grid-row: 1 / -1; }
.portrait img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 0;
  padding: 30px 11px 10px;
  background: linear-gradient(transparent, rgba(20,25,55,.82));
  color: var(--white);
}
.portrait figcaption strong { font-size: .73rem; }
.portrait figcaption span { color: rgba(255,255,255,.7); font-size: .58rem; }
.portrait-second figcaption span, .portrait-third figcaption span { display: none; }

.section-heading { margin-bottom: 24px; }
.section-heading h2 { max-width: 12ch; }
.section-heading > p { margin-top: 14px; font-size: .9rem; }
.specialists { padding-bottom: 76px; }
.filters {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,253,248,.68);
  gap: 10px;
}
.field label { font-size: .71rem; }
.field input, .field select, .field textarea { min-height: 46px; border-radius: 7px; }
.filters select { font-size: .82rem; }
.filter-reset { min-height: 46px; border-radius: 7px; }
.catalog-meta { min-height: 42px; margin: 8px 0 7px; }
.catalog-meta p { font-size: .82rem; }
.rail-hint { color: var(--muted); font-size: .67rem; font-weight: 400; }
.profile-grid { grid-auto-columns: min(83vw, 318px); gap: 10px; }
.profile-card { border-radius: 10px; }
.profile-visual { aspect-ratio: 1; }
.profile-visual > span { top: 10px; left: 10px; width: 30px; height: 30px; font-size: .62rem; }
.profile-copy { min-height: 250px; padding: 17px; gap: 9px; }
.profile-meta { font-size: .62rem; }
.profile-card h3 { font-size: 1.45rem; }
.profile-role { min-height: 0; color: var(--muted); font-size: .74rem; line-height: 1.38; }
.profile-tags { margin-top: 3px; }
.profile-tags span { padding: 4px 7px; font-size: .62rem; }
.profile-footer { padding-top: 12px; }
.profile-footer strong { font-size: 1rem; }
.profile-footer div > span { font-size: .6rem; }
.card-link { font-size: .78rem; }

.students {
  width: 100%;
  padding: 66px max(16px, calc((100vw - 1240px) / 2));
  background: var(--brand-purple);
  grid-template-columns: 1fr;
  gap: 30px;
}
.student-marker {
  display: flex;
  width: min(100%, 290px);
  height: 132px;
  align-items: center;
  color: var(--brand-yellow);
  font-family: "Raleway", sans-serif;
  font-size: 7.6rem;
  font-weight: 700;
  letter-spacing: -.14em;
  line-height: .75;
}
.student-marker span + span { color: transparent; -webkit-text-stroke: 2px var(--brand-yellow); transform: translateY(13px); }
.student-copy { padding: 0; }
.student-copy h2 { max-width: 100%; font-size: clamp(2.35rem, 5.5vw, 4rem); }
.student-lead { margin-top: 18px; font-size: .95rem; }
.student-status {
  max-width: 58ch;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
}
.student-status strong { color: var(--white); }
.student-actions { margin-top: 23px; }
.secondary-action { min-height: 46px; padding: 0; border: 0; border-radius: 0; font-size: .8rem; }
.secondary-action span { width: auto; height: auto; border-radius: 0; background: transparent; }
.secondary-action:hover { border: 0; }

.spaces { padding-block: 76px; }
.space-grid { gap: 10px; grid-auto-columns: min(84vw, 340px); }
.space-card { border-radius: 10px; }
.space-card img { aspect-ratio: 4 / 3; }
.space-copy { padding: 17px; }
.space-copy h3 { font-size: 1.4rem; }
.space-copy > p { margin-top: 9px; font-size: .8rem; }
.space-specs { margin-top: 12px; }
.space-specs span { border-radius: 6px; font-size: .64rem; }
.space-tariffs { margin-top: 14px; }
.space-footer { margin-top: 14px; padding: 17px; border-radius: 10px; }

.reviews { padding-top: 10px; padding-bottom: 76px; }
.reviews-heading { margin-bottom: 23px; }
.reviews-heading h2 { max-width: 11ch; }
.review-grid { gap: 10px; }
.review-card { min-height: 0; padding: 20px; border-top-width: 4px; border-radius: 10px; }
.quote-mark { height: 38px; font-size: 3.7rem; }
.review-card > p { padding-block: 14px 20px; font-size: 1rem; }
.reviews-links { margin-top: 10px; }
.social-button { min-height: 66px; border-radius: 10px; }

.request {
  margin-top: 0;
  padding: 66px max(16px, calc((100vw - 1240px) / 2));
  gap: 30px;
}
.request-copy h2 { font-size: clamp(2.65rem, 10vw, 4.5rem); }
.request-copy > p:not(.section-index) { margin-top: 17px; font-size: .9rem; }
.request address { margin-top: 22px; }
.request-form { padding: 18px; border-radius: 10px; gap: 14px; }
.site-footer { padding-top: 38px; }
.profile-dialog { border-radius: 12px; }
.dialog-profile > img { object-fit: cover; }
#dialog-summary { margin-top: 11px; color: var(--muted); font-size: .86rem; }

@media (min-width: 600px) {
  .hero-portraits { height: 390px; }
  .profile-grid { grid-auto-columns: min(45vw, 330px); }
  .space-grid { grid-auto-columns: min(47vw, 370px); }
}

@media (min-width: 768px) {
  .site-header { min-height: 72px; }
  .section-shell { padding-block: 88px; }
  .hero {
    min-height: 620px;
    padding-block: 46px;
    grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    align-items: center;
    gap: 48px;
  }
  .hero h1 { font-size: clamp(4rem, 7vw, 5.55rem); }
  .hero-portraits { height: 470px; grid-template-columns: minmax(0, 1.28fr) minmax(0, .82fr); }
  .hero-routes a { min-height: 70px; }
  .portrait figcaption strong { font-size: .8rem; }
  .portrait-second figcaption span, .portrait-third figcaption span { display: block; }
  .split-heading { grid-template-columns: 1.05fr .72fr; gap: 70px; }
  .filters { grid-template-columns: 1.35fr 1fr 1fr auto; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .profile-copy { min-height: 260px; }
  .students {
    min-height: 570px;
    padding-block: 80px;
    grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: clamp(40px, 7vw, 110px);
  }
  .student-marker { width: 100%; height: 250px; font-size: clamp(9rem, 15vw, 13rem); }
  .student-copy { min-height: 0; padding: 0; }
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .review-grid { grid-template-columns: 1.1fr .9fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .review-1 { grid-row: 1 / -1; }
  .review-1 > p { font-size: 1.32rem; }
  .request { min-height: 0; padding-block: 84px; grid-template-columns: 1fr .85fr; gap: 74px; }
}

@media (min-width: 900px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .desktop-nav { margin-left: auto; }
  .header-call { margin-left: 0; }
  .hero { height: calc(100dvh - 72px); min-height: 620px; max-height: 760px; }
  .hero-portraits { height: min(64vh, 500px); }
  .profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile-copy { min-height: 270px; }
  .students { grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); }
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space-card { display: grid; grid-template-columns: 1.04fr .96fr; }
  .space-card img { height: 100%; min-height: 330px; aspect-ratio: auto; }
  .request { margin-top: 0; }
}

@media (min-width: 1150px) {
  .profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .site-header { gap: 8px; }
  .brand small { max-width: 116px; overflow: hidden; text-overflow: ellipsis; }
  .hero h1 { font-size: clamp(3.05rem, 14vw, 3.45rem); }
  .hero-actions { gap: 12px; }
  .button-primary { width: 100%; }
  .hero-text-link { width: 100%; justify-content: center; }
  .student-actions .button { width: 100%; }
}

/* v5: controls, contact map, social marks, student demos and aligned tariffs. */
:focus:not(:focus-visible) { outline: 0; box-shadow: none; }
a:focus-visible, button:focus-visible {
  outline: 0;
  box-shadow: inset 0 -3px 0 var(--brand-yellow);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--brand-blue);
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(48, 74, 160, .38);
}

.header-call {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--brand-yellow);
  border-radius: 999px;
  justify-content: center;
  gap: 7px;
  background: var(--brand-yellow);
  color: var(--ink);
}
.header-call svg { width: 17px; height: 17px; fill: currentColor; }
.header-call:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.call-desktop { display: none; }

.filters {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.filters .field { gap: 6px; }
.filters .field label { padding-left: 5px; color: var(--brand-blue); }
.filters .field select {
  min-height: 50px;
  padding: 0 47px 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: #e8e5dd;
  background-position: right 16px center;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(39,38,56,.06);
}
.filters .field select:hover { border-color: #bbb5aa; background-color: var(--paper); }
.filter-reset { border: 0; border-radius: 999px; background: transparent; text-decoration: underline; text-underline-offset: 4px; }

.portrait-shmeleva, .profile-card[data-profile-id="natalia-shmeleva"] .profile-visual { background: #d8d2c9; }
.portrait-shmeleva::before, .profile-card[data-profile-id="natalia-shmeleva"] .profile-visual::before {
  position: absolute;
  inset: -12px;
  background: url("assets/people/natalia-shmeleva.jpg") center / cover no-repeat;
  content: "";
  filter: blur(14px);
  opacity: .35;
}
.portrait-shmeleva img, .profile-card[data-profile-id="natalia-shmeleva"] .profile-visual img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  transform: scale(.86) !important;
}
.portrait-shmeleva figcaption, .profile-card[data-profile-id="natalia-shmeleva"] .profile-visual > span { z-index: 2; }

.student-actions { display: grid; justify-items: start; gap: 9px; }
.student-actions .secondary-action { min-height: 44px; }
.student-demo {
  min-width: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.24);
}
.student-demo-heading { display: grid; margin-bottom: 16px; gap: 8px; }
.student-demo-heading strong, .student-demo-heading span { display: block; }
.student-demo-heading strong { font-family: "Raleway", sans-serif; font-size: 1.1rem; }
.student-demo-heading span { margin-top: 3px; color: var(--brand-yellow); font-size: .7rem; }
.student-demo-heading p { max-width: 52ch; color: rgba(255,255,255,.78); font-size: .73rem; }
.student-grid {
  display: grid;
  width: calc(100% + 16px);
  padding: 0 16px 8px 0;
  overflow-x: auto;
  grid-auto-flow: column;
  grid-auto-columns: min(83vw, 318px);
  gap: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.student-grid::-webkit-scrollbar, .review-grid::-webkit-scrollbar { display: none; }
.student-card { color: var(--ink); scroll-snap-align: start; }
.student-card .profile-copy { min-height: 250px; }
.student-card .profile-meta { color: var(--brand-purple); }
.student-card .profile-footer { margin-top: auto; }

.space-card { display: flex; flex-direction: column; }
.space-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.space-tariffs { width: 100%; min-height: 99px; margin-top: auto; padding-top: 14px; border-top: 0; }

.review-rail-hint { width: fit-content; margin: -12px 0 12px auto; }
.review-grid {
  display: grid;
  width: calc(100% + 16px);
  padding: 0 16px 8px 0;
  overflow-x: auto;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 360px);
  grid-template-columns: none;
  grid-template-rows: none;
  align-items: stretch;
  gap: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.review-card, .review-1 { min-height: 275px; grid-row: auto; scroll-snap-align: start; }
.review-1 > p { font-size: 1.05rem; }
.social-button > img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; }

.location {
  display: grid;
  padding-top: 20px;
  padding-bottom: 76px;
  gap: 24px;
}
.location h2 { max-width: 9ch; }
.location address { display: grid; margin-top: 20px; color: var(--muted); font-style: normal; gap: 4px; }
.location address strong { color: var(--ink); font-size: 1.05rem; }
.location-actions { display: flex; margin-top: 22px; align-items: center; gap: 14px; flex-wrap: wrap; }
.location-actions > a:not(.button) { display: inline-flex; min-height: 44px; align-items: center; color: var(--brand-blue); font-weight: 600; }
.map-frame { min-height: 340px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #dfdcd4; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

.site-footer nav a { min-width: 0; padding: 7px 10px 7px 7px; border-radius: 10px; gap: 7px; }
.site-footer nav a img { width: 30px; height: 30px; border-radius: 8px; }
.site-footer nav a span { font-size: .7rem; }

@media (min-width: 600px) {
  .student-grid { grid-auto-columns: min(45vw, 330px); }
  .review-grid { grid-auto-columns: min(45vw, 380px); }
}

@media (min-width: 768px) {
  .hero { grid-template-columns: minmax(0, .94fr) minmax(350px, 1.06fr); gap: 24px; }
  .student-demo { grid-column: 1 / -1; }
  .student-demo-heading { grid-template-columns: 1fr 1fr; align-items: end; }
  .student-grid { width: 100%; padding-right: 0; grid-auto-flow: initial; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { width: 100%; padding-right: 0; grid-auto-columns: min(34vw, 390px); }
  .location { grid-template-columns: .72fr 1.28fr; align-items: stretch; gap: 48px; }
  .map-frame, .map-frame iframe { min-height: 420px; }
}

@media (min-width: 900px) {
  .student-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: 48px; }
  .call-mobile { display: none; }
  .call-desktop { display: inline; }
  .header-call { margin-left: 0; font-size: .75rem; }
  .students { grid-template-rows: auto auto; }
  .student-demo { margin-top: 8px; }
  .student-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .review-grid { grid-auto-columns: min(31vw, 390px); }
  .space-card { display: grid; }
}

@media (max-width: 420px) {
  .header-call { padding-inline: 12px; }
  .student-grid, .review-grid { grid-auto-columns: min(84vw, 320px); }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer nav a { padding-right: 7px; }
  .site-footer nav a:last-child { grid-column: 1 / -1; }
  .site-footer nav a span { font-size: .66rem; }
}
