/* ===== ОБЩИЕ СТИЛИ ===== */
:root {
    --color-bg: #f8f4eb;
    --color-text: #4a4a4a;
    --color-heading: #2d3142;
    --color-accent-1: #3e4c59;
    --color-accent-2: #f25c54;
    --color-accent-3: #f7b733;
    --color-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent-2);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent-3);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-accent-1);
}

section {
    padding: 80px 0;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(242, 92, 84, 0.2);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-accent-2);
    color: var(--color-accent-2);
}

.btn-secondary:hover {
    background-color: var(--color-accent-2);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-contato {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.btn-contato:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(242, 92, 84, 0.2);
    color: var(--color-white);
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-heading);
    text-transform: lowercase;
    letter-spacing: -1px;
}

.logo a:hover {
    color: var(--color-accent-2);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--color-accent-2);
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-heading);
    transition: var(--transition);
}

/* ===== ГЕРОЙ ===== */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-accent-1);
}

.hero-image {
    flex: 1;
    text-align: right;
}

/* ===== УСЛУГИ ===== */
.services {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== О НАС ===== */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-stats {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-top: 30px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-2);
    margin-bottom: 5px;
}

.stat-text {
    color: var(--color-accent-1);
    font-size: 0.9rem;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
    background-color: var(--color-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== ОТЗЫВЫ ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    padding: 30px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: var(--color-accent-3);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-info h4 {
    margin-bottom: 5px;
    color: var(--color-heading);
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--color-accent-1);
    margin: 0;
}

/* ===== ПРОЦЕСС ===== */
.process {
    background-color: var(--color-white);
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
    color: var(--color-white);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-image {
    width: 100%;
    height: 140px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.process-step:hover .step-image img {
    transform: scale(1.1);
}

/* ===== КОНТАКТЫ ===== */
.contact {
    background-color: var(--color-bg);
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 1;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-2);
    box-shadow: 0 0 0 3px rgba(242, 92, 84, 0.1);
}

.form-check {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.form-check input {
    margin-right: 10px;
    margin-top: 6px;
}

.form-check label {
    font-size: 0.9rem;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details h3 {
    margin-bottom: 15px;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background-color: var(--color-accent-1);
    color: var(--color-white);
    padding: 60px 0 0;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-info {
    flex: 2;
}

.footer-contacts,
.footer-links {
    flex: 1;
}

.footer-logo a {
    color: var(--color-white);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
}

.footer h3 {
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent-3));
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--color-accent-3);
}

.footer address {
    font-style: normal;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.copyright {
    margin-top: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 20px;
    border-top: 3px solid var(--color-accent-2);
    z-index: 1001;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
    flex: 1;
}

/* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ ===== */
.legal-page {
    padding-top: 150px;
}

.legal-content {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
}

.legal-content h2 {
    margin-top: 30px;
    color: var(--color-accent-1);
}

.legal-content p,
.legal-content ul {
    margin-bottom: 20px;
}

.legal-content ul {
    margin-left: 20px;
}

/* ===== СТРАНИЦА БЛАГОДАРНОСТИ ===== */
.thank-you {
    padding: 150px 0;
    
    display: flex;
    align-items: center;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding:20px;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.thank-you-action {
    margin-top: 40px;
}

/* ===== ФОРМЫ И ОШИБКИ ===== */
.form-errors {
    background-color: #fff5f5;
    border-left: 4px solid var(--color-accent-2);
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
}

.error-message {
    color: var(--color-accent-2);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.error-message:last-child {
    margin-bottom: 0;
}

/* Стилизация полей с ошибками */
.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--color-accent-2);
}

.form-group.has-error label {
    color: var(--color-accent-2);
}

/* Сообщение об успешной отправке */
.success-message {
    background-color: #f1f9f1;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    color: #2e7d32;
}

/* ===== АДАПТИВНЫЙ ДИЗАЙН ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-container,
    .about-container,
    .contact-container {
        flex-direction: column;
    }
    
    .hero-image,
    .about-image {
        margin-top: 30px;
        text-align: center;
    }
    
    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-step {
        max-width: 100%;
        width: 100%;
    }
    
    .step-image {
        height: 180px;  /* Увеличиваем высоту на мобильных */
    }
    
    .menu-button {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: var(--shadow-sm);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        z-index: 1000;
    }
    
    .menu-toggle:checked ~ .nav {
        max-height: 500px;
    }
    
    .menu-toggle:checked ~ .menu-button .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .menu-button .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-button .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-list li {
        margin: 0 0 15px 0;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .legal-content {
        padding: 25px;
    }
} 