:root {
    --red: #e20e18;
    --black: #161616;
    --paper: #f4f2ec;
    --gray: #dcd9d1;
    --line: #aaa69e
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

button {
    color: inherit
}

.header {
    height: 82px;
    padding: 10px 3vw;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid #bbb;
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 20
}

.logo {
    width: 105px
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700
}

.header-cta {
    justify-self: end;
    background: var(--red);
    color: #fff;
    padding: 14px 18px;
    text-transform: uppercase;
    font-size: 12px
}

.hero {
    min-height: calc(100vh - 82px);
    padding: 55px 3vw 35px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 3vw;
    align-items: end;
    overflow: hidden
}

.eyebrow,
.kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-weight: 800
}

.hero h1 {
    font-size: clamp(68px, 9.4vw, 150px);
    line-height: .79;
    letter-spacing: -.075em;
    text-transform: uppercase;
    margin: 10vh 0 5vh
}

.hero h1 span {
    color: var(--red)
}

.hero-bottom {
    display: flex;
    gap: 30px;
    align-items: flex-end
}

.hero-bottom p {
    max-width: 620px;
    margin: 0;
    font-size: clamp(17px, 1.5vw, 24px);
    line-height: 1.25
}

.hero-vote {
    min-width: 190px;
    height: 58px;
    padding: 0 18px;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em
}

.photo {
    min-height: 600px;
    background: url('/images/template/tatary_goda/photo.jpg');
    position: relative;
    background-size: cover;
    background-position: center;
}

.photo:after {
    content: 'Казанский Кремль · 2025';
    position: absolute;
    left: 17px;
    bottom: 17px;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.ticker {
    background: var(--red);
    color: #fff;
    overflow: hidden;
    padding: 12px 0;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em
}

.ticker div {
    width: max-content;
    animation: tick 28s linear infinite
}

@keyframes tick {
    to {
        transform: translateX(-50%)
    }
}

.section {
    padding: clamp(75px, 9vw, 145px) 3vw
}

.section_img {
    width: 100%;
    margin-top: 32px
}

.about {
    background: var(--black);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6vw
}

.about h2,
.heading h2,
.ceremony-copy h2,
.organizer h2 {
    font-size: clamp(45px, 6vw, 92px);
    line-height: .92;
    letter-spacing: -.055em;
    text-transform: uppercase;
    margin: 0
}

.about p {
    color: #bbb7af;
    font-size: 20px;
    line-height: 1.5;
    max-width: 780px
}

.facts {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 35px
}

.facts div {
    border-top: 1px solid #666;
    padding-top: 15px
}

.facts strong {
    display: block;
    color: var(--red);
    font-size: clamp(50px, 6vw, 90px);
    letter-spacing: -.06em
}

.facts span {
    text-transform: uppercase;
    font-size: 12px
}

.heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6vw;
    margin-bottom: 65px
}

.heading h2 {
    grid-column: 2
}

.heading p {
    grid-column: 2;
    max-width: 700px;
    font-size: 18px;
    line-height: 1.5
}

.nom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid;
    border-left: 1px solid
}

.nom {
    min-height: 145px;
    border: 0;
    border-right: 1px solid;
    border-bottom: 1px solid;
    background: transparent;
    padding: 20px;
    text-align: left;
    display: grid;
    grid-template-columns: 30px 1fr 20px;
    gap: 12px;
    cursor: pointer
}

.nom span {
    color: #777;
    font-size: 11px
}

.nom b {
    font-size: clamp(17px, 1.35vw, 22px);
    line-height: 1.15
}

.nom:hover {
    background: var(--red);
    color: #fff
}

.nom:hover span {
    color: #fff
}

.vote-band {
    padding: 65px 3vw;
    background: var(--red);
    color: #fff;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 7vw;
    align-items: end
}

.vote-band h2 {
    font-size: clamp(48px, 6vw, 94px);
    line-height: .88;
    letter-spacing: -.06em;
    text-transform: uppercase;
    margin: 24px 0 0
}

