﻿/*
Theme Name: SSK Sastin-Straze v2
Theme URI: https://example.com/
Author: SSK Sastin-Straze
Author URI: https://example.com/
Description: Theme version of the Sportovo strelecky klub Sastin-Straze website.
Version: 2.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssk-sastin-straze
*/
html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: #f6f8fb;
}

body > .ssk-site,
body > :where(.wp-site-blocks, .site, #page, .site-content, .content-area, main) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ssk-site,
.ssk-site .entry-content,
.ssk-site .wp-block-post-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ssk-site {
    --ink: #111827;
    --muted: #5b6575;
    --line: #d7dde6;
    --paper: #f6f8fb;
    --white: #ffffff;
    --accent: #be123c;
    --accent-dark: #8f1233;
    --forest: #17443b;
    --gold: #c89b3c;
    --radius: 8px;
    --shadow: 0 22px 70px rgba(17, 24, 39, 0.14);
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.ssk-site a {
    color: inherit;
    text-decoration: none;
}

.ssk-site img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ssk-site .site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(17, 24, 39, 0.84);
    color: var(--white);
    backdrop-filter: blur(18px);
}

.ssk-site .nav {
    max-width: 1180px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.ssk-site .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0;
    min-width: 0;
}

.ssk-site .brand-logo {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: #171717;
    object-fit: cover;
    flex: 0 0 auto;
}

.ssk-site .brand span:last-child {
    max-width: 260px;
    font-size: 0.98rem;
    line-height: 1.2;
}

.ssk-site .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.94rem;
}

.ssk-site .nav-links a {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    transition: background 160ms ease, color 160ms ease;
}

.ssk-site .nav-links a:hover,
.ssk-site .nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    outline: none;
}

.ssk-site .menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
    padding: 0;
}

.ssk-site .menu-toggle span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.ssk-site .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ssk-site .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.ssk-site .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.ssk-site .hero {
    min-height: 86vh;
    display: grid;
    align-items: end;
    position: relative;
    color: var(--white);
    isolation: isolate;
    overflow: hidden;
}

.ssk-site .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(10, 15, 23, 0.86) 0%, rgba(10, 15, 23, 0.62) 46%, rgba(10, 15, 23, 0.24) 100%),
        url("https://images.pexels.com/photos/6092069/pexels-photo-6092069.jpeg?auto=compress&cs=tinysrgb&w=1800") center / cover;
}

.ssk-site .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 26%;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(246, 248, 251, 0.96));
}

.ssk-site .hero-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 122px 0 96px;
}

.ssk-site .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ssk-site .eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--gold);
}

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

.ssk-site h1 {
    max-width: 850px;
    margin-bottom: 22px;
    font-size: clamp(2.8rem, 7vw, 6.25rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.ssk-site .hero-copy {
    max-width: 650px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.ssk-site .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ssk-site .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ssk-site .button:hover {
    transform: translateY(-2px);
}

.ssk-site .button-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 16px 34px rgba(190, 18, 60, 0.34);
}

.ssk-site .button-primary:hover {
    background: var(--accent-dark);
}

.ssk-site .button-ghost {
    border-color: rgba(255, 255, 255, 0.42);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.ssk-site section {
    padding: 86px 24px;
}

.ssk-site .section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.ssk-site .section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.ssk-site .section-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ssk-site h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.ssk-site h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    line-height: 1.25;
}

.ssk-site .lead {
    color: var(--muted);
    font-size: 1.08rem;
}

.ssk-site .stats {
    margin-top: -46px;
    padding-top: 0;
    position: relative;
    z-index: 3;
}

.ssk-site .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow);
}

.ssk-site .stat {
    min-height: 142px;
    padding: 28px;
    background: var(--white);
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.ssk-site .stat:hover {
    transform: translateY(-6px);
    background: #fbfcfe;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
}

.ssk-site .stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--forest);
    font-size: 2.1rem;
    line-height: 1;
}

.ssk-site .stat span {
    color: var(--muted);
    font-weight: 700;
}

.ssk-site .about {
    background: var(--white);
}

