/* ========================================
   ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ
   ======================================== */
:root {
    --color-primary: #303822;
    --color-accent: #C45D7D;
    --color-gold: #C5A66A;

    --color-bg: #F2EBDD;
    --color-white: #FFF9F0;

    --color-text: #302D25;
    --color-text-light: #E8DCC8;

    --color-border: #D9CCB9;

    --color-shadow: rgba(45, 42, 36, 0.12);
    --color-shadow-hover: rgba(45, 42, 36, 0.22);

    --font-heading: 'Playfair Display', Georgia, serif;

    --font-body:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Arial,
        sans-serif;

    --container-width: 1200px;

    --border-radius: 16px;
    --border-radius-sm: 8px;

    --transition: all 0.3s ease;
}

/* ========================================
   СБРОС СТИЛЕЙ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: url('/fon.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Текстура + виньетка поверх фона — на всё body */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.018) 0px,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 4px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    box-shadow:
        inset 0 0 120px rgba(20, 24, 14, 0.5),
        inset 0 0 250px rgba(20, 24, 14, 0.25);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   КОНТЕЙНЕР
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ЗАГОЛОВКИ
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   ССЫЛКИ
   ======================================== */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

/* ========================================
   КАРТОЧКИ (общие стили)
   ======================================== */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 16px var(--color-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--color-shadow-hover);
}

/* ========================================
   ГЛАВНЫЙ КОНТЕНТ
   ======================================== */
main {
    flex: 1;
    padding: 2rem 0;
}

/* ========================================
   АВТОРИЗАЦИЯ
   ======================================== */
.auth-container {
    max-width: 440px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px var(--color-shadow);
}

.auth-container h1 {
    text-align: center;
    font-size: 2rem;
}

.auth-container p {
    text-align: center;
    margin-top: 1rem;
}

/* ========================================
   УТИЛИТЫ
   ======================================== */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.text-gold {
    color: var(--color-gold);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* ========================================
   ПОДВАЛ
   ======================================== */
footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
}

/* ========================================
   ГЛАВНАЯ — ПРОЗРАЧНЫЙ КОНТЕЙНЕР
   (фон теперь глобальный, из body)
   ======================================== */

.home-main {
    position: relative;
    flex: 1;
    overflow: hidden;
    color: #f5eee2;
}

.home-page {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding-top: 25px;
    padding-bottom: 70px;
}


/* ========================================
   HERO
   ======================================== */

.home-hero {
    margin-top: 80px;
    position: relative;

    min-height: 560px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 65px 30px 75px;
}


.hero-content {
    max-width: 760px;
    margin: auto;

    position: relative;
    z-index: 3;
}


.hero-small-title {
    margin-bottom: 15px;

    font-family: "Inter", sans-serif;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;

    color: rgba(246, 236, 219, 0.62);
}


.hero-content h1 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(72px, 11vw, 130px);

    font-weight: 400;

    line-height: 0.95;

    color: #f7f0e4;

    letter-spacing: -4px;

    text-shadow:
        0 5px 15px rgba(30, 25, 15, 0.2);
}


.hero-content h1 span {
    color: #cf6b87;
}


.hero-divider {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    margin: 24px auto 20px;
}


.hero-divider span {
    width: 70px;
    height: 1px;

    background: rgba(241, 222, 200, 0.45);
}


.hero-divider i {
    font-style: normal;

    color: #d07a91;

    font-size: 14px;
}


.hero-subtitle {
    margin: 0 0 17px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(27px, 4vw, 40px);

    line-height: 1.25;

    color: #f4eadc;
}


.hero-description {
    max-width: 520px;

    margin: 0 auto 32px;

    font-family: "Inter", sans-serif;

    font-size: 15px;

    line-height: 1.7;

    color: rgba(246, 237, 222, 0.68);
}


.hero-decoration {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    font-family: Georgia, serif;

    font-size: 115px;

    color: rgba(209, 120, 142, 0.2);
}


.hero-decoration-left {
    left: 3%;
}

.hero-decoration-right {
    right: 3%;

    transform:
        translateY(-50%) scaleX(-1);
}


/* ========================================
   КНОПКИ
   ======================================== */

.hero-actions {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


.home-btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    min-height: 48px;

    padding: 12px 25px;

    border-radius: 9px;

    font-family: "Inter", sans-serif;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}


.home-btn span {
    font-size: 18px;
}


.home-btn-primary {
    background: #bf5878;

    border: 1px solid #d77b98;

    color: #fff8ed;

    box-shadow:
        0 7px 20px rgba(35, 29, 20, 0.2);
}


.home-btn-primary:hover {
    background: #cc6484;

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(35, 29, 20, 0.3);
}


.home-btn-outline {
    background: transparent;

    border: 1px solid rgba(244, 226, 207, 0.5);

    color: #f5ebdf;
}


