/* index.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #272635;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h2 {
    color: #272635;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #272635;
    font-weight: 500;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #B1E5F2;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #272635;
    margin: 3px 0;
    transition: 0.3s;
}

/* Мобильное меню - выезжает сверху */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #E8E9F3;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: top 0.4s ease;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 30px;
    }
    
    .nav.active {
        top: 0;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Hero секция */
.hero {
    padding: 150px 0 100px;
    background-color: #E8E9F3;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animated-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.shape1 {
    width: 300px;
    height: 300px;
    background-color: #B1E5F2;
    top: -150px;
    right: -150px;
    animation: float 15s infinite ease-in-out;
}

.shape2 {
    width: 200px;
    height: 200px;
    background-color: #A6A6A8;
    bottom: -100px;
    left: 10%;
    animation: float 12s infinite ease-in-out reverse;
}

.shape3 {
    width: 150px;
    height: 150px;
    background-color: #272635;
    top: 30%;
    left: 5%;
    animation: float 10s infinite ease-in-out;
}

.shape4 {
    width: 100px;
    height: 100px;
    background-color: #CECECE;
    bottom: 20%;
    right: 20%;
    animation: float 8s infinite ease-in-out reverse;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #272635;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #272635;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.cta-button {
    display: inline-block;
    background-color: #272635;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #272635;
}

.cta-button:hover {
    background-color: transparent;
    color: #272635;
}

/* Секции */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #272635;
}

/* Услуги */
.services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #F9F9FB;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #B1E5F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: #272635;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #272635;
}

/* Преимущества */
.advantages {
    background-color: #E8E9F3;
}

.advantages-list {
    max-width: 800px;
    margin: 0 auto;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.advantage-number {
    font-size: 3rem;
    font-weight: 700;
    color: #B1E5F2;
    margin-right: 20px;
    line-height: 1;
}

.advantage-content h3 {
    margin-bottom: 10px;
    color: #272635;
}

/* CTA секция */
.cta {
    background-color: #272635;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animated-cta {
    position: relative;
    width: 100%;
    height: 100%;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background-color: #B1E5F2;
}

.cta-shape1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation: float 20s infinite ease-in-out;
}

.cta-shape2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: 10%;
    animation: float 15s infinite ease-in-out reverse;
}

.cta-shape3 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 20%;
    animation: float 12s infinite ease-in-out;
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .cta-button {
    background-color: #B1E5F2;
    color: #272635;
    border-color: #B1E5F2;
}

.cta .cta-button:hover {
    background-color: transparent;
    color: #B1E5F2;
}

/* Отзывы */
.reviews {
    background-color: #fff;
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: #F9F9FB;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer {
    font-weight: 600;
    color: #272635;
}

.stars {
    color: #FFD700;
}

/* Форма обратной связи */
.contact {
    background-color: #E8E9F3;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    margin-bottom: 20px;
    color: #272635;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 30px;
    color: #272635;
    font-size: 1.2rem;
}

.contact-item a {
    color: #272635;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #B1E5F2;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #272635;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #CECECE;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background-color: #272635;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #3d3c50;
}

/* Футер */
.footer {
    background-color: #272635;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 10px;
}

.footer-phone {
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Всплывающее окно */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.popup-content h3 {
    margin-bottom: 15px;
    color: #272635;
}

.popup-content p {
    margin-bottom: 20px;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #272635;
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .advantage-item {
        flex-direction: column;
    }
    
    .advantage-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
    }
}

#tilt-image img {
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
    will-change: transform;
}