.vote-band p {
    line-height: 1.5
}

.primary {
    width: 100%;
    height: 54px;
    border: 0;
    background: var(--black);
    color: #fff;
    padding: 0 18px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .08em;
    cursor: pointer
}

.vote-band .primary {
    background: #fff;
    color: #111
}

.pill {
    display: inline-block;
    border: 1px solid;
    border-radius: 30px;
    padding: 9px 15px;
    margin-top: 14px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.stage {
    min-height: 355px;
    border: 1px solid var(--line);
    padding: 25px;
    display: flex;
    flex-direction: column
}

.stage+.stage {
    border-left: 0
}

.stage>strong {
    font-size: 72px;
    line-height: 1;
    color: #d6d3cc
}

.stage time {
    margin-top: auto;
    font-size: 11px;
    text-transform: uppercase
}

.stage h3 {
    font-size: 24px;
    text-transform: uppercase;
    margin: 18px 0 10px
}

.stage p {
    color: #666;
    line-height: 1.45;
    margin: 0
}

.stage.red {
    background: var(--red);
    color: #fff;
    border-color: var(--red)
}

.stage.red p,
.stage.red>strong {
    color: #ffb7ba
}

.stage.dark {
    background: #111;
    color: #fff;
    border-color: #111
}

.ceremony {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    padding-top: 0
}

.ceremony-img {
    min-height: 650px;
    background: url('/images/template/tatary_goda/photo.jpg');
    background-size: cover;
    background-position: center;
}

.ceremony-copy {
    background: var(--gray);
    padding: 7vw 5vw;
    display: flex;
    flex-direction: column
}

.ceremony-copy p {
    font-size: 19px;
    line-height: 1.5
}

.date {
    margin-top: auto;
    border-top: 1px solid;
    padding-top: 20px;
    display: flex;
    align-items: end;
    gap: 18px
}

.date strong {
    font-size: 110px;
    line-height: .75;
    color: var(--red);
    letter-spacing: -.08em
}

.date span {
    text-transform: uppercase;
    font-weight: 700
}

.gallery {
    background: #f5f4f0;
    padding-top: 90px
}

.gallery-head {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 7vw;
    align-items: end;
    margin-bottom: 44px
}

.gallery-head h2 {
    font-size: clamp(60px, 8vw, 124px);
    line-height: .82;
    letter-spacing: -.065em;
    text-transform: uppercase;
    margin: 22px 0 0
}

.gallery-head p {
    max-width: 470px;
    margin: 0;
    font-size: 19px;
    line-height: 1.45
}

.gallery-years {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid;
    border-left: 1px solid;
    margin-bottom: 20px
}

.gallery-years button {
    min-height: 100px;
    padding: 16px 20px;
    border: 0;
    border-right: 1px solid;
    border-bottom: 1px solid;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    cursor: pointer
}

.gallery-years button span {
    font-size: clamp(34px, 4vw, 60px);
    line-height: .8;
    font-weight: 800;
    letter-spacing: -.06em
}

.gallery-years button small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.gallery-years button.active {
    background: var(--red);
    color: #fff
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    gap: 12px
}

.gallery-card {
    position: relative;
    grid-column: span 4;
    aspect-ratio: 1.48;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: #d7d4cd;
    cursor: zoom-in
}

.gallery-card:nth-child(7n+1),
.gallery-card:nth-child(7n+5) {
    grid-column: span 8;
    aspect-ratio: 2
}

.gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s, filter .3s
}

.gallery-card:hover img {
    transform: scale(1.025);
    filter: brightness(.86)
}

.gallery-card span,
.gallery-card i {
    position: absolute;
    z-index: 2;
    bottom: 14px;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    opacity: 0
}

.gallery-card span {
    left: 15px
}

.gallery-card i {
    right: 15px;
    font-size: 18px
}

