/* 
   Основные стили для сайта Ćwiczenia Kegla dla mężczyzn
   Цветовая схема:
   - Фон: #1E1E2F
   - Акцент: #A9FF00
   - Текст: #EAEAEA
   - Градиент: #A9FF00 → #00FFB2
*/

/* Анимации и эффекты */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(169, 255, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(169, 255, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(169, 255, 0, 0.5); }
}

/* Секции */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Стили для якорей - добавляем отступ сверху */
section[id] {
    scroll-margin-top: 100px;
}

/* Отдельный отступ для секции о курсе */
section#o-kursie {
    scroll-margin-top: 150px;
    padding-top: 120px;
    margin-top: -50px;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: translateX(-50%);
}

.section-description {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(30, 30, 47, 0.8), rgba(30, 30, 47, 0.95)), url('img/fbATng.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 30px;
}

.hero-cta .button {
    font-size: 18px;
    padding: 15px 40px;
    animation: pulse 2s infinite;
}

/* O kursie */
.about {
    background-color: #1A1A28;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(169, 255, 0, 0.3);
}

/* Korzyści */
.benefits {
    background-color: #1E1E2F;
    position: relative;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: rgba(26, 26, 40, 0.7);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--accent-color);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.benefit-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.benefit-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Usługi */
.services {
    background-color: #1A1A28;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: rgba(30, 30, 47, 0.8);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 20px 0;
}

.service-features {
    margin: 25px 0;
    text-align: left;
}

.service-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Отзывы */
.testimonials {
    background-color: #1E1E2F;
    position: relative;
}

.testimonials-list {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background: rgba(26, 26, 40, 0.7);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
}

.testimonial-content::before {
    content: '"';
    font-size: 60px;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: -15px;
    left: -5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-name {
    font-weight: 600;
    margin-right: 10px;
}

.testimonial-location {
    font-size: 14px;
    opacity: 0.7;
}

/* FAQ */
.faq {
    background-color: #1A1A28;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(30, 30, 47, 0.8);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding-right: 40px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--accent-color);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-answer {
    background: rgba(26, 26, 40, 0.5);
    padding: 20px;
}

/* Форма заказа */
.order {
    background-color: #1E1E2F;
    position: relative;
}

.order-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 40, 0.7);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.order-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(169, 255, 0, 0.3);
    border-radius: 5px;
    background: rgba(30, 30, 47, 0.8);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(169, 255, 0, 0.2);
}

.form-select {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(169, 255, 0, 0.3);
    border-radius: 5px;
    background: rgba(30, 30, 47, 0.8);
    color: var(--text-color);
    font-size: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A9FF00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.form-checkbox {
    margin-right: 10px;
    position: relative;
    top: 2px;
    accent-color: var(--accent-color);
}

.form-submit {
    margin-top: 20px;
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.form-errors {
    background: rgba(255, 50, 50, 0.2);
    border-left: 3px solid #ff5050;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.form-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.form-errors li {
    margin-bottom: 5px;
}

/* Popup Cookie */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 40, 0.95);
    padding: 20px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
    display: flex;
    align-items: center;
}

.cookie-notice .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-notice p {
    margin-right: 20px;
    margin-bottom: 10px;
    flex: 1;
    min-width: 200px;
}

.cookie-button {
    min-width: 150px;
}

/* Footer */
footer {
    background-color: #1A1A28;
    padding: 60px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(169, 255, 0, 0.3));
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
    text-shadow: 0 0 8px rgba(169, 255, 0, 0.6);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(169, 255, 0, 0.1);
    color: var(--text-color);
    opacity: 0.7;
}

/* Иконки (класс icon) */
[class^="icon-"]:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
}

.icon-phone:before {
    content: '📞';
}

.icon-map-marker:before {
    content: '📍';
}

.icon-envelope:before {
    content: '✉️';
}

/* Стили для юридических страниц */
.legal-content {
    padding: 120px 0 80px;
    background-color: #1E1E2F;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(26, 26, 40, 0.7);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-page h1 {
    color: var(--accent-color);
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}

.last-update {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Thank you page */
.thank-you {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    background: linear-gradient(rgba(30, 30, 47, 0.9), rgba(30, 30, 47, 0.95)), url('img/eP9KfG.jpg');
    background-size: cover;
    background-position: center;
}

.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background: rgba(26, 26, 40, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
    position: relative;
}

.thank-you-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #1E1E2F;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.thank-you-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.thank-you-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.next-steps {
    margin: 40px auto;
    text-align: left;
    max-width: 500px;
}

.next-steps h2 {
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 24px;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 15px;
    font-size: 16px;
}

.thank-you-cta {
    margin-top: 40px;
}

/* Responsive */
@media screen and (max-width: 991px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title h2 {
        font-size: 36px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .order-form-container {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .service-card {
        min-width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .order-form-container {
        padding: 20px;
    }
    
    .form-submit {
        padding: 15px;
    }
    
    .cookie-notice .container {
        flex-direction: column;
    }
    
    .cookie-notice p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Анимация для элементов */
.animated {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animated.animate {
    opacity: 1;
    transform: translateY(0);
} 