/* Основные настройки и сброс */
:root {
    --primary-color: #102A43;
    --accent-color: #B8FF2C;
    --gray-color: #A5A8B6;
    --text-color: #333;
    --bg-color: #fff;
    --shadow: 0 10px 30px rgba(16, 42, 67, 0.1);
    --radius: 16px;
    --transition: all 0.3s ease-in-out;
}

/* Глобальные правила для предотвращения горизонтальной прокрутки */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Сетка */
.hero-grid,
.about-grid,
.services-grid,
.benefits-grid,
.testimonials-grid,
.portfolio-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 3fr 2fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Хедер и навигация */
.main-header {
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
}

/* Секции */
section {
    padding: 80px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Герой-секция */
.hero-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #555;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image {
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Секция О нас */
.about-section {
    background-color: #f9f9f9;
}

.about-content {
    margin-bottom: 30px;
}

.certifications {
    margin-top: 20px;
}

.certifications li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.certifications li:before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Секция услуг */
.service-card {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card ul {
    margin: 15px 0;
    flex-grow: 1;
}

.service-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card li:before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--primary-color);
}

/* Секция преимуществ */
.benefits-section {
    background: linear-gradient(to right, #102a43, #2c4c6d);
    color: #fff;
}

.benefits-section .section-title {
    color: #fff;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.5;
    margin-bottom: 10px;
}

.benefit-item h3 {
    color: #fff;
}

/* Секция отзывов */
.testimonials-section {
    background-color: #f9f9f9;
}

.testimonial-card {
    background-color: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: 100%;
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-content:before {
    content: '"';
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Секция процесса */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: var(--gray-color);
    left: 20px;
    top: 0;
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 1;
}

.step-content {
    margin-left: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex: 1;
}

/* Секция портфолио */
.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-content {
    padding: 20px;
    background-color: #fff;
}

/* Форма и контактный раздел */
.contact-form-section {
    background-color: #f9f9f9;
    padding: 80px 0;
    position: relative;
}

.contact-form-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.1);
    outline: none;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    height: 150px;
    resize: vertical;
}

.tea-selection {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.tea-selection p {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.tea-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.tea-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tea-option:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
}

.tea-option input[type="radio"] {
    display: none;
}

.tea-circle {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-color);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: var(--transition);
    background-color: #fff;
}

.tea-circle:after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition);
}

.tea-option input[type="radio"]:checked + .tea-circle {
    border-color: var(--primary-color);
}

.tea-option input[type="radio"]:checked + .tea-circle:after {
    transform: translate(-50%, -50%) scale(1);
}

.tea-name {
    font-weight: 500;
}

/* Стили для чекбоксов */
.checkbox-group {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.checkbox-container {
    margin-bottom: 15px;
}

.checkbox-container:last-child {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cccccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
    background-color: #fff;
    display: inline-block;
}

.checkbox-custom:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom:after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

.label-text {
    line-height: 1.5;
    font-size: 0.95rem;
    padding-top: 1px;
}

.label-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.label-text a:hover {
    color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(16, 42, 67, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(16, 42, 67, 0.2);
}

.form-note {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: right;
}

.required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 2px;
}

/* Секция контактной информации */
.contact-info-section {
    background-color: #f9f9f9;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-map {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

.map-placeholder {
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 42, 67, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* Футер */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.main-footer h3 {
    color: #fff;
    margin-bottom: 20px;
}

.main-footer a {
    color: #fff;
    opacity: 0.8;
}

.main-footer a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-nav ul,
.footer-links ul {
    margin-bottom: 30px;
}

.footer-nav li,
.footer-links li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Попап с куками */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    color: #333;
    padding: 20px 25px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 1px solid #eee;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-content form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-more {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-more:hover {
    color: var(--accent-color);
}

/* Страница благодарности */
.danke-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    background-color: #f9f9f9;
}

.danke-content {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.success-icon {
    margin: 0 auto 30px;
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.next-steps {
    text-align: left;
    margin: 30px 0;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.next-steps h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.steps-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 12px;
    padding-left: 10px;
}

.danke-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* CSS анимации при прокрутке */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
}

[data-delay="0.1"] {
    animation-delay: 0.1s;
}

[data-delay="0.2"] {
    animation-delay: 0.2s;
}

[data-delay="0.3"] {
    animation-delay: 0.3s;
}

[data-delay="0.4"] {
    animation-delay: 0.4s;
}

[data-delay="0.5"] {
    animation-delay: 0.5s;
}

/* Наблюдатель для анимации при прокрутке без JavaScript */
@media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
        view-timeline-name: --reveal;
        view-timeline-axis: block;
        animation-timeline: --reveal;
        animation-range: entry 5% cover 15%;
    }
}

/* Стили для юридических страниц */
.legal-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.legal-section h1 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5rem;
}

.legal-section h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.legal-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.legal-section p, 
.legal-section ul, 
.legal-section ol {
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-section ul {
    list-style: disc;
    margin-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--accent-color);
}

/* Медиа-запросы */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    /* Фиксация всех блоков на мобильных устройствах */
    .hero-section, 
    .about-section, 
    .services-section, 
    .benefits-section, 
    .testimonials-section, 
    .process-section, 
    .portfolio-section, 
    .contact-form-section, 
    .contact-info-section,
    .main-footer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Убедимся, что все сетки не выходят за границы */
    .hero-grid,
    .about-grid,
    .services-grid,
    .benefits-grid,
    .testimonials-grid,
    .portfolio-grid,
    .process-timeline,
    .contact-grid,
    .footer-grid {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    
    /* Все карточки и блоки должны быть ограничены шириной экрана */
    .service-card,
    .benefit-item,
    .testimonial-card,
    .portfolio-item,
    .process-step {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .main-header {
        position: relative; /* Remove sticky positioning on mobile */
    }
    
    .legal-section h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .tea-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tea-option {
        margin-bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .danke-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Fixing mobile animations - completely remove horizontal effects */
    .fade-in-left,
    .fade-in-right {
        animation: fadeIn 1s ease forwards !important;
        transform: none !important;
    }
    
    .animate-on-scroll {
        animation-name: fadeIn !important;
        transform: none !important;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* Reset all horizontal transforms */
    [class*="fade-in-"] {
        transform: none !important;
    }
    
    /* Улучшения для блока Audit-Prozess на мобильных устройствах */
    .process-timeline {
        padding-left: 15px;
        margin-top: 30px;
        position: relative;
    }
    
    .process-timeline:before {
        left: 15px;
        top: 15px;
        height: calc(100% - 30px);
        width: 1px;
    }
    
    .process-step {
        flex-direction: column;
        padding-left: 45px;
        margin-bottom: 25px;
        position: relative;
        min-height: 40px;
    }
    
    .step-number {
        position: absolute;
        left: 0;
        top: 0;
        width: 30px;
        height: 30px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        border: 1px solid var(--primary-color);
        box-sizing: border-box;
    }
    
    .step-content {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .step-content p {
        font-size: 0.95rem;
        margin: 0;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .danke-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    /* Fix sections on mobile */
    section {
        width: 100%;
        overflow-x: hidden;
    }
}