.gallery-card:hover span,
.gallery-card:hover i {
    opacity: 1
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, .94);
    display: none;
    padding: 28px
}

.gallery-lightbox.open {
    display: grid;
    place-items: center
}

.gallery-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 90px);
    object-fit: contain
}

.gallery-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 42px;
    height: 42px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 23px;
    cursor: pointer
}

.gallery-caption {
    position: absolute;
    left: 24px;
    bottom: 18px;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.experts {
    background: var(--black);
    color: #fff
}

.experts .heading {
    border-bottom: 1px solid #555;
    padding-bottom: 45px
}

.expert-note {
    color: #999;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 10px
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #555;
    border-left: 1px solid #555
}

.expert {
    border-right: 1px solid #555;
    border-bottom: 1px solid #555
}

.expert img {
    display: block;
    width: 100%;
    aspect-ratio: .84;
    object-fit: cover;
    filter: grayscale(1)
}

.expert:hover img {
    filter: none
}

.expert div {
    min-height: 155px;
    padding: 18px;
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 10px
}

.expert div span {
    color: var(--red);
    font-size: 11px
}

.expert b {
    font-size: 20px;
    line-height: 1.05
}

.expert p {
    grid-column: 2;
    color: #aaa;
    font-size: 13px;
    line-height: 1.4;
    margin: 4px 0
}

.organizer {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 6vw;
    align-items: center
}

.org-logo {
    min-height: 430px;
    background: #fff;
    display: grid;
    place-items: center
}

.org-logo img {
    width: min(280px, 65%)
}

.org-copy p {
    font-size: 19px;
    line-height: 1.5
}

.org-stats {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.org-stats div {
    border-top: 1px solid;
    padding-top: 12px
}

.org-stats strong {
    display: block;
    color: var(--red);
    font-size: 27px
}

.org-stats span {
    font-size: 11px;
    text-transform: uppercase
}

.faq {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 7vw
}

.faq .heading {
    display: block
}

.faq details {
    border-top: 1px solid;
    padding: 22px 0
}

.faq details:last-child {
    border-bottom: 1px solid
}

.faq summary {
    font-size: 19px;
    font-weight: 700;
    cursor: pointer
}

.faq details p {
    color: #5d5953;
    line-height: 1.55;
    padding-left: 25px
}

.partners {
    border-top: 1px solid;
    padding-top: 50px;
    padding-bottom: 50px
}

.partner-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid;
    border-left: 1px solid;
    margin-top: 25px
}

.partner-logo {
    min-height: 180px;
    padding: 22px 18px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f5f4f0
}

.tatmedia {
    gap: 10px;
    font-size: 20px;
    font-weight: 700
}

.tatmedia>b {
    width: 48px;
    height: 48px;
    border: 4px solid #08a6a6;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.tatmedia span span {
    color: #08a6a6
}

.tatar-inform {
    flex-direction: column;
    color: #178c71;
    line-height: .78
}

.tatar-inform b {
    font-size: 25px
}

.tatar-inform i {
    width: 110px;
    height: 3px;
    background: currentColor;
    margin: 7px
}

.intertat {
    flex-direction: column;
    color: var(--red)
}

.intertat b {
    font-size: 30px;
    font-style: italic
}

.intertat small {
    color: #111;
    text-transform: uppercase;
    letter-spacing: .13em
}

.kitap {
    flex-direction: column;
    color: #168985
}

.kitap b {
    font-size: 34px
}

.kitap small,
.kitap em {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-style: normal
}

.academy {
    font-family: Georgia, serif;
    gap: 12px;
    text-align: left
}

.academy:before {
    content: 'ФА';
    width: 48px;
    height: 48px;
    border: 1px solid;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto
}

.academy b {
    font-size: 12px
}

.footer {
    background: var(--red);
    color: #fff;
    padding: 7vw 3vw 35px;
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    align-items: end
}

.footer-title {
    font-size: clamp(64px, 10vw, 152px);
    line-height: .78;
    letter-spacing: -.075em;
    font-weight: 800;
    margin-bottom: 16px
}

.footer-title span {
    color: #111
}

.footer-meta {
    text-align: right
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    z-index: 100;
    display: none;
    padding: 20px;
    overflow: auto
}

.modal.open {
    display: grid;
    place-items: center
}

.panel {
    width: min(1050px, 100%);
    background: var(--paper);
    position: relative
}

.close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 22px
}

