/* ============ linumka portfolio ============ */
:root {
  --brown1: #1F1317;
  --brown2: #533B43;
  --white1: #FFECE7;
  --white2: #A4918C;
  --blue1: #001DA3;
  --blue2: #B4CDFE;
  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--brown1);
  color: var(--white1);
  font-family: 'Mulish', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* 4 колонны-пилоны — как в макете */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--white1);
}
h3.block-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--white2);
  margin-top: 72px;
}

.muted { color: var(--white2); }

/* ---------- pills & buttons: плоские, компактные ---------- */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brown2);
  color: var(--white1);
  padding: 0 10px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.3;
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s;
  white-space: nowrap;
}
/* невидимая зона клика ≥45px по вертикали; по горизонтали узко, чтобы соседние кнопки не перекрывались */
.pill::after {
  content: "";
  position: absolute;
  top: -14px; bottom: -14px;
  left: -4px; right: -4px;
}
/* конверсионные кнопки заметнее навигационных */
.pill--cta { padding: 2px 14px; }
.pill:hover { background: #6a4c56; }
/* видимый фокус на тёмном фоне */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--blue2);
  outline-offset: 3px;
}
.info-card :where(a, button):focus-visible { outline-color: var(--brown1); }
.pill.active, .pill.light {
  background: var(--white1);
  color: var(--brown1);
}
.pill.light:hover { background: #fff4ef; }
/* «Написать»: как остальные кнопки, но со звёздочкой-приманкой */
.pill--write .spark { width: 14px; height: 14px; }
.pill--write .spark svg { animation: writeTwinkle 2.6s ease-in-out infinite; }
@keyframes writeTwinkle {
  0%, 100% { transform: scale(1); opacity: .85; }
  50%      { transform: scale(1.35) rotate(20deg); opacity: 1; }
}
/* подпись-статус под навигацией, у кнопки «Написать» */
.nav-note {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  font-size: 12.5px;
  color: var(--white2);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(31,19,23,.9);
}

/* ---------- sparkle icon ---------- */
.spark {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  display: inline-block;
}
.spark svg { width: 100%; height: 100%; display: block; }
.spark--blue { color: var(--blue2); }
.spark--warm { color: var(--white1); }
.spark--dark { color: var(--brown2); }

/* ---------- компактная плавающая навигация ---------- */
.top-fade {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 96px;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(31,19,23,.92) 0%, rgba(31,19,23,.55) 45%, rgba(31,19,23,0) 100%);
}
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 10px;
}

/* ---------- hero (about) ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-about-grid {
  position: relative;
  align-items: center;
  row-gap: 32px;
  padding-top: 110px;
  padding-bottom: 72px;
}
.hero-photo {
  grid-column: 1 / 2;
  position: relative;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 380 / 399;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-text {
  grid-column: 2 / 5;
  position: relative;
  min-width: 0;
}
.hero-mark { display: inline-block; text-align: left; }
.hero-name {
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--white1);
  margin-bottom: 0;
  /* имя сидит над словом, сдвинуто вправо от его начала — как в макете */
  margin-left: clamp(30px, 5.5vw, 80px);
}
.wordmark {
  font-size: clamp(84px, 13vw, 188px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.06em;
  color: var(--blue2);
  white-space: nowrap;
}
.wordmark .ch { display: inline-block; }
.hero-sub {
  margin-top: 28px;
  max-width: 520px;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.4;
  color: var(--white1);
}
.hero-cta { margin-top: 26px; }
.hero-city { margin-top: 12px; color: var(--white2); }
.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--white1);
}

/* ---------- hero (portfolio) ---------- */
.hero-folio {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 64px;
  position: relative;
}
.hero-folio .hero-name {
  font-size: clamp(30px, 4.5vw, 55px);
  margin-left: clamp(40px, 7.4vw, 110px);
}
.hero-folio .wordmark { font-size: clamp(96px, 17.5vw, 260px); }
.hero-folio .hero-sub {
  margin: 32px auto 0;
  max-width: 360px;
}
.hero-folio .hero-status { justify-content: center; }

/* ---------- blue banner ---------- */
.banner {
  position: relative;
  background: var(--blue1);
  overflow: hidden;
}
.banner-grid {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
}
.banner-text { grid-column: 2 / 4; }
.banner-text p + p { margin-top: 20px; }

/* ---------- sections ---------- */
section { position: relative; }
.section-pad { padding-top: 88px; padding-bottom: 40px; }

