.hero h1 span,
.hero h1 em { display: block; }

.hero h1,
.section h2 {
  letter-spacing: -.015em;
}

.hero h1 em {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -9px;
  right: -11px;
  bottom: 4px;
  height: 15px;
  background: rgba(249, 215, 77, .72);
  transform: rotate(-1.5deg);
}

/* Плакатный слой: официальный синий, тканевый отпечаток и триколор.
   Он накладывается на согласованную композицию, не заменяя иллюстрации. */
:root {
  --poster-blue: #245fac;
  --poster-sky: #79b7e6;
  --poster-red: #f33439;
}

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(121, 183, 230, .17), transparent 31%),
    linear-gradient(111deg, #eef5fa 0%, #fffdf9 53%, #edf5fb 100%);
}

.hero-weave {
  opacity: .72;
  background-image:
    radial-gradient(ellipse at 20% 20%, transparent 0 16px, rgba(36, 95, 172, .075) 17px 18px, transparent 19px),
    repeating-linear-gradient(42deg, transparent 0 16px, rgba(36, 95, 172, .05) 17px 19px, transparent 20px 39px);
  background-size: 116px 94px, auto;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 63%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: -7%;
  bottom: -32px;
  left: 46%;
  height: 73px;
  border-radius: 50% 0 0 / 78% 0 0;
  background: #fff;
  box-shadow:
    0 -9px 0 var(--poster-sky),
    0 -16px 0 var(--poster-red),
    0 -23px 0 var(--poster-blue);
  pointer-events: none;
}

.hero-grid { z-index: 2; }

.date-note {
  display: inline-block;
  margin-top: 30px;
  padding: 8px 13px 7px;
  color: #fff;
  background: var(--poster-red);
  box-shadow: 7px 8px 0 rgba(36, 95, 172, .12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  transform: skewX(-8deg);
}

.participation,
.contacts-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--poster-blue);
}

.participation::before,
.contacts-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .12;
  background: url('materials/patterns/client-white-textile-pattern.webp') center / 480px auto repeat;
  pointer-events: none;
}

.participation::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -10%;
  bottom: -28px;
  width: 48%;
  height: 66px;
  border-radius: 50% 0 0 / 100% 0 0;
  background: #fff;
  box-shadow: 0 -8px 0 var(--poster-sky), 0 -15px 0 var(--poster-red);
  pointer-events: none;
}

.participation .container,
.contacts-card > * { position: relative; z-index: 1; }

/* На широких экранах блок участия не должен оставлять пустую треть экрана. */
@media (min-width: 1200px) {
  .participation .container {
    width: min(1720px, calc(100% - 96px));
  }
}

.participation .section-heading h2,
.contacts-card h2 {
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.steps {
  position: relative;
  margin-top: 51px;
}

.steps li {
  position: relative;
  padding-top: 36px;
  border-color: rgba(255, 255, 255, .46);
}

.steps li::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 32px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--poster-sky);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14);
}

.steps li h3 {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .01em;
}

.prizes { position: relative; overflow: hidden; }
.prizes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 7px;
  background: linear-gradient(90deg, var(--poster-blue) 0 46%, #fff 46% 55%, var(--poster-red) 55% 100%);
}

.contacts-card::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: -56px;
  left: 32%;
  height: 102px;
  border-radius: 50% 0 0 / 100% 0 0;
  background: var(--poster-blue);
  box-shadow: 0 -10px 0 #fff, 0 -18px 0 var(--poster-sky), 0 -26px 0 var(--poster-red);
  pointer-events: none;
}