.modal-head {
    padding: 26px 70px 25px 28px;
    border-bottom: 1px solid
}

.modal-head .small {
    color: var(--red);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em
}

.modal-head h2 {
    font-size: clamp(27px, 3vw, 44px);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -.04em;
    margin: 12px 0
}

.modal-head p {
    color: #625e58;
    line-height: 1.45;
    margin: 0
}

.progress {
    display: grid;
    grid-template-columns: 28px 1fr 28px 1fr 28px;
    align-items: center;
    padding: 17px 28px;
    border-bottom: 1px solid #bbb
}

.progress span {
    width: 28px;
    height: 28px;
    border: 1px solid #aaa;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px
}

.progress i {
    height: 1px;
    background: #aaa
}

.progress .on {
    background: var(--red);
    border-color: var(--red);
    color: #fff
}

.progress .done {
    background: #111;
    color: #fff
}

.candidates {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 28px
}

.candidate {
    min-height: 205px;
    border: 1px solid;
    background: transparent;
    text-align: left;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.candidate:hover:not(:has(.candidate-radio:disabled)) {
    background: #111;
    color: #fff;
    cursor: pointer
}

.candidate .num {
    font-size: 64px;
    line-height: .9;
    font-weight: 800;
    color: #d7d4cc;
    letter-spacing: -.08em
}

.candidate-name {
    margin-top: auto;
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.05;
    letter-spacing: -.035em
}

.confirm small,
.success-card small {
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: .1em
}

.confirm {
    padding: 28px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px
}

.confirm-num {
    min-height: 270px;
    background: #111;
    color: var(--red);
    display: grid;
    place-items: center;
    font-size: 100px;
    font-weight: 800
}

.confirm h3 {
    font-size: clamp(35px, 4vw, 58px);
    line-height: .9;
    text-transform: uppercase;
    letter-spacing: -.05em;
    margin: 16px 0
}

.actions {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.secondary {
    height: 52px;
    border: 1px solid;
    background: transparent;
    text-transform: uppercase;
    cursor: pointer
}

.form {
    padding: 36px 28px;
    max-width: 630px;
    margin: auto
}

.form label {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 12px
}

.form input {
    width: 100%;
    height: 58px;
    border: 1px solid;
    padding: 0 16px;
    background: #fff;
    font-size: 20px
}

.form p {
    color: #68645e;
    font-size: 13px;
    line-height: 1.5
}

.otp {
    display: grid !important;
    grid-template-columns: repeat(4, 60px);
    gap: 8px;
    width: auto !important
}

.otp input {
    text-align: center;
    padding: 0;
    font-size: 25px
}

.success {
    padding: 42px 28px;
    text-align: center;
    max-width: 720px;
    margin: auto
}

.check {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 40px;
    margin: 0 auto 25px
}

.success-card {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 16px;
    text-align: left;
    border: 1px solid;
    padding: 16px;
    margin-bottom: 25px
}

.success-card .index {
    background: #111;
    color: var(--red);
    font-size: 38px;
    font-weight: 800;
    display: grid;
    place-items: center
}

.success-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.success-card b {
    font-size: 22px
}

.hidden {
    display: none !important
}

.demo-note {
    font-size: 11px;
    color: #777;
    margin-top: 14px;
    text-align: center
}

@media(max-width:900px) {
    .header {
        grid-template-columns: 1fr auto
    }

    .nav {
        display: none
    }

    .hero,
    .about,
    .vote-band,
    .ceremony,
    .organizer,
    .faq {
        grid-template-columns: 1fr
    }

    .hero h1 {
        margin: 50px 0
    }

    .photo {
        min-height: 500px
    }

    .about .facts,
    .org-stats {
        grid-column: 1
    }

    .heading {
        grid-template-columns: 1fr
    }

    .heading h2,
    .heading p {
        grid-column: 1
    }

    .nom-grid,
    .expert-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .partner-row {
        grid-template-columns: repeat(3, 1fr)
    }

    .stages {
        grid-template-columns: repeat(2, 1fr)
    }

    .stage+.stage {
        border-left: 1px solid
    }

    .ceremony-img {
        min-height: 500px
    }

    .gallery-head {
        grid-template-columns: 1fr
    }

    .gallery-card,
    .gallery-card:nth-child(7n+1),
    .gallery-card:nth-child(7n+5) {
        grid-column: span 6;
        aspect-ratio: 1.45
    }

    .footer {
        grid-template-columns: 1fr;
        gap: 50px
    }

    .footer-meta {
        text-align: left
    }

    .candidates {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:620px) {
    .header {
        height: 70px;
        padding: 8px 17px
    }

    .logo {
        width: 78px
    }

    .header-cta {
        font-size: 10px;
        padding: 12px
    }

    .hero {
        padding: 35px 17px 22px
    }

    .hero h1 {
        font-size: 18vw
    }

    .hero-bottom {
        align-items: stretch;
        flex-direction: column
    }

    .hero-vote {
        width: 100%
    }

    .photo {
        min-height: 420px
    }

    .section {
        padding: 75px 17px
    }

    .about h2,
    .heading h2,
    .ceremony-copy h2,
    .organizer h2 {
        font-size: 44px
    }

    .facts,
    .org-stats {
        grid-template-columns: 1fr
    }

    .nom-grid,
    .expert-grid,
    .stages,
    .partner-row {
        grid-template-columns: 1fr
    }

    .vote-band {
        padding: 55px 17px
    }

    .ceremony {
        padding-left: 0;
        padding-right: 0
    }

    .ceremony-copy {
        min-height: 520px
    }

    .gallery {
        padding-top: 70px
    }

    .gallery-head h2 {
        font-size: 60px
    }

    .gallery-years button {
        min-height: 78px;
        padding: 13px 10px;
        flex-direction: column;
        align-items: flex-start
    }

    .gallery-years button span {
        font-size: 34px
    }

    .gallery-grid {
        gap: 7px
    }

    .gallery-card,
    .gallery-card:nth-child(7n+1),
    .gallery-card:nth-child(7n+5) {
        grid-column: span 12;
        aspect-ratio: 1.45
    }

    .gallery-card span,
    .gallery-card i {
        opacity: 1
    }

    .gallery-lightbox {
        padding: 12px
    }

    .candidates {
        grid-template-columns: 1fr;
        padding: 17px;
        gap: 8px
    }

    .candidate {
        min-height: 128px;
        padding: 14px 16px
    }

    .candidate .num {
        font-size: 48px
    }

    .candidate-name {
        font-size: 19px
    }

    .confirm {
        grid-template-columns: 1fr;
        padding: 17px
    }

    .confirm-num {
        min-height: 140px
    }

    .actions {
        grid-template-columns: 1fr
    }

    .modal {
        padding: 8px
    }

    .modal-head {
        padding-left: 18px
    }

    .footer {
        padding: 80px 17px 25px
    }

    .footer-title {
        font-size: 17vw
    }

    .otp {
        grid-template-columns: repeat(4, 1fr)
    }

    .success-card {
        grid-template-columns: 65px 1fr
    }
}

.partner-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 112px;
    object-fit: contain
}

.partner-logo:nth-child(2) img {
    width: 88px
}

.partner-logo:last-child img {
    max-height: 138px
}

.organizer {
    grid-template-columns: 1.4fr .6fr;
    gap: 8vw;
    align-items: end
}

.org-stats {
    grid-column: 2;
    grid-template-columns: 1fr;
    gap: 28px
}

.top-tatars {
    background: #dedbd2
}

.top-tatars-toolbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid;
    border-left: 1px solid;
    margin-bottom: 20px
}

.top-tatars-toolbar button {
    min-height: 100px;
    padding: 16px 20px;
    border: 0;
    border-right: 1px solid;
    border-bottom: 1px solid;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    cursor: pointer
}

.top-tatars-toolbar button span {
    font-size: clamp(34px, 4vw, 60px);
    line-height: .8;
    font-weight: 800;
    letter-spacing: -.06em
}

.top-tatars-toolbar button small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.top-tatars-toolbar button.active {
    background: #161616;
    color: #fff
}

.top-tatars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid;
    border-left: 1px solid
}