/* ---------- experience ---------- */
.xp-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 48px;
}
.xp-grid { row-gap: 12px; }
/* иерархия как в резюме: позиция крупно, организация с датами мелко одной строкой */
.xp-head { grid-column: 1 / 2; min-width: 0; }
.xp-position {
  font-size: 18px;
  font-weight: 500;
  color: var(--white1);
  margin: 0;
}
.xp-meta {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--white2);
}
.xp-dates {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--white2);
}
.xp-desc { grid-column: 2 / 5; color: var(--white2); min-width: 0; }
.xp-desc li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.xp-desc li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brown2);
}

/* education compact */
.edu {
  margin-top: 32px;
  row-gap: 32px;
}
.edu-item { min-width: 0; }
.edu-item:nth-child(odd) { grid-column: 1 / 3; }
.edu-item:nth-child(even) { grid-column: 3 / 5; }
.edu-item .edu-when { color: var(--white2); font-size: 15px; }
.edu-item .edu-what { color: var(--white2); margin-top: 4px; }

/* ---------- info cards ---------- */
.cards-flow {
  row-gap: 48px;
  padding-top: 88px;
  padding-bottom: 40px;
}
.info-card {
  background: var(--blue2);
  color: var(--brown1);
  padding: 32px 36px 36px;
  min-width: 0;
}
.info-card h2 { color: var(--brown1); margin-bottom: 16px; }
.info-card p { color: var(--brown2); }
.info-card p + p { margin-top: 12px; }
.info-card .star-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #241419;
  margin-top: 4px;
}
.info-card .star-row .spark { margin-top: 3px; }
.info-card .subhead {
  color: var(--brown1);
  margin-top: 20px;
  margin-bottom: 10px;
}
.card-skills { grid-column: 1 / 3; }
.card-useful { grid-column: 2 / 4; }
.card-contact { grid-column: 2 / 5; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tool-tags span {
  background: rgba(31,19,23,.12);
  padding: 2px 10px;
  font-size: 14px;
  color: var(--brown1);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.contact-actions .pill { background: var(--brown2); color: var(--white1); }
.contact-actions .pill:hover { background: var(--brown1); }

/* ---------- filters (portfolio) ---------- */
.filters {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 6vw, 67px);
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}
.filter-group { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.filter-group .sub {
  display: flex; align-items: center; gap: 7px;
  color: var(--white2);
  font-size: 15px;
  background: none;
  border: none;
  padding: 3px 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color .2s;
}
.filter-group .sub:hover { color: var(--white1); }
.filter-group .sub.active { color: var(--white1); }
.filter-group .sub.active .spark { color: var(--white1); }
.filter-all-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
  padding-top: 8px;
}

/* ---------- case grid ---------- */
.cases {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 40px;
  padding-bottom: 96px;
}
.case {
  display: grid;
  grid-template-columns: minmax(0, 467px) 1fr;
  gap: 36px;
  align-items: start;
}
.case-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 467 / 280;
  background: #2a1a20;
}
/* вертикальные работы показываем вертикально: ratio в cases-data.js */
.case--vertical { grid-template-columns: minmax(0, 320px) 1fr; }
.case--vertical .case-media { aspect-ratio: 9 / 16; }
.case--featured.case--vertical .case-top { grid-template-columns: minmax(0, 320px) 1fr; }
.case-media img, .case-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.case:hover .case-media img { transform: scale(1.04); }
h3.case-title, .case-title { color: var(--white1); font-size: 16px; font-weight: 500; margin: 0; }
.case-title .year { color: var(--white2); margin-left: 8px; }
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.case-tags span {
  border: 1px solid var(--brown2);
  padding: 1px 8px;
  font-size: 14px;
  color: var(--white1);
}
.case-desc { margin-top: 18px; color: var(--white2); max-width: 620px; }
.case-desc a { text-decoration: underline; text-underline-offset: 3px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* featured expandable */
.case--featured,
.case--wide { grid-template-columns: 1fr; }
.case--featured .case-top,
.case--wide .case-top {
  display: grid;
  grid-template-columns: minmax(0, 467px) 1fr;
  gap: 36px;
  align-items: start;
}
.case-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  /* свёрнутый блок не должен ловить Tab: visibility гасим после анимации */
  visibility: hidden;
  transition: grid-template-rows .55s cubic-bezier(.2,.7,.2,1), opacity .45s ease, visibility 0s .55s;
}
.case-details > .case-details-inner {
  overflow: hidden;
  min-height: 0;
}
.case-details.open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows .55s cubic-bezier(.2,.7,.2,1), opacity .45s ease, visibility 0s;
}
.case-details-inner::before { content: ""; display: block; height: 32px; }
.case-details h4 { color: var(--white1); font-weight: 500; font-size: 16px; margin: 22px 0 8px; }
.case-details h4:first-child { margin-top: 0; }
.case-details p, .case-details li { color: var(--white2); }
.case-details li { padding-left: 16px; position: relative; margin-bottom: 6px; }
.case-details li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brown2);
}
.case-details .lead { color: var(--white1); }
.gallery-strip {
  display: flex;
  gap: 6px;
  margin: 24px 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brown2) transparent;
}
.gallery-strip img {
  height: 200px;
  width: auto;
  flex: 0 0 auto;
}