.button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button--primary:hover { background: #d9342d; box-shadow: 0 16px 27px rgba(240, 65, 55, .36); transform: translateY(-3px); }
.button--primary:focus-visible,
.text-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.text-link { position: relative; transition: color .2s ease; }
.text-link::after { content: ''; position: absolute; left: 0; right: 28px; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.text-link:hover { color: var(--red); }
.text-link:hover::after { transform: scaleX(1); }
.text-link span { display: inline-block; transition: transform .22s ease; }
.text-link:hover span { transform: translateX(6px); }

.hero-weave { position: absolute; inset: 0; overflow: hidden; opacity: .48; pointer-events: none; }
.hero-weave i { position: absolute; display: block; width: 150px; height: 150px; border: 1px solid rgba(7, 86, 161, .16); transform: rotate(45deg); }
.hero-weave i::after { content: ''; position: absolute; inset: 20px; border: 1px solid rgba(240, 65, 55, .17); }
.hero-weave i:nth-child(1) { top: -78px; left: 20%; }
.hero-weave i:nth-child(2) { top: 57%; left: -58px; width: 104px; height: 104px; }
.hero-weave i:nth-child(3) { bottom: -61px; left: 40%; width: 124px; height: 124px; }
.hero-weave i:nth-child(4) { top: 6%; right: 24%; width: 80px; height: 80px; }
.hero-weave i:nth-child(5) { right: -67px; bottom: 22%; width: 176px; height: 176px; }

.hero-map {
  position: absolute;
  z-index: 0;
  top: 39%;
  left: 32%;
  width: min(91vw, 1400px);
  max-height: none;
  object-fit: contain;
  transform: translateY(-50%) rotate(-2deg);
  opacity: .9;
  filter: saturate(.68) brightness(1.48) drop-shadow(0 22px 26px rgba(24, 35, 53, .08));
  pointer-events: none;
}
.hero { padding-top: 42px; padding-bottom: 35px; }
.hero-grid { grid-template-columns: 1fr; min-height: 404px; }
.hero-copy { position: relative; z-index: 2; }
.hero-art { display: none; }

.site-header,
.header-inner,
.brand,
.main-nav { transition: min-height .24s ease, padding .24s ease, width .24s ease, height .24s ease, gap .24s ease, font-size .24s ease, box-shadow .24s ease; }
.brand { width: 68px; height: 68px; }
.brand { position: relative; display: block; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease, transform .24s ease; }
.brand-full { opacity: 0; transform: scale(.82); }
.brand-mark { opacity: 1; }
.site-header.is-scrolled { box-shadow: 0 8px 22px rgba(24, 35, 53, .1); }
.site-header.is-scrolled .header-inner { min-height: 58px; }
.site-header.is-scrolled .brand { width: 46px; height: 46px; }
.site-header.is-scrolled .brand-full { opacity: 0; transform: scale(.82); }
.site-header.is-scrolled .brand-mark { opacity: 1; transform: scale(1); }
.site-header.is-scrolled .main-nav { gap: 20px; font-size: 11px; }

.fact-grid article { overflow: hidden; padding: 0 27px 29px; transition: transform .25s ease, box-shadow .25s ease; }
.fact-grid article:hover { transform: translateY(-6px); box-shadow: 0 17px 28px rgba(24, 35, 53, .12); }
.fact-image { position: relative; height: 154px; margin: 0 -27px 23px; overflow: hidden; background: var(--sand); }
.fact-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(24, 35, 53, .14)); }
.fact-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.fact-grid article:hover .fact-image img { transform: scale(1.055); }
.fact-grid article h3 { margin-top: 16px; }

.about-lead {
  margin-top: 0;
  color: var(--blue);
  font-size: clamp(20px, 1.55vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}

/* Коллажи задуманы как законченные квадратные сюжеты: не обрезаем композицию. */
.fact-image { height: auto; }
.fact-image::after { display: none; }
.fact-image img { height: auto; object-fit: initial; }

.locations-layout {
  display: grid;
  grid-template-columns: minmax(410px, 1fr) minmax(440px, 1.22fr);
  gap: clamp(42px, 8vw, 132px);
  align-items: start;
}

.locations-layout h2 {
  max-width: 590px;
  font-size: clamp(52px, 4.3vw, 68px);
  line-height: 1.03;
}

.locations-layout > div > p:not(.section-kicker) {
  max-width: 420px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.location-search {
  padding: 30px;
  border: 1px solid rgba(7, 86, 161, .16);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 16px 34px rgba(24, 35, 53, .06);
}

.location-search label {
  display: block;
  margin-bottom: 13px;
  color: var(--ink);
  font-weight: 800;
}

.location-search-row {
  display: flex;
  gap: 10px;
}

.location-search input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 14px 16px;
  border: 1px solid rgba(7, 86, 161, .28);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.location-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 86, 161, .12);
}

.location-search-row .button {
  flex: 0 0 auto;
  padding: 0 23px;
}