.top-tatar {
    border-right: 1px solid;
    border-bottom: 1px solid;
    background: #f5f4f0
}

.top-tatar img {
    width: 100%;
    aspect-ratio: .86;
    display: block;
    object-fit: cover;
    border-bottom: 1px solid
}

.top-tatar div {
    min-height: 105px;
    padding: 18px;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px
}

.top-tatar span {
    color: var(--red);
    font-size: 12px
}

.top-tatar b {
    font-size: 20px;
    line-height: 1.05
}

.top-tatars-source {
    min-height: 64px;
    padding: 0 20px;
    border: 1px solid;
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em
}

.top-tatars-source:hover {
    background: var(--red);
    color: #fff
}

@media(max-width:900px) {
    .top-tatars-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:620px) {
    .top-tatars-toolbar button {
        min-height: 78px;
        padding: 13px 10px;
        flex-direction: column;
        align-items: flex-start
    }

    .top-tatars-toolbar button span {
        font-size: 34px
    }

    .top-tatars-grid {
        grid-template-columns: 1fr
    }

    .top-tatar img {
        aspect-ratio: 1.1
    }

    .top-tatar div {
        min-height: 90px
    }
}

.top-tatar {
    min-height: 122px;
    padding: 20px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center
}

.top-tatar img {
    width: 72px;
    height: 72px;
    aspect-ratio: 1;
    border: 1px solid;
    border-radius: 50%;
    object-fit: cover
}

