@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
        U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/montserrat-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
        U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
        U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --night: #02020f;
    --night-soft: #0b0b19;
    --paper: #f7f6f2;
    --white: #fff;
    --sand: #b9a07d;
    --sand-light: #d2c1a9;
    --ink: #11111a;
    --muted: #727078;
    --line: rgb(255 255 255 / 16%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--night);
    color: var(--white);
    font: 16px/1.55 "Montserrat", Arial, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    position: fixed;
    z-index: 30;
    inset: 0;
    background: rgb(0 0 0 / 56%);
    content: "";
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    padding: 0 clamp(24px, 4vw, 58px);
    border-bottom: 1px solid var(--line);
    background: rgb(2 2 15 / 93%);
    backdrop-filter: blur(15px);
}

.brand {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font: 600 25px/1 "Cormorant Garamond", Georgia, serif;
    letter-spacing: .09em;
    text-decoration: none;
}

.brand-symbol {
    width: 44px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4px;
}

.brand-symbol circle {
    fill: currentColor;
    stroke: none;
}

.menu-toggle {
    position: relative;
    z-index: 32;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 11px 7px;
    border: 0;
    background: transparent;
    place-content: center;
    gap: 6px;
}

.menu-toggle > span:not(.visually-hidden) {
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--sand);
    transition: transform .25s ease, opacity .25s ease;
}

