/* 
* domain - Сайт финансовой аудиторской компании
* Стили сайта
*/

/* Основные цвета
- Midnight Navy: #1A1C2C (deep background)
- Electric Coral: #FF4E50 (bright accent, CTA highlights)
- Soft Sand: #F4E6D5 (neutral backgrounds, sections)
- Misty Teal: #A3D9C9 (contrasting text and icons)
- Charcoal Slate: #333840 (footer and text blocks)
- Lemon Ice: #FFE67C (hover states and focus highlights)
*/

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333840;
    background-color: #F4E6D5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #1A1C2C;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF4E50;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FF4E50;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #1A1C2C;
    color: #FFE67C;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1A1C2C;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #FF4E50;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Общие классы для секций */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Header */
header {
    background-color: #1A1C2C;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #F4E6D5;
}

.logo span {
    color: #FF4E50;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: #F4E6D5;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover {
    color: #FFE67C;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFE67C;
    transition: width 0.3s ease;
}

.nav-menu a:hover:after {
    width: 100%;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #F4E6D5;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: #1A1C2C;
    color: #F4E6D5;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #F4E6D5;
    font-size: 3.2rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-out;
}

.hero-cta {
    animation: fadeIn 1.5s ease-out;
}

.hero-bg {
    position: relative;
    width: 40%;
    margin-left: 30px;
    z-index: 2;
}

/* О компании */
.about {
    background-color: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h2:after {
    left: 0;
    transform: none;
}

/* Услуги */
.services {
    background-color: #F4E6D5;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Почему нас выбирают */
.why-us {
    background-color: #1A1C2C;
    color: #F4E6D5;
}

.why-us .section-title {
    color: #F4E6D5;
}

.why-us .section-title:after {
    background-color: #A3D9C9;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    color: #A3D9C9;
    margin-bottom: 15px;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF4E50;
    margin-bottom: 10px;
}

/* Отзывы клиентов */
.testimonials {
    background-color: white;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-card {
    background-color: #F4E6D5;
    padding: 30px;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    margin: 0;
}

/* Форма заказа */
.order-form {
    background-color: #F4E6D5;
    position: relative;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #A3D9C9;
    box-shadow: 0 0 0 3px rgba(163, 217, 201, 0.3);
}

.form-check {
    margin-bottom: 10px;
}

.form-check input {
    margin-right: 10px;
}

.form-errors {
    background-color: #ffebee;
    border-left: 3px solid #FF4E50;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.form-errors .error {
    color: #d32f2f;
    margin: 5px 0;
}

/* FAQ */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: #F4E6D5;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 300px;
}

/* Контактная информация */
.contact {
    background-color: #F4E6D5;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info h3 {
    color: #1A1C2C;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #A3D9C9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: #1A1C2C;
    font-size: 1.2rem;
}

.contact-text h4 {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #1A1C2C;
    color: #F4E6D5;
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #F4E6D5;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: #FF4E50;
}

.footer-about {
    margin-bottom: 20px;
}

.footer-title {
    color: #F4E6D5;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #A3D9C9;
}

.footer-links a:hover {
    color: #FFE67C;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(244, 230, 213, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1A1C2C;
    color: #F4E6D5;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    text-align: center;
}

.cookie-popup.active {
    display: block;
}

.cookie-popup p {
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cookie-btn {
    width: auto;
    display: inline-block;
    margin: 0 auto;
    background-color: #FF4E50;
}

/* Страницы с правовой информацией */
.legal-page {
    padding: 150px 0 80px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.legal-content {
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 5px;
}

/* Страница благодарности */
.thank-you-page {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.thank-you-content h1 {
    margin-bottom: 30px;
}

.thank-you-image {
    max-width: 450px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-next {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
}

.thank-you-next h3 {
    text-align: center;
    margin-bottom: 25px;
}

.centered-list {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-cta {
    margin-top: 40px;
}

.legal-content h2 {
    margin-top: 30px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 160px 0 80px;
    }
    
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1A1C2C;
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 0;
    }
    
    .about-container,
    .services-container,
    .contact-container,
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    /* Hero section для мобильных устройств */
    .hero .container div[style] {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero-bg {
        width: 90%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
    
    .hero-bg img {
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-content h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
    
    .hero-bg {
        width: 100%;
        margin-bottom: 0;
    }
    
    .services-container,
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 160px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .legal-container {
        padding: 20px;
    }
    
    .legal-content {
        padding: 20px;
    }
}
