/* --- VARIABLES --- */
:root {
    --bg-dark: #0b0f19;
    --bg-darker: #05070a;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --gold-start: #d4af37;
    --gold-end: #f7e9a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-60 { margin-top: 60px; }
.mb-30 { margin-bottom: 30px; }

/* --- BUTTONS --- */
.btn-premium {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    color: var(--bg-darker);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    display: inline-block;
    padding: 13px 33px;
    background: transparent;
    border: 2px solid var(--gold-start);
    color: var(--gold-start);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    border-color: #fff;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    /* Убрали min-height: 100vh, чтобы блок не был во весь экран */
    /* Или можно просто уменьшить высоту, например min-height: 600px; */
    min-height: 80vh; 
    
    display: flex;
    /* align-items: center; <--- ЭТО ЦЕНТРОВАЛО ПО СЕРЕДИНЕ. УБИРАЕМ ИЛИ МЕНЯЕМ */
    align-items: flex-start; /* Прижимает контент к верху */
    
    padding-top: 150px; /* Добавляем отступ сверху, чтобы текст не прилип к самому краю */
    padding-bottom: 100px;
    
    /* Остальное без изменений */
    background-image: linear-gradient(rgba(11,15,25,0.7), var(--bg-dark)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #eee;
}

.subtitle-small {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-img-float {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

/* --- SECTIONS GENERAL --- */
.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* --- CARDS & GRIDS --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- SPECIFIC BLOCKS --- */
.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: 10px;
}

.card-small {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 12px;
    border-left: 3px solid var(--gold-start);
    font-weight: 500;
}

.check-card::before {
    content: "✦";
    color: var(--gold-start);
    margin-right: 10px;
}

.styled-list li {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.styled-list li::before {
    content: "•";
    color: var(--gold-start);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1rem;
}

/* --- TARIFFS --- */
.tariff-grid {
    align-items: stretch;
}

.tariff-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.tariff-card.popular {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-start);
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tariff-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.tariff-header .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-start);
    margin-top: 10px;
}

.tariff-list {
    list-style: none;
    margin-bottom: 30px;
}

.tariff-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #ddd;
}

.tariff-btn-wrapper {
    margin-top: auto;
    text-align: center;
}

/* --- TABLE --- */
.table-responsive {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th, .compare-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.compare-table th {
    text-align: left;
    color: var(--gold-start);
}

.compare-table th:first-child {
    width: 40%;
}

/* --- FORM --- */
.form-container {
    max-width: 600px;
}

.mystic-form {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-start);
}

.readonly-input {
    background: rgba(212, 175, 55, 0.1);
    cursor: not-allowed;
    color: var(--gold-start);
    font-weight: bold;
}

.w-100 { width: 100%; }

/* --- GALLERY --- */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0,0,0,0.7);
    text-align: center;
    font-size: 0.8rem;
}

/* --- FOOTER --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    margin: 0;
}

.big-text {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 40px;
    }

    h1 { font-size: 2.5rem; }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .section { padding: 50px 0; }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline { margin-left: 0; }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    h1 { font-size: 2rem; }
    h2.section-title { font-size: 1.8rem; }
    
    .mystic-form { padding: 20px; }
}

/* Добавить в конец css/style.css */

.badge-gold {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--gold-start);
    color: var(--gold-start);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.1);
}

.card-small h4 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.mystic-form textarea {
    background: rgba(0,0,0,0.3);
}

.text-gold {
    color: var(--gold-start);
}