.menu-open .menu-toggle > span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-open .menu-toggle > span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle > span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.site-menu {
    position: fixed;
    z-index: 31;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(390px, calc(100vw - 18px));
    padding: clamp(52px, 8vh, 78px) clamp(36px, 7vw, 62px);
    visibility: hidden;
    flex-direction: column;
    background: #02020f;
    box-shadow: -24px 0 70px rgb(0 0 0 / 42%);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.menu-open .site-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

.menu-caption {
    display: none;
    margin-bottom: 32px;
    color: var(--sand);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.site-menu a {
    display: flex;
    align-items: baseline;
    width: max-content;
    max-width: 100%;
    color: var(--white);
    font: 500 clamp(34px, 8vw, 44px)/1.45 "Montserrat", Arial, sans-serif;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.site-menu a span {
    display: none;
}

.site-menu a:hover,
.site-menu a.active {
    color: #8d7b61;
    transform: translateX(4px);
}

.site-menu small {
    display: none;
}

main {
    min-height: calc(100vh - 170px);
}

.page {
    width: 100%;
    min-height: calc(100vh - 74px);
    padding: clamp(70px, 8vw, 112px) clamp(24px, 6.5vw, 100px);
    background: var(--paper);
    color: var(--ink);
}

.hero {
    padding: 0;
    background: var(--night);
    color: var(--white);
}

.hero-title {
    padding: clamp(55px, 7vw, 90px) 24px clamp(48px, 5vw, 74px);
    text-align: center;
}

.hero-title h1 {
    margin: 0;
    font: 500 clamp(82px, 13vw, 170px)/.78 "Cormorant Garamond", Georgia, serif;
    letter-spacing: .02em;
}

.hero-title p {
    margin: 20px 0 0;
    font-size: clamp(12px, 1.4vw, 18px);
    font-weight: 500;
    letter-spacing: .32em;
}

.home-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(55px, 10vw, 160px);
    align-items: center;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding-bottom: clamp(72px, 9vw, 120px);
}

.eyebrow {
    display: block;
    margin-bottom: 18px;
    color: var(--sand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: #8d7452;
}

h1,
h2,
p {
    margin-top: 0;
}

.hero-copy h2 {
    margin-bottom: 24px;
    font-size: clamp(23px, 2.4vw, 34px);
    line-height: 1.22;
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgb(255 255 255 / 82%);
    font-size: clamp(16px, 1.65vw, 20px);
    line-height: 1.55;
}

.entry-card {
    padding: 30px;
    border-radius: 9px;
    background: var(--sand);
    color: var(--white);
    text-align: center;
}

.entry-label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.entry-card > strong {
    font-size: 17px;
}

.date-blocks {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin: 22px 0;
}

.date-blocks span {
    display: grid;
    width: 38px;
    height: 54px;
    place-items: center;
    border-radius: 7px;
    background: var(--white);
    color: var(--night);
    font-size: 25px;
    font-weight: 700;
}

.date-blocks i {
    color: var(--night);
    font-style: normal;
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 30px;
    border: 1px solid var(--night);
    border-radius: 999px;
    background: var(--night);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.entry-card .button {
    width: 100%;
}

.button:hover {
    background: var(--white);
    color: var(--night);
    transform: translateY(-2px);
}

.button-small {
    min-height: 46px;
}

.button-secondary {
    border-color: rgb(255 255 255 / 25%);
    background: transparent;
}

.community-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(45px, 9vw, 120px);
    align-items: center;
    padding: clamp(65px, 8vw, 105px) max(24px, calc((100vw - 1120px) / 2));
    background: var(--white);
    color: var(--ink);
}

.community-panel > div:first-child > p {
    max-width: 590px;
    margin: 0;
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.45;
}

.nature-art {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border-radius: 44px;
    background:
        radial-gradient(circle at 30% 20%, rgb(255 255 255 / 45%), transparent 30%),
        linear-gradient(150deg, #6f8171 0%, #b5a27e 44%, #2c4a4c 100%);
}

.nature-art::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgb(2 2 15 / 25%));
    content: "";
}

.nature-art svg {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgb(255 255 255 / 55%);
    stroke-width: 2px;
}

.nature-art .fish {
    fill: rgb(2 2 15 / 13%);
    stroke: rgb(255 255 255 / 65%);
}

.nature-art span {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 23px;
    color: var(--white);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.page-heading {
    display: flex;
    gap: 30px;
    align-items: end;
    justify-content: space-between;
    max-width: 1160px;
    margin: 0 auto;
}

.page-heading h1 {
    max-width: 870px;
    margin: 0 0 22px;
    font: 500 clamp(50px, 7vw, 92px)/.95 "Cormorant Garamond", Georgia, serif;
    letter-spacing: -.035em;
}

.status,
.finished {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #d5d1ca;
    border-radius: 99px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5b8655;
    box-shadow: 0 0 0 5px rgb(91 134 85 / 12%);
}

.page > .meta,
.page > .lead {
    max-width: 1160px;
    margin-right: auto;
    margin-left: auto;
}

.page-actions {
    max-width: 1160px;
    margin: 0 auto 28px;
}

.meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.lead {
    max-width: 680px;
    margin-top: 26px;
    margin-bottom: 36px;
    color: var(--muted);
    font-size: clamp(16px, 1.7vw, 20px);
}

.table-card {
    max-width: 1160px;
    margin: 50px auto 0;
    overflow: hidden;
    border-radius: 9px;
    background: var(--night);
    color: var(--white);
}

.table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    border-bottom: 1px solid var(--line);
}

.table-title h2 {
    margin: 0;
    font: 500 29px "Cormorant Garamond", Georgia, serif;
}

.table-title span {
    color: rgb(255 255 255 / 48%);
    font-size: 11px;
}

.table-scroll {
    overflow-x: auto;
}

.admin-section .table-scroll,
.admin-participants .table-scroll {
    max-height: min(62vh, 620px);
    overflow: auto;
}

.admin-section .table-scroll thead th,
.admin-participants .table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--night);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 21px 32px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

th {
    color: rgb(255 255 255 / 48%);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.place {
    display: grid;
    width: 33px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 26%);
    border-radius: 50%;
    font-weight: 700;
}

tr:first-child .place {
    border-color: var(--sand);
    background: var(--sand);
    color: var(--night);
}

.tournament-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1160px;
    margin: 40px auto 0;
}

.tournament-card {
    padding: clamp(28px, 4vw, 45px);
    border-radius: 9px;
    background: var(--white);
    box-shadow: 0 18px 60px rgb(4 4 15 / 7%);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 62px;
}

.card-index {
    color: #967c5a;
    font-size: 11px;
    font-weight: 700;
}

.tournament-card h2 {
    max-width: 520px;
    margin-bottom: 20px;
    font: 500 clamp(30px, 3vw, 43px)/1.05 "Cormorant Garamond", Georgia, serif;
}

.tournament-card > p,
.admin-card > p {
    margin: 26px 0;
    color: var(--muted);
}