.ssk-site .about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 46px;
    align-items: center;
}

.ssk-site .about-text {
    color: #2f3746;
    font-size: 1.04rem;
}

.ssk-site .source-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.93rem;
}

.ssk-site .source-note a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ssk-site .image-panel {
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #d8dee8;
}

.ssk-site .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ssk-site .card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ssk-site .card:hover {
    transform: translateY(-8px);
    border-color: rgba(35, 64, 52, 0.26);
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

.ssk-site .card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #e9f3f0;
    color: var(--forest);
    font-weight: 900;
}

.ssk-site .card p {
    color: var(--muted);
}

.ssk-site .band {
    background: var(--forest);
    color: var(--white);
}

.ssk-site .band .section-kicker,
.ssk-site .band .lead {
    color: rgba(255, 255, 255, 0.76);
}

.ssk-site .training-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 34px;
    align-items: stretch;
}

.ssk-site .training-photo {
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #1f2937;
}

.ssk-site .training-list {
    display: grid;
    gap: 14px;
    align-content: center;
}

.ssk-site .training-item {
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(0);
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.ssk-site .training-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.ssk-site .training-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.ssk-site .news-preview {
    background: var(--white);
}

.ssk-site .news-tabs,
.ssk-site .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ssk-site .news-tab,
.ssk-site .blog-card,
.ssk-site .news-empty {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ssk-site .news-tab:hover,
.ssk-site .blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(35, 64, 52, 0.24);
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

.ssk-site .news-tab {
    min-height: 230px;
}

.ssk-site .news-tab-image {
    display: block;
    height: 128px;
    background: #d8dee8;
}

.ssk-site .news-tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ssk-site .news-tab-body {
    padding: 24px;
}

.ssk-site .news-tab time,
.ssk-site .blog-card time,
.ssk-site .post-detail time {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ssk-site .news-tab h3,
.ssk-site .blog-card h2 {
    margin-bottom: 12px;
}

.ssk-site .news-tab p,
.ssk-site .blog-card p,
.ssk-site .news-empty p {
    color: var(--muted);
}

.ssk-site .news-link,
.ssk-site .back-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--forest);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ssk-site .news-actions {
    margin-top: 24px;
}

.ssk-site .news-empty {
    padding: 24px;
}

.ssk-site .news-empty p {
    margin-bottom: 0;
}

.ssk-site .blog-hero {
    background: var(--white);
}

.ssk-site .blog-hero h1,
.ssk-site .post-detail h1 {
    max-width: 900px;
    margin-bottom: 18px;
    color: var(--ink);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1;
}

.ssk-site .blog-listing {
    background: #eef2f6;
}

.ssk-site .blog-card-image {
    display: block;
    height: 220px;
    background: #d8dee8;
}

.ssk-site .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ssk-site .blog-card-body {
    padding: 24px;
}

.ssk-site .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.ssk-site .pagination .page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--forest);
    font-weight: 900;
}

.ssk-site .pagination .current {
    background: var(--forest);
    color: var(--white);
}

.ssk-site .post-detail {
    background: var(--white);
    padding: 86px 24px;
}

.ssk-site .post-hero-image {
    max-height: 520px;
    margin: 28px 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #d8dee8;
}

.ssk-site .post-content {
    max-width: 820px;
    color: #2f3746;
    font-size: 1.06rem;
}

.ssk-site .post-content a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ssk-site .post-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.ssk-site .gallery {
    background: #eef2f6;
}

.ssk-site .gallery-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    grid-auto-rows: 250px;
    gap: 18px;
}

.ssk-site .gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    background: #d8dee8;
    position: relative;
    margin: 0;
}

.ssk-site .gallery-item img {
    transform: scale(1);
    transition: transform 360ms ease;
}

.ssk-site .gallery-item:hover img {
    transform: scale(1.08);
}

.ssk-site .gallery-item:first-child {
    grid-row: span 2;
}

.ssk-site .gallery-caption {
    position: absolute;
    inset: auto 14px 14px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.ssk-site .contact {
    background: var(--white);
}

.ssk-site .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 34px;
}

