/* ==========================================================================
   Domain - CSS Styles
   Цветовая палитра: #5B2C6F (фиолетовый), #1ABC9C (бирюзовый), 
   #F1948A (коралловый), #FBF3E4 (песочно-белый), #2E2E2E (тёмный серый)
   ========================================================================== */

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Компенсация за fixed header */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #FBF3E4;
    overflow-x: hidden;
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes checkmarkDraw {
    0% {
        stroke-dasharray: 0, 100;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 100, 0;
        opacity: 1;
    }
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* CSS-only анимации без JavaScript */
.section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

.advantage-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.advantage-card:nth-child(1) { animation-delay: 0.6s; }
.advantage-card:nth-child(2) { animation-delay: 0.7s; }
.advantage-card:nth-child(3) { animation-delay: 0.8s; }
.advantage-card:nth-child(4) { animation-delay: 0.9s; }

.service-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 1.0s; }
.service-card:nth-child(2) { animation-delay: 1.1s; }
.service-card:nth-child(3) { animation-delay: 1.2s; }

.testimonial-card {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 1.3s; }
.testimonial-card:nth-child(2) { animation-delay: 1.4s; }
.testimonial-card:nth-child(3) { animation-delay: 1.5s; }

/* Убраны неиспользуемые классы для страницы спасибо (используются inline стили) */

/* Контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

/* Заголовки */
h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    color: #5B2C6F;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.5rem;
    color: #5B2C6F;
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    font-size: 1.8rem;
    color: #2E2E2E;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, #5B2C6F, #1ABC9C);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(91, 44, 111, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #F1948A, #1ABC9C);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(241, 148, 138, 0.3);
}

/* Убраны стили для disabled кнопок (требовали JavaScript) */

/* Хедер */
.header {
    background: linear-gradient(135deg, #5B2C6F, #1ABC9C);
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.logo svg {
    margin-right: 10px;
}

/* Навигация в хедере */
.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Убрана активная подсветка навигации (требовала JavaScript) */

/* Герой-блок */
.hero {
    background: linear-gradient(135deg, #5B2C6F 0%, #1ABC9C 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/DlxMCr.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Секции */
.about {
    background: white;
}

.advantages {
    background: linear-gradient(135deg, #FBF3E4, #F1948A);
}

.services {
    background: white;
}

.approach {
    background: linear-gradient(135deg, #1ABC9C, #5B2C6F);
    color: white;
}

.testimonials {
    background: #FBF3E4;
}

.contact-section {
    background: linear-gradient(135deg, #2E2E2E, #5B2C6F);
    color: white;
}

/* Карточки преимуществ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.advantage-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(91, 44, 111, 0.1);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5B2C6F, #1ABC9C);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(91, 44, 111, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 30px;
}

/* Отзывы */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(91, 44, 111, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: #F1948A;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 30px;
}

.testimonial-author {
    font-weight: 600;
    color: #5B2C6F;
    text-align: right;
}

/* Форма */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2E2E2E;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1ABC9C;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2E2E2E;
}

.checkbox-group a {
    color: #5B2C6F;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Сообщения об ошибках */
.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.error-message h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 8px;
}

/* Футер */
.footer {
    background: #2E2E2E;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #1ABC9C;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #1ABC9C;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2E2E2E, #5B2C6F);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: #1ABC9C;
    color: white;
}

.cookie-accept:hover {
    background: #16A085;
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-decline:hover {
    background: white;
    color: #2E2E2E;
}

/* Медиазапросы */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .header-content {
        justify-content: center;
        text-align: center;
    }
    
    .header-nav {
        display: none;
    }
    
    .advantages-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        margin: 0 15px;
        padding: 30px 20px;
    }
    
    .btn {
        min-width: auto;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Адаптивность для секции "О компании" */
    #sobre-nosotros div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Адаптивность для секции "Enfoque" */
    #enfoque div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Адаптивность для страницы спасибо */
    .hero .container {
        padding: 0 15px !important;
    }
    
    .hero svg {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        margin: 0 10px;
        padding: 25px 15px;
    }
    
    .advantage-card,
    .service-card,
    .testimonial-card {
        margin: 0 10px;
    }
} 