.winner {
    display: flex;
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid #e6e2dc;
    flex-direction: column;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.winner strong {
    margin-top: 6px;
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
}

footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 128px;
    padding: 28px clamp(24px, 5vw, 70px);
    border-top: 1px solid var(--line);
    background: var(--night);
    color: rgb(255 255 255 / 48%);
    font-size: 11px;
    text-align: center;
}

footer a {
    color: rgb(255 255 255 / 65%);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-self: end;
}

.footer-brand {
    justify-self: start;
    color: var(--white);
    font: 500 30px "Cormorant Garamond", Georgia, serif;
    letter-spacing: .08em;
}

.footer-brand small {
    color: rgb(255 255 255 / 40%);
    font: 400 10px "Montserrat", sans-serif;
}

.admin-body {
    background: var(--night);
}

.admin-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
}

.admin-header .text-link {
    justify-self: end;
}

.admin-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-self: end;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sand-light);
    font-size: 12px;
}

.admin-label {
    color: rgb(255 255 255 / 45%);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.text-link {
    color: var(--white);
    font-size: 12px;
    text-decoration: none;
}

.admin-main {
    width: min(1200px, 100%);
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 80px 24px;
}

.admin-main .page-heading {
    margin: 0;
}

.admin-main .page-heading h1 {
    color: var(--white);
}

.admin-main .lead {
    margin: 0;
    color: rgb(255 255 255 / 52%);
}

.admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 0;
}

.admin-card {
    display: flex;
    min-height: 330px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    flex-direction: column;
    background: var(--night-soft);
}

.admin-card h2 {
    margin-top: 46px;
    font: 500 30px/1.1 "Cormorant Garamond", Georgia, serif;
}

.admin-card p {
    flex: 1;
    color: rgb(255 255 255 / 48%);
}

.admin-message {
    min-height: 26px;
    margin-top: 24px;
    color: var(--sand-light);
}

.admin-participants {
    max-width: none;
    margin-top: 48px;
}

.admin-section {
    max-width: none;
    margin-top: 48px;
}

.inline-admin-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 16px;
    align-items: end;
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
}

.inline-admin-form label {
    display: grid;
    gap: 7px;
}

.inline-admin-form label span {
    color: rgb(255 255 255 / 52%);
    font-size: 12px;
}

.inline-admin-form .inline-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
}

.inline-admin-form input[type="checkbox"] {
    width: 22px;
    height: 22px;
}

.table-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgb(255 255 255 / 58%);
    font-size: 12px;
}

.table-filter select,
.inline-admin-form select,
.form-fields select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--night);
    color: var(--white);
    font: inherit;
}

.needs-moderation td {
    background: rgb(185 160 125 / 15%);
}

.submission-line {
    padding: 6px 0;
    color: rgb(255 255 255 / 82%);
}

.submission-line + .submission-line {
    border-top: 1px solid rgb(255 255 255 / 10%);
}

