/* 
* Main CSS for Accounting Services Website
* Color Palette:
* - Primary: #12113C (deep blue)
* - Accent: #FF4C29 (neon coral)
* - Support: #FEBF63 (bright gold)
* - Background: #F4F4F9 (neutral light)
* - Text: #1F1F1F
*/

/* ====== GLOBAL STYLES ====== */
:root {
    --primary: #12113C;
    --accent: #FF4C29;
    --support: #FEBF63;
    --background: #F4F4F9;
    --text: #1F1F1F;
    --white: #FFFFFF;
    --light-gray: #E1E1E8;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 76, 41, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 76, 41, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Специальные стили для заголовка секции About */
.about .section-title {
    background-color: var(--primary);
    color: var(--white);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    margin: 0 auto 50px;
    box-shadow: var(--box-shadow);
}

/* ====== ANIMATIONS ====== */
.animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.fade-in {
    opacity: 1;
    transform: translateX(0);
}

/* Убедимся, что анимации работают правильно */
.animated.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Intersection Observer for animations */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ====== HEADER ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 50px;
    width: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary);
    transition: var(--transition);
}

/* ====== HERO SECTION ====== */
.hero {
    padding: 220px 0 140px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/FwJpvR.jpg) no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18,17,60,0.9) 0%, rgba(255,76,41,0.7) 100%);
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--white);
}

/* ====== ABOUT SECTION ====== */
.about {
    padding: 100px 0;
    background-color: var(--background);
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* ====== BENEFITS SECTION ====== */
.benefits {
    padding: 100px 0;
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin-bottom: 20px;
}

.benefit-icon .icon {
    width: 60px;
    height: 60px;
    fill: var(--accent);
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* ====== SERVICES SECTION ====== */
.services {
    padding: 100px 0;
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3,
.service-card p,
.service-price {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
    color: var(--primary);
}

.service-price {
    font-weight: 700;
    color: var(--accent);
    margin: 10px 0 20px;
}

.service-card .btn {
    margin: 0 20px 20px;
}

/* ====== TESTIMONIALS SECTION ====== */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(170deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-title::after {
    background: var(--white);
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-weight: 700;
}

/* ====== CONTACT FORM SECTION ====== */
.contact-form {
    padding: 100px 0;
    background-color: var(--background);
}

form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 76, 41, 0.2);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-check input {
    width: auto;
    margin-right: 10px;
    margin-top: 6px;
}

.form-check label {
    font-weight: normal;
}

/* ====== FAQ SECTION ====== */
.faq {
    padding: 100px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--background);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item:hover .faq-answer {
    max-height: 200px;
    padding: 20px;
}

/* ====== CONTACT SECTION ====== */
.contact {
    padding: 100px 0;
    background: linear-gradient(170deg, var(--background) 0%, var(--white) 100%);
    position: relative;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(18,17,60,0.03) 0%, rgba(255,76,41,0.05) 100%);
    z-index: -1;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-card,
.contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-card,
.map-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    height: 100%;
}

.contact-info h3,
.map-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--support);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(18,17,60,0.2);
}

.contact-icon svg {
    fill: var(--white);
    width: 20px;
    height: 20px;
}

.opening-hours {
    margin-top: 15px;
    background-color: rgba(254,191,99,0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--support);
}

.day-hours {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.day {
    font-weight: 600;
}

.hours {
    color: var(--accent);
}

.map-placeholder {
    height: 250px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.map-placeholder img:hover {
    transform: scale(1.05);
}

.map-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 15px;
}

/* ====== FOOTER ====== */
.footer {
    padding: 40px 0 20px;
    background-color: var(--primary);
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-about {
    flex: 0 0 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 120px;
    margin-bottom: 20px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-column ul li a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    margin-right: 20px;
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    padding-top: 15px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== COOKIE BANNER ====== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1000px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

/* ====== MEDIA QUERIES ====== */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .testimonial {
        flex: 0 0 calc(50% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .testimonial {
        flex: 0 0 100%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .about, 
    .benefits, 
    .services, 
    .testimonials, 
    .contact-form, 
    .faq, 
    .contact {
        padding: 60px 0;
    }
    
    form {
        padding: 20px;
    }
}
