* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 34, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #E9E9E9;
}

.logo i {
    margin-right: 10px;
    color: #706F8E;
}

.logo-accent {
    color: #706F8E;
}

.call-button {
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #393A5A, #706F8E);
    color: #E9E9E9;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 58, 90, 0.4);
}

.call-button i {
    margin-right: 10px;
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57, 58, 90, 0.6);
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    background: linear-gradient(45deg, rgba(34, 34, 46, 0.7), rgba(57, 58, 90, 0.7));
}

.hero-background-left {
    width: 80%;
    /* background: linear-gradient(135deg, #22222E 0%, #393A5A 100%); */
    z-index: 1;
}

.hero-background-right {
    width: 40%;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1593359677879-a4bb92f829d1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
    animation: slideInFromLeft 1.5s ease-out forwards;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 80px 0;
    width: 100%;
}

.hero-text {
    width: 70%;
    padding-right: 30px;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #E9E9E9, #ADA9BA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: #ADA9BA;
    margin-bottom: 30px;
    line-height: 1.4;
}

.advantages {
    margin-bottom: 40px;
}

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

.advantage .icon {
    background-color: #393A5A;
    color: #E9E9E9;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.cta-button {
    background: linear-gradient(45deg, #393A5A, #706F8E);
    color: #E9E9E9;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(57, 58, 90, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(57, 58, 90, 0.6);
}

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

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #E9E9E9, #ADA9BA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #393A5A, #22222E);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #E9E9E9;
}

.service-card p {
    color: #ADA9BA;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit {
    text-align: center;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: #706F8E;
    margin-bottom: 15px;
}

.benefit h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #E9E9E9;
}

.benefit p {
    color: #ADA9BA;
}

/* Форма обратной связи */
.contact-form-section {
    background: linear-gradient(135deg, #393A5A 0%, #22222E 100%);
}

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

.form-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.form-text p {
    color: #ADA9BA;
    margin-bottom: 30px;
}

.contact-info {
    margin-top: 30px;
}

.phone-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #E9E9E9;
    text-decoration: none;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #ADA9BA;
}

.contact-form {
    background: #22222E;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #393A5A;
    border: 2px solid #706F8E;
    border-radius: 8px;
    color: #E9E9E9;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ADA9BA;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #ADA9BA;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #393A5A, #706F8E);
    color: #E9E9E9;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: linear-gradient(45deg, #706F8E, #393A5A);
}

/* Футер */
.footer {
    background: #22222E;
    padding: 40px 0;
    text-align: center;
}

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

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

.footer-info p {
    color: #ADA9BA;
}

.footer-contact {
    text-align: right;
}

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

.modal{
    display: none;
    z-index: 100;
    position: fixed;
    margin: auto;
    width: 100%;
}

/* Модальное окно - обновленная версия */
.modal-content {
    background: linear-gradient(135deg, #393A5A 0%, #22222E 100%);
    margin: 5% auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.4s ease-out;
}

.modal-body {
    text-align: center;
}

.modal-body h2 {
    font-size: 1.8rem;
    margin: 15px 0;
    background: linear-gradient(45deg, #E9E9E9, #ADA9BA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-body p {
    color: #ADA9BA;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-call-button {
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.modal-call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.modal-close-button {
    background: transparent;
    color: #ADA9BA;
    border: 1px solid #706F8E;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-button:hover {
    background: rgba(113, 111, 142, 0.2);
}

/* Анимация для логотипа */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #E9E9E9;
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #706F8E, transparent);
    transform: translateX(-100%);
    animation: logoLine 2s ease-in-out infinite;
}

@keyframes logoLine {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.logo i {
    margin-right: 10px;
    color: #706F8E;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.logo-accent {
    color: #706F8E;
    position: relative;
}

.logo-accent::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #706F8E, transparent);
    transform: scaleX(0);
    transform-origin: left;
    animation: accentLine 3s ease-in-out infinite;
}

@keyframes accentLine {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    51% {
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-body h2 {
        font-size: 1.5rem;
    }
    
    .modal-body p {
        font-size: 1rem;
    }
    
    .modal-actions {
        gap: 10px;
    }
    
    .modal-call-button,
    .modal-close-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Анимации для появления элементов при скролле */
.service-card, .benefit {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-card.visible, .benefit.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-text {
        width: 55%;
        padding-right: 20px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-text h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-background {
        flex-direction: column;
    }
    
    .hero-background-left, 
    .hero-background-right {
        width: 100%;
        height: 50%;
    }
    
    .hero-background-left {
        height: 60%;
    }
    
    .hero-background-right {
        height: 40%;
        position: absolute;
        bottom: 0;
    }
    
    .hero-image {
        clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
        animation: slideInFromBottom 1.5s ease-out forwards;
    }
    
    @keyframes slideInFromBottom {
        0% {
            transform: translateY(100%);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-text {
        width: 100%;
        padding-right: 0;
        text-align: center;
        padding: 0 20px;
    }
    
    .advantages {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .advantage {
        margin-bottom: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-background-left {
        height: 70%;
    }
    
    .hero-background-right {
        height: 30%;
    }
    
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
}