.home-btn-outline:hover {
    background: rgba(244, 226, 207, 0.95);

    color: #56503b;

    transform: translateY(-2px);
}


/* ========================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ======================================== */

.section-heading {
    max-width: 720px;

    margin: 0 auto 38px;

    text-align: center;
}


.section-kicker {
    margin-bottom: 10px;

    font-family: "Inter", sans-serif;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 3px;

    color: rgba(220, 143, 160, 0.9);
}


.section-heading h2,
.about-home h2,
.home-final h2 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: clamp(32px, 5vw, 48px);

    font-weight: 400;

    line-height: 1.2;

    color: #f5eee2;
}


.section-heading h2::after,
.about-home h2::after {
    display: none;
}


.section-heading p {
    max-width: 550px;

    margin: 15px auto 0;

    font-size: 14px;

    color: rgba(245, 237, 222, 0.65);
}


/* ========================================
   CLUBS
   ======================================== */

.clubs-section {
    padding: 70px 0 80px;
}


.home-clubs-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


.home-club-card {
    position: relative;

    min-height: 270px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    cursor: pointer;

    border-radius: 17px;

    border: 1px solid rgba(244, 225, 205, 0.25);

    background:
        linear-gradient(145deg,
            rgba(190, 82, 117, 0.95),
            rgba(162, 66, 96, 0.95));

    box-shadow:
        0 12px 30px rgba(28, 27, 17, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.home-club-card:nth-child(2) {
    background:
        linear-gradient(145deg,
            rgba(93, 101, 61, 0.98),
            rgba(73, 80, 46, 0.98));
}


.home-club-card:nth-child(3) {
    background:
        linear-gradient(145deg,
            rgba(121, 91, 68, 0.98),
            rgba(91, 69, 53, 0.98));
}


.home-club-card::before {
    content: "";

    position: absolute;

    inset: 10px;

    border: 1px solid rgba(255, 239, 222, 0.28);

    border-radius: 11px;

    pointer-events: none;
}


.home-club-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 42px rgba(24, 24, 14, 0.38);
}


.club-card-top {
    position: relative;
    z-index: 2;

    display: flex;

    justify-content: space-between;
    align-items: center;
}


.club-number {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 13px;

    color: rgba(255, 242, 226, 0.65);
}


.club-status {
    padding: 5px 10px;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 20px;

    font-size: 10px;

    color: rgba(255, 245, 232, 0.78);
}


.club-card-content {
    position: relative;
    z-index: 2;

    margin-top: auto;
}


.club-date {
    margin-bottom: 10px;

    font-size: 11px;

    letter-spacing: 0.4px;

    color: rgba(255, 244, 229, 0.65);
}


.home-club-card h3 {
    margin: 0 0 22px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 28px;

    font-weight: 400;

    line-height: 1.2;

    color: #fff7eb;
}


.club-card-info {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding-top: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);

    font-size: 12px;

    color: rgba(255, 242, 227, 0.7);
}


.club-card-info strong {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 19px;
    font-weight: 400;

    color: #fff2df;
}


.club-card-arrow {
    position: absolute;

    right: 25px;
    top: 105px;

    font-family: Georgia, serif;

    font-size: 35px;

    color: rgba(255, 255, 255, 0.18);

    transition: transform 0.25s ease;
}


.home-club-card:hover .club-card-arrow {
    transform: translateX(5px);

    color: rgba(255, 255, 255, 0.4);
}


/* ========================================
   MORE
   ======================================== */

.section-more {
    margin-top: 35px;

    text-align: center;
}


/* ========================================
   ABOUT
   ======================================== */

.about-home {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr) minmax(300px, 0.8fr);

    gap: 60px;

    align-items: center;

    margin: 30px 0 100px;

    padding: 65px;

    border-radius: 22px;

    background:
        rgba(46, 55, 35, 0.65);

    border: 1px solid rgba(239, 220, 199, 0.18);

    box-shadow:
        0 18px 45px rgba(27, 26, 16, 0.2);
}


.about-home-content {
    position: relative;
    z-index: 2;
}


.about-home h2 {
    max-width: 650px;

    margin-bottom: 22px;
}


.about-home p {
    max-width: 620px;

    margin-bottom: 14px;

    font-size: 15px;

    line-height: 1.8;

    color: rgba(246, 237, 222, 0.72);
}


.text-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 12px;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    color: #d17b94;
}


.text-link:hover {
    color: #f2b2c4;
}


.about-home-decoration {
    position: absolute;

    left: 45%;
    top: 15px;

    font-size: 80px;

    color: rgba(211, 117, 139, 0.1);
}


.about-home-card {
    min-height: 330px;

    padding: 14px;

    border: 1px solid rgba(244, 222, 201, 0.25);

    transform: rotate(2deg);
}


.about-card-inner {
    height: 100%;

    min-height: 300px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    border: 1px solid rgba(244, 222, 201, 0.2);

    background:
        radial-gradient(circle at center,
            rgba(183, 166, 116, 0.16),
            transparent 70%);
}