.ssk-site .contact-box,
.ssk-site .contact-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 30px;
}

.ssk-site .contact-lines {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.ssk-site .contact-line span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ssk-site .contact-line strong {
    display: block;
    margin-top: 3px;
    font-size: 1.05rem;
}

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

.ssk-site label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.ssk-site input,
.ssk-site textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
}

.ssk-site .contact-form form,
.ssk-site .contact-form-plugin .wpcf7-form {
    display: grid;
    gap: 16px;
}

.ssk-site .contact-form-plugin .wpcf7-form p {
    margin: 0;
}

.ssk-site .contact-form-plugin .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
}

.ssk-site .contact-form-plugin .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: fit-content;
    margin-top: 4px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 16px 34px rgba(190, 18, 60, 0.34);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .ssk-site .stat,
    .ssk-site .card,
    .ssk-site .training-item,
    .ssk-site .news-tab,
    .ssk-site .blog-card,
    .ssk-site .gallery-item img {
        transition: none;
    }

    .ssk-site .stat:hover,
    .ssk-site .card:hover,
    .ssk-site .training-item:hover,
    .ssk-site .news-tab:hover,
    .ssk-site .blog-card:hover,
    .ssk-site .gallery-item:hover img {
        transform: none;
    }
}

.ssk-site textarea {
    min-height: 128px;
    resize: vertical;
}

.ssk-site .full {
    grid-column: 1 / -1;
}

.ssk-site .submit-button {
    width: fit-content;
    margin-top: 16px;
    border: 0;
    cursor: pointer;
}

.ssk-site .form-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-weight: 800;
}

.ssk-site .form-notice-success {
    border: 1px solid #9bd1b3;
    background: #e8f7ee;
    color: #14532d;
}

.ssk-site .form-notice-error {
    border: 1px solid #f1a2a2;
    background: #fff0f0;
    color: #991b1b;
}

.ssk-site .ssk-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ssk-site .site-footer {
    padding: 28px 24px;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.ssk-site .footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 920px) {
    .ssk-site .nav {
        min-height: 70px;
        padding: 16px 20px;
        align-items: center;
        flex-direction: row;
    }

    .ssk-site .menu-toggle {
        display: grid;
    }

    .ssk-site .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        width: min(280px, calc(100vw - 40px));
        display: grid;
        gap: 4px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: var(--radius);
        background: rgba(17, 24, 39, 0.96);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .ssk-site .nav-links.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .ssk-site .nav-links a {
        width: 100%;
        padding: 12px 14px;
        border-radius: 6px;
    }

    .ssk-site .hero-inner {
        width: min(100% - 40px, 1180px);
        padding: 96px 0 78px;
    }

    .ssk-site .stats-grid,
    .ssk-site .cards,
    .ssk-site .news-tabs,
    .ssk-site .blog-grid,
    .ssk-site .about-layout,
    .ssk-site .training-layout,
    .ssk-site .contact-layout {
        grid-template-columns: 1fr;
    }

    .ssk-site .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ssk-site .image-panel,
    .ssk-site .training-photo {
        min-height: 360px;
    }

    .ssk-site .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .ssk-site section {
        padding: 64px 18px;
    }

    .ssk-site .brand span:last-child {
        max-width: 176px;
        font-size: 0.88rem;
    }

    .ssk-site .hero {
        min-height: 82vh;
    }

    .ssk-site .hero-actions,
    .ssk-site .button {
        width: 100%;
    }

    .ssk-site .stats-grid,
    .ssk-site .gallery-grid,
    .ssk-site .form-grid {
        grid-template-columns: 1fr;
    }

    .ssk-site .gallery-grid {
        grid-auto-rows: 230px;
    }

    .ssk-site .gallery-item:first-child {
        grid-row: span 1;
    }

    .ssk-site .contact-box,
    .ssk-site .contact-form,
    .ssk-site .card,
    .ssk-site .stat {
        padding: 22px;
    }
}

@media (max-width: 390px) {
    .ssk-site .brand span:last-child {
        max-width: 142px;
    }
}

