/*
Theme Name: Клуб Попенченко
Description: Спортивный клуб, мероприятия и архив турниров.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: scvp-club
*/
:root {
    --bg: #111214;
    --panel: #1b1d20;
    --line: #34363b;
    --paper: #f5f4f0;
    --mute: #d0cfcb;
    --red: #e64949;
    --red-dark: #b6232b;
    --wrap: 1180px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--paper);
    font: 1rem/1.58 system-ui,-apple-system,"Segoe UI",sans-serif;
}

a {
    color: inherit;
}

a:hover {
    color: #ff8c8c;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
    outline: 3px solid #ff8484;
    outline-offset: 4px;
}

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

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

h1,h2,h3 {
    line-height: 1.07;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(2.55rem,6.1vw,5.7rem);
    max-width: 12ch;
    margin-bottom: 1.3rem;
}

h2 {
    font-size: clamp(1.85rem,3.6vw,3.25rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: .65rem;
}

.wrap {
    width: min(var(--wrap),calc(100% - 3rem));
    margin-inline: auto;
}

.site-head {
    border-bottom: 1px solid var(--line);
    background: #121315;
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    min-height: 80px;
    padding-block: .75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.15;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand span {
    max-width: 16ch;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    font-weight: 650;
}

.nav .current-menu-item>a {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: .45em;
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: min(665px,80vh);
    display: grid;
    align-items: center;
    background: #1a1b1d;
    border-bottom: 1px solid var(--line);
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,#101113 2%,rgba(16,17,19,.95) 20%,rgba(16,17,19,.54) 52%,rgba(16,17,19,.08) 100%);
}

.hero-inner {
    padding-block: clamp(4.2rem,10vw,8rem);
}

.hero p {
    max-width: 37ch;
    font-size: clamp(1.05rem,2vw,1.25rem);
    color: var(--mute);
    margin-bottom: 1.6rem;
}

.hero figcaption {
    position: absolute;
    right: 1rem;
    bottom: .7rem;
    background: #111d;
    color: #eee;
    padding: .15rem .45rem;
    font-size: .75rem;
    z-index: 1;
}

.button,.scvp-form button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: .64rem 1.1rem;
    border: 1px solid transparent;
    border-radius: .3rem;
    background: var(--red-dark);
    color: white;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,.scvp-form button:hover {
    background: #8e1c22;
    color: white;
}

.button-outline {
    background: transparent;
    border-color: #a7a6a3;
}

.section,.article,.listing {
    padding-block: clamp(2.6rem,6vw,5rem);
}

.section+.section {
    border-top: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.section-head h2 {
    margin: 0;
}

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

.card {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: .45rem;
    overflow: hidden;
}

.card-media,.card-media img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}

.card-media {
    position: relative;
    margin: 0;
}

.card-media figcaption {
    position: absolute;
    bottom: .45rem;
    right: .45rem;
    background: #111e;
    padding: .15rem .35rem;
    font-size: .75rem;
}

.card-body {
    padding: 1.2rem;
}

.card-body p {
    margin: 0;
    color: var(--mute);
}

.card h3 a {
    text-decoration: none;
}

.card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.kicker {
    display: block;
    color: #ffa3a3;
    font-weight: 750;
    font-size: .9rem;
    margin-bottom: .55rem;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr);
    align-items: center;
    gap: clamp(1.4rem,5vw,4rem);
}

.feature img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    object-position: center 27%;
    border-radius: .45rem;
}

.prose {
    max-width: 75ch;
}

.prose p,.prose li {
    color: var(--mute);
}

.prose a,.footer a {
    text-underline-offset: .2em;
}

.article h1,.listing h1 {
    max-width: 20ch;
    font-size: clamp(2.5rem,5.7vw,4.5rem);
}

.article figure {
    margin: 1.5rem 0;
}

.article figcaption {
    font-size: .9rem;
    color: var(--mute);
}

.article-cover {
    max-width: 860px;
}

.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr));
    gap: 1rem;
}

.wp-block-gallery figure {
    margin: 0;
}

.article table {
    display: block;
    overflow: auto;
}

.article th,.article td {
    border: 1px solid var(--line);
    padding: .4rem;
}

.footer {
    border-top: 1px solid var(--line);
    padding-block: 1.85rem;
    color: var(--mute);
}

.pagination {
    margin-top: 2rem;
}

.page-numbers {
    margin-right: .6rem;
}

.scvp-form {
    max-width: 650px;
    margin-top: 2rem;
    border: 1px solid var(--line);
    border-radius: .45rem;
    padding: clamp(1rem,3vw,2rem);
    background: var(--panel);
}

.scvp-form label {
    display: block;
    font-weight: 650;
}

.scvp-form input:not([type=checkbox]),.scvp-form textarea {
    display: block;
    width: 100%;
    margin-top: .32rem;
    padding: .65rem;
    border: 1px solid #777;
    border-radius: .25rem;
    background: #141517;
    color: inherit;
    font: inherit;
}

.scvp-form textarea {
    min-height: 100px;
}

.scvp-form .scvp-consent {
    font-weight: 400;
}

.scvp-honey {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.scvp-result {
    padding: .7rem;
    border: 1px solid #aaa;
    border-radius: .25rem;
}

.skip-link {
    position: absolute;
    left: -10000px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: white;
    color: #111;
    padding: .6rem;
}

@media(max-width:850px) {
    .grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .hero::after {
        background: linear-gradient(90deg,#101113 5%,#101113b8 50%,#10111328 100%);
    }
}

@media(max-width:560px) {
    .wrap {
        width: calc(100% - 2rem);
    }
    .grid,.feature {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 520px;
        align-items: end;
    }
    .hero-inner {
        padding-block: 6.5rem 3.25rem;
    }
    .hero-visual img {
        object-position: 65% 50%;
    }
    .hero::after {
        background: linear-gradient(0deg,#101113 3%,#101113e8 39%,#1011134a 78%,#10111315 100%);
    }
    .hero figcaption {
        bottom: auto;
        top: .7rem;
    }
    .nav {
        font-size: .92rem;
        gap: .5rem 1rem;
    }
    .feature img {
        max-height: 360px;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr));
    gap: 1rem;
}

.article .gallery-item {
    margin: 0;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
