/* Основные переменные */
:root {
    --dark-graphite: #1a1a1a;
    --light-graphite: #303030;
    --gold-base: #d4af37;
    --gold-lighter: #e5c76b;
    --gold-darker: #b08c1e;
    --text-light: #f5f5f5;
}

/* Базовые стили */
body {
    font-family: 'Book Antiqua', 'Palatino Linotype', 'Times New Roman', serif;
    font-weight: 300;
    background-color: var(--dark-graphite);
    color: var(--text-light);
    line-height: 1.6;
}

/* Металлический золотой эффект */
.gold-text {
    background: linear-gradient(to bottom, #f0d27a 0%, #d4af37 50%, #b08c1e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    text-shadow: 0px 0px 2px rgba(255, 215, 0, 0.2);
    position: relative;
}

.gold-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 2s infinite ease-in-out;
}

@keyframes shine {
    0% {background-position: -200% 0;}
    100% {background-position: 200% 0;}
}

/* Иконки */
.fas, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
    font-weight: 900;
}

/* Фоны */
.gold-bg {
    background: linear-gradient(to bottom, #f0d27a 0%, #d4af37 50%, #b08c1e 100%);
}

.graphite-bg {
    background-color: var(--light-graphite);
}

/* Секция Hero */
.hero {
    background: linear-gradient(to right, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.7)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Блестящие золотые кнопки с переливом */
.btn-gold {
    background: linear-gradient(to bottom, #f0d27a 0%, #d4af37 50%, #b08c1e 100%);
    color: var(--dark-graphite);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px !important; /* Уменьшенный радиус скругления */
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0) 40%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 60%, 
        rgba(255, 255, 255, 0) 100%);
    transition: all 0.6s ease;
    z-index: -1;
    transform: rotate(30deg);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {transform: translateX(-100%) rotate(30deg);}
    100% {transform: translateX(100%) rotate(30deg);}
}

.btn-gold:hover {
    background: linear-gradient(to bottom, #f3dfa0 0%, #e5c76b 50%, #c09e23 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

.btn-gold:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Заголовки разделов */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-weight: 300;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--gold-darker), var(--gold-base), var(--gold-lighter), var(--gold-base), var(--gold-darker));
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Карточки */
.card {
    transition: all 0.5s ease;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 4px; /* Согласуем с уменьшенным радиусом кнопок */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Секция с отзывами */
.testimonial {
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -40px;
    left: -20px;
    background: linear-gradient(to bottom, #f0d27a 0%, #d4af37 50%, #b08c1e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.3;
}

/* Иконки преимуществ */
.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #f0d27a 0%, #d4af37 50%, #b08c1e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Золотая линия */
.gold-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--gold-darker), var(--gold-base), var(--gold-lighter), var(--gold-base), var(--gold-darker));
    margin: 1rem auto;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Анимация появления */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Навигация */
nav {
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

nav a {
    font-weight: 300;
    transition: all 0.3s ease;
}

nav a:hover:not(.btn-gold) {
    background: linear-gradient(to bottom, #f0d27a 0%, #d4af37 50%, #b08c1e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* Форма */
input, textarea {
    font-family: 'Book Antiqua', 'Palatino Linotype', 'Times New Roman', serif;
    font-weight: 300;
    transition: all 0.3s ease;
    border-radius: 4px !important; /* Согласуем с уменьшенным радиусом кнопок */
}

input:focus, textarea:focus {
    border-color: var(--gold-base) !important;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Подвал */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    background: linear-gradient(to bottom, #f0d27a 0%, #d4af37 50%, #b08c1e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        text-align: center;
    }
    
    .section-title:after {
        width: 60px;
    }
}

/* Дополнительные улучшения и эффекты */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Book Antiqua', 'Palatino Linotype', 'Times New Roman', serif;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.pricing-recommended {
    position: relative;
    overflow: hidden;
}

.pricing-recommended::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 4px; /* Меньший радиус, соответствующий кнопкам */
    background: linear-gradient(45deg, var(--gold-darker), var(--gold-base), var(--gold-lighter)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: border-glow 2s infinite alternate;
}

@keyframes border-glow {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-graphite);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gold-darker), var(--gold-base), var(--gold-lighter));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--gold-lighter), var(--gold-base), var(--gold-darker));
}

/* Улучшенные эффекты наведения для карточек */
.card .benefit-icon, 
.card h3 {
    transition: all 0.3s ease;
}

.card:hover .benefit-icon {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.card:hover h3.gold-text {
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Тени для основных элементов */
.hero h1, 
.hero p {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Тонкая обводка для заголовков с золотым текстом */
h3.gold-text {
    position: relative;
    display: inline-block;
}

.coach-card {
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.coach-card:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

/* Parallax effect при наведении */
@media (min-width: 768px) {
    .coach-card {
        perspective: 1000px;
    }

    .coach-card:hover {
        transform: translateY(-10px) scale(1.05);
        z-index: 10;
    }
}