.table-card hr {
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.approve-action {
    color: #a5d6a7;
}

.reject-action {
    margin-left: 12px;
    color: #ffb4ab;
}

.admin-participants td {
    font-size: 13px;
    line-height: 1.6;
}

.admin-participants small {
    color: rgb(255 255 255 / 48%);
}

.admin-analytics-table {
    min-width: 1120px;
    table-layout: fixed;
}

.admin-analytics-col-id {
    width: 7.5%;
}

.admin-analytics-col-country {
    width: 7.5%;
}

.admin-analytics-col-region {
    width: 16%;
}

.admin-analytics-col-count {
    width: 8%;
}

.admin-analytics-col-average,
.admin-analytics-col-maximum {
    width: 9%;
}

.admin-analytics-col-score {
    width: 12%;
}

.admin-analytics-col-current,
.admin-analytics-col-recommended {
    width: 10%;
}

.admin-analytics-col-action {
    width: 11%;
}

.admin-analytics-table th,
.admin-analytics-table td {
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
}

.admin-analytics-table th {
    white-space: normal;
    letter-spacing: .08em;
}

.admin-analytics-table td:nth-child(3) {
    text-align: left;
}

.participant-delete {
    color: #ffb4ab;
}

.participant-delete:disabled {
    opacity: .45;
}

.legal-page {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 90px 24px 120px;
}

.legal-page h1 {
    max-width: 820px;
    margin: 22px 0 54px;
    font: 500 clamp(48px, 7vw, 86px)/.95 "Cormorant Garamond", Georgia, serif;
}

.legal-page section {
    padding: 30px 0;
    border-top: 1px solid #d9d3ca;
}

.legal-page h2 {
    margin-bottom: 16px;
    font: 600 28px "Cormorant Garamond", Georgia, serif;
}

.legal-page p {
    max-width: 780px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.75;
}

dialog {
    width: min(620px, calc(100% - 32px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--night-soft);
    color: var(--white);
}

dialog::backdrop {
    background: rgb(0 0 0 / 80%);
    backdrop-filter: blur(5px);
}

dialog form {
    padding: 32px;
}

.dialog-heading,
.dialog-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.dialog-heading {
    margin-bottom: 30px;
}

.dialog-heading h2 {
    margin: 0;
    font: 500 34px "Cormorant Garamond", Georgia, serif;
}

.dialog-actions {
    margin-top: 32px;
    justify-content: flex-end;
}

.icon-button {
    border: 0;
    background: transparent;
    color: rgb(255 255 255 / 55%);
    font-size: 30px;
}

.form-fields {
    display: grid;
    gap: 20px;
}

.form-fields label {
    display: grid;
    gap: 7px;
}

.form-fields label span {
    color: rgb(255 255 255 / 52%);
    font-size: 12px;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    outline: none;
    background: var(--night);
    color: var(--white);
}

input:focus,
textarea:focus {
    border-color: var(--sand);
}

.error-state {
    text-align: center;
}

.registration-dialog {
    width: min(860px, calc(100% - 32px));
    max-height: min(94vh, 1100px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
}

.registration-dialog::backdrop {
    background: rgb(2 2 15 / 78%);
    backdrop-filter: blur(7px);
}

.registration-form {
    max-height: min(94vh, 1100px);
    padding: clamp(28px, 5vw, 54px);
    overflow-y: auto;
}

.registration-heading {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    justify-content: space-between;
}

.registration-heading h2 {
    max-width: 690px;
    margin-bottom: 34px;
    font: 500 clamp(36px, 5vw, 58px)/1.03 "Cormorant Garamond", Georgia, serif;
}

.registration-close {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0 0 3px;
    flex: 0 0 auto;
    border: 1px solid #b9b6b1;
    border-radius: 50%;
    background: transparent;
    color: #8a8782;
    font-size: 27px;
    line-height: 1;
    place-items: center;
}

.order-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    min-height: 84px;
    border-top: 1px solid #d4d0ca;
    border-bottom: 1px solid #d4d0ca;
    font-size: clamp(18px, 2.3vw, 24px);
}

.order-line span {
    font: 500 26px "Cormorant Garamond", Georgia, serif;
}

.order-subtotal,
.registration-total {
    margin-top: 34px;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

.registration-notice {
    max-width: 680px;
    margin: 70px 0 42px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

.registration-fields {
    display: grid;
    gap: 18px;
}

.registration-fields label {
    display: block;
}

.registration-fields label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.registration-fields.result-fields label {
    display: grid;
    gap: 9px;
}

.registration-fields.result-fields label > span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: #5e574e;
    font-size: 13px;
    font-weight: 700;
}

.registration-fields input {
    min-height: 72px;
    padding: 0 24px;
    border: 1px solid var(--sand);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font-size: 18px;
}

.registration-fields input::placeholder {
    color: #979493;
}

.registration-fields input:focus {
    border-color: var(--night);
}

.delivery-options {
    display: grid;
    gap: 12px;
    margin: 38px 0 30px;
    padding: 0;
    border: 0;
}

.delivery-options legend {
    margin-bottom: 12px;
    font-size: 17px;
}

.delivery-options label,
.registration-consents label {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    width: fit-content;
    cursor: pointer;
}

.delivery-options input[type="radio"],
.registration-consents input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin: 0;
    flex: 0 0 auto;
    border: 2px solid #73716e;
    border-radius: 50%;
    appearance: none;
    background: var(--white);
}

.delivery-options input[type="radio"]:checked {
    border: 7px solid var(--white);
    outline: 3px solid var(--ink);
    background: var(--ink);
}

.registration-consents {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.registration-consents input[type="checkbox"] {
    border-radius: 0;
}

.registration-consents input[type="checkbox"]:checked {
    border-color: var(--night);
    background:
        linear-gradient(45deg, transparent 43%, var(--white) 43% 54%, transparent 54%) 5px 9px / 9px 9px no-repeat,
        linear-gradient(-45deg, transparent 43%, var(--white) 43% 54%, transparent 54%) 10px 5px / 14px 14px no-repeat,
        var(--night);
}

.registration-consents span {
    max-width: 660px;
    font-size: 15px;
    line-height: 1.45;
}

.registration-consents a {
    color: #db745f;
    text-decoration: none;
}

.registration-total {
    margin-top: 68px;
}

.registration-submit {
    width: 100%;
    min-height: 70px;
    margin-top: 35px;
    border: 0;
    background: var(--night);
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
}

.registration-submit:hover {
    background: var(--sand);
    color: var(--night);
}

.registration-message {
    min-height: 24px;
    margin: 18px 0 0;
    color: #746143;
    font-size: 13px;
    text-align: center;
}

.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 15%, rgb(185 160 125 / 12%), transparent 26%),
        var(--night);
}

.login-layout {
    display: grid;
    width: min(1120px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 38px 0;
    grid-template-rows: auto 1fr auto;
}

.login-brand {
    align-self: start;
}

.login-card {
    width: min(500px, 100%);
    margin: auto;
    padding: clamp(30px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--night-soft);
}

.login-card h1 {
    margin-bottom: 10px;
    font: 500 clamp(60px, 8vw, 88px)/.9 "Cormorant Garamond", Georgia, serif;
}

.login-card > p {
    color: rgb(255 255 255 / 48%);
}

.login-card form {
    display: grid;
    gap: 20px;
    margin-top: 34px;
}

.login-card label {
    display: grid;
    gap: 7px;
}

.login-card label span {
    color: rgb(255 255 255 / 55%);
    font-size: 12px;
}

.login-card .button {
    width: 100%;
    margin-top: 10px;
    border-color: var(--sand);
    background: var(--sand);
    color: var(--night);
}

.login-card .button:disabled {
    cursor: wait;
    opacity: .55;
}

.login-message {
    min-height: 25px;
    margin: 18px 0 0;
    color: #e4a99e !important;
    font-size: 13px;
}

.login-note {
    color: rgb(255 255 255 / 32%);
    text-align: center;
}

@media (max-width: 900px) {
    .home-grid,
    .community-panel {
        grid-template-columns: 1fr;
    }

    .home-grid {
        width: min(680px, calc(100% - 48px));
    }

    .community-panel {
        padding: 70px 24px;
    }

    .nature-art {
        min-height: 340px;
    }

    .tournament-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        grid-template-columns: 1fr auto;
    }

    .admin-label {
        display: none;
    }

    .inline-admin-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .site-header {
        height: 66px;
    }

    .hero-title {
        padding-top: 64px;
    }

    .hero-title h1 {
        font-size: 76px;
    }

    .hero-title p {
        font-size: 10px;
        letter-spacing: .22em;
    }

    .date-blocks span {
        width: 32px;
        height: 48px;
        font-size: 21px;
    }

    .page {
        padding: 64px 20px;
    }

    .page-heading,
    .table-title {
        align-items: flex-start;
        flex-direction: column;
    }

    th,
    td {
        padding: 17px;
    }

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

    .footer-links,
    .footer-brand {
        justify-self: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .registration-dialog {
        width: 100%;
        max-width: none;
        max-height: 100vh;
        margin: 0;
    }

    .registration-form {
        max-height: 100vh;
        padding: 26px 20px 38px;
    }

    .registration-heading h2 {
        font-size: 35px;
    }

    .registration-notice {
        margin-top: 48px;
    }

    .registration-fields input {
        min-height: 64px;
    }
}

/* Public redesign from HASTA PDFs. Photo slots are intentional placeholders. */
.public-body {
    background: #090a0f;
}

.public-page,
.tournament-page,
.placeholder-page {
    padding: 0;
    background: #090a0f;
    color: #f2eee6;
}

.placeholder-photo {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgb(0 0 0 / 64%), rgb(9 14 20 / 44)),
        radial-gradient(circle at 70% 30%, rgb(200 155 93 / 22%), transparent 32%),
        linear-gradient(150deg, #0a1118 0%, #111f28 46%, #06080d 100%);
}

.placeholder-photo::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgb(0 0 0 / 14%), rgb(0 0 0 / 36%)),
        repeating-linear-gradient(135deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 8px);
    content: "";
}