.location-caption {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.location-results {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.location-result {
  padding: 14px 16px;
  border-left: 3px solid var(--red);
  background: #fff;
}

.location-result strong,
.location-result span,
.location-result small {
  display: block;
}

.location-result strong { color: var(--blue); font-size: 13px; }
.location-result span { margin-top: 4px; color: var(--ink); font-weight: 700; line-height: 1.45; }
.location-result small { margin-top: 5px; color: var(--muted); line-height: 1.4; }

.documents-note {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
}

.document-item.is-pending { cursor: default; }

.news { background: #fff; }
.news-heading { margin-bottom: 37px; }
.news-heading > p { color: #526174; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card {
  position: relative;
  min-height: 263px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(7, 86, 161, .14);
  background: #fffdf9;
}
.news-card::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -35px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(7, 86, 161, .18);
  transform: rotate(45deg);
}
.news-card span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-card h3 { position: relative; z-index: 1; margin: 14px 0 13px; color: var(--ink); font-family: 'PT Serif', Georgia, serif; font-size: 22px; line-height: 1.18; }
.news-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }
.news-more {
  position: relative;
  z-index: 1;
  margin-top: 19px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}
.news-more i { display: inline-block; margin-left: 8px; font-size: 18px; font-style: normal; transition: transform .2s ease; }
.news-more:hover { color: var(--red); }
.news-more:hover i { transform: translateX(5px); }
.news-more:focus-visible,
.news-modal-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.news-modal {
  width: min(760px, calc(100% - 32px));
  max-height: min(850px, calc(100% - 34px));
  padding: 0;
  border: 0;
  background: transparent;
}
.news-modal::backdrop { background: rgba(17, 32, 51, .65); backdrop-filter: blur(5px); }
.news-modal-inner { position: relative; padding: 34px clamp(24px, 5vw, 58px) 47px; overflow: hidden; background: var(--cream); }
.news-modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 32px;
  line-height: 24px;
}
.news-photo-placeholder {
  display: grid;
  aspect-ratio: 16 / 9;
  margin: 0 0 28px;
  place-items: center;
  color: rgba(255,255,255,.94);
  border: 1px solid rgba(7, 86, 161, .18);
  background:
    linear-gradient(125deg, rgba(7,86,161,.9), rgba(7,86,161,.73)),
    repeating-linear-gradient(45deg, transparent 0 15px, rgba(255,255,255,.12) 16px 17px);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.news-modal h2 { margin: 0 0 20px; color: var(--ink); font-family: 'PT Serif', Georgia, serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.09; }
.news-modal-text p { margin: 0 0 15px; color: #4f5e72; line-height: 1.74; }

.steps .step-icon {
  width: 174px;
  height: 174px;
  margin: 3px 0 21px;
  background-image: url('materials/cards/participation-icons-light.webp');
  background-repeat: no-repeat;
  background-size: 300% 100%;
  filter: drop-shadow(0 11px 14px rgba(0, 0, 0, .15));
}

.steps .step-icon--map { background-position: 0 0; }
.steps .step-icon--form { background-position: 50% 0; }
.steps .step-icon--handoff { background-position: 100% 0; }
.steps li h3 { margin-top: 0; }

.prizes-intro {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(300px, .55fr);
  gap: clamp(48px, 11vw, 170px);
  align-items: end;
  margin-bottom: 42px;
}
.prizes-intro h2 { font-size: clamp(41px, 4.5vw, 64px); }
.prizes-intro > p { max-width: 410px; margin: 0 0 7px; color: #5c6777; line-height: 1.7; }
.prize-cards { grid-template-columns: repeat(6, 1fr); gap: 18px; }
.prize-card { min-height: 292px; padding: 24px; border: 1px solid rgba(7, 86, 161, .13); background: #f8f1e7; }
.prize-card:nth-child(1),
.prize-card:nth-child(2) { grid-column: span 3; min-height: 368px; }
.prize-card:nth-child(3),
.prize-card:nth-child(4),
.prize-card:nth-child(5) { grid-column: span 2; }
.prize-card h3 { margin: 10px 0 0; font-size: 28px; }
.prize-card p { position: relative; z-index: 1; }
.prize-card--accent { background: var(--red); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }

/* Появляется только после публикации PDF через админку. */
.winners-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--red);
}
.winners-banner::before,
.winners-banner::after {
  content: '';
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255,255,255,.24);
  transform: rotate(45deg);
  pointer-events: none;
}
.winners-banner::before { top: -192px; left: 8%; }
.winners-banner::after { right: 10%; bottom: -204px; }
.winners-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 178px;
  padding-top: 30px;
  padding-bottom: 30px;
}
.winners-banner p { margin: 0 0 7px; color: #fff5bc; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.winners-banner h2 { margin: 0; color: #fff; font-family: 'Manrope', Arial, sans-serif; font-size: clamp(25px, 3vw, 42px); font-weight: 800; line-height: 1.08; text-transform: uppercase; }
.winners-banner span { display: block; margin-top: 10px; color: #fff2d5; font-size: 14px; }
.winners-banner-button { flex: 0 0 auto; border: 2px solid #fff; color: var(--ink); background: #fff; }
.winners-banner-button:hover { color: #fff; background: var(--blue); }
.winners-banner-button span { display: inline; margin: 0 0 0 8px; color: inherit; }
.main-nav-winners { color: var(--red) !important; }

@media (max-width: 680px) {
  .footer-links { justify-content: flex-start; }
  .winners-banner-inner { display: block; min-height: 0; padding-top: 34px; padding-bottom: 34px; }
  .winners-banner h2 { font-size: 29px; }
  .winners-banner-button { width: 100%; min-height: 53px; margin-top: 23px; }
}
.prize-image {
  display: block;
  width: min(100%, 225px);
  height: 190px;
  margin: -8px auto 7px;
  object-fit: contain;
  filter: drop-shadow(0 11px 14px rgba(24, 35, 53, .16));
}
.prize-card:nth-child(1) .prize-image,
.prize-card:nth-child(2) .prize-image { width: min(100%, 300px); height: 238px; }
.prize-card:nth-child(1) .prize-image { width: min(100%, 405px); height: 252px; margin-top: -15px; }

/* Tablet: the two-column location finder needs at least 1,080 px of real
   content width. Switch before its fixed minimum columns can create a
   horizontal page scroll. */
@media (max-width: 1120px) {
  .locations-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .location-search {
    width: 100%;
  }

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 12px;
  }

  .main-nav.is-open { display: flex; }

  .site-header:not(.is-scrolled) .header-inner,
  .site-header.is-scrolled .header-inner { min-height: 76px; }

  .site-header:not(.is-scrolled) .brand,
  .site-header.is-scrolled .brand { width: 58px; height: 58px; }

  .site-header:not(.is-scrolled) .brand-full { opacity: 0; transform: scale(.82); }
  .site-header:not(.is-scrolled) .brand-mark { opacity: 1; transform: scale(1); }
  .site-header:not(.is-scrolled) .main-nav { padding-left: 24px; border-left: 0; }
}

@media (max-width: 960px) {
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }

  .prizes-intro { grid-template-columns: 1fr; gap: 19px; margin-bottom: 30px; }
}

@media (max-width: 920px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  .fact-grid,
  .steps,
  .prize-cards { grid-template-columns: 1fr; }

  .fact-grid { margin-top: 35px; }
  .fact-grid article { min-height: 0; }
  .fact-grid h3 { margin-top: 19px; }

  .steps { gap: 14px; margin-top: 35px; }
  .steps li,
  .steps li:last-child { min-height: 0; border: 1px solid rgba(255,255,255,.33); }

  .prize-cards { grid-template-columns: 1fr; }
  .prize-card:nth-child(1),
  .prize-card:nth-child(2),
  .prize-card:nth-child(3),
  .prize-card:nth-child(4),
  .prize-card:nth-child(5) { grid-column: auto; min-height: 270px; }
}

.faq,
.documents {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.faq > .container::before,
.documents > .container::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 135%;
  height: 2px;
  pointer-events: none;
}

.faq > .container::before {
  top: 45px;
  left: -29%;
  background: linear-gradient(90deg, transparent 0 8%, rgba(7, 86, 161, .3) 8% 83%, transparent 83%);
  transform: rotate(-12deg);
}

.documents > .container::before {
  right: -30%;
  bottom: 66px;
  background: linear-gradient(90deg, transparent 0 8%, rgba(240, 65, 55, .31) 8% 83%, transparent 83%);
  transform: rotate(11deg);
}

.faq::before,
.documents::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(7, 86, 161, .13);
  transform: rotate(45deg);
  pointer-events: none;
}

.faq::after,
.documents::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(240, 65, 55, .15);
  transform: rotate(45deg);
  pointer-events: none;
}

