/* 
 * Main Stylesheet for Buchhalting Website
 * Uses the following color scheme:
 * - Main background: #a5d8ff (periwinkle blue)
 * - Accents: #ff6b6b (coral), #b2f2bb (lime), #000000 (black)
 * - Text: #212529 (dark gray), #1c7ed6 (saturated blue for headings)
 */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #a5d8ff;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

a {
    color: #1c7ed6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b6b;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1c7ed6;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: #ff6b6b;
    position: absolute;
    bottom: -10px;
    left: 0;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100%;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
}

/* === BUTTONS === */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #1c7ed6;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.cta-button.secondary {
    background-color: #1c7ed6;
}

.cta-button.secondary:hover {
    background-color: #ff6b6b;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 0;
    z-index: 1000;
    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;
    min-width: 200px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cookie-button.accept {
    background-color: #b2f2bb;
    color: #212529;
}

.cookie-button.accept:hover {
    background-color: #76c47e;
}

.cookie-button.decline {
    background-color: #ff6b6b;
    color: white;
}

.cookie-button.decline:hover {
    background-color: #e74c3c;
}

/* === HEADER & NAVIGATION === */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    width: 100%;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: #212529;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6b6b;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #1c7ed6;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #212529;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

/* === MAIN CONTENT SECTIONS === */
.main-content {
    min-height: 60vh;
    width: 100%;
    overflow: hidden;
}

.section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.section:nth-child(even) {
    background-color: white;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../img/PjH0Y4.jpg') no-repeat center center / cover;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1c7ed6;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* === ABOUT SECTION === */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 1;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

/* === BENEFITS SECTION === */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.benefit-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 15px;
}

/* === TESTIMONIALS SECTION === */
.testimonials-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #b2f2bb;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: #ff6b6b;
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-company {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* === PRICING SECTION === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #b2f2bb;
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-header {
    background-color: #1c7ed6;
    color: white;
    padding: 20px;
    text-align: center;
}

.pricing-card.featured .pricing-header {
    background-color: #ff6b6b;
}

.pricing-header h3 {
    color: white;
    margin-bottom: 10px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
}

.pricing-features {
    padding: 30px;
    flex-grow: 1;
}

.pricing-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '✓';
    color: #b2f2bb;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.pricing-card .cta-button {
    margin: 0 30px 30px;
    text-align: center;
    display: block;
}

/* === FAQ SECTION === */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: #1c7ed6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 20px 20px;
}

/* === CONTACT SECTION === */
.contact-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1c7ed6;
    outline: none;
}

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-group input {
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: normal;
}

/* === FOOTER === */
.site-footer {
    background-color: #212529;
    color: white;
    padding: 30px 0 10px;
    width: 100%;
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-info {
    flex: 2;
    min-width: 200px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links-column {
    flex: 1;
    min-width: 140px;
}

.footer-links-column h4 {
    color: white;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    font-size: 1rem;
}

.footer-links-column h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ff6b6b;
    margin-top: 3px;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 5px;
}

.footer-links-column ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.footer-links-column ul li a:hover {
    color: #ff6b6b;
}

.footer-links-column address {
    font-style: normal;
    line-height: 1.5;
    color: #adb5bd;
    font-size: 0.85rem;
}

.footer-links-column address a {
    color: #adb5bd;
}

.footer-links-column address a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    padding-top: 10px;
    border-top: 1px solid #343a40;
    text-align: center;
    color: #6c757d;
    font-size: 0.8rem;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MEDIA QUERIES === */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 99;
    }
    
    .main-nav .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px) scale(1);
    }
    
    /* Предотвращаем переполнение контента */
    img, svg {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cookie-content {
        justify-content: center;
        text-align: center;
    }
    
    .footer-info, 
    .footer-links-column {
        flex: 1 0 100%;
    }
    
    /* Исправление горизонтальной прокрутки */
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    body, html {
        max-width: 100%;
        overflow-x: hidden;
    }
} 