/* ---------- footer ---------- */
footer {
  position: relative;
  margin-top: 48px;
  background: var(--blue1);
  overflow: hidden;
}
.footer-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 88px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  align-items: start;
}
.footer-inner .col-title { margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-weather {
  margin-top: 8px;
  color: rgba(255,236,231,.65);
  font-size: 15px;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24"><path fill="%23FFECE7" stroke="%231F1317" stroke-width="1" d="M12 0c.9 7.4 4.6 11.1 12 12-7.4.9-11.1 4.6-12 12-.9-7.4-4.6-11.1-12-12C7.4 11.1 11.1 7.4 12 0Z"/></svg>') 11 11, auto;
}

/* ---------- видео-лайтбокс ---------- */
.case--video .case-media,
.case--video .case-title { cursor: pointer; }
.play-badge {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(31,19,23,.75);
  color: var(--white1);
  padding: 3px 10px;
  font-size: 14px;
  pointer-events: none;
}
.play-badge .spark { width: 14px; height: 14px; color: var(--blue2); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 19, 23, .55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.on { opacity: 1; }
.lightbox-frame {
  position: relative;
  padding: 5px;
  background: linear-gradient(140deg, var(--blue2), #ffd9e8 45%, var(--blue1));
  max-height: calc(100vh - 96px);
  max-width: calc(100vw - 48px);
  transform: scale(.94);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.lightbox.on .lightbox-frame { transform: scale(1); }
.lightbox-frame video {
  display: block;
  max-height: calc(100vh - 106px);
  max-width: calc(100vw - 58px);
  background: #000;
}
.lightbox-frame .frame-spark {
  position: absolute;
  width: 26px; height: 26px;
  color: var(--white1);
  filter: drop-shadow(0 0 6px rgba(255,236,231,.8));
}
.lightbox-frame .frame-spark svg { width: 100%; height: 100%; }
.lightbox-frame .frame-spark--tl { top: -14px; left: -14px; }
.lightbox-frame .frame-spark--br { bottom: -14px; right: -14px; color: var(--blue2); }
/* квадратные кнопки в духе Instagram */
.lb-btn {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 19, 23, .72);
  color: var(--white1);
  border: 1px solid rgba(255, 236, 231, .18);
  cursor: pointer;
  padding: 0;
  transition: background .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lb-btn:hover { background: var(--brown2); }
.lb-btn svg { width: 22px; height: 22px; display: block; }

.lb-controls {
  position: absolute;
  right: 12px; bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.lb-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 6;
  background: rgba(31, 19, 23, .72);
  color: var(--white1);
  font-size: 13px;
  padding: 3px 9px;
  pointer-events: none;
}
.lb-close {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 8;
}
/* стрелки одной колонкой справа, как в Instagram */
.lb-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* мобайл: вертикальная лента как reels */
.lightbox--reels { padding: 0; display: block; background: rgba(31,19,23,.92); }
.reels-scroll {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.reel {
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel video {
  max-height: 100dvh;
  max-width: 100vw;
  background: #000;
}
.lightbox--reels .lb-controls,
.lb-controls--fixed {
  position: fixed;
  right: 12px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
.lightbox--reels .lb-badge,
.lb-badge--fixed {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 12px;
}
.lightbox--reels .lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); }

/* тонкая полоса перемотки, как в рилсах */
.lb-seek {
  position: absolute;
  left: 5px; right: 5px; bottom: 5px;
  height: 20px;
  z-index: 7;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.lb-seek-track,
.lb-seek-fill {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  transition: height .15s ease;
}
.lb-seek-track { right: 0; background: rgba(255, 236, 231, .3); }
.lb-seek-fill { width: 0; background: var(--white1); }
.lb-seek-knob {
  position: absolute;
  left: 0; bottom: -2px;
  width: 8px; height: 8px;
  margin-left: -4px;
  background: var(--white1);
  opacity: 0;
  transition: opacity .15s ease;
}
.lb-seek:hover .lb-seek-track, .lb-seek.on .lb-seek-track, .lb-seek:focus-visible .lb-seek-track,
.lb-seek:hover .lb-seek-fill,  .lb-seek.on .lb-seek-fill,  .lb-seek:focus-visible .lb-seek-fill { height: 5px; }
.lb-seek:hover .lb-seek-knob, .lb-seek.on .lb-seek-knob, .lb-seek:focus-visible .lb-seek-knob { opacity: 1; }
.lb-seek:focus { outline: none; }
.lb-seek:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; }
.lb-seek--fixed {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
/* на мобайле кнопки поднимаем, чтобы не спорили с полосой */
.lightbox--reels .lb-controls,
.lb-controls--fixed { bottom: calc(34px + env(safe-area-inset-bottom, 0px)); }

/* просмотр картинок */
.lightbox-frame--img img {
  display: block;
  max-height: calc(100vh - 106px);
  max-width: calc(100vw - 58px);
  background: #2a1a20;
}
.gallery-strip img { cursor: zoom-in; }
.case:not(.case--video) .case-media img { cursor: zoom-in; }
.gallery-strip img:focus-visible,
.case-media img:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; }

/* ---------- тост «адрес скопирован» ---------- */
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 110;
  background: var(--blue2);
  color: var(--brown1);
  padding: 6px 14px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.copy-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- курсор-звёздочка ---------- */
.cursor-star {
  position: fixed;
  left: 0; top: 0;
  z-index: 90;
  width: 20px; height: 20px;
  pointer-events: none;
  color: var(--white1);
  filter: drop-shadow(0 0 6px rgba(255, 236, 231, .7));
  opacity: 0;
  transition: opacity .3s;
  display: none;
}
.cursor-star svg { width: 100%; height: 100%; display: block; }
@media (hover: hover) and (pointer: fine) {
  .cursor-star { display: block; }
}

/* ---------- reveal helpers ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.shown { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes casePop {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.case.pop { animation: casePop .5s ease both; }

/* ---------- placeholder when image missing ---------- */
.case-media.ph::after,
.hero-photo.ph::after {
  content: "изображение появится здесь";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white2); font-size: 14px;
  background: repeating-linear-gradient(45deg, #2a1a20, #2a1a20 12px, #251419 12px, #251419 24px);
}

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .hero-photo { grid-column: 1 / 3; max-width: 380px; }
  .hero-text { grid-column: 1 / 5; }
  .xp-head { grid-column: 1 / 5; }
  .xp-desc { grid-column: 1 / 5; }
  .banner-text { grid-column: 1 / 5; max-width: 640px; }
  .card-skills, .card-useful, .card-contact { grid-column: 1 / 5; max-width: 700px; }
  .case, .case--featured .case-top, .case--wide .case-top { grid-template-columns: 1fr; }
  .case-media { max-width: 560px; }
}

@media (max-width: 760px) {
  .nav { top: 10px; max-width: calc(100vw - 20px); }
  .nav .pill { font-size: 15px; }
  .nav-note { right: 50%; transform: translateX(50%); font-size: 11.5px; }
  /* пальцем должно быть легко попасть: реальные паддинги побольше */
  .pill { padding: 2px 12px; }
  .pill--cta { padding: 4px 14px; }
  .contact-actions { gap: 14px; }
  .footer-links { gap: 14px; }
  .hero-about-grid { padding-top: 90px; }
  .hero-folio { padding-top: 100px; }
  .hero-photo { grid-column: 1 / 5; max-width: 320px; }
  .wordmark { white-space: normal; word-break: keep-all; }
  .banner-grid { padding-top: 72px; padding-bottom: 72px; }
  .edu-item:nth-child(odd), .edu-item:nth-child(even) { grid-column: 1 / 5; }
  .info-card { padding: 24px 20px 28px; }
  .footer-inner { grid-template-columns: 1fr; padding-bottom: 72px; }
  .filters { gap: 24px; }
  .gallery-strip img { height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill--write .spark svg { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cursor-star { display: none !important; }
}

/* ---------- служебное ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 120;
  background: var(--white1);
  color: var(--brown1);
  padding: 8px 14px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.weather-note { display: block; font-size: 13px; color: rgba(255,236,231,.6); margin-top: 2px; }
