:root {
    --color-primary: #AB8766;
    --color-secondary: #302F32;
    --color-white: #FFFFFF;
    --color-background: #040509;
}

@font-face {
    font-family: 'SF-Pro Display';
    src: url('assets/fonts/SF-Pro-Display-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF-Pro Display';
    src: url('assets/fonts/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'SF-Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-background);
    color: var(--color-white);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}


body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-image: url('assets/images/photo.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40%;
    width: 20%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, var(--color-background) 100%);
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
}

.logo{
    margin-left: 10%;
    padding-top: 5%;
    width: 50%;
}

.logo-img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.aside {
    position: absolute;
    right: 3%;
    top: 3%;
    width: 52%;
    height: 96vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Кастомная полоса прокрутки для aside */
.aside::-webkit-scrollbar {
    width: 8px;
}

.aside::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.aside::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.aside::-webkit-scrollbar-thumb:hover {
    background: #C99B70;
}

/* Для Firefox */
.aside {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.1);
}

.aside h1 {
    font-family: 'SF-Pro Display', sans-serif;
    font-size: 1.3rem;
    font-weight: 100;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.progress {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-info strong {
    font-family: 'SF-Pro Display', sans-serif;
    color: var(--color-white);
    font-weight: 400; /* Используем Regular */
}

.support-options {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex: 1;
}

.support-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.support-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

.support-card h3 {
    font-family: 'SF-Pro Display', sans-serif;
    font-size: 1rem;
    font-weight: 400; /* Используем Regular */
    margin-bottom: 0.4rem;
    color: var(--color-white);
}

.support-card p {
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.support-card .price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.support-card .price {
    font-family: 'SF-Pro Display', sans-serif;
    font-size: 1.2rem;
    font-weight: 400; /* Используем Regular */
    color: var(--color-white);
    margin: 0;
}

.select-btn {
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.select-btn:hover {
    background-color: #C99B70;
    transform: translateY(-1px);
}

.custom-amount {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--color-white);
    font-size: 0.85rem;
    margin: 0;
}

.custom-amount::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-amount:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.mobile-photo {
    display: none;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-background);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 2% auto;
    padding: 1.5rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--color-white);
}

.modal h2 {
    font-family: 'SF-Pro Display', sans-serif;
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    margin-right: 2rem;
}

.modal-price {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 0.7rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
}

.form-field {
    flex: 1;
}

.form-group label {
    display: block;
    color: var(--color-white);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--color-white);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 50px;
    max-height: 70px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-hint {
    margin-top: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: rgba(201, 155, 112, 0.1);
    border: 1px solid rgba(201, 155, 112, 0.25);
    border-radius: 4px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
}

.input-hint strong {
    color: var(--color-primary);
}

.input-hint a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.input-hint a:hover {
    color: #C99B70;
    text-decoration: underline;
}

.chat-link-btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.3s ease;
    margin: 0.3rem 0;
}

.chat-link-btn:hover {
    background-color: #C99B70;
    color: var(--color-white) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
}

.submit-btn:hover {
    background-color: #C99B70;
    transform: translateY(-1px);
}

.legal-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.legal-link {
    display: block;
    color: rgba(89, 89, 89, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--color-primary);
}

.legal-link:last-child {
    margin-bottom: 0;
}


/* Оптимизация для desktop - убираем overflow */
@media (min-height: 700px) {
    .modal-content {
        overflow-y: visible;
        max-height: none;
        margin: 3% auto;
    }
}

/* Планшеты */
@media (max-width: 1024px) {
    .aside {
        right: 2%;
        top: 2%;
        width: 55%;
    }
    
    .logo {
        margin-left: 5%;
        padding-top: 3%;
        width: 40%;
    }
}

/* Планшеты и мобильные */
@media (max-width: 768px) {
    body::after {
        display: none;
    }
    
    body::before {
        display: none;
    }
    
    body {
        background: var(--color-background);
    }
    
    .mobile-photo {
        display: block;
        width: 100%;
        height: 40vh;
        background-image: url('assets/images/photo.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        position: relative;
    }
    
    .mobile-photo::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 30%;
        background: linear-gradient(to bottom, transparent 0%, var(--color-background) 100%);
        border-radius: 0 0 12px 12px;
        pointer-events: none;
    }
    
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 1rem;
    }
    
    .logo {
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        z-index: 10;
    }
    
    .logo-img {
        width: 60%;
        height: auto;
        max-width: 300px;
    }
    
    .aside {
        position: static;
        width: 100%;
        height: auto;
        max-width: none;
        overflow-y: visible;
    }
    
    .aside h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .support-options {
        flex-direction: column;
        height: auto;
    }
    
    .support-column {
        display: contents;
    }
    
    /* Сортировка карточек по возрастанию цены в мобильной версии */
    .support-column:first-child .support-card:nth-child(1) { order: 1; } /* 666 ₽ */
    .support-column:nth-child(2) .support-card:nth-child(1) { order: 2; } /* 2 000 ₽ */
    .support-column:first-child .support-card:nth-child(2) { order: 3; } /* 7 000 ₽ */
    .support-column:nth-child(2) .support-card:nth-child(2) { order: 4; } /* 12 000 ₽ */
    .support-column:first-child .support-card:nth-child(3) { order: 5; } /* 20 000 ₽ */
    .support-column:nth-child(2) .support-card:nth-child(3) { order: 6; } /* Пользовательская */
    
    /* Стили для планшетов в вертикальной ориентации (как для мобильных) */
    .support-card .price-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .support-card .price {
        margin-bottom: 0.5rem;
    }
    
    .select-btn {
        width: 100%;
    }
    
    /* Адаптация модальных окон для мобильных */
    .modal-content {
        margin: 2% auto;
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
    }
    
    /* На мобильных устройствах делаем поля в колонку */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-field {
        margin-bottom: 0.8rem;
    }
    
    .form-field:last-child {
        margin-bottom: 0;
    }
    
    .modal h2 {
        font-size: 1.3rem;
        margin-right: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.8rem;
        font-size: 1rem;
        font-weight: 400;
        font-family: inherit;
    }
    
    .legal-links {
        text-align: center;
        margin-top: 0.75rem;
        flex-direction: column;
    }
    
    .legal-link {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
    }
}

/* Мобильные */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .logo {
        margin-bottom: 1.5rem;
    }
    
    .logo-img {
        width: 70%;
        max-width: 250px;
    }
    
    .aside h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .progress {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .progress-info {
        font-size: 0.75rem;
    }
    
    .support-card {
        padding: 0.75rem;
    }
    
    .support-card h3 {
        font-size: 0.9rem;
    }
    
    .support-card p {
        font-size: 0.7rem;
    }
    
    .support-card .price {
        font-size: 1rem;
    }
    
    .select-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        font-weight: 400;
        font-family: inherit;
    }
    
    .custom-amount {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
    
    .mobile-photo {
        height: 35vh;
        margin-bottom: 1rem;
        border-radius: 8px;
        margin-top: -35%;
    }
    
        .mobile-photo::after {
        border-radius: 0 0 8px 8px;
    }

}
