/* Main styles for domain.com */
:root {
    /* Color palette */
    --primary: #1A2E35;   /* Deep jade */
    --accent: #F7931E;    /* Bright amber */
    --background: #F4F5F7; /* Silvery white */
    --text: #333333;      /* Coal gray */
    --white: #ffffff;
    --shadow: rgba(26, 46, 53, 0.15);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(247, 147, 30, 0.3);
}

.btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 46, 53, 0.3);
}

/* Header styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    align-items: center; /* Выравнивание пунктов меню по центру */
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--primary);
    font-weight: 600;
    line-height: 1; /* Обеспечивает единую высоту текста */
    padding: 10px 0; /* Добавляет вертикальное пространство вокруг текста */
    display: inline-block; /* Позволяет padding работать правильно */
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a.btn {
    padding: 10px 20px; /* Меньший padding для кнопки в меню, чтобы она не была слишком высокой */
    line-height: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--primary);
    z-index: 9999;
    transition: all 0.4s ease;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 3rem;
    width: 100%;
}

.mobile-menu ul li {
    margin: 1.5rem 0;
    text-align: center;
}

.mobile-menu ul li a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 10px;
}

.close-menu {
    align-self: flex-end;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(26, 46, 53, 0.8), rgba(26, 46, 53, 0.9)), url('./img/1BpBYK.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* About section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Benefits section */
.benefits {
    background-color: var(--background);
}

.benefits-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.benefit-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Services section */
.services {
    background-color: var(--white);
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Testimonials section */
.testimonials {
    background: linear-gradient(rgba(26, 46, 53, 0.9), rgba(26, 46, 53, 0.9)), url('./img/0fwbUW.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.testimonial-info p {
    color: var(--accent);
    margin: 0;
}

/* Process section */
.process {
    background-color: var(--background);
}

.process-container {
    position: relative;
}

.process-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-number {
    flex: 0 0 80px;
    height: 80px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 30px;
    position: relative;
    z-index: 2;
}

.process-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    flex: 1;
}

.process-title {
    margin-bottom: 15px;
}

/* FAQ section */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.faq-question {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    color: var(--white); /* Изменение цвета текста вопросов на белый */
    margin-bottom: 0;
    font-size: 1.2rem; /* Уменьшен размер для лучшего соответствия */
}

.faq-question:hover {
    background-color: var(--accent);
}

.faq-toggle {
    color: var(--white);
}

.faq-answer {
    background-color: var(--background);
    padding: 20px;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Contact form section */
.contact {
    background: linear-gradient(rgba(26, 46, 53, 0.9), rgba(26, 46, 53, 0.9)), url('./img/0lMhPu.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.contact .section-title {
    color: var(--white); /* Белый цвет заголовка в секции контактов */
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 40px; /* Увеличен отступ справа, чтобы избежать перекрытия текста стрелкой */
    color: var(--white);
    font-weight: 500; /* Более жирный текст для лучшей видимости */
}

.form-select option {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px; /* Увеличен отступ для опций */
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
    min-width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:checked:after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-label a {
    color: var(--accent);
}

.form-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-icon {
    margin-right: 15px;
    color: var(--accent);
}

.footer-description {
    margin: 20px 0;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 2;
    min-width: 300px;
}

.cookie-buttons {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade {
    animation: fadeIn 1s ease forwards;
}

/* Pre-animated elements for PHP implementation */
.animate-slide {
    opacity: 1;
    transition: all 0.5s ease;
}

.animate-slide.active {
    opacity: 1;
}

/* Center text utility class */
.text-center {
    text-align: center;
}

/* Responsive styles */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    nav ul {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 1.8rem;
        color: var(--primary);
    }

    .about-text,
    .about-image {
        flex: 100%;
        padding-right: 0;
    }

    .about-image {
        margin-top: 30px;
    }

    .process-item {
        flex-direction: column;
    }

    .process-number {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .form-container {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .benefit-item, 
    .service-card, 
    .testimonial {
        min-width: 100%;
    }

    .footer-column {
        flex: 100%;
    }

    .form-container {
        padding: 20px;
    }
} 