/* 
* Основные стили для сайта domain.com
* Цветовая палитра:
* - Основной фон: #fef9f4 (бежево-карамельный)
* - Основной акцент: #5e17eb (фиолетовый неон)
* - Вторичный акцент: #f96e46 (коралловый)
* - Цвет текста: #2e2e2e
* - Фоны блоков: чередующиеся градиенты от #ffffff к #f1ebf5
*/

/* Сброс и основные стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #5e17eb;
    --color-secondary: #f96e46;
    --color-background: #fef9f4;
    --color-text: #2e2e2e;
    --color-light: #ffffff;
    --color-light-purple: #f1ebf5;
    --shadow-main: 0 5px 20px rgba(94, 23, 235, 0.15);
    --transition: all 0.3s ease;
    --radius: 8px;
    --container: 1200px;
}

@font-face {
    font-family: 'Montserrat';
    src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* SVG узоры для фонов */
.svg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

.memphis-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235e17eb' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Типография */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(odd) {
    background: linear-gradient(to bottom right, var(--color-light), var(--color-light-purple));
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.accent-text {
    color: var(--color-primary);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(94, 23, 235, 0.3);
}

.btn-primary:hover {
    background: #7031ed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(94, 23, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-cookie {
    background: var(--color-primary);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-cookie:hover {
    background: #7031ed;
    color: white;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-light);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    padding: 15px;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px;
}

.cookie-content p {
    margin: 0 20px 0 0;
    font-size: 0.9rem;
}

/* Header */
.site-header {
    background-color: var(--color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-text {
    font-weight: 700;
}

.logo-dot {
    color: var(--color-secondary);
}

/* Навигация */
.mobile-nav {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.menu-icon {
    top: 11px;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.menu-toggle:checked ~ .menu-button .menu-icon {
    background-color: transparent;
}

.menu-toggle:checked ~ .menu-button .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle:checked ~ .menu-button .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav-list a:hover {
    color: var(--color-primary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Header контакт */
.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 600;
}

.phone-link:hover {
    color: var(--color-primary);
}

.phone-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Главный баннер */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(to bottom right, var(--color-light), var(--color-light-purple));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235e17eb' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-main);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0);
}

/* О компании */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.about-item {
    padding: 25px;
    background-color: var(--color-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    text-align: center;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.about-icon svg {
    width: 100%;
    height: 100%;
}

.about-description {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-description p {
    flex: 1;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-main);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-light);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--color-light);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.benefits-image {
    text-align: center;

    max-width: 510px;
    margin: 0 auto;
}

.benefits-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-main);
}

/* Форма заказа */
.form-section {
    background: linear-gradient(135deg, var(--color-light), var(--color-light-purple));
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-light);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-main);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child,
.form-group:nth-last-child(2) {
    margin-bottom: 0;
}

.form-group.checkbox-group,
.contact-form button {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: var(--color-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(94, 23, 235, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

/* FAQ аккордеон */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-main);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 20px 25px;
    background-color: var(--color-light);
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.faq-toggle:checked + .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--color-light);
    transition: max-height 0.5s ease;
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 25px;
    margin: 0;
}

/* Footer */
.site-footer {
    background-color: #2e2e2e;
    color: #fff;
    padding: 60px 0 30px;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-desc {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 10px;
    border-radius: 1.5px;
}

.footer-address p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
    font-style: normal;
}

.footer-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Адаптивность для различных устройств */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        max-width: 100%;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-description {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-column:first-child {
        grid-column: 1 / -1;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .menu-button {
        display: block;
    }
    .benefit-item{
        flex-direction: column;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-light);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-toggle:checked ~ .main-nav {
        max-height: 300px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-list li {
        margin: 10px 0;
    }
    
    .about-grid,
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin: 0 0 15px 0;
        text-align: center;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        justify-content: space-between;
    }
    
    .mobile-nav {
        position: static;
        order: 3;
    }
    
    .header-contact {
        order: 2;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .form-container {
        padding: 25px;
    }
} 

/* Стили для отображения ошибок формы */
.form-errors {
    background-color: rgba(255, 62, 62, 0.1);
    border-left: 4px solid #ff3e3e;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    color: #d32f2f;
}

.error-message {
    margin: 5px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Стиль для полей с ошибками */
.form-group input:invalid:focus,
.form-group select:invalid:focus {
    border-color: #ff3e3e;
    box-shadow: 0 0 0 2px rgba(255, 62, 62, 0.2);
}

/* Стили для цветового акцента при ошибке */
.error-accent {
    color: #ff3e3e;
} 