:root {
  color-scheme: light;
  --ink: #191b26;
  --subtle: #4d4e5a;
  --page: #fbfaf7;
  --cream: #f4f0e7;
  --blue: #2546cf;
  --navy: #1c2445;
  --line: #dedbd4;
  --radius: 27px;
  --header-height: 94px;
  --header-compact-height: 64px;
  --font: Inter, "Arial", sans-serif;
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
body > main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid #b63c26; outline-offset: 5px; }
[id] { scroll-margin-top: 24px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.052em; }
h1 { font-size: clamp(48px, 5.8vw, 96px); font-weight: 800; }
h2 { font-size: clamp(36px, 4.65vw, 70px); font-weight: 780; }
h3 { font-size: clamp(24px, 3vw, 45px); font-weight: 760; }
.wrap { width: min(1392px, calc(100% - 104px)); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 12px; left: 12px; padding: 12px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  flex-shrink: 0;
  min-height: var(--header-height);
  pointer-events: none;
}
.header-surface {
  background: var(--page);
  pointer-events: auto;
}
.site-header.is-scrolled .header-surface {
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-height); transition: min-height .18s, padding .18s, row-gap .18s; }
.site-header.is-scrolled .header-inner { min-height: var(--header-compact-height); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-decoration: none; }
.brand-mark { flex: 0 0 auto; width: 48px; height: 48px; transition: width .18s, height .18s; }
.site-header.is-scrolled .brand-mark { width: 40px; height: 40px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(13px, 3vw, 44px); }
.main-nav a { padding-block: 7px; text-decoration: none; font-size: 15px; font-weight: 700; }
.main-nav a:hover, .main-nav [aria-current="page"] { color: var(--blue); }
.main-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle, .mobile-menu:not([open]) { display: none; }
.menu-toggle, .menu-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { position: absolute; left: 0; content: ""; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  pointer-events: auto;
}
.mobile-menu::backdrop { background: rgb(25 27 38 / 48%); }
body:has(.mobile-menu[open]) { overflow: hidden; }
.mobile-menu-panel {
  width: min(340px, calc(100% - 48px));
  min-height: 100%;
  padding: 20px;
  background: var(--page);
}
.mobile-menu[open] .mobile-menu-panel { animation: menu-enter .2s ease-out; }
@keyframes menu-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.mobile-menu-heading h2 { font-size: 30px; }
.menu-close { display: grid; place-items: center; font: 28px/1 var(--font); }
.mobile-nav { display: grid; gap: 4px; }
.mobile-nav a { display: block; padding: 12px; border-radius: 10px; font-weight: 750; text-decoration: none; }
.mobile-nav a:hover, .mobile-nav [aria-current="page"] { background: #ebe8fb; color: var(--blue); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 11px 20px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 750; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; }
.button span { font-size: 1.12em; }
.header-contact, .secondary { border-color: #dedbd2; background: transparent; }
.header-contact { min-height: 43px; padding: 8px 14px; }
.header-contact:hover, .secondary:hover { border-color: var(--ink); background: white; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #1936ac; }
.white { color: var(--ink); background: #fff; }
.white:hover { background: #eeeaff; }

.hero { display: grid; grid-template-columns: 1.035fr 1fr; gap: 12px; }
.hero-copy, .hero-art { min-width: 0; border-radius: var(--radius); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: clamp(450px, 40vw, 620px); padding: clamp(26px, 4vw, 64px); background: var(--cream); }
.kicker { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #df5b42; }
.hero h1 { margin-block: 25px 20px; }
.lead { color: var(--subtle); font-size: clamp(18px, 1.85vw, 27px); line-height: 1.33; letter-spacing: -.025em; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; }
.hero-art { position: relative; overflow: hidden; background: #2447d3; }
.hero-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; }

.section { margin-block: clamp(65px, 7.7vw, 116px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head > p { color: var(--subtle); font-size: 16px; }
.project-grid, .condition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project, .condition { border-radius: var(--radius); padding: clamp(23px, 3vw, 44px); }
.project { display: flex; flex-direction: column; align-items: flex-start; min-height: 270px; }
.lavender { background: #ebe8fb; }
.green { background: #e5eedc; }
.peach { background: #f8e6da; }
.project h3 { margin-block: 15px 12px; }
.project > p:not(.kicker), .condition p { max-width: 44ch; color: var(--subtle); font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; text-underline-offset: 4px; }
.text-link:hover { color: var(--blue); }
.card-link { text-decoration: none; }
.card-link:hover .text-link { color: var(--blue); }
.card-link:hover .button { background: #eeeaff; }
.project .text-link { margin-top: auto; padding-top: 22px; }

.contests-heading { align-items: center; }
.contests-heading .button { flex-shrink: 0; }
.contest-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
}
.contest-preview-copy { align-self: center; padding: clamp(26px, 4vw, 58px); }
.contest-preview h3 { margin-block: 13px 10px; }
.contest-preview p:not(.kicker) { color: #e2e4f1; font-size: 17px; }
.contest-preview .button { margin-top: 24px; }
.contest-preview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 370px;
  object-fit: cover;
}

.contest-catalog { margin-block: 36px clamp(65px, 7.7vw, 116px); }
.contest-catalog .lead { margin-block: 13px 29px; }
.catalog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); }
.catalog-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.catalog-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(23px, 3vw, 36px); }
.catalog-copy h2 { margin-block: 13px 10px; font-size: clamp(29px, 3.2vw, 49px); }
.catalog-copy > p:not(.kicker) { max-width: 46ch; margin-bottom: 20px; color: var(--subtle); font-size: 17px; }
.catalog-copy .button { margin-top: auto; }

.contest-archive { padding: clamp(26px, 5vw, 72px); border-radius: var(--radius); }
.contest-archive h1 { margin-block: 16px; }
.archive-report { margin-block: clamp(45px, 6vw, 90px); }
.archive-report .body-large { max-width: 66ch; }
.archive-gallery { margin-block: 24px; }
.archive-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.archive-gallery figcaption { margin-top: 9px; color: var(--subtle); font-size: 14px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 100px); }
.body-large { max-width: 41ch; margin-block: 17px 20px; color: var(--subtle); font-size: clamp(17px, 1.8vw, 24px); }
.facts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 12px; }
.facts > div { border-top: 1px solid var(--line); }
dt { font-weight: 750; }
.pending { color: var(--subtle); }

.site-footer { background: var(--navy); color: white; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 30px clamp(22px, 5vw, 72px);
  padding-block: 42px 20px;
}
.site-footer h2 { margin-block: 10px 8px; font-size: clamp(30px, 3vw, 44px); }
.site-footer h3 { margin-bottom: 14px; font-size: 19px; letter-spacing: -.025em; }
.footer-heading > p:last-child, .footer-bottom, .footer-contact-list dd { color: #d5d9ea; }
.footer-address { display: flex; align-items: flex-start; gap: 10px; }
.footer-address address { max-width: 32ch; margin-top: 3px; color: #d5d9ea; font-style: normal; }
.footer-label { font-weight: 750; }
.footer-contact-list { display: grid; gap: 10px; }
.footer-contact-list > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.footer-contact-list dt { display: flex; align-items: center; gap: 10px; min-width: 114px; }
.footer-source { margin-top: 12px; }
.footer-contact-list dd, .footer-source, .footer-bottom { font-size: 14px; }
.footer-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: #b9c8ff;
  mask: var(--icon) center / contain no-repeat;
}
.footer-address .footer-icon { margin-top: 4px; }
.icon-pin { --icon: url("./contact-icons/map-pin.svg"); }
.icon-mail { --icon: url("./contact-icons/mail.svg"); }
.icon-phone { --icon: url("./contact-icons/phone.svg"); }
.icon-vk { --icon: url("./contact-icons/vk.svg"); }
.icon-max { --icon: url("./contact-icons/message-circle.svg"); }
.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid #3e4665;
}
.site-footer .text-link:hover { color: #b9c8ff; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 16px 3px; color: var(--subtle); font-size: 14px; }
.breadcrumb a { text-underline-offset: 3px; }
.contest-hero .hero-copy { background: #f8e9df; }
.contest-hero .hero-art { background: #e76045; }
.contest-hero h1 { font-size: clamp(47px, 6.3vw, 94px); }
.contest-hero .lead { max-width: 28ch; }
.condition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.condition h3 { margin-bottom: 12px; font-size: clamp(24px, 2.5vw, 39px); }
.rules { margin-top: 13px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; }
.rules summary { cursor: pointer; font-weight: 750; }
.rules p { margin-top: 10px; color: var(--subtle); }
.application { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 6vw, 95px); padding: clamp(25px, 4vw, 58px); border-radius: var(--radius); background: var(--cream); }
.application h2 { margin-block: 14px; }
.application p:not(.kicker) { max-width: 41ch; color: var(--subtle); font-size: 17px; }
fieldset { display: grid; gap: 14px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
label { display: grid; gap: 5px; font-size: 14px; font-weight: 750; }
input { display: block; width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #c9c5bd; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
fieldset .button { justify-self: start; margin-top: 4px; }
.form-feedback:not(:empty) { margin-top: 15px; font-weight: 700; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  h1 { font-size: clamp(42px, 5.8vw, 72px); }
  .hero-copy { min-height: 420px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  :root { --header-height: 68px; --header-compact-height: 52px; }
  .header-inner { gap: 9px; }
  .brand { gap: 7px; }
  .brand-mark { width: 40px; height: 40px; }
  .site-header.is-scrolled .brand-mark { width: 34px; height: 34px; }
  .site-header.menu-ready .menu-toggle { display: inline-flex; }
  .site-header.menu-ready .header-inner > .main-nav { display: none; }
  .site-header.menu-ready .brand { margin-inline-end: auto; }
  .site-header:not(.menu-ready) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-header:not(.menu-ready) .main-nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero, .about, .application { grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; padding-block: 32px 35px; }
  h1, .contest-hero h1 { font-size: clamp(34px, 10.4vw, 77px); }
  .hero h1 { margin-block: 18px 13px; }
  .hero-art { width: 100%; min-height: 250px; aspect-ratio: 1.46; }
  .actions { margin-top: 23px; }
  .wide-only { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 17px; }
  .section-head.contests-heading { align-items: center; flex-direction: row; gap: 12px; }
  .condition-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .footer-heading { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .project-grid { grid-template-columns: 1fr; }
  .project { min-height: 0; }
  .contest-preview { grid-template-columns: minmax(0, 1fr); }
  .contest-preview img { height: auto; max-height: 260px; aspect-ratio: 16 / 9; }
  .contests-heading h2 { font-size: clamp(29px, 9vw, 36px); }
  .contests-heading .button { min-height: 43px; padding: 8px 10px; gap: 6px; font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .site-header.menu-ready .header-contact { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open] .mobile-menu-panel { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