.about-card-symbol {
    margin-bottom: 15px;

    font-size: 25px;

    color: #cf758f;
}


.about-card-title {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 39px;

    line-height: 1.05;

    color: #f3eadc;
}


.about-card-line {
    width: 60px;
    height: 1px;

    margin: 20px 0;

    background: rgba(232, 211, 188, 0.5);
}


.about-card-text {
    font-family: "Inter", sans-serif;

    font-size: 11px;

    letter-spacing: 4px;

    color: rgba(241, 225, 207, 0.6);
}


/* ========================================
   FEATURES
   ======================================== */

.features-section {
    padding-bottom: 100px;
}


.features-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.feature-card {
    position: relative;

    padding: 35px 30px;

    min-height: 250px;

    border: 1px solid rgba(240, 220, 199, 0.2);

    border-radius: 16px;

    background:
        rgba(67, 72, 46, 0.48);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.feature-card:hover {
    transform: translateY(-5px);

    background:
        rgba(80, 82, 51, 0.65);
}


.feature-number {
    position: absolute;

    right: 22px;
    top: 20px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 13px;

    color: rgba(239, 218, 195, 0.35);
}


.feature-icon {
    margin-bottom: 25px;

    font-family: Georgia, serif;

    font-size: 30px;

    color: #cd718c;
}


.feature-card h3 {
    margin-bottom: 10px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 25px;
    font-weight: 400;

    color: #f5ecdf;
}


.feature-card p {
    font-size: 13px;

    line-height: 1.7;

    color: rgba(243, 233, 217, 0.62);
}


/* ========================================
   FINAL CTA
   ======================================== */

.home-final {
    position: relative;

    padding: 80px 30px;

    text-align: center;

    border-top: 1px solid rgba(242, 220, 198, 0.18);
}


.home-final-inner {
    max-width: 650px;

    margin: auto;
}


.home-final h2 {
    margin-bottom: 18px;
}


.home-final p {
    margin-bottom: 28px;

    font-size: 15px;

    color: rgba(244, 234, 219, 0.65);
}


/* ========================================
   LOADING
   ======================================== */

.club-loading {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    color: rgba(246, 237, 221, 0.65);
}


.club-loading span {
    display: block;

    width: 30px;
    height: 30px;

    margin: 0 auto 15px;

    border: 2px solid rgba(255, 255, 255, 0.2);

    border-top-color: #d07691;

    border-radius: 50%;

    animation: homeSpin 0.8s linear infinite;
}


@keyframes homeSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ========================================
   EMPTY
   ======================================== */

.clubs-empty {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;
}


.clubs-empty-icon {
    margin-bottom: 12px;

    font-size: 35px;

    color: #cf718d;
}


.clubs-empty h3 {
    margin-bottom: 8px;

    font-size: 25px;

    font-weight: 400;

    color: #f4eadc;
}


.clubs-empty p {
    font-size: 14px;

    color: rgba(244, 235, 220, 0.6);
}


/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */

@media (max-width: 900px) {

    .home-clubs-grid {
        grid-template-columns: 1fr;
    }

    .home-club-card {
        min-height: 240px;
    }

    .about-home {
        grid-template-columns: 1fr;

        padding: 40px 30px;
    }

    .about-home-card {
        max-width: 380px;

        width: 100%;

        margin: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-decoration {
        opacity: 0.4;
    }
}


@media (max-width: 600px) {

    .home-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .home-hero {
        min-height: 500px;

        padding: 50px 15px;
    }

    .hero-content h1 {
        font-size: 72px;

        letter-spacing: -3px;
    }

    .hero-subtitle {
        font-size: 27px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-decoration {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .home-btn {
        width: 100%;
        max-width: 280px;
    }

    .clubs-section {
        padding: 50px 0;
    }

    .about-home {
        margin-bottom: 70px;

        padding: 35px 22px;
    }

    .about-home-card {
        min-height: 280px;
    }

    .about-card-inner {
        min-height: 250px;
    }

    .about-card-title {
        font-size: 34px;
    }

    .features-section {
        padding-bottom: 70px;
    }

    .home-final {
        padding: 60px 15px;
    }

    .home-botanical {
        opacity: 0.3;
    }
}

/* Картинка внутри home-club-card */
.home-club-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.home-club-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.home-club-card:hover .home-club-card-image img {
    transform: scale(1.06);
    opacity: 0.5;
}

.home-club-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(45, 55, 35, 0.15) 0%,
            rgba(45, 55, 35, 0.55) 60%,
            rgba(45, 55, 35, 0.85) 100%);
}

/* Контент поверх картинки */
.home-club-card .club-card-top,
.home-club-card .club-card-content,
.home-club-card .club-card-arrow {
    position: relative;
    z-index: 2;
}