@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* палитра из брендбука «Молодой Оренбург», названия как там */
:root {
  --white: #fff;          /* ковыльный белый */
  --black: #000;          /* дикий благородный */
  --grey: #c4d2d3;        /* пасмурно сероватый */
  --blue: #597092;        /* дельфинный синий */
  --violet: #2a174e;      /* лавандово фиолетовый */
  --beige: #bdbba4;       /* бежевый одуванчиковый */
  --mint: #9fcbb0;        /* травяной бирюзовый */
  --field: #648a71;       /* полевой зелёный */
  --forest: #779849;      /* лесной зелёный */
  --mountain: #565d33;    /* горный зелёный */
  --wheat: #feb75f;       /* оренбургские колосья */
  --yellow: #fed561;      /* масляный жёлтый */
  --pumpkin: #f99c4f;     /* цветочный тыквенный */
  --wormwood: #e78f77;    /* полынный бежевый */
  --orange: #f27b41;      /* пшенично оранжевый */
  --red: #df5026;         /* солнечный рыжий */
  --brown: #bd4f02;       /* колосистый коричневый */

  --ink: #111;
  --text: #2b2b2b;
  --muted: #62625c;
  --line: #e6e6e1;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 32px);
  --top-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.55 "Geologica", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
svg { fill: currentColor; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(64px, 9vw, 120px) 0; }

.h2 {
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--black);
}
.lead { font-size: clamp(20px, 2vw, 25px); line-height: 1.4; font-weight: 500; color: var(--ink); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid transparent;
  background: none;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--orange); color: var(--black); }
.btn--accent { background: var(--orange); color: var(--black); }
.btn--accent:hover { background: var(--black); color: var(--white); }
.btn--line { border-color: var(--black); color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--white); }

/* шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: var(--top-h); }
.logo { flex: none; }
.logo img { width: auto; height: 42px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--orange); }
.nav__join { display: none; }
.top__cta { min-height: 46px; padding: 0 20px; font-size: 15px; }
.burger { display: none; }

/* первый экран */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--orange); }
.hero__title {
  margin: 22px 0 26px;
  font-size: clamp(36px, 4.4vw, 62px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -0.03em;
  color: var(--black);
}
.hero__lead { max-width: 30em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: #333; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__art { position: relative; width: 100%; aspect-ratio: 1 / 1.02; }
.shape { position: absolute; }
.hero__field { left: 16%; top: 7%; right: 0; bottom: 10%; background: var(--yellow); }
.hero__quarter { top: 0; right: 0; width: 40%; aspect-ratio: 1; transform-origin: 100% 0; }
.hero__quarter i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  border-radius: 0 0 0 100%;
  transform-origin: 100% 0;
}
.markphoto { clip-path: url(#mark-clip); aspect-ratio: 232.76 / 247.77; }
.markphoto img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo { left: 0; bottom: 0; width: 76%; }
.hero__photo img { object-position: 46% 40%; }

/* текст первого экрана выезжает на CSS, фигуры двигает GSAP в main.js */
.js-anim .hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js-anim .hero__text > :nth-child(2) { animation-delay: .08s; }
.js-anim .hero__text > :nth-child(3) { animation-delay: .16s; }
.js-anim .hero__text > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* о центре */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.about__text { display: grid; gap: 20px; max-width: 46em; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 26px;
  border-top: 2px solid var(--black);
}
.stats__title {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.stat b {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(46px, 5.6vw, 80px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--black);
}
.stat span { display: block; max-width: 22em; font-size: 16px; line-height: 1.45; color: #3a3a36; }

/* заголовок раздела со ссылкой справа */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.head__note { max-width: 25em; font-size: 18px; color: #444; }
.head__more, .dir__link, .proj__link, .place__map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}
.head__more svg, .dir__link svg, .proj__link svg, .place__map svg { width: 18px; height: 18px; transition: transform .2s; }
.head__more:hover svg, .dir__link:hover svg, .proj__link:hover svg, .place__map:hover svg { transform: translateX(4px); }

/* направления */
.dirs { background: #f4f3ee; }
.dirs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dir {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 2.6vw, 32px);
  color: var(--black);
}
.dir--green { background: var(--forest); }
.dir--pumpkin { background: var(--pumpkin); }
.dir--blue { background: var(--blue); color: var(--white); }
.dir--violet { background: var(--violet); color: var(--white); }
.dir__pic { aspect-ratio: 1; overflow: hidden; }
.dir__pic img { width: 100%; height: 100%; object-fit: cover; }
.dir__pic--circle { border-radius: 50%; }
.dir__pic--quarter { border-radius: 0 100% 0 0; }
.dir__pic--square { clip-path: polygon(0 12%, 88% 0, 100% 88%, 12% 100%); }
.dir__pic--arch { border-radius: 999px 999px 0 0; }
.dir__kind { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.dir__slogan { margin: 8px 0 14px; font-size: clamp(27px, 2.7vw, 38px); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; }
.dir p { font-size: 16px; line-height: 1.5; }
.dir__meta { margin-top: 14px; font-weight: 600; }
.dir__link { margin-top: 18px; }

/* панорама города: фото, разрезанное фигурами, как баннер в брендбуке */
.city { position: relative; height: clamp(440px, 52vw, 680px); overflow: hidden; background: var(--violet); }
.city__img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.city__cut { position: absolute; background: var(--white); }
.city__cut--a { top: 0; right: 0; width: min(30vw, 400px); aspect-ratio: 1; border-radius: 0 0 0 100%; transform-origin: 100% 0; }
.city__cut--b { bottom: 0; right: min(30vw, 400px); width: min(16vw, 220px); aspect-ratio: 1; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.city__in {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 20px;
  padding-bottom: clamp(28px, 5vw, 64px);
}
.city__logo { width: clamp(180px, 22vw, 290px); }
.city__quote {
  max-width: 24em;
  padding: 22px 26px;
  background: var(--violet);
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 500;
  line-height: 1.4;
}

/* проекты */
.proj__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj {
  --shape: var(--orange);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 136px 28px 30px;
  overflow: hidden;
  color: var(--black);
}
.proj::after { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: var(--shape); }
.proj--q1::after { border-radius: 0 0 0 100%; }
.proj--q2::after { top: 24px; right: 24px; width: 96px; height: 96px; border-radius: 100% 0 0 0; }
.proj--circle::after { top: -26px; right: -26px; width: 132px; height: 132px; border-radius: 50%; }
.proj--tri::after { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.proj--violet { background: var(--violet); color: var(--white); --shape: var(--wheat); }
.proj--yellow { background: var(--yellow); --shape: var(--orange); }
.proj--orange { background: var(--orange); --shape: var(--yellow); }
.proj--mint { background: var(--mint); --shape: var(--field); }
.proj--mountain { background: var(--mountain); color: var(--white); --shape: var(--yellow); }
.proj--brown { background: var(--brown); color: var(--white); --shape: var(--pumpkin); }
.proj--wormwood { background: var(--wormwood); --shape: var(--red); }
.proj--field { background: var(--field); --shape: var(--mint); }
.proj--grey { background: var(--grey); --shape: var(--blue); }
.proj--beige { background: var(--beige); --shape: var(--violet); }
.proj--blue { background: var(--blue); color: var(--white); --shape: var(--yellow); }
.proj--navy { background: #000033; color: var(--white); --shape: #0d92e9; }
.proj--wide { grid-column: span 2; }
.proj__when {
  position: absolute;
  top: 26px;
  left: 28px;
  max-width: calc(100% - 180px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.proj__name { margin-bottom: 12px; font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.proj p { margin-bottom: 20px; font-size: 16px; line-height: 1.5; }
.proj__link { align-self: flex-start; margin-top: auto; }

/* новости */
.news { padding-top: 0; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post__pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 18px; background: var(--grey); }
.post__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.post:hover .post__pic img { transform: scale(1.04); }
.post__date { font-size: 14px; color: var(--muted); }
.post__title { margin: 8px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--black); }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--orange); }
.post p { font-size: 16px; line-height: 1.5; color: #3a3a36; }

/* фото */
.gallery { padding-top: 0; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 12px; }
.gal__item { padding: 0; border: 0; overflow: hidden; background: var(--grey); cursor: zoom-in; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gal__item:hover img { transform: scale(1.05); }
.gal__item--wide { grid-column: span 2; }
.gal__item--tall { grid-row: span 2; }

/* присоединиться */
.join { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0; background: var(--orange); color: var(--black); }
.join__in { position: relative; }
.join__mark { position: absolute; right: -2%; top: 0; bottom: 0; width: min(42vw, 470px); height: auto; aspect-ratio: 232.76 / 247.77; margin: auto 0; fill: var(--white); }
.join__text { position: relative; max-width: 600px; }
.join__text .h2 { margin-bottom: 22px; }
.join__text > p { font-size: 19px; line-height: 1.5; }
.soc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px 0 18px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.soc svg { width: 22px; height: 22px; }
.soc:hover { background: var(--white); color: var(--black); }
.join__note { font-size: 16px; }
.join__note a { font-weight: 700; }

/* контакты */
.contacts .h2 { margin-bottom: clamp(32px, 4vw, 52px); }
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.place { padding-top: 20px; border-top: 2px solid var(--black); }
.place__kind { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.place__addr { margin: 10px 0 16px; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--black); }
.place__addr--tight { margin-bottom: 4px; }
.place__note { margin-bottom: 16px; color: var(--muted); }
.place__links { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.place__links a { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: var(--black); text-decoration: none; }
.place__links a:hover { color: var(--orange); }
.place__links svg { width: 36px; height: 36px; padding: 7px; background: var(--black); fill: var(--white); }
.place__addr a { text-decoration: none; }
.place__addr a:hover { color: var(--orange); }
.place__soc { display: flex; gap: 10px; }
.place__soc a { display: grid; place-items: center; width: 46px; height: 46px; background: var(--black); color: var(--white); transition: background-color .2s; }
.place__soc a:hover { background: var(--orange); }
.place__soc svg { width: 22px; height: 22px; }

/* подвал */
.foot { padding: 56px 0 44px; background: var(--black); color: rgba(255, 255, 255, .78); font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 40px; align-items: start; }
.foot__brand img { width: 260px; margin-bottom: 18px; }
.foot__soc { display: flex; gap: 10px; margin-top: 16px; }
.foot__soc a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: var(--white); transition: background-color .2s, color .2s; }
.foot__soc a:hover { background: var(--orange); color: var(--black); }
.foot__soc svg { width: 22px; height: 22px; }
.foot__partner p { margin-bottom: 14px; }
.foot__partner img { width: 240px; }
.foot__nav { display: grid; gap: 10px; }
.foot__nav a { text-decoration: none; }
.foot__nav a:hover { color: var(--white); }
.foot__docs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; }
.foot__docs a { color: rgba(255, 255, 255, .7); }
.foot__docs a:hover { color: var(--white); }

/* просмотр фото */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(0, 0, 0, .92);
}
.lightbox[hidden] { display: none; }
.lightbox__fig { grid-column: 2; margin: 0; text-align: center; }
.lightbox__fig img { max-width: 100%; max-height: 82vh; margin: 0 auto; }
.lightbox__fig figcaption { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.lightbox__close, .lightbox__nav { border: 0; background: none; color: var(--white); cursor: pointer; }
.lightbox__close { position: absolute; top: 12px; right: 18px; font-size: 40px; line-height: 1; }
.lightbox__nav { height: 100%; font-size: 52px; }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }

/* плашка про cookie */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  gap: 16px;
  width: min(520px, calc(100% - 48px));
  padding: 22px 24px;
  background: var(--white);
  border: 2px solid var(--black);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s, transform .35s;
}
.cookie[hidden] { display: none; }
.cookie.is-on { opacity: 1; transform: none; }
.cookie p { font-size: 15px; line-height: 1.5; color: var(--ink); }
.cookie a { font-weight: 600; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* страница политики */
.top__back { margin-left: auto; min-height: 46px; padding: 0 20px; font-size: 15px; }
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.doc__in { max-width: calc(820px + var(--pad) * 2); }
.doc__title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; line-height: 1.02; letter-spacing: -0.025em; color: var(--black); }
.doc__date { margin: 14px 0 8px; color: var(--muted); }
.doc h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--black); }
.doc p, .doc li { font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.doc ul + p { margin-top: 14px; }
.doc ul.doclist { display: block; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.doclist li { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.doclist a { font-weight: 600; }
.doclist span { flex: none; font-size: 14px; color: var(--muted); white-space: nowrap; }
.doc a { font-weight: 600; }
.doc__state { margin: 18px 0 14px; padding: 16px 20px; background: #f4f3ee; }
.doc .eyebrow { margin-bottom: 16px; }
.doc__intro { max-width: 46em; margin: 18px 0 8px; font-size: 19px; line-height: 1.55; color: #333; }
.nlist { display: grid; gap: 56px; margin-top: clamp(36px, 5vw, 64px); }
.nitem { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 40px; border-top: 2px solid var(--black); scroll-margin-top: calc(var(--top-h) + 16px); }
.nitem__pic { aspect-ratio: 3 / 2; overflow: hidden; background: var(--grey); }
.nitem__pic img { width: 100%; height: 100%; object-fit: cover; }
.doc h2.nitem__title { margin: 8px 0 12px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.nitem__lead { font-size: 18px; font-weight: 600; color: var(--ink); }
.nitem__text { margin-top: 14px; }
.nitem__text p { font-size: 16px; line-height: 1.6; color: #333; }
.nitem__text p + p { margin-top: 12px; }
.nitem:target .nitem__title { color: var(--orange); }
.foot--short { padding: 28px 0; }
.foot--short a { color: var(--white); }

/* логотипы для светлого и темного фона: в шапке светлый, в подвале темный */
.top .on-dark, .foot .on-light { display: none; }

/* кнопка и панель версии для слабовидящих */
.a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
}
.a11y-btn svg { width: 26px; height: 26px; flex: none; }
.a11y-btn:hover { color: var(--orange); }
.a11y-bar { border-top: 2px solid var(--black); background: var(--white); }
.a11y-bar[hidden] { display: none; }
.a11y-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.a11y-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a11y-group > span { margin-right: 4px; font-weight: 700; }
.a11y-bar button {
  min-width: 46px;
  min-height: 46px;
  padding: 0 12px;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.a11y-bar button[aria-pressed="true"] { outline: 4px solid var(--orange); outline-offset: 2px; }
.a11y-exit { margin-left: auto; }

/* режим для слабовидящих */
.a11y-s1 { --a11y-fs: 20px; }
.a11y-s2 { --a11y-fs: 25px; }
.a11y-s3 { --a11y-fs: 30px; }
html.a11y body { font-size: var(--a11y-fs) !important; }
html.a11y body * { font-size: 1em !important; line-height: 1.5 !important; letter-spacing: normal !important; text-transform: none !important; }
html.a11y h1, html.a11y .hero__title, html.a11y .doc__title { font-size: 2em !important; line-height: 1.15 !important; }
html.a11y h2, html.a11y .h2, html.a11y .stat b { font-size: 1.6em !important; line-height: 1.2 !important; }
html.a11y h3 { font-size: 1.25em !important; }
html.a11y .a11y-bar .a11y-big { font-size: 1.25em !important; }
html.a11y .a11y-bar .a11y-huge { font-size: 1.5em !important; }
html.a11y-sp2 body * { letter-spacing: .05em !important; word-spacing: .1em !important; }
html.a11y-sp3 body * { letter-spacing: .1em !important; word-spacing: .2em !important; }

html.a11y .top { position: static; }
html.a11y .top__in { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
html.a11y .nav { flex-wrap: wrap; }
html.a11y .hero__art, html.a11y .city, html.a11y .join__mark,
html.a11y .proj::after, html.a11y .eyebrow::before { display: none !important; }
html.a11y .hero__in, html.a11y .about__grid, html.a11y .stats, html.a11y .dirs__grid, html.a11y .dir,
html.a11y .proj__grid, html.a11y .news__grid, html.a11y .contacts__grid, html.a11y .foot__in,
html.a11y .nitem { grid-template-columns: 1fr !important; }
html.a11y .proj--wide, html.a11y .gal__item--wide, html.a11y .gal__item--tall { grid-column: auto !important; grid-row: auto !important; }
html.a11y .gal { grid-template-columns: repeat(2, 1fr) !important; grid-auto-rows: auto !important; }
html.a11y .gal__item { aspect-ratio: 3 / 2; }
html.a11y .proj { min-height: 0; padding-top: 28px; }
html.a11y .proj__when { position: static; max-width: none; margin-bottom: 8px; }
html.a11y .dir__pic { width: min(320px, 100%); }
html.a11y .reveal { opacity: 1 !important; transform: none !important; }
html.a11y a { text-decoration: underline !important; }
html.a11y .btn, html.a11y .soc, html.a11y .place__links svg, html.a11y .place__soc a { border: 2px solid currentColor !important; }
html.a11y :focus-visible { outline: 4px solid currentColor !important; outline-offset: 3px; }
html.a11y .burger span { background: currentColor !important; }

/* цветовые схемы */
html.a11y-bw body, html.a11y-bw body * { background-color: #fff !important; color: #000 !important; border-color: #000 !important; }
html.a11y-wb body, html.a11y-wb body * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-blue body, html.a11y-blue body * { background-color: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }
html.a11y-beige body, html.a11y-beige body * { background-color: #f7f3d6 !important; color: #4d4b43 !important; border-color: #4d4b43 !important; }
html.a11y svg { fill: currentColor !important; }
.a11y-bar .sw-bw { background-color: #fff !important; color: #000 !important; border-color: #000 !important; }
.a11y-bar .sw-wb { background-color: #000 !important; color: #fff !important; border-color: #000 !important; }
.a11y-bar .sw-blue { background-color: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }
.a11y-bar .sw-beige { background-color: #f7f3d6 !important; color: #4d4b43 !important; border-color: #4d4b43 !important; }

/* на светлых схемах в подвале черные логотипы, на черной схеме в шапке белый */
html.a11y-wb .top .on-light { display: none; }
html.a11y-wb .top .on-dark { display: block; }
html.a11y-bw .foot .on-dark, html.a11y-blue .foot .on-dark, html.a11y-beige .foot .on-dark { display: none; }
html.a11y-bw .foot .on-light, html.a11y-blue .foot .on-light, html.a11y-beige .foot .on-light { display: block; }

/* картинки выключены */
html.a11y-noimg main img, html.a11y-noimg .gallery, html.a11y-noimg .dir__pic,
html.a11y-noimg .post__pic, html.a11y-noimg .nitem__pic { display: none !important; }

/* появление при прокрутке; класс js-anim ставит скрипт в head */
.js-anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .a11y-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .top__in { gap: 22px; }
}

@media (max-width: 1000px) {
  .top__cta { display: none; }
  .a11y-btn { margin-left: auto; }
  .burger {
    display: grid;
    gap: 7px;
    align-content: center;
    width: 46px;
    height: 46px;
    margin-left: 6px;
    padding: 0 10px;
    border: 0;
    background: var(--black);
    cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--white); transition: transform .25s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    position: fixed;
    inset: var(--top-h) 0 0 0;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 28px var(--pad);
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 8px 0; font-size: 28px; font-weight: 800; }
  .nav__join { display: block; margin-top: 18px; color: var(--orange) !important; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; width: 100%; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dirs__grid { grid-template-columns: 1fr; }
  .proj__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .gal__item--wide, .gal__item--tall { grid-column: auto; grid-row: auto; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .nitem { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__nav { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 22px; }
  .join__mark { position: relative; top: auto; bottom: auto; right: auto; display: block; width: 110px; margin: 0 0 28px; }
}

@media (max-width: 640px) {
  :root { --top-h: 64px; }
  body { font-size: 16px; }
  .logo img { height: 36px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .stats { gap: 24px 18px; }
  .stat span { font-size: 15px; }
  .dir { grid-template-columns: 1fr; gap: 20px; }
  .dir__pic { width: 62%; }
  .proj__grid, .news__grid, .contacts__grid, .foot__in { grid-template-columns: 1fr; }
  .doclist li { flex-direction: column; gap: 4px; }
  .proj--wide { grid-column: auto; }
  .proj { min-height: 0; }
  .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .city { height: 520px; }
  .city__cut--a { width: 34vw; }
  .city__cut--b { right: 34vw; width: 22vw; }
  .foot__nav { grid-auto-flow: row; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .cookie .btn { flex: 1 1 auto; }
  .lightbox__nav { font-size: 40px; }
}


/* ===== ВАРИАНТ V3: ближе к брендбуку =====
   Правило брендбука (стр. 3): фигуры не мельчить и не ставить много в один макет.
   Поэтому на каждом экране одна-две крупные фигуры тон в тон, как на их баннере,
   «юбке сцены» и наклейках на тумбы. */

/* стикеры из стикерпака брендбука */
.sticker { position: absolute; z-index: 2; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22)); transition: rotate .35s cubic-bezier(.2, .7, .2, 1), scale .35s cubic-bezier(.2, .7, .2, 1); }
.sticker:hover { rotate: 0deg; scale: 1.06; }
.js-anim .sticker.reveal { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), rotate .35s, scale .35s; }

/* первый экран: поле «Оренбургские колосья» и один крупный знак с фото */
.hero--v3 { position: relative; display: flex; align-items: center; min-height: min(84vh, 760px); padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 9vw, 128px); background: var(--wheat); overflow: hidden; }
.hero--v3 .hero__in { display: block; position: relative; z-index: 1; }
.hero--v3 .hero__text { max-width: min(600px, 50vw); }
.hero--v3 .hero__lead { color: #2b2b2b; }
.hero--v3 .hero__art { position: absolute; right: -3vw; bottom: -9%; width: min(48vw, 680px); aspect-ratio: auto; }
.hero--v3 .hero__photo { position: relative; left: auto; bottom: auto; width: 100%; }
.hero__fresh { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 32px; padding: 8px 16px 8px 8px; background: var(--white); color: var(--black); font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; }
.hero__fresh span { flex: none; padding: 5px 10px; background: var(--black); color: var(--white); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.hero__fresh svg { flex: none; width: 18px; height: 18px; transition: transform .2s; }
.hero__fresh:hover svg { transform: translateX(4px); }

/* о центре: стикер под заголовком */
.about__grid { position: relative; }
.sticker--platok { left: 0; top: 170px; width: 200px; rotate: -8deg; }

/* направления: карточка цвета, одна огромная фигура тон в тон, крупный слоган */
.dir { display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-height: 380px; padding: clamp(26px, 3vw, 40px); overflow: hidden; }
.dir__body { position: relative; z-index: 1; max-width: 28em; }
.dir__shape { position: absolute; pointer-events: none; }
.dir__slogan { font-size: clamp(32px, 3.4vw, 52px); }
.dir--green { background: var(--mint); color: var(--black); }
.dir--green .dir__shape { top: -150px; right: -120px; width: 400px; aspect-ratio: 1; border-radius: 50%; background: var(--field); }
.dir--pumpkin { background: var(--pumpkin); color: var(--black); }
.dir--pumpkin .dir__shape { top: 0; right: 0; width: 360px; aspect-ratio: 1; border-radius: 0 0 0 100%; background: var(--orange); }
.dir--blue { background: var(--grey); color: var(--black); }
.dir--blue .dir__shape { top: 0; right: 0; width: 320px; aspect-ratio: 1; clip-path: polygon(0 0, 100% 0, 100% 100%); background: var(--blue); }
.dir--violet { background: var(--violet); color: var(--white); }
.dir--violet .dir__shape { top: -40px; right: -60px; width: 300px; height: 300px; border-radius: 0 0 150px 150px; background: var(--blue); }

/* флагманские проекты: у каждого свое лицо */
.proj--sg, .proj--nn, .proj--leto, .proj--zima, .proj--tk, .proj--most, .proj--dobro { justify-content: flex-end; min-height: 380px; padding: 30px 30px 32px; color: var(--white); }
.proj--sg::after, .proj--nn::after, .proj--leto::after, .proj--zima::after, .proj--tk::after, .proj--most::after { display: none; }
.proj--sg .proj__link, .proj--nn .proj__link, .proj--leto .proj__link, .proj--zima .proj__link, .proj--tk .proj__link, .proj--most .proj__link, .proj--dobro .proj__link { margin-top: 0; }
.proj__logo { position: relative; z-index: 1; display: block; height: auto; margin-bottom: auto; padding-bottom: 24px; }
.proj--sg { background: #000033 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%2300bdf1' stroke-opacity='.2' stroke-width='7'%3E%3Cpath d='M18 46a16 16 0 0 1 32 0'/%3E%3Ccircle cx='104' cy='40' r='19'/%3E%3Cpath d='M20 130c14-2 22-8 22-16a13 13 0 0 0-25-4'/%3E%3Cpath d='M126 112a24 24 0 1 0-24 24c0-14 8-22 24-24'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 150px 150px; }
.proj__logo--sg { width: min(320px, 70%); }
.proj--nn { background: var(--red); }
.proj__logo--nn { width: 150px; }
.proj__wave { position: absolute; top: 0; left: 0; width: 100%; height: 230px; fill: none; stroke: #f6e3ee; stroke-width: 16px; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .9; }
.proj--leto { background: #6152bb; }
.proj--most { background: var(--violet); }
.sticker--most { position: relative; width: min(280px, 82%); margin: 0 0 auto -6px; padding-bottom: 20px; rotate: -4deg; }
.proj--dobro { background: var(--field); }
.proj--dobro::after { top: -150px; right: -120px; width: 340px; height: 340px; border-radius: 50%; background: var(--forest); }
.proj--sg > *, .proj--nn > *, .proj--leto > *, .proj--zima > *, .proj--tk > *, .proj--dobro > * { position: relative; z-index: 1; }
.proj .proj__wave { position: absolute; z-index: 0; }

/* новости: первая крупно */
.news__grid .post:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: clamp(24px, 4vw, 56px); }
.news__grid .post:first-child .post__pic { grid-column: 1; grid-row: 1 / -1; margin: 0; }
.news__grid .post:first-child .post__date { grid-column: 2; grid-row: 2; }
.news__grid .post:first-child .post__title { grid-column: 2; grid-row: 3; font-size: clamp(26px, 2.6vw, 36px); }
.news__grid .post:first-child p { grid-column: 2; grid-row: 4; font-size: 18px; }

/* фото: стикер у заголовка */
.gallery .head { position: relative; }
.sticker--gulyal { left: 170px; top: -54px; width: 150px; rotate: 8deg; }

/* «Хочешь с нами?» и контакты: поле колосьев и огромный знак тон в тон, как их баннер */
.join--v3 { background: var(--wheat); }
.join--v3 .anchor { position: absolute; top: 0; }
.join__bigmark { position: absolute; top: -16%; right: -10%; width: min(66vw, 860px); height: auto; aspect-ratio: 232.76 / 247.77; fill: var(--orange); pointer-events: none; }
.join--v3 .join__in { position: relative; z-index: 1; }
.join--v3 .join__text { max-width: 560px; }
.join--v3 .contacts__grid { margin-top: clamp(40px, 5vw, 64px); }
.join--v3 .place { border-top-color: var(--black); }
.join--v3 .place__kind { color: #3a3a36; }
.sticker--oren { top: clamp(40px, 5vw, 64px); right: 12%; width: 150px; rotate: 6deg; }

/* версия для слабовидящих: декор прячем */
html.a11y .sticker, html.a11y .join__bigmark, html.a11y .dir__shape, html.a11y .proj__wave, html.a11y .proj--dobro::after { display: none !important; }
html.a11y .proj--sg { background-image: none !important; }
html.a11y .hero--v3 { min-height: 0; }
html.a11y .news__grid .post:first-child { display: block !important; grid-column: auto !important; }

@media (max-width: 1100px) {
  .sticker--oren { right: 4%; width: 140px; }
}

@media (max-width: 900px) {
  .hero--v3 { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero--v3 .hero__art { order: 2; }
  .hero--v3 .hero__text { max-width: none; }
  .hero--v3 .hero__art { position: relative; right: auto; bottom: auto; width: min(560px, 88%); margin: 40px -6vw -14% auto; }
  .sticker--platok { left: auto; right: 0; top: -6px; width: 130px; }
  .news__grid .post:first-child { display: block; grid-column: 1 / -1; }
  .news__grid .post:first-child .post__pic { margin-bottom: 18px; }
  .join__bigmark { top: auto; bottom: -12%; right: -30%; width: 90vw; }
  .sticker--oren { top: 40px; right: 16px; width: 110px; }
  .join--v3 .join__text { max-width: none; padding-right: 120px; }
}

@media (max-width: 640px) {
  .dir { min-height: 0; padding-top: 128px; }
  .dir--green .dir__shape { top: -150px; right: -110px; width: 280px; }
  .dir--pumpkin .dir__shape, .dir--blue .dir__shape { width: 170px; }
  .dir--violet .dir__shape { top: -50px; right: -40px; width: 170px; height: 170px; }
  .proj--sg, .proj--nn, .proj--leto, .proj--zima, .proj--tk, .proj--most, .proj--dobro { min-height: 340px; }
  .news__grid .post:first-child { grid-column: auto; }
  .sticker--platok, .sticker--gulyal { display: none; }
  .join--v3 .join__text { padding-right: 96px; }
  .sticker--oren { width: 92px; }
}

/* проекты, которые центр поддерживает: белая плашка, чтобы не путать с флагманскими */
.support { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-top: 18px; padding: 28px 30px; border: 2px solid var(--black); }
.support__text { max-width: 760px; }
.support__kind { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.support__name { margin: 8px 0 10px; font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--black); }
.support p { font-size: 16px; line-height: 1.5; }
.support .proj__link { flex: none; margin-top: 0; }

/* страница «Структура и контакты» */
.unit { margin-top: clamp(36px, 4vw, 52px); }
.doc .unit h2 { margin: 0 0 12px; }
.doc a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 641px) {
  .staff { table-layout: fixed; }
  .staff tr > :nth-child(1) { width: 40%; }
  .staff tr > :nth-child(2) { width: 36%; }
  .staff tr > :nth-child(3) { width: 24%; }
}
.unit__meta { margin-bottom: 14px; color: #3a3a36; }
.unit__meta a, .staff a { font-weight: 600; text-decoration: none; }
.unit__meta a:hover, .staff a:hover { color: var(--orange); }
.unit__group { margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 2px solid var(--black); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.unit__group + .unit { margin-top: 12px; }
.staff { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.staff th, .staff td { padding: 12px 18px 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.staff thead th { padding-top: 0; border-top: 0; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.staff tbody th { width: 40%; font-weight: 600; color: var(--ink); }
.staff td:last-child { padding-right: 0; white-space: nowrap; }

/* в режиме для слабовидящих белые логотипы на карточках пропадали бы на белом */
html.a11y .proj__logo, html.a11y .proj__mostlogo { display: none !important; }

@media (max-width: 640px) {
  .support { padding: 22px; }
  .staff thead { display: none; }
  .staff tr { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .staff th, .staff td { display: block; width: auto !important; padding: 2px 0; border: 0; }
  .staff td:last-child { white-space: normal; }
}

.proj__logo--most { width: min(300px, 86%); }

/* правки Коли от 31.10: кнопки первого экрана, тест, выгоды направлений, статусы проектов */
.btn svg { flex: none; width: 20px; height: 20px; }

.quiz { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0; background: var(--violet); color: var(--white); }
.quiz::before { content: ""; position: absolute; right: -150px; top: -170px; width: 440px; aspect-ratio: 1; border-radius: 50%; background: var(--blue); }
.quiz__in { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.quiz__kind { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wheat); }
.quiz .h2 { margin: 14px 0 20px; color: var(--white); }
.quiz__intro > p:last-child { max-width: 24em; font-size: 18px; line-height: 1.5; }
.quiz__play { min-height: 470px; padding: clamp(24px, 3vw, 36px); background: var(--white); color: var(--black); }
.quiz__nojs { font-size: 16px; }
.quiz__nojs a { font-weight: 700; }
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; }
.quiz__step { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quiz__back, .quiz__again { padding: 4px 0; border: 0; background: none; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiz__back:hover, .quiz__again:hover { color: var(--orange); }
.quiz__bar { height: 6px; margin: 12px 0 24px; background: var(--line); }
.quiz__bar i { display: block; height: 100%; background: var(--orange); transition: width .3s; }
.quiz__q { font-size: clamp(22px, 2.1vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; outline: none; }
.quiz__opts { display: grid; gap: 10px; margin-top: 22px; }
.quiz__opt {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--black);
  background: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.quiz__opt:hover { background: var(--yellow); }
.quiz__opt.is-picked { background: var(--black); color: var(--white); }
.quiz__res { font-size: clamp(28px, 3vw, 42px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; outline: none; }
.quiz__say { margin-top: 16px; font-size: 19px; line-height: 1.45; }
.quiz__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.quiz__acts .btn { white-space: normal; text-align: center; }
.quiz__more { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.quiz__more a { font-weight: 700; color: var(--black); }

.dir__gain { margin-top: 14px; font-weight: 700; }
.dir__btn { margin-top: 22px; min-height: 48px; padding: 0 22px; background: var(--black); color: var(--white); }
.dir__btn:hover { background: var(--white); color: var(--black); }
.dir--blue .dir__btn, .dir--violet .dir__btn { background: var(--white); color: var(--black); }
.dir--blue .dir__btn:hover, .dir--violet .dir__btn:hover { background: var(--orange); }

.badge {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.badge i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--grey); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.badge--open i { background: var(--forest); }
.badge--soon i { background: var(--yellow); }
.proj__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: auto; }
.proj__acts .proj__link { margin-top: 0; }
.proj__acts [data-when] { display: none; }
.proj[data-status="open"] [data-when~="open"],
.proj[data-status="soon"] [data-when~="soon"],
.proj[data-status="closed"] [data-when~="closed"] { display: inline-flex; }
.proj__btn { min-height: 48px; padding: 10px 20px; background: var(--black); color: var(--white); white-space: normal; text-align: left; }
.proj__btn:hover { background: var(--white); color: var(--black); }
.proj--navy .proj__btn, .proj--blue .proj__btn { background: var(--white); color: var(--black); }
.proj--navy .proj__btn:hover, .proj--blue .proj__btn:hover { background: var(--orange); }

.modal {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 34px 30px 30px;
  border: 0;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  overflow: auto;
}
.modal::backdrop { background: rgba(17, 17, 17, .6); }
html.modal-open { overflow: hidden; }
.modal__close { position: absolute; top: 6px; right: 12px; padding: 4px; border: 0; background: none; font-size: 36px; line-height: 1; color: var(--black); cursor: pointer; }
.modal__kind { padding-right: 36px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.modal__title { margin: 10px 0 12px; font-size: 28px; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--black); }
.modal__text { font-size: 16px; line-height: 1.5; }
.notify { display: grid; gap: 16px; margin-top: 22px; }
.notify[hidden] { display: none; }
.notify__field span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.notify__field input { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid var(--black); border-radius: 0; background: var(--white); font: inherit; font-size: 16px; color: var(--black); }
.notify__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: #3a3a36; cursor: pointer; }
.notify__agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); }
.notify__agree a { font-weight: 600; }
.notify .btn { justify-self: start; }
.notify__msg { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--red); }
.notify__msg:empty { display: none; }
.notify__msg.is-ok { color: var(--ink); font-weight: 600; }
.modal__alt { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.modal__alt a { font-weight: 600; color: var(--ink); }

html.a11y .quiz::before { display: none !important; }
html.a11y .quiz__in { grid-template-columns: 1fr !important; }
html.a11y .quiz__play { min-height: 0; }
html.a11y .badge { position: static; align-self: flex-start; margin-bottom: 12px; }
html.a11y .proj__mostlogo { display: none !important; }

@media (max-width: 900px) {
  .quiz__in { grid-template-columns: 1fr; }
  .quiz__play { min-height: 0; }
  .quiz::before { right: -140px; top: -190px; width: 320px; }
}
@media (max-width: 640px) {
  .quiz__play { padding: 22px 18px; }
  .quiz__opt { padding: 12px 14px; font-size: 15px; }
  .badge { left: 22px; }
  .modal { padding: 30px 20px 22px; }
  .modal__title { font-size: 24px; }
}

/* v3: текст первого экрана шире, на сером поле «Медиа» кнопка черная, на цветных проектах белая */
@media (min-width: 901px) {
  .hero--v3 .hero__text { max-width: min(640px, 52vw); }
}
.hero--v3 .hero__actions + .hero__fresh { margin-top: 26px; }
.js-anim .hero__text > :nth-child(5) { animation-delay: .32s; }
.dir--blue .dir__btn { background: var(--black); color: var(--white); }
.dir--blue .dir__btn:hover { background: var(--white); color: var(--black); }
.proj--sg, .proj--nn, .proj--leto, .proj--zima, .proj--tk, .proj--most, .proj--dobro { padding-top: 82px; }
.proj .badge { top: 28px; left: 30px; }
.proj--sg .proj__btn, .proj--nn .proj__btn, .proj--leto .proj__btn, .proj--zima .proj__btn, .proj--tk .proj__btn, .proj--most .proj__btn, .proj--dobro .proj__btn { background: var(--white); color: var(--black); }
.proj--sg .proj__btn:hover, .proj--nn .proj__btn:hover, .proj--leto .proj__btn:hover, .proj--zima .proj__btn:hover, .proj--tk .proj__btn:hover, .proj--most .proj__btn:hover, .proj--dobro .proj__btn:hover { background: var(--wheat); }
html.a11y .proj--sg, html.a11y .proj--nn, html.a11y .proj--leto, html.a11y .proj--zima, html.a11y .proj--tk, html.a11y .proj--most, html.a11y .proj--dobro { padding-top: 28px; }

@media (max-width: 640px) {
  .proj .badge { left: 22px; }
  .proj--sg, .proj--nn, .proj--leto, .proj--zima, .proj--tk, .proj--most, .proj--dobro { padding-top: 76px; }
}

/* кнопки и выгоды удлинили карточки, текст поднялся: фигуры поменьше, чтобы мелкий текст не ложился на них */
@media (min-width: 641px) {
  .dir--blue .dir__shape { width: 240px; }
}

/* официальные баннеры над подвалом: Год единства и «Решаем вместе» от Госуслуг */
.official { padding: clamp(36px, 5vw, 56px) 0; background: var(--white); }
.official__in { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 40px); }
.official__year { flex: none; }
.official__year img { display: block; width: auto; height: 296px; }
.official__pos { flex: 1 1 auto; max-width: 720px; min-width: 0; }
.official #js-show-iframe-wrapper { min-width: 0; }
html.a11y .official__in { flex-direction: column; align-items: flex-start; }
html.a11y .official__pos { width: 100%; }

@media (max-width: 760px) {
  .official__in { flex-direction: column; align-items: stretch; }
  .official__year { align-self: center; }
  .official__year img { height: 220px; }
  .official__pos { max-width: none; }
}

/* Лето и Зима в Оренбурге: логотипы и одна крупная фигура из их брендбуков */
.proj--zima { background: #1f2942; }
.proj__logo--leto { width: min(260px, 70%); }
.proj__logo--zima { width: min(280px, 78%); }
.proj .proj__fig { position: absolute; z-index: 0; height: auto; pointer-events: none; }
.proj--leto .proj__fig--a { top: -56px; right: -56px; width: 176px; }
.proj--zima .proj__fig--a { top: -56px; right: -56px; width: 164px; }
html.a11y .proj__fig { display: none !important; }
@media (max-width: 640px) {
  .proj--leto .proj__fig--a { top: -40px; right: -40px; width: 150px; }
  .proj--zima .proj__fig--a { top: -36px; right: -36px; width: 140px; }
}

/* 02.11: «Территория коммуникаций» широкой карточкой на трех колонках, на двух обычной */
.proj--wide3 { grid-column: span 2; }
@media (max-width: 900px) { .proj--wide3 { grid-column: auto; } }
html.a11y .proj--wide3 { grid-column: auto !important; }

/* Добро.Центр по франшизе Добро.рф: кобрендинг ВЦО | добро.центр, фиолетовый и рыжий */
.proj__cobrand { display: flex; align-items: center; gap: 16px; }
.proj__cobrand i { flex: none; align-self: stretch; width: 1px; margin: 6px 0; background: #540575; }
.proj__vco { flex: none; width: 66px; height: auto; }
.proj__dc { width: min(190px, 52%); height: auto; }
html.a11y .proj__cobrand { display: none !important; }
.proj--dobro { background: #efdbb2; color: var(--black); }
.proj--dobro::after { display: none; }
.proj--dobro .proj__btn { background: #540575; color: var(--white); }
.proj--dobro .proj__btn:hover { background: #ff6614; color: var(--white); }
.dir--dobro { background: #540575; color: var(--white); }
.dir--dobro .dir__btn { background: var(--white); color: #540575; }
.dir--dobro .dir__btn:hover { background: #ff6614; color: var(--white); }

/* «Территория коммуникаций»: их светло-серый фон и надпись */
.proj--tk { background: #e9e8ee; color: #1d1530; }
.proj--tk .proj__btn { background: #4b2fa0; color: var(--white); }
.proj--tk .proj__btn:hover { background: #7a52d0; color: var(--white); }

/* лента ВКонтакте под новостями: грузится с vk.com только после согласия или по кнопке */
.vkfeed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 2px solid var(--black); }
.vkfeed__kind { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vkfeed__title { margin: 8px 0 12px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--black); }
.vkfeed__text p { font-size: 17px; line-height: 1.5; }
.vkfeed__text .btn { margin-top: 22px; }
.vkfeed__box { position: relative; min-height: 560px; background: #f4f3ee; }
.vkfeed__stub { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--muted); }
.vkfeed.is-loaded .vkfeed__box { background: none; }
@media (max-width: 900px) { .vkfeed { grid-template-columns: 1fr; } .vkfeed__box { min-height: 520px; } }
html.a11y .vkfeed { grid-template-columns: 1fr; }

/* подвал: ведомства и Добро.рф мелко, рядом с учредителем */
.foot__orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; }
.foot__org { display: block; opacity: .72; transition: opacity .2s; }
.foot__org:hover { opacity: 1; }
.foot__partner .foot__org img { width: auto; }
.foot__partner .foot__org--mo img { height: 50px; }
.foot__partner .foot__org--rm img { height: 19px; }
.foot__partner .foot__org--dobro img { height: 24px; }

/* плавающая кнопка связи: телефоны и планшеты, после первого экрана */
.fab { display: none; }
@media (max-width: 900px) {
  .fab { position: fixed; right: 16px; bottom: calc(16px + var(--lift, 0px)); z-index: 80; display: block; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, bottom .25s; }
  .fab.is-on { opacity: 1; visibility: visible; transform: none; }
  body.menu-open .fab { display: none; }
}
.fab__btn { display: grid; place-items: center; width: 58px; height: 58px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: var(--orange); color: var(--black); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); cursor: pointer; }
.fab__btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.fab__x, .fab.is-open .fab__ico { display: none; }
.fab.is-open .fab__x { display: block; }
.fab__menu { min-width: 240px; margin: 0 0 12px; padding: 8px 0; list-style: none; background: var(--white); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.fab__menu a { display: block; padding: 12px 20px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.fab__menu a:hover, .fab__menu a:focus-visible { background: #f4f3ee; }
html.a11y .fab__btn { box-shadow: none; border: 2px solid currentColor; }

/* Лето по Вере: рыжая основа, желтый цветок; на рыжем текст черный, так читается лучше */
.proj--leto { background: #f85009; color: var(--black); }
.proj__logo--tk { width: min(360px, 78%); }
.proj--tk .proj__ribbon { position: absolute; top: 0; right: 0; z-index: 0; width: min(330px, 50%); height: auto; pointer-events: none; }
.proj--dobro { padding-top: 30px; }
.proj--dobro .proj__cobrand { margin-bottom: auto; padding-bottom: 24px; }
.dir--dobro .dir__heart { top: -46px; right: -80px; width: 400px; height: auto; fill: #ff6614; }
html.a11y .proj__ribbon, html.a11y .dir__heart { display: none !important; }
@media (max-width: 900px) {
  .proj--tk .proj__ribbon { width: 38%; }
}
@media (max-width: 640px) {
  .dir--dobro .dir__heart { top: -30px; right: -54px; width: 240px; }
}

/* лига КВН: фон в стиле их афиш (темный, неоновые дуги), пока нет файла обложки из ВК */
.support { position: relative; overflow: hidden; border: 0; background: #14041f; color: rgba(255, 255, 255, .86); }
.support::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(ellipse 60% 120% at 82% 135%, transparent 0 22px, rgba(214, 72, 255, .55) 23px 25px, transparent 26px 40px),
              radial-gradient(ellipse 45% 110% at 82% 125%, rgba(190, 50, 255, .6), transparent 72%); }
.support > * { position: relative; }
.support__kind { color: rgba(255, 255, 255, .7); }
.support__name { color: var(--white); }
.support .proj__link { color: var(--white); }
html.a11y .support::before { display: none !important; }

.dir--dobro .dir__heart { top: -20px; right: -70px; width: 280px; }
@media (max-width: 640px) {
  .dir--dobro .dir__heart { top: -24px; right: -50px; width: 220px; }
}

.vkfeed__show[hidden] { display: none; }
.vkfeed.is-failed { grid-template-columns: 1fr; }
.vkfeed.is-failed .vkfeed__box { display: none; }
.foot__partner .foot__org--mo img { height: 58px; }

/* 02.11: в шапке только глаз, подпись всплывает при наведении (Вера) */
.a11y-btn { position: relative; }
.top .a11y-btn span { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60; width: auto; height: auto; overflow: visible; clip: auto; padding: 7px 12px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; opacity: 0; visibility: hidden; transform: translate(-50%, -4px); pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s; }
.top .a11y-btn:hover span, .top .a11y-btn:focus-visible span { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 02.11: заголовок первого экрана стал длиннее (текст Веры), шрифт меньше */
.hero__title { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; }
.hero--v3 .hero__text { max-width: min(660px, 47vw); }
/* стикер «Платок в сердце» больше не наезжает на цифры: между заголовком и текстом */
@media (min-width: 901px) {
  .sticker--platok { left: calc(40% - 150px); top: -10px; width: 150px; rotate: 8deg; }
}

/* слоган Веры в две строки: сердце уходит в правый нижний угол, на телефоне остается сверху */
@media (min-width: 641px) {
  .dir--dobro .dir__heart { top: auto; bottom: -40px; right: -60px; width: 300px; }
}

.gal__item { position: relative; display: block; }
.lightbox__fig figcaption a { margin-left: 14px; color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gallery .head__main { max-width: 720px; }
.gallery .head__lead { margin-top: 14px; font-size: 18px; line-height: 1.5; color: #444; }
.gallery .head__t { position: relative; }
/* часы работы под адресом */
.place__hours { margin: 0 0 16px; font-size: 17px; color: #3a3a36; }
/* в меню подвала семь пунктов: на планшете они переносятся, а не уезжают за край */
@media (max-width: 900px) { .foot__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; } }
@media (max-width: 640px) {
  .foot__nav { display: grid; }
}
.gallery .head__t .sticker--gulyal { left: calc(100% + 16px); top: -62px; width: 124px; }

/* 02.11 ночь: подписи событий только под открытым фото (Вера), плашки на сетке убраны */
.lightbox__fig figcaption:empty { display: none; }
/* лига КВН: подложка в один цвет, как их оформление во ВКонтакте (Вера: «более монохромное») */
.support { background: #1a0b47; }
.support::before { background: repeating-radial-gradient(ellipse 60% 120% at 82% 135%, transparent 0 22px, rgba(255, 255, 255, .07) 23px 25px, transparent 26px 40px); }
/* «Мы во ВКонтакте»: две кнопки, подписка и VK Клипы */
.vkfeed__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.vkfeed__text .vkfeed__btns .btn { margin-top: 0; }
