* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #FFFFFF;
    color: #151515;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Контейнер для звездочек */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.stars-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Звездочки */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s ease-in-out infinite;
}

.star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0E0E12;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader.hidden .logo-container {
    display: none;
}

.preloader-content {
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
    z-index: 10001;
}

.logo-container .logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: static;
    z-index: 1;
    display: block;
    transform: none !important;
    margin: 0;
    padding: 0;
    mask-image: 
        url('../static/logo_new.svg'),
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 1) 55%,
            rgba(0, 0, 0, 1) 100%
        );
    mask-size: 200px 290px, 300% 300%;
    mask-repeat: no-repeat, no-repeat;
    mask-position: 0 0, 200% 200%;
    mask-composite: intersect;
    -webkit-mask-image: 
        url('../static/logo_new.svg'),
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 1) 55%,
            rgba(0, 0, 0, 1) 100%
        );
    -webkit-mask-size: 200px 290px, 300% 300%;
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-position: 0 0, 200% 200%;
    -webkit-mask-composite: source-in;
    animation: logoReveal 8s ease-in-out infinite;
}

@keyframes logoReveal {
    0% {
        -webkit-mask-position: 0 0, 200% 200%;
        mask-position: 0 0, 200% 200%;
    }
    35% {
        -webkit-mask-position: 0 0, 0% 0%;
        mask-position: 0 0, 0% 0%;
    }
    100% {
        -webkit-mask-position: 0 0, 200% 200%;
        mask-position: 0 0, 200% 200%;
    }
}

/* Основной контент */
.content {
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: relative;
    z-index: 10;
    background-color: #FFFFFF;
}

.content.show {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 80px;
}

.header-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 40px;
    color: #1A1A1A;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.header-description {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: rgba(26, 26, 26, 0.8);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Card Styles */
.card {
    position: relative;
    display: flex;
    background-color: #151515;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 400px;
}

/* Первая и четвертая карточки на всю ширину */
.card-1,
.card-4 {
    grid-column: 1 / -1;
    flex-direction: row;
    background-position: center;
}

.card-1,
.card-4 {
    min-height: 330px;
    height: 330px;
}

