/* Белый голубь — компьютерная версия
   Макет повторяет структуру прежнего сайта конкурса: зелёная шапка,
   первый экран с фотографией и зелёной полосой названия,
   далее полосы разделов «белая — зелёная — голубая».
   Основной текст 16.5px, заголовки разделов 26px, название конкурса 32px —
   читается при масштабе 100% без увеличения. */

:root{
  --green:#80BEA7;
  --green-deep:#57a48d;
  --green-ink:#0d5347;
  --pale:#e7edf0;
  --ink:#16181a;
  --muted:#4a5457;
  --line:#d5dfe2;
  --white:#fff;
  --wrap:1240px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:Arial,Helvetica,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.26;
  overflow-x:hidden;
}

img{display:block;max-width:100%}
a{color:var(--green-ink);text-decoration:none}
a:hover{text-decoration:underline}
p{margin:0 0 .32em}
p:last-child{margin:0}
h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:0}
ul{margin:0;padding:0;list-style:none}
strong,b{font-weight:700}

.wrap{max-width:1000px;margin:0 auto;padding:0}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:10px 14px;z-index:99}

/* ---------- шапка ---------- */
.site-head{
  position:sticky;top:0;z-index:40;
  background:var(--green);
  border-bottom:1px solid rgba(13,83,71,.14);
}
.site-head__inner{
  position:relative;display:flex;align-items:center;gap:28px;min-height:58px;
  max-width:1000px;margin:0 auto;padding:0;
}
.brand{display:flex;align-items:center;gap:10px;color:var(--green-ink)}
.brand img{width:34px;height:auto}
.brand__name{font-size:17px;font-weight:700;letter-spacing:.01em;white-space:nowrap}
.brand__sub{display:none}