.placeholder-photo::after {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: rgb(242 238 230 / 24%);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    content: "место для фото";
}

.placeholder-photo--light {
    min-height: 360px;
    border-radius: 36px;
    background:
        linear-gradient(120deg, rgb(239 229 214 / 20%), rgb(9 14 20 / 10%)),
        radial-gradient(circle at 72% 24%, rgb(200 155 93 / 24%), transparent 28%),
        linear-gradient(145deg, #d9cbb9, #6d766b 48%, #1c2a2d);
}

.mission-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1714 / 1290;
    min-height: 0;
    border-radius: 36px;
    background:
        linear-gradient(120deg, rgb(239 229 214 / 10%), rgb(9 14 20 / 18%)),
        url("/images/mission-photo.webp") center / cover no-repeat;
}

.mission-image::before,
.mission-image::after {
    content: none;
}

.brand-hero,
.tournament-hero {
    display: grid;
    min-height: calc(100vh - 74px);
    padding: clamp(28px, 5vw, 56px);
    align-items: center;
}

.brand-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    background:
        linear-gradient(120deg, rgb(0 0 0 / 70%), rgb(8 12 18 / 32%)),
        url("/images/home-hero.webp") center / cover no-repeat;
}

.brand-hero::before,
.brand-hero::after {
    content: none;
}

