/* 
* Main CSS file for FinAudit website
* Colors:
* - Main background: #F4F8FF
* - Headers and elements: #004D7F
* - Buttons and accents: #F5A623
* - Font color: #1C1C1C
*/

/* --- Reset and Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    color: #1C1C1C;
    line-height: 1.6;
    background-color: #F4F8FF;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

a {
    color: #004D7F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F5A623;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: #004D7F;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #F5A623;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: #F5A623;
    color: white;
}

.primary-btn:hover {
    background-color: #e09214;
    color: white;
    box-shadow: 0 4px 10px rgba(245, 166, 35, 0.3);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.85);
    color: #004D7F;
    border: 2px solid #004D7F;
    font-weight: 700;
    text-shadow: none;
}

.secondary-btn:hover {
    background-color: #004D7F;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 77, 127, 0.3);
}

/* Специальный стиль для secondary-btn в hero-section */
.hero-section .secondary-btn {
    background-color: rgba(255, 255, 255, 0.85);
    color: #004D7F;
    border: 2px solid white;
    text-shadow: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-section .secondary-btn:hover {
    background-color: #004D7F;
    color: white;
    border-color: #004D7F;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.service-btn {
    background-color: #004D7F;
    color: white;
    width: 100%;
    margin-top: 15px;
}

.service-btn:hover {
    background-color: #003a61;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 77, 127, 0.3);
}

/* --- Header --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo svg {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: #1C1C1C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #F5A623;
}

.contact-info a {
    color: #004D7F;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #004D7F;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    padding: 30px;
    margin: 0 auto;
}

.hero-content h1 {
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.4s both;
    justify-content: center;
}

.hero-image {
    display: none; /* Скрываем старое изображение, так как теперь используем фоновое */
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background-color: white;
}

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

.service-card {
    background-color: #F4F8FF;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.service-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.service-card ul {
    text-align: left;
    margin-bottom: 20px;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 77, 127, 0.1);
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    color: #F5A623;
    position: absolute;
    left: 0;
}

.service-card li:last-child {
    border-bottom: none;
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
    background-color: #F4F8FF;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text p {
    margin-bottom: 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 80px 0;
    background-color: white;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: #F4F8FF;
    border-radius: 10px;
    padding: 40px;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quote-icon {
    font-size: 4rem;
    color: #F5A623;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    display: block;
    color: #004D7F;
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d1d1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-control.active {
    background-color: #F5A623;
}

/* --- Blog Section --- */
.blog-section {
    padding: 80px 0;
    background-color: #F4F8FF;
}

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

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-content p {
    margin-bottom: 15px;
}

.read-more {
    font-weight: 600;
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.read-more:hover {
    border-color: #F5A623;
}

.blog-button-container {
    text-align: center;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #F4F8FF;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9f0ff;
}

.faq-question.active {
    background-color: #004D7F;
    color: white;
}

.faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question.active + .faq-answer {
    padding: 20px;
}

/* --- Contacts Section --- */
.contacts-section {
    padding: 80px 0;
    background-color: #F4F8FF;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #F4F8FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.contact-text h3 {
    margin-bottom: 5px;
}

.contacts-map {
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9f0ff;
    color: #004D7F;
    font-weight: bold;
}

/* --- Order Form Section --- */
.order-section {
    padding: 80px 0;
    background-color: white;
}

.order-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.order-form {
    background-color: #F4F8FF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #004D7F;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #F5A623;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F5A623;
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-highlight,
.form-group select:focus ~ .form-highlight {
    width: 100%;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-checkbox input {
    margin-right: 10px;
    margin-top: 6px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-checkbox a {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* --- Footer --- */
footer {
    background-color: #004D7F;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    margin-bottom: 30px;
}

.company-description {
    margin-top: 15px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-logo svg text {
    fill: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-group h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.link-group ul li a:hover {
    color: #F5A623;
}

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

/* --- Cookie Consent --- */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: #004D7F;
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease;
}

.cookie-consent.active {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-right: 20px;
}

.cookie-content a {
    color: #F5A623;
    text-decoration: underline;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate(30px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* --- Media Queries --- */
@media (max-width: 1200px) {
    .hero-image {
        width: 45%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 80px 0;
        min-height: 400px;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .hero-buttons {
        flex-direction: column;
        margin-bottom: 0;
    }
    
    .hero-section {
        min-height: 350px;
    }
    
    .testimonial-content {
        padding: 25px;
    }
    
    .order-form {
        padding: 25px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .contact-info {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        order: 3;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-section {
        min-height: 300px;
        padding: 60px 0;
    }
} 