.nav{
  display:flex;align-items:center;justify-content:flex-start;gap:24px;
  flex:1 1 auto;min-width:0;
}
.nav a{
  position:relative;display:block;padding:19px 0;
  font-size:15.5px;font-weight:700;color:#fff;white-space:nowrap;
}
.nav a:hover{text-decoration:none;color:#000}
.nav a{position:relative}
.nav a::before{content:"";position:absolute;left:0;right:0;top:-21px;height:3px;background:transparent}
.nav a.is-active::before{background:#111}
.nav a:hover{color:#fff;text-decoration:none;opacity:.9}

.head__cta{
  flex:0 0 auto;padding:9px 18px;border:1.5px solid var(--green-ink);border-radius:2px;
  font-size:15px;font-weight:700;color:var(--green-ink);background:transparent;
}
.head__cta:hover{background:var(--green-ink);color:#fff;text-decoration:none}

.burger{display:none;margin-left:auto;width:42px;height:40px;background:transparent;border:0;cursor:pointer}
.burger span,.burger span::before,.burger span::after{
  display:block;width:22px;height:2px;background:var(--green-ink);position:relative;
}
.burger span::before,.burger span::after{content:"";position:absolute;left:0}
.burger span::before{top:-7px}
.burger span::after{top:7px}

/* ---------- первый экран ---------- */

/* ---------- полосы разделов ---------- */
.band{padding:16px 0}
#about.band{padding-top:8px}
.band--white{background:#fff}
.band--green{background:var(--green)}
.band--pale{background:var(--pale)}
.band--tight{padding:26px 0}

.part-title{
  font-size:20px;line-height:1.1;font-weight:700;margin:0 0 6px;
}
.about__mark .part-title{white-space:nowrap}

/* о конкурсе */
.about{display:block}
.about__mark{float:left;width:128px;margin:0 16px 8px 0}
.about__mark img{width:88px;height:auto}
.about__mark .part-title{margin-bottom:16px}
.about__text{columns:3;column-gap:20px;font-size:14px;line-height:1.3;column-fill:balance}
.about__text p{margin:0;text-align:left}
.about__text p.pb{margin-top:.45em}
.about__text p.pb{margin-top:.5em}
.about__text p:first-child{margin-top:0}

/* партнёры */
.marquee{
  margin-top:26px;overflow:hidden;width:100%;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
}
.marquee__track{
  display:flex;align-items:center;gap:46px;width:max-content;padding:2px 0 8px;
  animation:marquee 42s linear infinite;
}
.marquee__track img{height:70px;width:auto;max-width:none;object-fit:contain}
.marquee:hover .marquee__track{animation-play-state:paused}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* жюри */
.jury-intro{font-size:14px;margin:0 0 8px;max-width:90ch}
.jury__list{margin:0 0 12px;font-size:14px;line-height:1.3;width:min(1010px,calc(100vw - 60px))}
.jury__list li{
  padding:1px 0;border-bottom:1px solid rgba(13,83,71,.12);
}
.jury__list li:last-child{border-bottom:0}
.jury__list strong{color:var(--ink)}
.jury__sub{font-size:16px;font-weight:700;margin:6px 0 10px;text-align:center}
.members{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;text-align:center;justify-items:center}
.member img{
  width:100%;max-width:132px;aspect-ratio:1;height:auto;border-radius:50%;object-fit:cover;
  margin:0 auto 6px;background:#cdd9dd;
}
.member h3{font-size:14px;line-height:1.2;margin-bottom:3px;font-weight:700}
.member p{font-size:13.5px;line-height:1.24;color:var(--muted);min-height:6.3em}

/* как участвовать */
.rules{font-size:14px;line-height:1.3;max-width:1060px}
.rules p{margin:0 0 6px}
.rules a{font-weight:700;text-decoration:none;color:var(--green-ink)}
.rules a:hover{text-decoration:none;color:#062c25}

.deadline__note{font-size:15px;color:var(--muted)}

.steps{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 18px;margin:14px 0 16px}
.steps__right{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.step{background:transparent;border:0;padding:0;display:block}
.step .pill{
  display:inline-flex;align-items:center;background:#fff;color:#111;font-size:14px;font-weight:600;
  padding:9px 18px;border:1px solid #cfe0da;border-radius:999px;white-space:nowrap;line-height:1.2;
}
.step .pill:hover{background:#f3f8f6;color:#111;text-decoration:none;border-color:#b9d2ca}
.step .pill--static{color:#0a3f36;cursor:default}

.step__meta{font-size:13.5px;color:var(--muted);word-break:break-word}

.prizes{margin-top:6px}
.prizes h3{font-size:16px;margin-bottom:4px}
.prizes li{position:relative;padding-left:15px;margin-bottom:2px;font-size:14px;line-height:1.26}
.prizes li::before{content:"";position:absolute;left:0;top:.42em;width:7px;height:7px;background:#111}

/* автор */
.author{display:grid;grid-template-columns:150px minmax(0,1fr);gap:26px;align-items:start}
.author__aside .part-title{margin:0 0 22px}
.author__body{min-width:0}
.author__portrait{margin:0;width:150px;height:150px;border-radius:50%;overflow:hidden;background:#cdd9dd}
.author__portrait img{
  width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.14);
}
.author__text{columns:3;column-gap:20px;font-size:14px;line-height:1.26;column-fill:balance}
.author__text p.pb{margin-top:.5em}
.author__text p:first-child{margin-top:0}
.author__text p{margin:0 0 .5em}
.author__text p.pb{margin-top:.5em}
.author__text p:first-child{margin-top:0}
.author__text p{margin:0 0 .8em}

.videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin-top:22px}
.video-card{margin:0}
.video-card{margin:0}
.video-poster{position:relative;display:block;overflow:hidden;background:#12211f}
.video-poster img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;transition:transform .3s}
.video-poster:hover img{transform:scale(1.03)}
.video-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
  width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.55);border:2px solid #fff;
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;padding-left:3px;
}
.video-card iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;display:block;background:#12211f}
.video-card .frame img{width:100%;height:100%;object-fit:cover;opacity:.92}
.video-card .frame.no-poster{background:linear-gradient(135deg,#12211f,#2c4a44)}
.video-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:58px;height:58px;border-radius:50%;border:2px solid #fff;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:18px;padding-left:4px;
}
.video-card .frame:hover .video-play{background:rgba(255,255,255,.16)}
.video-card figcaption{font-size:13.5px;font-weight:600;margin-top:8px;line-height:1.32;color:var(--muted);white-space:normal;overflow-wrap:break-word}

/* сборники */
.books{display:flex;gap:18px;align-items:flex-start;justify-content:flex-start}
.book img{height:250px;width:auto;object-fit:contain;display:block;transition:opacity .2s}
.book:hover img{opacity:.9}


/* галерея */
.sec-title{font-size:22px;line-height:1.2;font-weight:700;margin:0 0 6px}
.sec-lead{font-size:14px;color:var(--muted);margin:0 0 14px}
.sec-lead--strong{font-weight:700;color:var(--ink)}
.band--green .sec-lead{color:#0a3f36}
.band--green .sec-title{color:var(--ink)}
.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.gallery-item{padding:0;border:0;background:#dbe4e6;cursor:zoom-in;display:block;aspect-ratio:4/3;overflow:hidden}
.gallery-item img{width:100%;height:100%;object-fit:cover}

/* пресса */
.press{columns:2;column-gap:36px;font-size:14px;line-height:1.3}
.press a{display:block;break-inside:avoid;padding:4px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.press a:hover{color:var(--green-deep);text-decoration:none}
.press__src{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green-deep);display:block}
.press__title{font-size:14px}

/* подвал */
.site-foot{background:var(--green);padding:16px 0;font-size:14.5px;color:#111}
.site-foot__bottom{
  display:flex;align-items:baseline;justify-content:center;gap:14px;flex-wrap:wrap;
}


/* лайтбокс */
#lightbox{
  position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;
  background:rgba(10,40,35,.94);padding:40px;
}
#lightbox.is-open{display:flex}
#lightbox img{max-width:92vw;max-height:86vh}
#lightbox button{
  position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.5);
  background:rgba(255,255,255,.1);color:#fff;font-size:24px;cursor:pointer;
}
#lightbox .lb-close{top:20px;right:20px}
#lightbox .lb-prev{left:20px;top:50%;transform:translateY(-50%)}
#lightbox .lb-next{right:20px;top:50%;transform:translateY(-50%)}

/* появление блоков */
.reveal{opacity:0;transform:translateY(12px);transition:opacity .5s,transform .5s}
.reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
  .hero__dove{animation:none;left:50%;opacity:1;transform:translateX(-50%)}
  .marquee__track{animation:none}
}

/* ---------- адаптив ---------- */
@media (min-width:1180px){
  .jury__list li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:1180px){
  .nav{gap:30px;padding-left:48px}
  .jury__list{width:auto;font-size:13px}
  .about{grid-template-columns:124px minmax(0,1fr);gap:20px}
  .about__mark img{width:96px}
}
@media (max-width:1024px){
  .wrap{padding:0 24px}
  .nav{position:static;transform:none;margin:0 auto;gap:24px}
  .nav a{font-size:14.5px;padding:19px 0}
  .head__cta{display:none}
  .about{grid-template-columns:112px minmax(0,1fr);gap:18px}
  .about__mark img{width:84px}
  .author{grid-template-columns:1fr}
  .author__portrait{display:flex;align-items:center;gap:20px}
  .author__text{columns:3;column-gap:20px;font-size:14px;line-height:1.26;column-fill:balance}
.author__text p.pb{margin-top:.5em}
.author__text p:first-child{margin-top:0}
  .members{grid-template-columns:repeat(3,minmax(0,1fr))}
  .press{columns:1}
}
@media (max-width:860px){
  .nav{display:none}
  .burger{display:block}
  .site-head__inner{gap:16px}
  .site-head.menu-open .nav{
    display:flex;position:absolute;left:0;right:0;top:100%;background:var(--green);
    flex-direction:column;align-items:stretch;gap:0;padding:6px 24px 16px;z-index:40;
  }
  .site-head.menu-open .nav a{padding:13px 0;border-bottom:1px solid rgba(13,83,71,.2);font-size:16px}
  .marquee__track img{height:84px}
  .marquee__track{gap:40px}
  .steps{grid-template-columns:1fr}
  .author__text{columns:3;column-gap:20px;font-size:14px;line-height:1.26;column-fill:balance}
.author__text p.pb{margin-top:.5em}
.author__text p:first-child{margin-top:0}
  .videos{grid-template-columns:1fr}
  .gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
  .books{grid-template-columns:1fr;max-width:420px}
  .book img{height:auto;max-height:460px}
  .jury__list li{white-space:normal}
  .site-foot__grid{grid-template-columns:1fr}
}
@media (max-width:600px){
  body{font-size:16px}
  .hero__title{padding:20px 18px 26px}
  .about{grid-template-columns:1fr}
  .members{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .marquee__track img{height:64px}
  .marquee__track{gap:30px}
  .band{padding:16px 0}
#about.band{padding-top:8px}
  .deadline{padding:12px 14px}
}




/* --- отлаженный вариант: разделы и первая страница --- */
.wrap{max-width:820px;margin:0 auto;padding:0}
.site-head__inner{max-width:820px;margin:0 auto;padding:0}
.nav a{color:#111}
.nav a::before{display:none}
.nav a.is-active{border-bottom:2px solid #111}



/* --- разделы: сетка + колонки без обтекания --- */
.about{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px;align-items:start}
.about__mark{float:none;width:auto;margin:0}
.about__text{columns:3;column-gap:18px;font-size:14px;line-height:1.3;column-fill:balance}
.about__text p{margin:0 0 .55em}
.about__text p.pb{margin-top:.45em}
.author{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:start}
.author__text{columns:3;column-gap:18px;font-size:14px;line-height:1.3;column-fill:balance}
.author__text p{margin:0 0 .55em}
.author__text p.pb{margin-top:.45em}


/* --- первая страница строго по образцу --- */
.wrap{max-width:1000px}
.site-head__inner{max-width:1000px}




/* --- три колонки: балансировка по строкам, без обтекания --- */
.about{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px;align-items:start}
.about__mark{float:none;margin:0}
.about__text{columns:3;column-gap:18px;font-size:14px;line-height:1.3;column-fill:balance}
.about__text p{margin:0;text-align:left}
.about__text p.pb{margin-top:.45em}
.author{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:start}
.author__text{columns:3;column-gap:18px;font-size:14px;line-height:1.3;column-fill:balance}
.author__text p{margin:0;text-align:left}
.author__text p.pb{margin-top:.45em}


/* --- первая страница: машинка меньше, название крупнее и по центру --- */


/* --- колонки одинаковой высоты (фиксированная высота + автозаполнение) --- */
@media (min-width:1024px){
  .about__text{height:268px;column-fill:auto}
  .author__text{height:604px;column-fill:auto}
}




/* --- колонки разделов: одинаковые по высоте --- */
.about__text,.author__text{columns:3;column-gap:18px;font-size:14px;line-height:1.3}
.about__text p,.author__text p{margin:0 0 .55em;text-align:left}
.about__text p:last-child,.author__text p:last-child{margin-bottom:0}


/* ===== первая страница (финал) ===== */
.hero{background:var(--green);padding:0 0 8px}
.hero__photo{position:relative;width:100%;max-width:700px;margin:0 auto;background:#fff}
.hero__img{display:block;width:100%;height:auto}
.hero__dove{
  position:absolute;left:50%;top:3%;width:clamp(84px,7.6vw,104px);height:auto;
  transform:translateX(-50%);z-index:5;pointer-events:none;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.12));
  animation:doveFly 3.2s cubic-bezier(.22,.62,.28,1) both;
}
.hero__title{padding:10px 0 16px;text-align:center}
.hero h1{
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(18px,1.75vw,22px);line-height:1.16;font-weight:700;letter-spacing:-.005em;
  text-transform:uppercase;color:#fff;text-align:center;
  max-width:700px;margin:0 auto;
}
@keyframes doveFly{
  0%{left:-18%;top:7%;opacity:0;transform:translateX(-50%) rotate(-6deg) scale(.9)}
  16%{opacity:1}
  72%{top:3.4%;transform:translateX(-50%) rotate(1deg) scale(1.01)}
  100%{left:50%;top:3%;opacity:1;transform:translateX(-50%) rotate(0) scale(1)}
}


/* Увеличение двух логотипов партнёров: музей и Российский детский фонд.
   Сохраняем пропорции и не меняем размер остальных логотипов. */
.marquee__track img[src$="Musey.jpg"] {
  height: 105px;
}
.marquee__track img[src$="defond.png"] {
  height: 105px;
}


/* MOBILE SAFE OVERRIDES — desktop rules above remain unchanged */
@media (max-width: 600px) {
  .wrap, .site-head__inner { width: 100%; max-width: 100%; padding-left: 18px; padding-right: 18px; box-sizing: border-box; }
  #about .about { display: flex !important; flex-direction: column !important; gap: 14px !important; width: 100%; }
  #about .about__mark, #about .about__text { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  #about .about__text { columns: 1 !important; column-count: 1 !important; column-width: auto !important; height: auto !important; font-size: 16px; line-height: 1.5; }
  #author .author { display: flex !important; flex-direction: column !important; gap: 14px !important; width: 100%; }
  #author .author__aside, #author .author__body, #author .author__text { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
  #author .author__text { columns: 1 !important; column-count: 1 !important; column-width: auto !important; height: auto !important; font-size: 16px; line-height: 1.5; }
  #participate .rules, #participate .steps, #participate .steps__right, #participate .prizes { width: 100%; max-width: 100%; box-sizing: border-box; }
  #participate .steps, #participate .steps__right { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
  #participate .step, #participate .pill { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
  .hero__title { padding: 18px 16px 24px; }
  .hero h1 { width: 100%; max-width: 100%; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.22; overflow-wrap: normal; }
  .marquee__track img { max-width: 180px; object-fit: contain; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  img { max-width: 100%; }
}

/* FINAL MOBILE-ONLY FIX — desktop rules intentionally unchanged */
@media screen and (max-width: 600px) {
  html, body { width: 100%; overflow-x: hidden; }
  .wrap, .site-head__inner { width: 100%; max-width: 100%; padding-left: 16px; padding-right: 16px; }

  /* About/history: one readable text column on phones */
  #about .about { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
  #about .about__mark, #about .about__text { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  #about .about__text { columns: 1 !important; column-count: 1 !important; column-width: auto !important; column-fill: auto !important; height: auto !important; font-size: 16px !important; line-height: 1.5 !important; }
  #about .about__text p { break-inside: avoid; margin: 0 0 .75em !important; }

  /* Participation: stack content and buttons vertically */
  #participate .rules, #participate .steps, #participate .steps__right, #participate .prizes { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  #participate .rules { font-size: 16px; line-height: 1.5; }
  #participate .steps, #participate .steps__right { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
  #participate .step, #participate .pill { width: 100%; max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
  #participate .prizes { margin-top: 16px; }

  /* Rasikh Hannanov: portrait, text, then videos in one column */
  #author .author { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
  #author .author__aside, #author .author__body, #author .author__text, #author .videos { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  #author .author__text { columns: 1 !important; column-count: 1 !important; column-width: auto !important; column-fill: auto !important; height: auto !important; font-size: 16px !important; line-height: 1.5 !important; }
  #author .author__text p { break-inside: avoid; margin: 0 0 .8em !important; }
  #author .videos { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; }

  /* Heading: let it wrap naturally within the phone width */
  .hero__title { padding: 16px 14px 22px !important; }
  .hero h1 { width: 100% !important; max-width: 390px !important; margin: 0 auto !important; font-size: clamp(16px, 4.25vw, 18px) !important; line-height: 1.28 !important; letter-spacing: 0 !important; overflow-wrap: normal !important; word-break: normal !important; }
  .marquee__track img { max-width: 180px; object-fit: contain; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  img { max-width: 100%; height: auto; }
}