.hero-nav {
    position: absolute;
    z-index: 2;
    inset: 32px clamp(28px, 5vw, 64px) auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f2eee6;
    font-weight: 700;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.hero-nav a {
    color: #f2eee6;
    font-size: 12px;
    text-decoration: none;
}

.brand-hero__content,
.tournament-hero__content {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.brand-hero__content h1,
.tournament-hero__content h1 {
    margin: 0;
    color: #f2eee6;
    font: 500 clamp(74px, 13vw, 168px)/.9 "Cormorant Garamond", Georgia, serif;
    letter-spacing: .24em;
    text-shadow: 0 18px 42px rgb(0 0 0 / 50%);
}

.brand-hero__content i,
.tournament-hero__content i {
    display: block;
    width: 84px;
    height: 2px;
    margin: 22px 0;
    background: #c89b5d;
}

.brand-hero__content p,
.tournament-hero__content p {
    margin: 0 0 12px;
    color: #e0e0e0;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.brand-hero__content small {
    color: #e0a44d;
    font-size: 13px;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.paper-section {
    position: relative;
    background:
        radial-gradient(circle at 50% 50%, transparent, rgb(0 0 0 / 5%)),
        #efe5d6;
    color: #11111a;
}

.mission-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(32px, 6vw, 92px);
    align-items: center;
    padding: clamp(64px, 8vw, 120px) clamp(24px, 7vw, 104px);
}

.section-kicker {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    color: #0f141b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-kicker::after {
    width: 82px;
    height: 1px;
    background: #c89b5d;
    content: "";
}

.mission-section h2,
.teaser-copy h2 {
    margin: 42px 0 28px;
    font: 500 clamp(42px, 7vw, 76px)/1 "Cormorant Garamond", Georgia, serif;
    text-transform: uppercase;
}

.mission-section p,
.teaser-copy p {
    max-width: 560px;
    color: #2f3136;
    font-size: 17px;
    line-height: 1.75;
}

.principles-section {
    padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 104px);
    background: #090e14;
}

.principles-section h2,
.history-section h2 {
    margin-bottom: 44px;
    color: #ad916d;
    font: 500 34px "Cormorant Garamond", Georgia, serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgb(200 155 93 / 26%);
}

.principles-grid article {
    min-height: 270px;
    padding: clamp(28px, 4vw, 58px);
    text-align: center;
}

.principles-grid article + article {
    border-left: 1px solid rgb(200 155 93 / 42%);
}

.line-icon {
    display: block;
    margin-bottom: 28px;
    color: #ad916d;
    font-size: 48px;
}

.principles-grid h3 {
    color: #ad916d;
    font: 500 26px "Cormorant Garamond", Georgia, serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.principles-grid p {
    color: rgb(255 255 255 / 72%);
}

.tournament-teaser {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 330px) minmax(220px, 330px);
    gap: 28px;
    align-items: center;
    padding: clamp(64px, 8vw, 110px) clamp(24px, 7vw, 104px);
}

.text-arrow {
    display: inline-flex;
    margin-top: 22px;
    color: #b2611c;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.tournament-card-preview {
    min-height: 330px;
    padding: 28px;
    border: 1px solid #c9a477;
    border-radius: 8px;
    background:
        repeating-linear-gradient(0deg, rgb(0 0 0 / 3%) 0 1px, transparent 1px 7px),
        #f5ead8;
    box-shadow: 0 14px 30px rgb(29 22 13 / 14%);
}

.tournament-card-preview span {
    color: #b2611c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tournament-card-preview strong {
    display: block;
    margin: 130px 0 14px;
    color: #0b2239;
    font: 800 28px/1 "Montserrat", Arial, sans-serif;
    text-transform: uppercase;
}

.tournament-card-preview small {
    color: #171a1f;
    line-height: 1.6;
    text-transform: uppercase;
}

.cta-section {
    position: relative;
    overflow: hidden;
    display: grid;
    min-height: 58vh;
    place-items: center;
    background:
        linear-gradient(120deg, rgb(0 0 0 / 68%), rgb(7 13 18 / 36%)),
        url("/images/footer-photo.webp") center / cover no-repeat;
    text-align: center;
}

.cta-section::before,
.cta-section::after {
    display: none;
    background: none;
    content: none;
}

.cta-section > div {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin: 0;
    font: 500 clamp(58px, 10vw, 118px)/1 "Cormorant Garamond", Georgia, serif;
    letter-spacing: .32em;
}

.cta-section p {
    letter-spacing: .28em;
    text-transform: uppercase;
}

.button-gold {
    border-color: #c89b5d;
    background: transparent;
    color: #c89b5d;
    border-radius: 4px;
    text-transform: uppercase;
}

.tournament-hero {
    min-height: 720px;
    text-align: center;
}

.tournament-hero__content {
    margin: auto;
}

.tournament-hero__content span {
    color: #f18719;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tournament-hero__content i {
    margin-right: auto;
    margin-left: auto;
}

.tournament-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 18px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.tournament-actions button,
.tournament-actions a {
    display: grid;
    min-height: 92px;
    place-items: center;
    border: 1px solid rgb(200 155 93 / 28%);
    border-radius: 7px;
    background: rgb(5 14 20 / 72%);
    color: #f18719;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.tournament-shell {
    padding: 0 clamp(18px, 5vw, 96px) 92px;
    background: #071018;
}

.tournament-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    transform: translateY(-30px);
}

