/*
* FinAuditBlitz GmbH
* Основные стили сайта
* Цветовая палитра:
* - #1F2235 (глубокий графит)
* - #A8FF60 (неоново-зелёный акцент)
* - #2D9CDB (электрический синий)
* - #F8F9FA (фоновые секции)
* - #FAE3D9 (мягкий коралловый в фоне форм)
*/

/* Reset и базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Предотвращение горизонтальной прокрутки */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #1F2235;
    background-color: #F8F9FA;
    overflow-x: hidden; /* Предотвращение горизонтальной прокрутки */
    max-width: 100%; /* Запрет контенту выходить за ширину экрана */
    position: relative; /* Для правильного позиционирования элементов */
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #2D9CDB;
    transition: color 0.3s ease;
}

a:hover {
    color: #1F2235;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden; /* Предотвращение горизонтальной прокрутки */
}

section {
    padding: 80px 0;
    width: 100%; /* Гарантируем, что секции не шире экрана */
    overflow-x: hidden; /* Предотвращение горизонтальной прокрутки */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #A8FF60, #2D9CDB);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

.accent {
    color: #A8FF60;
    text-shadow: 0 0 10px rgba(168, 255, 96, 0.3);
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2D9CDB, #2D9CDB 60%, #A8FF60);
    color: #fff;
    box-shadow: 0 4px 15px rgba(45, 156, 219, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(45, 156, 219, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #2D9CDB;
    color: #2D9CDB;
}

.btn-secondary:hover {
    background-color: #2D9CDB;
    color: #fff;
    transform: translateY(-2px);
}

.btn-cookie {
    background-color: #A8FF60;
    color: #1F2235;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background-color: #8de84a;
    transform: translateY(-2px);
}

/* Хедер и навигация */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    width: 100%; /* Гарантируем, что хедер не шире экрана */
}

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

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #1F2235;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #A8FF60, #2D9CDB);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: #A8FF60;
    color: #1F2235 !important;
    padding: 10px 20px;
    border-radius: 30px;
}

.nav-cta:hover {
    background-color: #8de84a;
}

.nav-cta::after {
    display: none !important;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, #1F2235 0%, #2D3A5A 100%);
    color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('img/hero-pattern.svg') no-repeat right top;
    background-size: contain;
    opacity: 0.1;
}

.hero h1 {
    margin-bottom: 30px;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* О нас */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* Почему мы */
.why-us {
    background-color: #F8F9FA;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card.featured {
    border: 2px solid #A8FF60;
    transform: scale(1.05);
    z-index: 2;
}

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

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #A8FF60;
    color: #1F2235;
    padding: 5px 15px;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom-left-radius: 10px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D9CDB;
    margin-bottom: 20px;
}

.service-card ul {
    margin-bottom: 30px;
}

.service-card li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #A8FF60;
    font-weight: bold;
}

/* Отзывы */
.testimonials {
    background-color: #1F2235;
    color: #fff;
}

.testimonials h2::after {
    background: linear-gradient(90deg, #A8FF60, #A8FF60);
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: -30px;
    left: -15px;
    color: rgba(168, 255, 96, 0.2);
    font-family: Georgia, serif;
}

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

.author-info h4 {
    margin-bottom: 5px;
    color: #A8FF60;
}

.author-info p {
    font-size: 0.875rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Форма заказа */
.order-form {
    background-color: #FAE3D9;
    padding: 100px 0;
}

.form-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: #2D9CDB;
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.2);
    outline: none;
}

.service-selection {
    margin: 30px 0;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-label input, .checkbox-label input {
    position: absolute;
    opacity: 0;
}

.radio-custom, .checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #2D9CDB;
    border-radius: 50%;
    position: relative;
}

.checkbox-custom {
    border-radius: 3px;
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #2D9CDB;
    border-radius: 50%;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2D9CDB;
    font-size: 14px;
    line-height: 1;
}

.form-terms {
    margin: 30px 0;
}

.form-terms .checkbox-label {
    margin-bottom: 15px;
}

.form-message {
    margin-bottom: 20px;
}

.form-submit {
    text-align: center;
}

/* Футер */
.site-footer {
    background-color: #1F2235;
    color: #fff;
    padding: 80px 0 30px;
    width: 100%; /* Гарантируем, что футер не шире экрана */
}

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

.footer-about {
    grid-column: span 2;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-about p {
    opacity: 0.8;
}

.footer h3 {
    color: #A8FF60;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-legal a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover {
    opacity: 1;
    color: #A8FF60;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.cookie-more {
    display: inline-block;
    margin-left: 15px;
    font-size: 0.9rem;
}

/* Страница благодарности */
.thank-you {
    padding: 120px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you-icon img {
    width: 80px;
    height: 80px;
}

.thank-you h1 {
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 30px;
}

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

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

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    padding: 20px;
    margin-bottom: 0;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item:target h3::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item:target .faq-answer,
.faq-item:hover .faq-answer {
    display: block;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-x: hidden; /* Двойной запрет горизонтальной прокрутки */
        width: 100%; /* Фиксированная ширина для тела */
    }
    
    .main-nav {
        display: none; /* Скрываем стандартную навигацию на мобильных устройствах */
    }
    
    /* Стилизуем меню-бургер на мобильных */
    .header-content {
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr; /* Одностолбцовая сетка для формы */
    }
    
    .testimonials-slider {
        flex-direction: column;
        align-items: center;
        max-width: 100%; /* Ограничиваем ширину слайдера */
    }
    
    .testimonial {
        max-width: 100%; /* Ограничиваем ширину отзывов */
        margin: 0 15px; /* Добавляем отступы по бокам */
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    form {
        padding: 20px; /* Уменьшаем отступы в форме */
        margin: 0 15px; /* Добавляем отступы по бокам */
    }
    
    .radio-group {
        flex-direction: column; /* Радио-кнопки в столбик */
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 80px 0; /* Уменьшаем вертикальные отступы */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        transform: scale(1); /* Убираем масштабирование на мобильных */
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px); /* Согласованное поведение при наведении */
    }
    
    .container {
        padding: 0 15px; /* Уменьшаем горизонтальные отступы контейнера */
    }
}

/* Анимации */
@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);
    }
}

.hero h1, .hero p, .hero a {
    animation: fadeIn 1s ease-out forwards;
}

.hero p {
    animation-delay: 0.2s;
}

.hero a {
    animation-delay: 0.4s;
    opacity: 0;
}

.btn-primary {
    animation: pulse 2s infinite;
}

/* Правила для политик и юридических страниц */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.legal-content h1 {
    margin-bottom: 30px;
}

.legal-content h2 {
    text-align: left;
    margin-top: 40px;
}

.legal-content h2::after {
    margin-left: 0;
}

.legal-content p, .legal-content ul, .legal-content ol {
    margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
    padding-left: 20px;
}

.legal-content ul li, .legal-content ol li {
    margin-bottom: 10px;
}

/* Таблица для cookie-richtlinie */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow-x: auto; /* Добавляем прокрутку для таблицы при необходимости */
    display: block; /* Для мобильных устройств */
}

.cookie-table th, .cookie-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.cookie-table th {
    background-color: #f2f2f2;
}

/* Для больших экранов возвращаем таблице обычный вид */
@media (min-width: 768px) {
    .cookie-table {
        display: table;
    }
}

/* Замена JS-функциональности */
.faq-item:target {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}