.faq::before { top: -178px; right: 5%; }
.faq::after { bottom: -124px; left: 7%; }
.documents::before { top: 22%; left: -178px; }
.documents::after { right: 8%; bottom: -116px; }
.faq > .container,
.documents > .container { position: relative; z-index: 1; }

.accordion details {
  overflow: hidden;
  transition: border-color .24s ease;
}

.accordion summary::after { transition: transform .24s ease, color .24s ease; }
.accordion details[open] summary::after { transform: rotate(180deg); }

.question-form-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(380px, 1.14fr);
  gap: clamp(42px, 10vw, 160px);
  align-items: start;
}
.question-form {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--poster-blue);
}
.question-form::before,
.question-form::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.question-form::before {
  z-index: 0;
  inset: 0;
  opacity: .12;
  background: url('materials/patterns/client-white-textile-pattern.webp') center / 480px auto repeat;
}
.question-form::after {
  display: none;
}
.question-form .feedback-form::after { display: none; }
.question-form-layout > div > p:last-child { max-width: 380px; color: #dcecf8; line-height: 1.7; }
.feedback-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.feedback-form label { display: grid; gap: 8px; color: #e0effa; font-size: 13px; font-weight: 800; }
.feedback-form label:nth-child(3) { grid-column: 1 / -1; }
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
}
.feedback-form textarea { resize: vertical; min-height: 104px; }
.feedback-form input:focus,
.feedback-form textarea:focus { border-color: #f9d74d; box-shadow: 0 0 0 3px rgba(249,215,77,.22); }
.feedback-form .button { justify-self: start; border: 0; cursor: pointer; }
.feedback-note { grid-column: 1 / -1; margin: -5px 0 0; color: #c6dcef; font-size: 12px; }

.contact-details { display: grid; gap: 8px; margin-top: 24px; }
.contact-details a { color: #fff; font-size: 17px; font-weight: 700; }
.contact-details a:hover { color: #f9d74d; }
.contact-test-note { display: block; margin-top: 16px; color: #a9c4df; font-size: 12px; }

.registration-modal {
  width: min(670px, calc(100% - 32px));
  max-height: min(900px, calc(100% - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.registration-modal::backdrop { background: rgba(17, 32, 51, .66); backdrop-filter: blur(5px); }
.registration-modal-inner { position: relative; padding: 48px clamp(24px, 5vw, 58px) 52px; overflow: hidden; background: var(--cream); }
.registration-modal-inner::before { content: ''; position: absolute; top: -116px; right: -126px; width: 260px; height: 260px; border: 1px solid rgba(7, 86, 161, .15); transform: rotate(45deg); pointer-events: none; }
.registration-modal h2 { position: relative; margin: 0; color: var(--ink); font-family: 'PT Serif', Georgia, serif; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.registration-modal-close { position: absolute; z-index: 2; top: 17px; right: 20px; width: 28px; height: 28px; padding: 0; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 32px; line-height: 24px; }
.registration-intro { max-width: 510px; margin: 19px 0 27px; color: #526174; line-height: 1.65; }
.registration-form { display: grid; gap: 16px; }
.registration-form > label:not(.registration-consent):not(.registration-honeypot) { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 800; }
.registration-form input:not([type='checkbox']),
.registration-form textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(7, 86, 161, .26); border-radius: 0; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 15px; }
.registration-form textarea { resize: vertical; min-height: 92px; }
.registration-form input:focus,
.registration-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 86, 161, .12); }
.registration-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.registration-consent { display: flex; align-items: flex-start; gap: 11px; color: #526174; font-size: 12px; line-height: 1.55; cursor: pointer; }
.registration-consent input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--blue); }
.registration-error { margin: -3px 0 0; color: #c72e27; font-size: 13px; font-weight: 700; }
.registration-submit { justify-self: start; border: 0; cursor: pointer; }
.registration-submit[disabled] { cursor: not-allowed; opacity: .62; }
.registration-number-label { margin: 28px 0 2px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.registration-number { display: block; color: var(--red); font-family: 'PT Serif', Georgia, serif; font-size: clamp(54px, 9vw, 84px); line-height: 1; letter-spacing: -.04em; }
.registration-qr-placeholder { display: grid; width: 240px; min-height: 240px; margin: 27px 0 22px; place-items: center; color: var(--blue); border: 1px dashed rgba(7, 86, 161, .45); background: repeating-linear-gradient(45deg, rgba(7, 86, 161, .05) 0 8px, transparent 8px 16px); font-size: 13px; font-weight: 800; text-align: center; }
.registration-qr-placeholder:has(img), .registration-qr-placeholder:has(canvas) { padding: 10px; border-style: solid; background: #fffdf8; }
.registration-qr-placeholder img, .registration-qr-placeholder canvas { display: block; max-width: 100%; height: auto; }
.registration-success-text { max-width: 510px; margin: 0; color: #526174; line-height: 1.65; }

@media (max-width: 680px) {
  .registration-modal-inner { padding: 42px 22px 32px; }
  .registration-submit { width: 100%; min-height: 53px; }
  .registration-qr-placeholder { width: 200px; min-height: 200px; }
}

@media (min-width: 681px) {
  .site-header:not(.is-scrolled) { background: linear-gradient(100deg, #fffdf9 0%, #fffdf9 42%, #f8f1e7 100%); }
  .site-header:not(.is-scrolled)::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 25%, var(--blue) 25% 50%, #f9d74d 50% 75%, var(--blue) 75% 100%); opacity: .82; }
  .site-header:not(.is-scrolled) .header-inner { min-height: 132px; }
  .site-header:not(.is-scrolled) .brand { width: 195px; height: 118px; overflow: hidden; }
  .site-header:not(.is-scrolled) .brand-full { opacity: 1; transform: scale(1.34); }
  .site-header:not(.is-scrolled) .brand-mark { opacity: 0; transform: scale(.8); }
  .site-header:not(.is-scrolled) .main-nav { padding-left: 42px; border-left: 1px solid rgba(7, 86, 161, .16); gap: 29px; }
}

@media (max-width: 680px) {
  .hero::after {
    right: -42%;
    bottom: -28px;
    left: 34%;
    height: 58px;
  }

  .date-note {
    max-width: 100%;
    margin-top: 24px;
    font-size: 10px;
    line-height: 1.45;
  }

  .participation::after { right: -58%; width: 88%; }
  .participation .section-heading h2,
  .contacts-card h2 { letter-spacing: .015em; }

  .steps li { padding-top: 34px; }
  .steps li::before { left: 22px; }

  .prizes::before { width: 58%; }

  .contacts-card::after {
    right: -55%;
    left: 14%;
    height: 78px;
  }

  .hero h1 em { margin-top: 8px; }
  .hero h1 em { font-size: clamp(35px, 10vw, 47px); line-height: 1.04; }
  .hero h1 em::after { bottom: 2px; height: 11px; }
  .site-header.is-scrolled .header-inner { min-height: 58px; }
  .site-header.is-scrolled .brand { width: 42px; height: 42px; }
  .site-header.is-scrolled .main-nav { top: 58px; }
  .hero { padding-top: 32px; padding-bottom: 26px; }
  .hero-grid { min-height: 0; }
  .hero-map { top: auto; right: -42%; bottom: -4%; left: auto; width: 155vw; max-height: none; transform: rotate(-4deg); opacity: .9; }
  .locations-layout { display: block; }
  .locations-layout h2 { max-width: 360px; font-size: clamp(44px, 12vw, 56px); }
  .location-search { margin-top: 28px; padding: 22px 18px; }
  .location-search-row { display: block; }
  .location-search-row .button { width: 100%; min-height: 52px; margin-top: 10px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; }
  .steps .step-icon { width: 145px; height: 145px; margin: 0 0 17px; }
  .prizes-intro { grid-template-columns: 1fr; gap: 19px; margin-bottom: 30px; }
  .prize-cards { grid-template-columns: 1fr; }
  .prize-card:nth-child(1),
  .prize-card:nth-child(2),
  .prize-card:nth-child(3),
  .prize-card:nth-child(4),
  .prize-card:nth-child(5) { grid-column: auto; min-height: 270px; }
  .prize-card:nth-child(1) .prize-image,
  .prize-card:nth-child(2) .prize-image { width: min(100%, 245px); height: 188px; }
  .question-form-layout { grid-template-columns: 1fr; gap: 30px; }
  .feedback-form { grid-template-columns: 1fr; }
  .feedback-form label:nth-child(3) { grid-column: auto; }
}

/* Kept after the base form styles so the tablet rule cannot be overridden by
   the desktop grid declaration above. */
@media (max-width: 860px) {
  .question-form-layout { grid-template-columns: 1fr; gap: 30px; }
  .feedback-form { grid-template-columns: 1fr; }
  .feedback-form label:nth-child(3) { grid-column: auto; }
}

/* Новый первый экран: чистое сообщение на синем поле и единая текстильная нить.
   Карта намеренно убрана: она снижала контраст заголовка и терялась как образ. */
.hero {
  min-height: 575px;
  padding-top: 68px;
  padding-bottom: 82px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 52%, rgba(121, 183, 230, .32), transparent 29%),
    linear-gradient(126deg, #174d95 0%, var(--poster-blue) 54%, #194f98 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .12;
  background: url('materials/patterns/client-white-textile-pattern.webp') center / 480px auto repeat;
  pointer-events: none;
}

.hero-weave { display: none; }

.hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .74fr);
  min-height: 424px;
}

.hero-copy { max-width: 790px; }
.hero .eyebrow { color: #d5eaff; }
.hero h1 { color: #fff; text-shadow: 0 2px 0 rgba(6, 37, 82, .16); }
.hero h1 em { color: #dff1ff; }
.hero h1 em::after { z-index: -1; background: rgba(243, 52, 57, .84); }
.hero-text { max-width: 590px; color: #edf7ff; }
.hero .text-link { color: #fff; }
.hero .text-link:hover { color: #dff1ff; }
.hero .text-link::after { background: #fff; }
.hero .date-note { box-shadow: 8px 8px 0 rgba(5, 38, 87, .25); }

.hero-art {
  display: block;
  position: relative;
  z-index: 1;
  min-height: 424px;
}

.hero-coat {
  position: absolute;
  top: 46px;
  right: 3%;
  width: min(27vw, 350px);
  height: auto;
  filter: drop-shadow(0 17px 18px rgba(6, 36, 79, .28));
  pointer-events: none;
}

/* Логотип из материалов клиента: белые поля PNG не должны уменьшать его визуально. */
.hero-logo {
  top: 20px;
  right: -1%;
  width: min(34vw, 430px);
  filter: drop-shadow(0 13px 16px rgba(6, 36, 79, .2));
}

.hero::after {
  z-index: 3;
  right: -11%;
  bottom: -36px;
  left: 43%;
  background: #fff;
  box-shadow: 0 -8px 0 #fff, 0 -16px 0 var(--poster-sky), 0 -24px 0 var(--poster-red);
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art {
    position: absolute;
    inset: 0 0 0 auto;
    width: 49%;
    min-height: 0;
    overflow: hidden;
    opacity: .66;
  }
  .hero-coat { top: 64px; right: 4%; width: min(33vw, 270px); }
  .hero-logo { top: 36px; right: -6%; width: min(42vw, 320px); }
}

@media (max-width: 680px) {
  .hero {
    min-height: 555px;
    padding-top: 42px;
    padding-bottom: 52px;
  }
  .hero-art { width: 46%; opacity: .42; }
  .hero-coat { top: 124px; right: -16px; width: 208px; }
  .hero-logo { top: 94px; right: -38px; width: 265px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { max-width: 352px; }
  .hero-text { max-width: 322px; }
  .hero-actions { position: relative; z-index: 2; }
  .hero::after { right: -48%; left: 30%; }
}

/* Светлые разделы собираем на едином белом поле, как блок новостей. */
body,
.about,
.locations,
.faq,
.documents,
.section--sand {
  background: #fff;
}

.prize-card,
.news-card {
  background: #fff;
}

.prize-card--accent { background: var(--red); }