.card-1 .card-content-left {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 60px 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.card-1 .card-content-right {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 60px 158px 118px 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.card-4 .card-content-left {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 60px 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.card-4 .card-content-right {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 60px 158px 118px 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.card-2,
.card-3 {
    flex-direction: column;
    min-height: 600px;
    height: 600px;
}

.card-2 .card-content,
.card-3 .card-content {
    flex: 1;
    padding: 60px 40px 40px 110px;
    justify-content: flex-end;
}

.card-1 .card-content-left,
.card-1 .card-content-right,
.card-2 .card-content,
.card-3 .card-content,
.card-4 .card-content-left,
.card-4 .card-content-right {
    position: relative;
    z-index: 1;
}

.card-5 {
    background-color: #151515;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.card-6 {
    background-color: #FAFAFA;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.card-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.card-5 .card-content,
.card-6 .card-content {
    padding: 0;
}

.card-title {
    font-family: 'Raleway', sans-serif;
    font-size: 26px;
    font-weight: 200;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-title-light {
    color: #1A1A1A;
}

.card-description {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 100;
    color: #FFFFFF;
    margin-bottom: 30px;
    line-height: 1.6;
}

.card-description-light {
    color: #1A1A1A;
}

.card-button {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    transition: opacity 0.3s ease;
    letter-spacing: 0.1em;
}

.card-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85px;
    height: 1px;
    background-color: #B58358;
}

.card-button-light {
    color: #1A1A1A;
}

.card-button-light::after {
    display: none;
}

.card-button:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-1,
    .card-4 {
        grid-column: 1;
        flex-direction: column;
        min-height: auto;
        height: auto;
    }
    
    .card-1 .card-content-left,
    .card-1 .card-content-right,
    .card-4 .card-content-left,
    .card-4 .card-content-right {
        flex: 1;
        max-width: 100%;
    }
    
    .card-1 .card-content-right,
    .card-4 .card-content-right {
        justify-content: center;
    }
    
    .card-2,
    .card-3 {
        flex-direction: column;
        min-height: 500px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .logo-container .logo {
        width: 150px;
        mask-size: 150px 218px, 300% 300% !important;
        -webkit-mask-size: 150px 218px, 300% 300% !important;
    }
    
    .container {
        padding: 30px 15px;
    }
    
    .header {
        margin-bottom: 40px;
        text-align: left;
    }
    
    .header-title {
        font-size: 28px;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .header-description {
        font-size: 16px;
        line-height: 1.6;
        margin: 0 auto;
        max-width: 100%;
        text-align: left;
    }
    
    .header-description:first-of-type {
        margin-bottom: 20px;
    }
    
    .main-content {
        gap: 15px;
    }
    
    /* Унифицированные стили для всех карточек на мобилке */
    .card {
        min-height: 530px;
        height: auto;
        flex-direction: column;
    }
    
    /* Карточки 1 и 4 - мобильная версия (изображение сверху, текст снизу на черном фоне) */
    .card-1,
    .card-4 {
        flex-direction: column;
        background-size: cover;
        background-position: top center;
        background-color: #000000;
        position: relative;
    }
    
    /* Создаем область для изображения сверху */
    .card-1::before,
    .card-4::before {
        content: '';
        display: block;
        width: 100%;
        height: 60%;
        background-image: inherit;
        background-size: cover;
        background-position: 49% 20%;
        background-repeat: no-repeat;
    }
    
    .card-1 .card-content-left,
    .card-4 .card-content-left {
        display: none;
    }
    
    .card-1 .card-content-right,
    .card-4 .card-content-right {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 30px 20px;
        background-color: #000000;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 0;
    }
    
    /* Добавляем заголовок в правую часть для карточки 1 */
    .card-1 .card-content-right::before {
        content: 'ЭКСКЛЮЗИВНЫЕ\A УСЛУГИ КЛУБА';
        white-space: pre-line;
        display: block;
        font-family: 'Raleway', sans-serif;
        font-size: 22px;
        font-weight: 200;
        color: #FFFFFF;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .card-4 .card-content-right::before {
        content: 'ГАРАНТИЯ И\A ПОДЛИННОСТЬ';
        white-space: pre-line;
        display: block;
        font-family: 'Raleway', sans-serif;
        font-size: 22px;
        font-weight: 200;
        color: #FFFFFF;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    /* Карточки 2 и 3 - мобильная версия */
    .card-2 .card-content,
    .card-3 .card-content {
        padding: 30px 20px;
        justify-content: flex-end;
    }
    
    /* Карточки 5 и 6 - мобильная версия */
    .card-5,
    .card-6 {
        padding: 30px 20px;
    }
    
    .card-5 .card-content,
    .card-6 .card-content {
        padding: 0;
        justify-content: flex-end;
    }
    
    /* Типографика для мобильных */
    .card-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .card-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .card-button {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .header {
        margin-bottom: 30px;
        text-align: left;
    }
    
    .header-title {
        font-size: 24px;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .header-description {
        font-size: 14px;
        text-align: left;
    }
    
    .header-description:first-of-type {
        margin-bottom: 15px;
    }
    
    .main-content {
        gap: 12px;
    }
    
    /* Унифицированные стили для всех карточек на маленьких экранах */
    .card {
        min-height: 530px;
        height: auto;
    }
    
    .card-1,
    .card-4 {
        flex-direction: column;
        background-size: cover;
        background-position: top center;
        background-color: #000000;
        position: relative;
    }
    
    /* Создаем область для изображения сверху */
    .card-1::before,
    .card-4::before {
        content: '';
        display: block;
        width: 100%;
        height: 60%;
        background-image: inherit;
        background-size: cover;
        background-position: 49% 20%;
        background-repeat: no-repeat;
    }
    
    .card-1 .card-content-left,
    .card-4 .card-content-left {
        display: none;
    }
    
    .card-1 .card-content-right,
    .card-4 .card-content-right {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        padding: 25px 15px;
        background-color: #000000;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .card-1 .card-content-right::before {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .card-4 .card-content-right::before {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .card-2 .card-content,
    .card-3 .card-content {
        padding: 25px 15px;
        justify-content: flex-end;
    }
    
    .card-5,
    .card-6 {
        padding: 25px 15px;
    }
    
    .card-5 .card-content,
    .card-6 .card-content {
        padding: 0;
        justify-content: flex-end;
    }
    
    .card-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .card-description {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .card-button {
        font-size: 12px;
    }
    
    .card-button::after {
        width: 70px;
    }
}
