/* Базовые стили для финансового аудита domain */

:root {
    --deep-blue: #0A1F44;
    --coral: #FF4E50;
    --mint: #A8E6CF;
    --beige: #F4E1D2;
    --white: #FFFFFF;
    --shadow: rgba(10, 31, 68, 0.1);
    --transition: all 0.3s ease;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--deep-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--coral);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--mint);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

/* Анимации */
@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); }
}

/* Стили для шапки */
.header {
    background-color: rgba(10, 31, 68, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--coral);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--white);
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--coral);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Стили для главного экрана */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--deep-blue), #1a2a4a);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, var(--coral), var(--mint));
    opacity: 0.05;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.hero-content {
    max-width: 600px;
    animation: fadeIn 1s ease-out forwards;
    text-align: center;
    margin: 0 auto;
}

.animated-logo {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.animated-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--mint));
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    background-color: var(--coral);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn:hover {
    background-color: var(--mint);
    box-shadow: 0 5px 15px rgba(255, 78, 80, 0.4);
    transform: translateY(-2px);
    color: var(--deep-blue);
}

/* Стили для секции о нас */
.about-section {
    background-color: var(--beige);
    color: var(--deep-blue);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 2.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--mint));
}

.gradient-bg {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.1), rgba(255, 78, 80, 0.1));
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Стили для секции услуг */
.services-section {
    background-color: var(--deep-blue);
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
}

.service-box {
    background-color: var(--white);
    color: var(--deep-blue);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-10px);
}

.service-box img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-box h3 {
    color: var(--coral);
    margin-bottom: 15px;
}

/* Стили для секции FAQ */
.detailed-services-section {
    background-color: var(--beige);
    color: var(--deep-blue);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(10, 31, 68, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    margin: 0;
    padding: 0;
}

.faq-question a {
    display: block;
    padding: 20px;
    background-color: var(--white);
    color: var(--deep-blue);
    position: relative;
    font-weight: 700;
    text-decoration: none;
}

.faq-question a:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--coral);
}

.faq-item.active .faq-question a {
    background-color: var(--coral);
    color: var(--white);
}

.faq-item.active .faq-question a:after {
    content: '-';
    color: var(--white);
}

.faq-answer {
    padding: 0 20px;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Стили для секции отзывов */
.testimonials-section {
    background: linear-gradient(135deg, var(--deep-blue), #1a2a4a);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.testimonial-item blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 20px 40px;
}

.testimonial-item blockquote::before,
.testimonial-item blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--coral);
    position: absolute;
    opacity: 0.3;
}

.testimonial-item blockquote::before {
    top: 0;
    left: 0;
}

.testimonial-item blockquote::after {
    bottom: 0;
    right: 0;
}

.testimonial-item .author {
    font-weight: 600;
    color: var(--mint);
}

.testimonial-nav {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--coral);
    color: var(--white);
    border-radius: 30px;
    transition: var(--transition);
}

.testimonial-nav:hover {
    background-color: var(--mint);
    color: var(--deep-blue);
}

/* Стили для секции контактов */
.contact-info-section {
    background-color: var(--beige);
    color: var(--deep-blue);
}

.contact-details {
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    height: 100%;
}

.map-container {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для секции формы */
.contact-section {
    background: linear-gradient(135deg, var(--deep-blue), #1a2a4a);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.audit-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(168, 230, 207, 0.3);
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: var(--transition);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--coral);
    background-color: rgba(255, 255, 255, 0.1);
}

.form-field select option {
    background-color: var(--deep-blue);
    color: var(--white);
}

.form-field.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-field.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-field.checkbox label {
    font-weight: 400;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit .btn {
    background: linear-gradient(90deg, var(--coral), var(--mint));
    padding: 15px 40px;
}

.form-submit .btn:hover {
    background: linear-gradient(90deg, var(--mint), var(--coral));
}

/* Стили для блога */
.blog-section {
    background-color: var(--white);
    color: var(--deep-blue);
}

.blog-post {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-10px);
}

.post-image {
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.blog-post h3 {
    padding: 20px 20px 10px;
    color: var(--deep-blue);
}

.blog-post p {
    padding: 0 20px;
    color: #555;
}

.read-more {
    display: inline-block;
    margin: 15px 20px 20px;
    color: var(--coral);
    font-weight: 600;
}

/* Стили для подвала */
.footer {
    background: linear-gradient(135deg, var(--deep-blue), #1a2a4a);
    color: var(--white);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--coral), var(--mint));
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--mint);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--coral);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contact-info p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 31, 68, 0.95);
    padding: 15px;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0 15px 0 0;
    flex: 1;
}

.btn-cookie {
    background-color: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cookie:hover {
    background-color: var(--mint);
    color: var(--deep-blue);
}

.cookie-more {
    margin-left: 15px;
    text-decoration: underline;
}

/* Страницы политик */
.policy-section {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--beige);
    color: var(--deep-blue);
    min-height: 100vh;
}

.policy-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid;
    border-image: linear-gradient(90deg, var(--coral), var(--mint)) 1;
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--deep-blue);
}

.policy-content h2 {
    margin-top: 30px;
    color: var(--coral);
}

.policy-content ul {
    margin-bottom: 20px;
    margin-left: 20px;
}

/* Страница благодарности */
.thanks-section {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--deep-blue);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.thanks-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.thanks-icon {
    font-size: 5rem;
    color: var(--mint);
    margin-bottom: 20px;
}

.back-home {
    margin-top: 30px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .col {
        flex: 0 0 calc(50% - 30px);
    }
    
    .service-box, 
    .blog-post {
        margin-bottom: 30px;
    }
    
    .animated-logo {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
    }
    
    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 300px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0 0;
    }
    
    .main-nav li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 10px;
    }
    
    .col {
        flex: 0 0 100%;
    }
    
    .animated-logo {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-more {
        margin-top: 10px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .animated-logo {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .audit-form {
        padding: 20px;
    }
}
