/*
 * BuchhaltungsPro - Hauptstilblatt
 * Responsive Design mit Grid und Flexbox
 */

/* Reset und Base */
:root {
    --color-primary: #F9F871;       /* Лимонно-жёлтый */
    --color-accent: #333533;        /* Угольно-серый */
    --color-background: #FAF3E0;    /* Светлый беж */
    --color-tertiary: #00A676;      /* Нефритовый */
    --color-light: #FFFFFF;
    --color-dark: #222222;
    --color-error: #E53935;
    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-accent);
    background-color: var(--color-background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-tertiary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

section {
    padding: 5rem 0;
    scroll-margin-top: 100px; /* Добавляем отступ для якорных ссылок */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Заголовок */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-background);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.logo svg {
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    position: relative;
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--color-tertiary);
    transition: var(--transition);
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

/* Hero секция */
.hero {
    padding: 6rem 0;
    background-color: var(--color-light);
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-image {
    position: relative;
    animation: fadeIn 1.5s ease;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* Intro секция */
.intro {
    padding-bottom: 2rem;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
}

/* Services секция */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon {
    color: var(--color-tertiary);
    transform: scale(1.1);
}

.service-icon {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

/* About секция */
.about {
    background-color: var(--color-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Benefits секция */
.benefits h2 {
    text-align: center;
}

.benefits h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-item:hover .benefit-icon {
    color: var(--color-tertiary);
    transform: scale(1.1);
}

.benefit-icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

/* Testimonials секция */
.testimonials {
    background-color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
}

.testimonials h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-item {
    padding: 2rem;
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-item:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 1rem;
    font-style: italic;
}

/* Contact секция */
.contact h2 {
    text-align: center;
}

.contact h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

/* Форма */
.contact-form {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-tertiary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 166, 118, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-group a {
    color: var(--color-tertiary);
    text-decoration: underline;
}

.checkbox-group a:hover {
    text-decoration: none;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.alert-error {
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

/* Footer */
.site-footer {
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo svg {
    margin-right: 0.5rem;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-light);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-section address a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-section address a:hover {
    color: var(--color-primary);
}

.footer-section address a {
    color: var(--color-primary); /* Делаем телефон и email хорошо заметными */
    text-decoration: none;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Thank You Page */
.thank-you {
    padding: 8rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-icon {
    margin: 3rem 0;
    color: var(--color-tertiary);
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Media Queries */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image::before {
        top: -10px;
        right: -10px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-image {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    .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);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu a.btn {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .service-card,
    .benefit-item {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Дополнительные страницы */
.page-header {
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0;
}

.page-content {
    padding: 4rem 0;
}

.page-content h2 {
    margin-top: 2rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.page-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.page-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.page-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
} 