/* 
* BuchhaltungsService GmbH - Main Stylesheet
* Адаптивный дизайн с использованием CSS Grid и Flexbox
*/

/* === Основные переменные === */
:root {
    /* Основная цветовая палитра */
    --color-primary: #232946;    /* темно-синий */
    --color-accent: #eebbc3;     /* теплый розовый */
    --color-background: #fffffe; /* чисто-белый */
    --color-secondary: #b8c1ec;  /* светлый индиго */
    --color-contrast: #d4939d;   /* винный оттенок */
    
    /* Оттенки серого */
    --color-text: #232946;       /* темно-синий для текста */
    --color-text-light: #59618a; /* светлее для подзаголовков */
    --color-border: #e4e6f0;     /* для границ */
    
    /* Тени и эффекты */
    --shadow-sm: 0 2px 8px rgba(35, 41, 70, 0.1);
    --shadow-md: 0 4px 12px rgba(35, 41, 70, 0.15);
    --shadow-lg: 0 8px 24px rgba(35, 41, 70, 0.2);
    
    /* Размеры и отступы */
    --container-max: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === Основные сбросы и стили === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Типография === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 6rem;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Изображения */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* === Компоненты === */

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.btn-primary:hover {
    background-color: var(--color-text-light);
    box-shadow: var(--shadow-md);
    color: var(--color-background);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-accent:hover {
    background-color: var(--color-contrast);
    box-shadow: var(--shadow-md);
    color: var(--color-background);
}

.btn-lg {
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
}

/* Карточки */
.card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    height: 100%;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Секции */
.section {
    padding: 8rem 0;
}

.section-alt {
    background-color: #f8f9fc;
}

/* === Хедер и навигация === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li:not(:last-child) {
    margin-right: 2rem;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

.main-nav a:hover:after {
    width: 100%;
}

.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: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 2rem;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 2rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* === Герой-секция === */
.hero {
    padding: 18rem 0 10rem;
    background: linear-gradient(to bottom right, var(--color-primary) 30%, var(--color-text-light));
    color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 70%;
    background-color: rgba(184, 193, 236, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 60%;
    height: 60%;
    background-color: rgba(238, 187, 195, 0.1);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--color-background);
    margin-bottom: 2rem;
    font-size: 5rem;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* === О компании === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-card {
    text-align: center;
}

.about-card-img {
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 20rem;
    width: 100%;
}

.about-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.about-card:hover .about-card-img img {
    transform: scale(1.05);
}

/* === Почему мы === */
.why-us {
    background-color: var(--color-secondary);
    position: relative;
}

.why-us:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background-color: var(--color-background);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.why-us:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background-color: var(--color-background);
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

.why-us-content {
    padding: 6rem 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.fact-card {
    background-color: var(--color-background);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.fact-card h3 {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin: 1.5rem 0 1rem;
}

.fact-number {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* === Услуги === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.service-icon {
    width: 5rem;
    height: 5rem;
    background-color: var(--color-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.service-card-body {
    flex-grow: 1;
}

.service-card-footer {
    margin-top: 2rem;
}

.service-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* === Отзывы === */
.testimonials {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    position: relative;
    background-color: var(--color-background);
    border-left: 4px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 8rem;
    font-family: Georgia, serif;
    color: var(--color-secondary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-content {
    padding: 3rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 0 3rem 3rem;
}

.testimonial-author-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    background-color: var(--color-secondary);
}

.testimonial-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-name {
    font-weight: 700;
}

.testimonial-author-title {
    color: var(--color-text-light);
    font-size: 1.4rem;
}

/* === Как мы работаем === */
.how-we-work {
    background-color: #f8f9fc;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    counter-reset: step-counter;
}

.process-step {
    position: relative;
    padding-left: 8rem;
    counter-increment: step-counter;
}

.process-step:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 6rem;
    height: 6rem;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
}

.process-step h3 {
    margin-bottom: 1.5rem;
}

/* === Форма заказа === */
.order-section {
    background: linear-gradient(45deg, var(--color-primary), var(--color-text-light));
    color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.order-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-form-wrapper {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 60rem;
    position: relative;
    overflow: hidden;
}

.order-form-wrapper:before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 20rem;
    height: 20rem;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-accent));
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.order-form-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.order-form-header h2 {
    color: var(--color-primary);
}

.order-form-header p {
    color: var(--color-text);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    display: block;
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-background);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.form-check label {
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--color-text-light);
}

.form-check a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-btn-wrapper {
    margin-top: 3rem;
}

/* Алерт для ошибок */
.alert {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.mt-3 {
    margin-top: 1.5rem;
}

/* === Контакты === */
.contact-section {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1.5rem;
    min-width: 2.4rem;
    color: var(--color-primary);
}

.contact-map {
    height: 40rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* === Футер === */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about h3,
.footer-contact h3,
.footer-links h3 {
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--color-background);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.7;
}

/* === Страницы политик === */
.legal-section {
    padding-top: 12rem;
    padding-bottom: 6rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 2.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.cookie-table th, .cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.cookie-table th {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.cookie-table tr:nth-child(even) {
    background-color: #f8f9fc;
}

/* === Страница благодарности === */
.thank-you {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem;
    text-align: center;
}

.thank-you-icon {
    font-size: 6rem;
    margin: 2rem 0;
    color: var(--color-accent);
}

.mt-4 {
    margin-top: 4rem;
}

/* === Медиа-запросы === */
@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .hero {
        padding: 15rem 0 8rem;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    h1 {
        font-size: 3.8rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .hero {
        padding: 13rem 0 6rem;
    }
    
    .hero h1 {
        font-size: 3.8rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 7.3rem;
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .main-nav.active {
        max-height: 50rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    .main-nav li {
        margin: 0 !important;
    }
    
    .main-nav a {
        display: block;
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .order-form-wrapper {
        padding: 3rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 54%;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .hero {
        padding: 11rem 0 5rem;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .order-form-wrapper {
        padding: 2rem;
    }
    
    .process-step {
        padding-left: 7rem;
    }
    
    .fact-number {
        font-size: 3.6rem;
    }
}

/* === Анимации === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

/* Иконки для контактов и др. */
.icon-phone:before {
    content: '📞';
}
.icon-mail:before {
    content: '✉️';
}
.icon-location:before {
    content: '📍';
} 