/* «Лето в Оренбурге»: цвета, шрифт Glina и графика «степного разнотравья» из брендбука */
@font-face { font-family: "Glina"; font-display: swap; src: url(../fonts/glina.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(../fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(../fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --ink: #0f0f0f;        /* черный текст */
  --night: #6152BB;      /* фон шапки, первого экрана, итогов и подвала: Коля попросил не черный */
  --sun: #F85009;        /* солнечный рыжий */
  --wheat: #F19F54;      /* пшенично-оранжевый */
  --gold: #F6C54E;       /* оренбургские колосья */
  --green: #5E7B2E;      /* полевой зеленый */
  --sage: #B5C199;       /* шалфейный */
  --mint: #91A280;       /* пыльная мята */
  --lav: #6152BB;        /* лавандово-фиолетовый */
  --blue: #3A7BB0;       /* дельфиний синий */
  --beige: #EEE6D3;      /* бежевый одуванчиковый */
  --pink: #DA73A2;       /* душица обыкновенная */
  --rose: #FBC9FE;       /* степной розовый */
  --muted: #5a5a5a;
  --display: "Glina", "Onest", "Segoe UI", Arial, sans-serif;
  --text: "Onest", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--beige); color: var(--ink); font: 17px/1.6 var(--text); overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.wrap--narrow { max-width: 860px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--night); color: #fff; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i .fill { fill: currentColor; stroke: none; }
.sym { display: block; width: 100%; height: 100%; overflow: visible; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: #fff; }
.btn--sun:hover { background: var(--gold); color: var(--ink); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--light { background: var(--beige); color: var(--ink); }
.btn--light:hover { background: var(--gold); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--sun); }

/* шапка */
.top { position: sticky; top: 0; z-index: 30; background: var(--night); color: #fff; }
.top__in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: block; margin-right: auto; }
.brand img { display: block; width: 250px; height: auto; }
.menu ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a { display: block; padding: 8px 12px; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.menu a:hover { background: rgba(255, 255, 255, .14); }
.top__cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--beige); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* первый экран: как страница «Город. Люди. Лето.» брендбука */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.hero__bg { position: absolute; inset: 0; background: url(../img/topo.svg) center / cover no-repeat; opacity: .9; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: min(760px, calc(100vh - 76px)); padding-top: 48px; padding-bottom: 72px; }
.hero__t { margin: 0; font: 400 clamp(68px, 10vw, 150px)/.96 var(--display); }
.hero__lead { max-width: 540px; margin: 30px 0 0; color: var(--beige); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__pics { position: relative; height: clamp(420px, 44vw, 600px); }
.pol { position: absolute; margin: 0; padding: 12px 12px 46px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.pol img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pol::before { content: ""; position: absolute; left: 50%; top: -10px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--sun); box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }
.pol--0 { left: 4%; top: 8%; width: 46%; transform: rotate(-7deg); }
.pol--1 { right: 2%; top: 0; width: 44%; transform: rotate(5deg); }
.pol--1::before { background: var(--gold); }
.pol--2 { left: 30%; bottom: 0; width: 44%; transform: rotate(-2deg); }
.pol--2::before { background: var(--lav); }
.fl { position: absolute; width: 90px; height: 90px; animation: spin 40s linear infinite; }
.fl--0 { left: -4%; bottom: 14%; width: 110px; height: 110px; }
.fl--1 { right: -3%; bottom: 10%; width: 130px; height: 130px; animation-duration: 55s; }
.fl--2 { left: 44%; top: -4%; width: 76px; height: 76px; animation-direction: reverse; }
.fl--3 { right: 34%; top: 46%; width: 70px; height: 70px; animation-duration: 30s; }
.fl--4 { left: 4%; top: -2%; width: 64px; height: 64px; animation-direction: reverse; }
.fl--5 { right: 4%; top: 52%; width: 56px; height: 56px; }
.fl--6 { left: 18%; bottom: -2%; width: 64px; height: 64px; animation-duration: 70s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* общие секции */
.sec { position: relative; padding: 100px 0; }
.h2 { margin: 0 0 22px; font: 400 clamp(36px, 4.8vw, 66px)/1.04 var(--display); }
.h2--plain { font: 800 clamp(30px, 3.6vw, 46px)/1.1 var(--text); }
.sec__lead { max-width: 720px; margin: -4px 0 40px; font-size: 19px; line-height: 1.5; }
.sec__lead a { color: var(--sun); font-weight: 600; }
.big { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }

/* о проекте */
.about__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: center; }
.about__text p { margin: 0 0 16px; }
.about__pic { position: relative; margin: 0; }
.about__pic img { display: block; width: 86%; margin-left: auto; border: 12px solid #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); transform: rotate(2deg); }
.bubble { position: absolute; left: 0; top: 18%; max-width: 300px; padding: 16px 20px; border-radius: 22px; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .16); font-size: 16px; line-height: 1.4; }
.bubble::after { content: ""; position: absolute; left: 26px; bottom: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.values { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 80px; }
.values__tree { display: block; width: 100%; }
.values__list { margin: 0; padding: 0; list-style: none; }
.value { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 2px solid var(--ink); }
.value:last-child { border-bottom: 2px solid var(--ink); }
.value__sym { width: 60px; height: 60px; }
.value h3 { margin: 0 0 6px; font: 400 clamp(23px, 2vw, 28px)/1.15 var(--display); }
.value p { margin: 0; }

/* итоги */
.results { background: var(--night); color: #fff; overflow: hidden; }
.results__bg { position: absolute; inset: 0; background: url(../img/topo.svg) center / cover no-repeat; opacity: .35; transform: scaleX(-1); }
.results .wrap { position: relative; }
.results .sec__lead { color: var(--beige); }
.results__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 28px; margin: 0; padding: 0; list-style: none; }
.res { display: flex; flex-direction: column; align-items: center; text-align: center; }
.res__shape { position: relative; width: min(100%, 240px); aspect-ratio: 1; }
.res__shape .sym { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.res:nth-child(even) .res__shape .sym { animation-direction: reverse; }
.res__shape b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 clamp(34px, 3.6vw, 52px)/1 var(--display); white-space: nowrap; }
.res--0 .res__shape b { font-size: clamp(24px, 2.2vw, 33px); }
.res p { max-width: 260px; margin: 16px 0 0; color: var(--beige); font-size: 17px; line-height: 1.4; }
.results__note { max-width: 760px; margin: 56px auto 0; color: var(--beige); font-size: 19px; text-align: center; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.shot { display: block; padding: 10px 10px 30px; border: 0; background: #fff; cursor: zoom-in; box-shadow: 0 12px 26px rgba(0, 0, 0, .35); transition: transform .25s; }
.shot img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shot--0 { transform: rotate(-1.5deg); } .shot--1 { transform: rotate(1.2deg); } .shot--2 { transform: rotate(-.6deg); }
.shot:hover { transform: rotate(0) scale(1.03); }
.results__more { margin: 34px 0 0; text-align: center; }
.results__more a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; text-decoration: none; }

/* локации: как бейджи из брендбука */
.places__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.place { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--bottom); }
.place__top { position: relative; height: 150px; overflow: hidden; background: var(--top); }
.place__sym { position: absolute; left: 50%; top: 34%; width: 190px; height: 190px; margin-left: -95px; }
.place__name { position: relative; margin: 0; padding: 16px 20px 15px; background: var(--night); color: #fff; font: 400 clamp(22px, 1.9vw, 27px)/1.12 var(--display); }
.place__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.place__body p { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.place__where { font-weight: 700; }
.place__map { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; font-size: 15px; }
.place__map .i { width: 16px; height: 16px; }
.places__note { max-width: 820px; margin: 36px 0 0; color: var(--muted); }

/* участникам: клетка и клякса со стр. 19 брендбука */
.join { position: relative; padding: 80px 0; background: conic-gradient(var(--sun) 25%, var(--wheat) 0 50%, var(--sun) 0 75%, var(--wheat) 0) 0 0 / 120px 120px; }
.join__in { display: flex; justify-content: center; }
.join__blob { display: flex; align-items: center; justify-content: center; width: min(1060px, 100%); aspect-ratio: 437 / 390; background: url(../img/blob.svg) center / contain no-repeat; text-align: center; }
.join__card { display: flex; flex-direction: column; align-items: center; width: 56%; margin-top: 4%; padding: 34px 30px 28px; border-radius: 48% / 42%; background: #fff; }
.join__t { margin: 0 0 14px; font: 400 clamp(34px, 4.4vw, 60px)/1.05 var(--display); }
.join__blob p { margin: 0 0 22px; font-size: 18px; line-height: 1.45; }
.join__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.join .join__small { max-width: 400px; margin: 18px auto 0; color: var(--muted); font-size: 14px; }
.join__small a { color: var(--sun); font-weight: 600; }

/* ВКонтакте */
.vk__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.vk__kind { margin: 0 0 12px; color: var(--sun); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.vk__text p { font-size: 18px; }
.vk__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.vk__box { min-height: 420px; padding: 18px; border-radius: 24px; background: #fff; }
.vk__stub { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; min-height: 380px; padding: 20px 26px; }
.vk__stub p { max-width: 460px; margin: 0; color: var(--muted); }

/* видео */
.video { background: var(--green); color: #fff; }
.video__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.video__nav { display: flex; gap: 10px; margin-bottom: 26px; }
.video__nav[hidden] { display: none; }
.video__arrow { width: 52px; height: 52px; border: 2px solid #fff; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; cursor: pointer; transition: background .2s, color .2s; }
.video__arrow:hover { background: #fff; color: var(--green); }
/* лента: по три ролика в ряд, дальше прокрутка вбок */
.video__list { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; padding-bottom: 14px; }
.video__list .vid { scroll-snap-align: start; }
.video__list--two { grid-auto-columns: calc((100% - 24px) / 2); }
.vid { margin: 0; }
.vid__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: var(--ink); }
.vid__frame img, .vid__frame iframe, .vid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__frame video { background: #000; object-fit: contain; }
.vid__frame img { object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.vid__frame:hover img { opacity: 1; transform: scale(1.03); }
.vid__play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border: 0; border-radius: 50%; background: var(--sun); color: #fff; cursor: pointer; transition: transform .2s, background .2s; }
.vid__play svg { width: 40px; height: 40px; margin-left: 5px; fill: currentColor; }
.vid__frame:hover .vid__play, .vid__play:focus-visible { transform: scale(1.08); background: var(--gold); color: var(--ink); }
.vid figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 14px; font-size: 17px; }
.vid figcaption span { color: var(--sage); }
.vid figcaption a, .video__more a { color: var(--gold); font-weight: 600; }
.video__more { margin: 30px 0 0; }
.video__more a { display: inline-flex; align-items: center; gap: 8px; }

/* подвал */
.foot { padding-top: 64px; background: var(--night); color: #fff; }
.foot__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-bottom: 48px; }
.foot__logo { display: block; width: 300px; max-width: 100%; }
.foot__tag { margin: 18px 0 8px; color: var(--gold); font: 400 28px/1.15 var(--display); }
.foot__h { margin: 0 0 12px; color: var(--gold); font-weight: 600; }
.foot__text { max-width: 470px; font-size: 18px; }
.foot__soc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.foot__soc a { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.foot__soc a:hover { background: var(--gold); color: var(--ink); }
.foot__made { max-width: 460px; margin-top: 26px !important; line-height: 1.5; }
.foot__made a { font-weight: 600; }
.foot p { margin: 0 0 16px; }
.foot ul { margin: 0 0 20px; padding: 0; list-style: none; }
.foot li { margin-bottom: 10px; }
.foot a:not(.btn) { color: #fff; }
.foot a:not(.btn):hover { color: var(--gold); }
.foot__docs { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cookie-set .cookie { display: none; }
.agree { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; margin: 22px auto 0; font-size: 14px; line-height: 1.4; text-align: left; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--sun); cursor: pointer; }
.agree a { color: var(--sun); font-weight: 600; }
.agree.is-warn { color: var(--sun); animation: nudge .35s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.btn.is-off { opacity: .45; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .8); font-size: 14px; }

/* cookie, документ */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 40; max-width: 520px; padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.cookie p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.cookie a { color: var(--sun); font-weight: 600; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.doc h2 { margin: 36px 0 10px; font-size: 22px; }
.doc__date { margin: -8px 0 22px; color: var(--muted); font-size: 15px; }
.req { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); margin: 18px 0 0; border-top: 1px solid rgba(15, 15, 15, .15); }
.req dt, .req dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(15, 15, 15, .15); }
.req dt { padding-right: 18px; color: var(--muted); }
.req dd { font-weight: 600; }
.doclist { padding-left: 20px; }
.doclist li { margin-bottom: 8px; }
.doc p, .doc li { font-size: 17px; }
.doc a { color: var(--sun); }
.doc__state { margin: 18px 0 14px; padding: 16px 20px; border-radius: 16px; background: #fff; }

/* просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 24px; background: rgba(8, 8, 8, .94); }
.lightbox figure { grid-column: 2; margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 12px; color: var(--beige); font-size: 15px; }
.lightbox__close { position: absolute; top: 14px; right: 18px; border: 0; background: none; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
.lightbox__nav { width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox__prev { grid-column: 1; grid-row: 1; }
.lightbox__next { grid-column: 3; grid-row: 1; }

.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
.no-motion * { animation: none !important; transition: none !important; }

@media (max-width: 1140px) {
  .menu { position: fixed; inset: 76px 0 auto 0; display: none; padding: 12px 20px 20px; background: var(--night); box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
  .menu.is-open { display: block; }
  .menu ul { flex-direction: column; gap: 2px; }
  .menu a { padding: 12px 14px; font-size: 18px; }
  .burger { display: block; }
}

@media (max-width: 960px) {
  .hero__in, .about__in, .values, .vk__in { grid-template-columns: 1fr; }
  .hero__in { min-height: 0; gap: 26px; }
  .hero__pics { height: 420px; max-width: 560px; }
  .about__in { gap: 40px; }
  .values { gap: 26px; margin-top: 56px; }
  .values__tree { max-width: 300px; margin: 0 auto; }
  .results__list { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr; gap: 32px; }
  .video__list { grid-auto-columns: calc((100% - 24px) / 2); }
  .vid__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .vid__play svg { width: 30px; height: 30px; }
  .sec { padding: 72px 0; }
}

@media (max-width: 680px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  .top__in { min-height: 64px; }
  .menu { inset: 64px 0 auto 0; }
  .brand img { width: 190px; }
  .top__cta { display: none; }
  .hero__t { font-size: 22vw; }
  .hero__pics { height: 330px; }
  .fl { width: 56px !important; height: 56px !important; }
  .bubble { position: relative; top: auto; max-width: none; margin: 0 0 18px; }
  .about__pic img { width: 100%; }
  .results__list { gap: 34px 14px; }
  .res p { font-size: 15px; }
  .join { padding: 48px 0; background-size: 80px 80px; }
  .join__blob { aspect-ratio: auto; padding: 0; border-radius: 36px; background: #fff; }
  .join__card { width: 100%; margin: 0; padding: 34px 22px; border-radius: 36px; }
  .vk__box { padding: 10px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; }
  .video__list { grid-auto-columns: 86%; }
  .video__nav { display: none; }
  .req { grid-template-columns: 1fr; }
  .req dt { padding-bottom: 0; border-bottom: 0; }
  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 10px; }
}
