/* ============ FONTS ============ */
@font-face {
  font-family: 'DOV';
  src: url('../fonts/dov-regular.woff2') format('woff2'),
       url('../fonts/dov-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-light.woff2') format('woff2'),
       url('../fonts/inter-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sofia Sans Condensed';
  src: url('../fonts/sofia.woff2') format('woff2'),
       url('../fonts/sofia.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============ BASE ============ */
:root {
  --paper: #f4f2ee;
  --ink: #1a1a1a;
  --gray: #8d8a84;
  --hair: #dcd9d3;
  --display: 'DOV', 'Arial', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --cond: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 880px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

strong { font-weight: 500; }

a { color: inherit; }

/* ============ ACCEPTANCE RATE ============ */
.ar-strip {
  max-width: var(--maxw);
  margin: 0 auto clamp(48px, 8vh, 80px);
  padding: clamp(40px, 7vh, 64px) var(--pad) 0;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ar-num {
  font-family: var(--display);
  font-size: clamp(48px, 10vw, 104px);
  line-height: 1;
  color: var(--ink);
}
.ar-sub {
  font-family: var(--display);
  font-size: clamp(15px, 2.4vw, 22px);
  color: var(--gray);
  margin-top: 8px;
  margin-bottom: clamp(24px, 4vh, 40px);
  max-width: 560px;
}

/* сетка «N из 100» */
.ar-odds {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: clamp(4px, 0.8vw, 8px);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.ar-cell {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 1.5px solid var(--hair);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.ar-cell.on {
  background: var(--ink);
  border-color: var(--ink);
}

.ar-strip .btn-contact { margin-top: clamp(28px, 5vh, 44px); }
.ar-hint {
  font-family: var(--display);
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--gray);
  margin-top: 12px;
}

@media (max-width: 560px) {
  .ar-odds { grid-template-columns: repeat(20, 1fr); }
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: normal;
  line-height: 1.1;
}

/* заголовки секций — DOV */
h2 {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(20px, 3.4vw, 30px);
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* сдержанная подпись — узкий гротеск */
.label {
  font-family: var(--cond);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gray);
}

/* "+" отсутствует в DOV — рисуем его боди-шрифтом */
.plus { font-family: var(--body); }

.est {
  font-family: var(--body);
  font-size: 11px;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px dotted var(--gray);
  cursor: help;
  margin-left: 3px;
  vertical-align: super;
  line-height: 0;
}

/* ============ HEADER ============ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad);
}

.brand {
  font-family: var(--display);
  font-size: clamp(19px, 2.6vw, 24px);
  text-decoration: none;
}

.site-nav a {
  margin-left: clamp(12px, 3vw, 28px);
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }

/* ============ КОНТЕЙНЕР ============ */
.hero, .results, .about {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============ HERO ============ */
.hero {
  padding-top: clamp(56px, 12vh, 110px);
  padding-bottom: clamp(48px, 9vh, 90px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* монетка: ховер — переворот на вторую фотку */
.coin {
  width: clamp(180px, 30vw, 240px);
  height: clamp(180px, 30vw, 240px);
  margin-bottom: 26px;
  perspective: 900px;
  cursor: zoom-in;
  /* тень справа-снизу, следует за круглой формой */
  filter: drop-shadow(7px 7px 0 var(--ink));
}
.coin-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.coin:hover .coin-inner { transform: rotateY(180deg); }
.coin-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #e7e4de;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* обводка: белая жирная, затем тонкая чёрная */
  border: 6px solid #ffffff;
  box-shadow: 0 0 0 2px var(--ink);
}
.coin-front { object-position: 64% 30%; }
.coin-back { transform: rotateY(180deg); }

/* кнопка «связаться» */
.btn-contact {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 9px 26px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-contact:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.hero-title {
  font-size: clamp(26px, 4.4vw, 40px);
  margin-bottom: 8px;
}

.hero-eyebrow { margin-bottom: 0; }

/* ============ STATS ============ */
.stats {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: clamp(32px, 8vw, 80px);
  margin-top: clamp(28px, 5vh, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}

.stat-num {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  white-space: nowrap;
}
.stat-label {
  display: block;
  margin-top: 2px;
  font-family: var(--cond);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============ RESULTS ============ */
.results { padding-bottom: clamp(56px, 10vh, 100px); }

.section-head {
  text-align: center;
  margin-bottom: 28px;
}


.section-note { font-size: 12px; color: var(--gray); }

/* карусель */
.results-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 8px 12px 4px; /* место под пиксельную тень */
  /* лёгкое затухание по краям — намёк, что можно листать */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.results-grid::-webkit-scrollbar { display: none; }

/* карточка — пиксельная рамка (8-битные скруглённые углы) + жёсткая тень */
.card {
  flex: 0 0 clamp(240px, 40vw, 310px);
  scroll-snap-align: center;
  background: var(--paper);
  border-style: solid;
  border-width: 5px;
  border-image-slice: 3;
  border-image-width: 3;
  border-image-repeat: stretch;
  border-image-source: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M3 1h2v1h1v1h1v2h-1v1h-1v1H3v-1H2V6H1V4h1V3h1z" fill="%231a1a1a"/></svg>');
  box-shadow: 7px 7px 0 var(--ink);
  padding: 18px 20px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}

/* пиксельные квадраты-индикаторы (вместо стрелок) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--ink); }

.card-name {
  font-size: 26px;
  margin-bottom: 10px;
  /* пиксельный подчерк — квадратики */
  padding-bottom: 8px;
  background-image: repeating-linear-gradient(to right, var(--ink) 0 6px, transparent 6px 12px);
  background-repeat: no-repeat;
  background-size: 60px 3px;
  background-position: 0 100%;
}

.card-offers { list-style: none; }

.card-offers li { padding: 7px 0; }
.card-offers li + li { border-top: 1px solid var(--hair); }

.offer-uni { display: block; font-size: 14px; }
.offer-type {
  display: block;
  font-family: var(--cond);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.offer-secondary { opacity: 0.5; }

/* ============ GEO MAP ============ */
.geo {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 10vh, 100px);
}

.map-wrap { position: relative; }

#worldmap svg {
  display: block;
  width: 100%;
  height: auto;
}

/* страны */
.country {
  fill: #e7e5df;
  stroke: var(--paper);
  stroke-width: 0.6;
}
.country.hi {
  fill: #b3afa6;
  cursor: pointer;
  transition: fill 0.25s;
}
.country.hi:hover { fill: #8d8a84; }
.country.hi.active { fill: var(--ink); }

/* города — пиксельные квадраты */
.city {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1.5;
  pointer-events: none;
}

/* лупа */
#maplens {
  position: absolute;
  z-index: 6;
  width: 210px;
  height: 210px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--paper);
  overflow: hidden;
  pointer-events: none;
}
#maplens .lens-inner { position: absolute; }
#maplens svg { display: block; }

/* подписи городов в лупе — читаемый размер */
.city-label {
  font-family: var(--display);
  font-size: 4.2px;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 1.1px;
  letter-spacing: 0.02em;
}
#worldmap .city-label { display: none; }

@media (hover: none) {
  #maplens { display: none; } /* на тач-устройствах лупы нет */
}

/* панель с университетами выбранной страны */
.map-panel {
  margin: 20px auto 0;
  max-width: 420px;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 18px;
}
.map-panel .tip-city {
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 6px;
}
.map-panel .tip-uni {
  font-family: var(--cond);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  display: block;
  padding: 2px 0;
}

.chip-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  margin-right: 7px;
  vertical-align: -1px;
  transition: background 0.2s;
}
.map-chip.active .chip-dot { background: var(--ink); }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.map-chip {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 5px 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.map-chip:hover, .map-chip.active {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--paper);
}

/* ============ ABOUT ============ */
.about { padding-bottom: clamp(56px, 10vh, 100px); }

.about-inner {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start; /* фото прижато к верху, кнопка «связаться» помещается */
}

/* фото в стиле карточек: пиксельная рамка + жёсткая тень, без ч/б */
.about-photo {
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  background: var(--paper);
  padding: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-photo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #e7e4de;
  cursor: zoom-in;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  cursor: zoom-out;
  padding: 4vh 4vw;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.open img { transform: scale(1); }

.about-text p { max-width: 520px; margin-bottom: 12px; }

.uni-strip {
  margin-top: 18px;
  font-family: var(--cond);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
}

/* ============ NEXT CYCLE ============ */
.next-cycle { padding-bottom: clamp(48px, 8vh, 80px); }

.next-cycle h2 { margin-bottom: 12px; }
.next-cycle > p { max-width: 520px; color: var(--gray); margin-bottom: 18px; font-size: 14px; }

.next-list { list-style: none; max-width: 560px; }
.next-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 20px;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
}
.next-list li:last-child { border-bottom: 1px solid var(--hair); }

.next-name { font-family: var(--display); font-size: 14px; }
.next-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
}

/* ============ FOOTNOTE ============ */
.footnote { padding-bottom: clamp(48px, 8vh, 80px); }

.footnote p {
  max-width: 620px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--gray);
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--hair);
  background: transparent;
}

.site-footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.footer-meta {
  display: flex;
  justify-content: center;
  padding-top: 28px;
  padding-bottom: 28px;
  font-family: var(--cond);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}
.footer-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-meta a:hover { color: var(--ink); }

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ar-side { display: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 700px) {
  .card { flex-basis: 78vw; }
  .about-inner { grid-template-columns: 1fr; justify-items: center; }
  .about-photo { max-width: 240px; }
  .about-text { text-align: center; }
  .site-nav a:first-child { margin-left: 0; }

  /* хедер на телефоне: бренд сверху, навигация под ним, с воздухом */
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 14px;
  }
  .site-nav {
    display: flex;
    gap: 22px;
  }
  .site-nav a { margin-left: 0; }
}

/* ============ FOMO rebrand ============ */
.hero-logo {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(96px, 20vw, 190px);
  line-height: 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}
.hero-title { font-size: clamp(20px, 3.2vw, 30px); }

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  gap: clamp(24px, 5vw, 56px);
  margin-bottom: clamp(28px, 5vh, 44px);
}
.team figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px 2px;
}
.team-name { font-family: var(--display); font-size: 18px; }
.team-uni {
  font-family: var(--cond);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
}
.team-text { max-width: 560px; margin: 0 auto; text-align: center; }
.team-text p { margin-left: auto; margin-right: auto; }

@media (max-width: 560px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .team-name { font-size: 15px; }
}

/* ============ v4: логотип FO/MO в шапке ============ */
.site-header { align-items: center; }
.brand {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

/* ============ v4: первый экран ============ */
:root { --rose: #C8102E; }

.hero2 {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) var(--pad) clamp(28px, 5vh, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
}
.hero-rose {
  width: clamp(110px, 18vw, 180px);
  height: auto;
  image-rendering: pixelated;
  flex: 0 0 auto;
}
.hero-h1 {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(38px, 7.2vw, 72px);
  line-height: 0.98;
  margin: 8px 0 14px;
}
.hero-note {
  font-size: 14.5px;
  color: var(--gray);
  max-width: 360px;
}

/* ============ v4: услуги ============ */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(56px, 10vh, 100px);
}
.svc-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.svc {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}
.svc-tag {
  font-family: var(--cond);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rose);
}
.svc-title {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.02;
  margin: 6px 0 18px;
}
.svc-list {
  list-style: none;
  counter-reset: svc;
  margin: 0 0 12px;
}
.svc-list li {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--hair);
  font-size: 14.5px;
  line-height: 1.4;
}
.svc-list li::before {
  content: counter(svc);
  font-family: var(--display);
  font-size: 15px;
  color: var(--rose);
}
.svc-more { font-size: 13.5px; color: var(--gray); margin-bottom: 20px; }
.svc .btn-contact { margin-top: auto; align-self: flex-start; }

