/* ==========================================================================
   АСВ: лидеры будущего — конкурс студенческих проектов
   Базовая (десктопная) вёрстка. Эталон макета — ширина 1600 px.
   ========================================================================== */

:root {
    --blue: #134bc5;
    --green: #0aa952;
    --ink: #161c2d;
    --ink-2: #161736;
    --muted: #616f99;
    --muted-2: #7d8da6;
    --page: #fcfcff;
    --surface: #f4f7fa;
    --card-border: #f1f1f3;
    --badge-text: #fffbeb;

    --shadow-card: 0 22px 44px -4px rgba(159, 159, 159, .15);

    --container: 1110px;
    --gutter: 40px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: 'Gilroy', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, figure {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer :focus-visible {
    outline-color: #fff;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}

.container {
    position: relative;
    width: var(--container);
    max-width: calc(100% - var(--gutter) * 2);
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Типовые заголовки
   -------------------------------------------------------------------------- */

.section-title {
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    letter-spacing: -1.2px;
    color: var(--ink);
}

.section-label {
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 1.625px;
    text-transform: uppercase;
    color: var(--green);
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 220px;
    height: 59px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    line-height: 32px;
    letter-spacing: -.6px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.btn--blue {
    background: var(--blue);
}

.btn--green {
    background: var(--green);
}

.btn--static {
    cursor: default;
}

.btn--static:hover {
    box-shadow: none;
    transform: none;
}

.btn:hover {
    box-shadow: 0 10px 24px -6px rgba(19, 75, 197, .45);
    transform: translateY(-2px);
}

.btn--green:hover {
    box-shadow: 0 10px 24px -6px rgba(10, 169, 82, .45);
}

.btn:active {
    transform: translateY(0);
}

.btn--blue:active {
    background: #0f3da3;
}

.btn--green:active {
    background: #088a43;
}

.btn__icon--arrow {
    width: 12px;
    height: 10.4px;
    flex: 0 0 auto;
}

.btn__icon--download {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    height: 675.5px;
    background: var(--surface);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__pattern::before {
    content: '';
    position: absolute;
    left: 0;
    top: -18.58%;
    width: 100%;
    height: 236.86%;
    background: url('../assets/img/hero-pattern.jpg') no-repeat center / 100% 100%;
    opacity: .02;
}

.hero__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 1003px;
    height: 652px;
    max-width: none;
}

.hero__inner {
    position: relative;
    width: var(--container);
    max-width: calc(100% - var(--gutter) * 2);
    height: 100%;
    margin: 0 auto;
}

.hero__logo {
    position: absolute;
    left: 0;
    top: 36.83px;
    display: block;
    width: 65px;
    height: 58.35px;
    z-index: 3;
}

.hero__logo img {
    width: 100%;
    height: 100%;
}

.hero__content {
    position: absolute;
    left: -1px;
    top: 161px;
    width: 571px;
    z-index: 3;
}

.hero__title {
    font-weight: 700;
    font-size: 49.411px;
    line-height: 53.529px;
    letter-spacing: -1.647px;
    color: var(--ink);
}

.hero__actions {
    display: flex;
    gap: 20px;
    margin-top: 20.94px;
}

.hero__dots {
    position: absolute;
    left: 288.5px;
    top: 458px;
    width: 234.557px;
    height: 109px;
    z-index: 1;
}

.hero__photo {
    position: absolute;
    left: 443.3px;
    top: 285.98px;
    width: 384.835px;
    height: 384.835px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.hero__brand {
    position: absolute;
    left: 825px;
    top: 209.72px;
    width: 348px;
    height: 157.46px;
    z-index: 2;
}

/* Шире 1600 лента прижата к правому краю окна, а логотип лежит в центральной
   колонке — при зуме и на широких экранах он отставал от ленты и оказывался
   на светлом фоне. Привязываем его к тому же правому краю. */
@media (min-width: 1600px) {
    .hero__brand {
        left: auto;
        right: calc(182px - (100vw - 1110px) / 2);
    }
}

/* ==========================================================================
   О КОНКУРСЕ
   ========================================================================== */

.about {
    position: relative;
    padding-top: 44.5px;
}

.about .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about__title {
    margin-top: 15px;
    max-width: 1107px;
    font-weight: 400;
    font-size: 36px;
    line-height: 48px;
    letter-spacing: -1.2px;
    color: #000;
}

.about__text {
    margin-top: 23px;
    max-width: 1097.82px;
    font-size: 19px;
    line-height: 32px;
    letter-spacing: -.2px;
    color: var(--muted);
}

.about__btn {
    margin-top: 33px;
}

.about__dots {
    position: absolute;
    right: max(var(--gutter), calc(50% - 555px));
    top: 427.5px;
    width: 234.557px;
    height: 109px;
}

/* ==========================================================================
   НОМИНАЦИИ И ПРИЗОВОЙ ФОНД
   ========================================================================== */

.nominations {
    position: relative;
}

.nominations__head {
    padding-top: 125.9px;
    width: 730px;
}

.nominations__title {
    font-weight: 700;
    font-size: 50px;
    line-height: 62px;
    letter-spacing: 1.625px;
    text-transform: uppercase;
    color: var(--green);
}

.nominations__note {
    height: 84px;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -.2px;
    color: var(--muted);
    opacity: .7;
}

.nominations__note b {
    font-weight: 700;
}

.nomination__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.nomination--individual {
    padding-top: 50.1px;
    padding-bottom: 15.33px;
}

.nomination--team {
    background: var(--surface);
    padding-top: 32px;
    padding-bottom: 48.67px;
}

.nomination__text {
    padding-top: 143.4px;
    margin-left: -1.1px;
}

.nomination__name {
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    letter-spacing: -1.2px;
    color: var(--ink);
}

.nomination__desc {
    margin-top: 15px;
    height: 63px;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -.2px;
    color: var(--ink);
    opacity: .7;
}

.nomination__hint {
    margin-top: 6px;
    width: 321.32px;
    font-size: 12px;
    line-height: normal;
    letter-spacing: -.2px;
    color: var(--muted);
    opacity: .7;
}

.nomination__media img {
    width: 100%;
    height: 492px;
    object-fit: cover;
}

.nomination__prize {
    padding-top: 28.9px;
    margin-left: -1.1px;
    white-space: nowrap;
}

.prize__title {
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    letter-spacing: -1.2px;
    color: var(--ink);
}

.prize__label {
    margin-top: 22.67px;
    font-size: 18px;
    line-height: 32px;
    letter-spacing: -.2px;
    color: var(--ink);
    opacity: .7;
}

.prize__label--second {
    margin-top: 47.33px;
}

.prize__row {
    height: 44px;
    letter-spacing: -1.2px;
    line-height: 44px;
}

.prize__row--first {
    margin-top: 3px;
    display: flex;
    gap: 14.66px;
    font-weight: 700;
    font-size: 40px;
    color: var(--blue);
}

.prize__row--green {
    color: var(--green);
}

.prize__row--rest {
    margin-top: 25px;
    font-weight: 500;
    font-size: 40px;
    color: #000;
}

.prize__label--second + .prize__row--rest {
    margin-top: 3.62px;
}

.prize__unit {
    font-size: 28px;
    line-height: 0;
}

.nomination__btn {
    margin-top: 61.48px;
    margin-left: 1px;
}

/* ==========================================================================
   ЭТАПЫ КОНКУРСА
   ========================================================================== */

.stages {
    padding-top: 42.02px;
}

.stages__box {
    position: relative;
    margin-top: 35.72px;
    padding: 61.45px 91px 59.94px 95px;
    background: var(--surface);
    border-radius: 14px;
}

.stages__list {
    display: flex;
    flex-direction: column;
    gap: 11.5px;
}

.stage {
    position: relative;
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 14px;
    height: 100px;
}

.stage__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.stage__pre {
    font-weight: 700;
    font-size: 16px;
    line-height: 14px;
    color: #000;
}

.stage__day {
    font-weight: 700;
    font-size: 32px;
    line-height: 37px;
    color: #000;
}

.stage__day i {
    font-style: normal;
    font-size: 16px;
}

.stage__month {
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    color: #000;
}

.stage__month {
    position: relative;
    top: -2px;
}

.stage__date:has(.stage__pre) .stage__month {
    line-height: 14px;
    top: 0;
}

.stage__weekday {
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -.2px;
    color: var(--ink);
    opacity: .7;
}

.stage__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    height: 100px;
    padding: 13px 35px 13px 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
}

.stage__title {
    font-weight: 600;
    font-size: 18px;
    line-height: normal;
    color: var(--ink-2);
}

.stage__note {
    font-size: 14px;
    line-height: normal;
    color: var(--muted-2);
}

/* Бейджи -------------------------------------------------------------- */

.badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    height: 40px;
    border-radius: 13px / 14px;
    font-size: 16px;
    line-height: normal;
    color: var(--badge-text);
    text-decoration: none;
    z-index: 4;
}

.badge::after {
    content: '';
    position: absolute;
    top: 39.36px;
    width: 13.102px;
    height: 13.452px;
    background: var(--blue);
}

.badge__icon {
    flex: 0 0 auto;
}

.badge--countdown {
    left: 400.4px;
    top: -12px;
    width: 254.806px;
    padding-left: 6.22px;
    gap: 12px;
    background: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
}

.badge--countdown::after {
    left: 209.506px;
    clip-path: polygon(100% 100%, 100% 0, 0 0);
}

.badge--countdown .badge__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.badge--now,
.badge--link {
    gap: 12px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
}

.badge--now::after,
.badge--link::after {
    clip-path: polygon(0 100%, 0 0, 100% 0);
    width: 12.236px;
}

.badge--now {
    left: 842.11px;
    top: 17.1px;
    width: 127.319px;
    padding-left: 26.62px;
}

.badge--now::after {
    left: 26.414px;
}

.badge--now .badge__icon {
    width: 10.377px;
    height: 15.493px;
    margin-left: 6.8px;
}

.badge--link {
    left: 775.41px;
    top: -2.53px;
    width: 199.591px;
    padding-left: 16.8px;
}

.badge--link::after {
    left: 19.59px;
}

.badge--link .badge__icon {
    width: 16.5px;
    height: 16.5px;
    margin-left: 3.75px;
}

.badge--link-low {
    top: 66.33px;
}

.badge--link:hover {
    filter: brightness(1.08);
}

/* ==========================================================================
   ТЕМЫ КОНКУРСНЫХ РАБОТ
   ========================================================================== */

.topics {
    padding-top: 37.85px;
}

.topics__grid,
.documents__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}

.card__title {
    flex: 0 0 auto;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    color: #000;
    text-align: center;
}

.card--topic {
    margin-top: 13.11px;
    height: 432px;
}

.card__image {
    flex: 0 0 auto;
    width: 220px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card--topic .card__title {
    margin-top: 32px;
}

.card .btn {
    flex: 0 0 auto;
}

.card--topic .btn {
    margin-top: 32px;
}

.card--topic-own {
    height: 431px;
}

.card--topic-own .card__image {
    height: 228.543px;
}

.card--topic-own .card__title {
    margin-top: 28px;
    line-height: 25px;
}

.card--topic-own .btn {
    margin-top: 7px;
}

/* ==========================================================================
   ДОКУМЕНТЫ
   ========================================================================== */

.documents {
    position: relative;
    padding-top: 38.78px;
}

.documents .container {
    z-index: 1;
}

.documents__grid {
    margin-top: 22.11px;
}

.card--doc {
    height: 195px;
    padding: 27px 40px;
}

.card--doc .card__title {
    min-height: 50px;
    line-height: 25px;
}

.card--doc .btn {
    margin-top: 32px;
}

.documents__dots {
    position: absolute;
    right: max(0px, calc(50% - 693.56px));
    top: 32.6px;
    width: 234.557px;
    height: 109px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    padding-top: 56.5px;
}

.faq__box {
    margin-top: 4.5px;
    padding: 52px 96px 52px 95px;
    background: var(--surface);
    border-radius: 14px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq__item {
    background: #fff;
    border-radius: 5px;
    box-shadow: var(--shadow-card);
}

.faq__question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 16px 21px 16px 20px;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(90deg, var(--blue) 0%, var(--green) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 5px;
    color: var(--blue);
    font-weight: 600;
    font-size: 21px;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s ease;
}

.faq__chevron {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    transition: transform .3s ease;
}

.faq__item.is-open .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}

.faq__item.is-open .faq__answer {
    grid-template-rows: 1fr;
}

.faq__answer > p {
    overflow: hidden;
    margin: 0;
    padding: 0 21px 0 20px;
    font-size: 18px;
    line-height: 28px;
    color: var(--muted);
    transition: padding .3s ease;
}

.faq__item.is-open .faq__answer > p {
    padding-top: 16px;
    padding-bottom: 24px;
}

/* ==========================================================================
   ЭКСПЕРТНАЯ КОМИССИЯ
   ========================================================================== */

.experts {
    padding-top: 40.37px;
    overflow: hidden;
}

.experts__band {
    margin-top: 30.48px;
    padding-top: 148.25px;
    padding-bottom: 39px;
    background: var(--surface);
}

.experts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.expert {
    position: relative;
    width: 100%;
    aspect-ratio: 350 / 385.428;
}

.expert__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.expert__photo {
    position: absolute;
    z-index: 3;
    max-width: none;
}

.expert__photo--1 {
    left: -9.82%;
    top: -35.9%;
    width: 118.85%;
    height: 112.59%;
}

.expert__photo--2 {
    left: 6.36%;
    top: -40.09%;
    width: 81.89%;
    height: 116.78%;
}

.expert__photo--3 {
    left: -3.64%;
    top: -31.47%;
    width: 88.3%;
    height: 108.16%;
}

.expert__info {
    position: absolute;
    left: 0;
    top: 80.19%;
    width: 100%;
    z-index: 4;
    text-align: center;
    color: #fff;
}

.expert__name {
    font-weight: 700;
    font-size: 24.258px;
    line-height: normal;
}

.expert__role {
    margin-top: 2.695px;
    font-size: 17.969px;
    line-height: normal;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    margin-top: 35px;
    padding: 36px 0 30px;
    background: var(--blue);
    color: #fff;
}

.footer__inner {
    width: 1276px;
    max-width: calc(100% - var(--gutter) * 2);
    margin: 0 auto;
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-right: 18px;
}

.footer__col {
    width: 392px;
    flex: 0 0 auto;
}

.footer__logo {
    width: 65px;
    height: 58.35px;
}

.footer__title {
    margin-top: 40px;
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    letter-spacing: -1.2px;
}

.footer__contacts {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.5;
    text-decoration: none;
    transition: opacity .2s ease;
}

a.footer__link:hover {
    opacity: .8;
}

.footer__link--address {
    font-weight: 700;
}

.footer__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.footer__brand {
    width: 348px;
    height: 157.585px;
    flex: 0 0 auto;
}

.footer__copy {
    margin-top: 50px;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Появление блоков при прокрутке
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity .6s ease, transform .6s ease;
    }

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Компенсация вертикальных метрик: Figma и браузер по-разному размещают
   глифы внутри строки. Сдвиги подобраны по попиксельному сравнению с макетом.
   -------------------------------------------------------------------------- */

.hero__title,
.nominations__title {
    position: relative;
    top: -3px;
}

.section-title,
.nomination__name,
.prize__title,
.prize__row,
.card__title,
.footer__title,
.expert__name {
    position: relative;
    top: -2px;
}

.card--doc .card__title {
    top: -1px;
}

/* --------------------------------------------------------------------------
   Плашка «Тема, предложенная участником конкурса»
   -------------------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 26, 71, .55);
    backdrop-filter: blur(4px);
}

.modal.is-open {
    display: flex;
}

.modal__dialog {
    position: relative;
    width: 735px;
    max-width: 100%;
    max-height: 90vh;
    padding: 17px 32px 42px 24.29px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 40px 80px -30px rgba(2, 26, 71, .8);
    overflow: auto;
    font-family: 'Gilroy', Arial, sans-serif;
    color: #000;
}

.modal__close {
    position: absolute;
    right: 32px;
    top: 17px;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.modal__close img {
    display: block;
    width: 100%;
    height: 100%;
}

.modal__chip {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 444px;
    max-width: 100%;
    height: 44px;
    padding-left: 22px;
    border-radius: 8px;
    background: #094aaa;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 21.818px;
    letter-spacing: 1.12px;
    white-space: nowrap;
}

.modal__chip img {
    /* в макете 19 px, но линии внутри документа сливаются — берём 24 */
    width: 24px;
    height: 23.68px;
    flex: 0 0 auto;
}

.modal__note {
    width: 648.71px;
    max-width: 100%;
    margin-top: 20px;
    font-size: 18px;
    line-height: normal;
    letter-spacing: 1.44px;
}

@media (max-width: 767px) {
    .modal {
        padding: 12px;
    }

    .modal__dialog {
        padding: 16px 20px 24px;
    }

    .modal__close {
        right: 16px;
        top: 16px;
    }

    .modal__chip {
        height: auto;
        min-height: 40px;
        padding: 8px 16px;
        gap: 14px;
        white-space: normal;
    }

    .modal__note {
        font-size: 16px;
        letter-spacing: .8px;
    }
}