.top-tatar div {
    min-height: 0;
    padding: 0;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px
}

@media(max-width:620px) {
    .top-tatar {
        min-height: 110px;
        padding: 16px;
        grid-template-columns: 64px minmax(0, 1fr)
    }

    .top-tatar img {
        width: 64px;
        height: 64px;
        aspect-ratio: 1
    }

    .top-tatar div {
        min-height: 0
    }
}

.expert img,
.expert:hover img {
    filter: none
}

.candidate {
    position: relative
}

.candidate-radio {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none
}

.candidate:has(.candidate-radio:focus-visible):not(:has(.candidate-radio:disabled)) {
    outline: 3px solid var(--red);
    outline-offset: 2px
}

.candidate:has(.candidate-radio:checked) {
    background: #111;
    color: #fff
}

.candidate-votes {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #b9b6af;
    color: var(--red);
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700
}

.candidate:hover:not(:has(.candidate-radio:disabled)) .candidate-votes,
.candidate:has(.candidate-radio:checked) .candidate-votes {
    border-color: #5d5d5d;
    color: #ff5b62
}

.nom-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px
}

.nom-copy small {
    padding: 6px 9px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-weight: 700
}

.nom.voted {
    background: #161616;
    color: #fff
}

.nom.voted>span:first-child {
    color: #9d9a94
}

.nom.voted i {
    width: 34px;
    height: 34px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--red);
    display: grid;
    place-items: center;
    color: #fff
}

.nom.voted:hover {
    background: #161616
}
