/* Основные переменные цветов */
:root {
    --primary-color: #FF6F61; /* Кораллово-оранжевый */
    --accent-color: #A8E6CF; /* Мятно-салатовый */
    --secondary-color: #35477D; /* Глубокий синий */
    --text-white: #F5F5F5;
    --text-gray: #ececec;
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--gradient-bg);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -2;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); }
    50% { background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); }
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок */
.header {
    background: rgba(53, 71, 125, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Основное содержимое */
main {
    margin-top: 80px;
}

/* Секции */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(168, 230, 207, 0.1);
}

/* Hero секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-gray);
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки */
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 230, 207, 0.4);
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(168, 230, 207, 0.6);
    background: #90D4AC;
}

/* Заголовки секций */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-white);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto;
    border-radius: 2px;
}

/* Сетка преимуществ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 230, 207, 0.3);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: rgba(168, 230, 207, 0.2);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary-color);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(53, 71, 125, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.service-price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
}

/* Форма заказа */
.order-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 25px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(168, 230, 207, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-white);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(168, 230, 207, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
}

.form-control::placeholder {
    color: var(--text-gray);
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: var(--secondary-color);
    color: var(--text-white);
    padding: 10px;
}

select.form-control option:hover,
select.form-control option:focus,
select.form-control option:checked {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #90D4AC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 230, 207, 0.4);
}

/* Отзывы */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.testimonial-author {
    font-weight: bold;
    color: var(--accent-color);
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: rgba(53, 71, 125, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: rgba(53, 71, 125, 0.8);
}

.faq-answer {
    padding: 20px;
    color: var(--text-gray);
    display: none;
}

/* Карта */
.map-container {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 100%;
}

.map-container iframe {
    max-width: 100%;
    width: 100%;
}

.map-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Подвал */
.footer {
    background: rgba(53, 71, 125, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(168, 230, 207, 0.3);
    padding-top: 20px;
    text-align: center;
    color: var(--text-gray);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(53, 71, 125, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 10000;
    border-top: 2px solid var(--accent-color);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-text h4 {
    color: var(--accent-color);
    margin-bottom: 8px;
}

.cookie-text p {
    color: var(--text-gray);
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-accept {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cookie-accept:hover {
    background: #90D4AC;
}

.cookie-info {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
}

.cookie-info:hover {
    color: var(--accent-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .advantages-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .order-form {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Адаптация раздела Sobre Domain для мобильных */
    #empresa .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    #empresa .container > div > div {
        order: unset !important;
    }
    
    #empresa .container > div > div:first-child {
        order: 1;
    }
    
    #empresa .container > div > div:last-child {
        order: 2;
    }
    
    #empresa img {
        height: 250px !important;
    }
    
    #empresa .container > div > div > div {
        padding: 25px !important;
    }
    
    #empresa .container > div > div > div > div:last-child {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .section {
        padding: 50px 0;
        overflow-x: hidden;
    }
    
    .advantage-card,
    .service-card {
        padding: 25px 20px;
        max-width: 100%;
    }
    
    /* Дополнительные правила для предотвращения горизонтального скролла */
    .hero-content,
    .section-title,
    .advantages-grid,
    .services-grid,
    .testimonials-grid,
    .order-form {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        white-space: nowrap;
    }
    
    /* Исправление для раздела Sobre Domain на очень маленьких экранах */
    #empresa .container > div > div > div > div:last-child {
        flex-direction: column;
        align-items: center;
    }
    
    #empresa .container > div > div > div > div:last-child > div {
        margin: 5px;
        font-size: 12px;
        padding: 8px 15px;
    }
    
    /* Исправление для карточек услуг */
    .service-card div[style*="margin: -40px"] {
        margin: -25px -20px 15px -20px !important;
        height: 150px !important;
    }
    
    /* Исправление для контактной секции */
    #contacto .container > div > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .map-container {
        margin: 20px 0 !important;
        max-width: 100%;
    }
    
    .map-container iframe {
        height: 250px !important;
        max-width: 100%;
    }
    
    /* Исправление для cookie баннера */
    .cookie-banner {
        padding: 15px !important;
        max-width: 100%;
    }
    
    .cookie-content {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
        max-width: 100%;
    }
    
    .cookie-text {
        max-width: 100%;
    }
    
    .cookie-text h4 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .cookie-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100%;
    }
    
    .cookie-accept {
        width: 100%;
        max-width: 200px;
    }
} 