.tournament-meta div,
.about-tournament,
.rating-block,
.history-card {
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 8px;
    background: linear-gradient(145deg, rgb(10 31 43 / 82%), rgb(5 13 20 / 88%));
    color: #f2eee6;
}

.tournament-meta div {
    padding: 24px;
    text-align: center;
}

.tournament-meta span {
    color: #f18719;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.tournament-meta strong {
    display: block;
    margin-top: 8px;
}

.about-tournament {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    padding: clamp(28px, 4vw, 44px);
}

.about-tournament h2,
.rating-block h2 {
    color: #f18719;
    font: 700 22px "Montserrat", Arial, sans-serif;
    text-transform: uppercase;
}

.about-tournament p {
    color: rgb(255 255 255 / 78%);
    line-height: 1.8;
}

.fish-placeholder {
    display: grid;
    min-height: 320px;
    place-items: center;
    border: 1px solid rgb(200 155 93 / 28%);
    border-radius: 8px;
    background: url("/images/tournament-fish.webp") center / cover no-repeat;
}

.rating-block {
    margin-top: 18px;
    overflow: hidden;
}

.analytics-score {
    color: #ed9b00 !important;
    font-weight: 800;
}

.recommendation-pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #15223a;
    font-weight: 700;
}

.recommendation-pill::before {
    width: 12px;
    height: 12px;
    border: 2px solid #ed9b00;
    border-radius: 50%;
    content: "";
}

.recommendation-pill--up::before {
    border-color: #e32525;
}