.svc-facts {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: 18px;
}
.fact { display: flex; flex-direction: column; }
.fact-num {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 84px);
  line-height: 1;
}
.fact-lbl {
  font-family: var(--cond);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
  margin-top: 6px;
  max-width: 150px;
}

/* 6–7: цифры качаются вверх-вниз по очереди, как в меме */
.sixseven { color: var(--rose); white-space: nowrap; }
.sixseven span { display: inline-block; }
/* 6 и 7 качаются вразнобой ~3.5 сек при наведении, потом замирают */
.svc-consult:hover .sixseven span:first-child { animation: six 0.62s ease-in-out 6; }
.svc-consult:hover .sixseven span:last-child  { animation: seven 0.86s ease-in-out 0.12s 4; }
@keyframes six   { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } 65% { transform: translateY(2px); } }
@keyframes seven { 0%,100% { transform: translateY(0); } 40% { transform: translateY(3px); } 75% { transform: translateY(-4px); } }
.sixseven span:last-child { animation-delay: -0.55s; }
@keyframes sixseven {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.svc-sub {
  font-family: var(--cond);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray);
  margin-bottom: 10px;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.chips li {
  font-size: 13px;
  border: 1.5px solid var(--ink);
  padding: 4px 10px;
  line-height: 1.3;
}

/* ============ v4: направления ============ */
.dir-head { text-align: center; margin: clamp(48px, 8vh, 72px) 0 24px; }
.dir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dir {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  background: var(--paper);
  padding: 20px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dir:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }
.dir-img {
  width: 92px;
  height: auto;
  image-rendering: pixelated;
  flex: 0 0 auto;
}
.dir-title { font-size: 22px; margin-bottom: 6px; }
.dir-geo { font-size: 14px; }
.dir-note { font-size: 13px; color: var(--gray); margin-top: 4px; }

@media (max-width: 760px) {
  .svc-grid, .dir-grid { grid-template-columns: 1fr; }
  .hero2 { flex-direction: column; text-align: center; gap: 14px; }
  .hero-note { margin: 0 auto; }
  .dir-img { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .sixseven span { animation: none; }
}

/* v5 */
.svc-range {
  display: flex; align-items: center; gap: 12px;
  margin: -6px 0 16px; padding: 10px 12px;
  border: 1.5px dashed var(--ink);
}
.svc-range-num { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--rose); white-space: nowrap; }
.svc-range-txt { font-size: 13px; line-height: 1.35; }
.dir-geo span { white-space: nowrap; }
.dir-geo { font-size: 13.5px; line-height: 1.6; }
.dir > div { min-width: 0; }
.team-cta { font-family: var(--display); font-size: 18px; margin-top: 8px; }

/* v6: курсор, волна, TG-иконка, выравнивание карточек */
*, *::before, *::after {
  cursor: url('../img/cursor.png') 0 0, auto !important;
  cursor: -webkit-image-set(url('../img/cursor.png') 1x, url('../img/cursor@2x.png') 2x) 0 0, auto !important;
  cursor: image-set(url('../img/cursor.png') 1x, url('../img/cursor@2x.png') 2x) 0 0, auto !important;
}
.click-wave {
  position: fixed;
  z-index: 9999;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 3px solid var(--rose);
  border-radius: 50%;
  pointer-events: none;
  animation: clickwave 0.55s steps(7) forwards;
}
@keyframes clickwave {
  from { transform: scale(0.4); opacity: 1; }
  to   { transform: scale(5.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .click-wave { display: none; } }

.site-nav { display: flex; align-items: center; }
.tg-link { display: inline-flex; margin-left: clamp(12px, 3vw, 24px); color: var(--ink) !important; }
.tg-link:hover { color: var(--rose) !important; }
.tg-ico { width: 22px; height: 22px; display: block; }

.svc-range { flex-wrap: wrap; row-gap: 6px; }
.svc-range .svc-range-txt { margin-right: 10px; }
.svc-consult .svc-title, .svc .svc-title { min-height: 2.04em; }

/* v7 */
.brand { align-items: center; }                 /* FO по центру над MO */
a:hover, a:focus-visible { color: var(--rose) !important; }   /* любой текст-ссылка краснеет */
.results-grid { position: relative; }            /* точка отсчёта для карусели */
.card { scroll-snap-align: center; }
