/* 
* Стили для сайта domain.com
* Цветовая палитра:
* - Основной цвет: морская бирюза (#1ABBB4)
* - Акцент: солнечный янтарь (#FFB83F)
* - Фон: теплый белый (#FFFAF4)
* - Текст: угольный серый (#2B2B2B)
*/

/* Глобальные стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2B2B2B;
    background-color: #FFFAF4;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #2B2B2B;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1ABBB4, #FFB83F);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: #1ABBB4;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFB83F;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    background: linear-gradient(90deg, #1ABBB4, #FFB83F);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #1ABBB4;
    padding: 10px 20px;
    border: 2px solid #1ABBB4;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #1ABBB4;
    color: white;
}

/* Иконки (для псевдоэлементов) */
[class^="icon-"]::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* Хедер и навигация */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1ABBB4;
}

.nav-desktop {
    display: flex;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
}

.nav-desktop ul li {
    margin-left: 30px;
}

.nav-desktop ul li a {
    color: #2B2B2B;
    font-weight: 500;
    position: relative;
}

.nav-desktop ul li a:hover {
    color: #1ABBB4;
}

.nav-desktop ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1ABBB4;
    transition: width 0.3s ease;
}

.nav-desktop ul li a:hover::after {
    width: 100%;
}

.nav-mobile {
    display: none;
}

/* Hero секция */
.hero {
    padding: 160px 0 80px;
    background-color: #FFFAF4;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('./img/azulejo-pattern.svg') repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* О компании */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
}

.about-text {
    flex: 1;
    padding-right: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Преимущества */
.advantages {
    background-color: #FFFAF4;
    position: relative;
}

.advantages::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('./img/wave-pattern.svg') repeat-x;
    opacity: 0.1;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 187, 180, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 30px;
    color: #1ABBB4;
}

/* Услуги */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-item h3, .service-item p, .service-item a {
    padding: 0 20px;
}

.service-item h3 {
    margin-top: 20px;
}

.service-item p {
    margin-bottom: 20px;
}

.service-item a {
    display: inline-block;
    margin: 0 20px 20px;
}

/* Отзывы */
.testimonials {
    background-color: #FFFAF4;
    position: relative;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/azulejo-pattern.svg') repeat;
    opacity: 0.05;
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-content {
    position: relative;
    padding-left: 25px;
}

.testimonial-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: #1ABBB4;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Почему мы */
.why-us {
    background-color: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.why-us-item {
    text-align: center;
}

.why-us-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1ABBB4;
    margin-bottom: 10px;
}

/* Контакты */
.contact {
    background-color: #FFFAF4;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Стили для ошибок формы */
.form-errors {
    background-color: rgba(255, 87, 87, 0.1);
    border-left: 4px solid #ff5757;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.form-errors ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.form-errors ul li {
    color: #e74c3c;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-errors ul li:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1ABBB4;
    outline: none;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.contact-info {
    padding: 40px;
    background-color: #1ABBB4;
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: white;
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-map {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-map img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #2B2B2B;
    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-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
}

.footer-links ul li a:hover {
    color: #FFB83F;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: #1ABBB4;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookies popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    max-width: 90%;
    width: 500px;
}

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-button {
    white-space: nowrap;
}

/* Анимации и декоративные элементы */
.azulejo-pattern {
    background-image: url('./img/azulejo-pattern.svg');
    background-repeat: repeat;
    opacity: 0.05;
}

/* Адаптивный дизайн */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .header-content {
        height: 70px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
} 