.recommendation-pill--balance::before {
    border-color: #ed9b00;
}

.recommendation-pill--down::before {
    border-color: #078a29;
}

.recommendation-pill--neutral::before {
    border-color: #9aa3b2;
}

.rating-block .table-title {
    border-bottom-color: rgb(255 255 255 / 10%);
}

.rating-block th,
.rating-block td {
    padding: 18px 24px;
}

.history-section {
    padding-top: 48px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.history-card {
    padding: 28px;
}

.history-card span {
    color: #ad916d;
}

.history-card h3 {
    font: 500 34px "Cormorant Garamond", Georgia, serif;
}

.placeholder-page {
    min-height: calc(100vh - 74px);
    padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 120px);
}

.placeholder-page h1 {
    font: 500 clamp(64px, 10vw, 130px)/.9 "Cormorant Garamond", Georgia, serif;
}

.placeholder-page p {
    max-width: 620px;
    color: rgb(255 255 255 / 66%);
    font-size: 20px;
}

.tournament-dialog {
    width: min(1080px, calc(100% - 28px));
    max-height: 94vh;
    overflow: hidden;
    border: 1px solid rgb(200 155 93 / 25%);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgb(5 16 24 / 92%), rgb(4 9 14 / 96%)),
        #071018;
    color: #f2eee6;
}

.tournament-dialog::backdrop {
    background: rgb(0 0 0 / 78%);
}

.tournament-form {
    max-height: 94vh;
    overflow-y: auto;
    padding: clamp(28px, 5vw, 58px);
}

.dialog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f18719;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dialog-top button {
    border: 0;
    background: transparent;
    color: #f2eee6;
    font-size: 42px;
}

.tournament-form h2 {
    margin: 28px 0;
    text-align: center;
    font: 500 clamp(38px, 6vw, 70px)/1 "Cormorant Garamond", Georgia, serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid label {
    display: grid;
    gap: 10px;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.form-grid label span {
    color: #f2eee6;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.form-grid input {
    min-height: 64px;
    border-color: rgb(255 255 255 / 16%);
    background: rgb(5 14 20 / 72%);
    color: #f2eee6;
}

.form-grid label:has(input[name="mainPhotoUrl"]) {
    display: none;
}

.photo-upload-section {
    padding: 20px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 8px;
    background: rgb(5 14 20 / 42%);
}

.photo-upload-section h3 {
    margin: 0 0 8px;
    color: #f2eee6;
    font: 700 18px "Montserrat", Arial, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.photo-upload-section p {
    margin: 0 0 16px;
    color: rgb(255 255 255 / 66%);
}

.photo-upload {
    display: grid !important;
    min-height: 150px;
    place-items: center;
    border: 2px dashed rgb(255 255 255 / 34%);
    border-radius: 8px;
    background: rgb(5 14 20 / 58%);
    color: #f2eee6;
    cursor: pointer;
    text-align: center;
}

.photo-upload:hover {
    border-color: #f18719;
}

.photo-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.photo-upload span {
    max-width: 260px;
    color: rgb(255 255 255 / 78%);
    font-weight: 700;
    line-height: 1.45;
}

.result-layout {
    display: grid;
    grid-template-columns: 1.45fr .9fr;
    gap: 18px;
}

.photo-rules {
    padding: 24px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 8px;
    background: rgb(5 14 20 / 54%);
}

.photo-rules h3 {
    margin-top: 0;
    color: #f18719;
    text-transform: uppercase;
}

.photo-rules p {
    color: rgb(255 255 255 / 72%);
    line-height: 1.6;
}

.tournament-delivery {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 6px;
}

.tournament-consents {
    margin-top: 28px;
}

.tournament-consents label {
    width: auto;
}

.tournament-consents a {
    color: #f18719;
}

@media (max-width: 900px) {
    .mission-section,
    .tournament-teaser,
    .about-tournament,
    .result-layout,
    .tournament-meta,
    .history-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid article + article {
        border-top: 1px solid rgb(200 155 93 / 42%);
        border-left: 0;
    }

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

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .brand-hero__content h1,
    .tournament-hero__content h1 {
        font-size: 50px;
        letter-spacing: .16em;
    }

    .brand-hero,
    .tournament-hero {
        min-height: 620px;
        padding: 24px;
    }
}
