html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #14B8A6; /* A modern teal */
    --primary-hover: #0F766E;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --text-color: #374151;
    --gray-color: #6B7280;
    --white-color: #FFFFFF;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Basic Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background: var(--white-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
}

section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: var(--light-color);
}

/* Header */
header {
     background: rgba(208, 208, 208, 0.5); /* Полупрозрачный светло-серый */
    color: var(--white-color);
  padding: 1rem 0;;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
   
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Для поддержки в Safari */
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

header.scrolled {
    background: rgba(208, 208, 208, 0.5); /* Полупрозрачный светло-серый */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Для поддержки в Safari */
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

header.scrolled .logo,
header.scrolled nav a,
header.scrolled .header-contact a {
    color: var(--dark-color);
}

header.scrolled nav a:hover {
    color: var(--primary-color);
}

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

header .logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white-color);
    transition: color 0.3s ease;
    gap: 10px;
}

header .logo img {
    height: 40px;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 35px;
}

header.scrolled .logo span {
    color: var(--dark-color);
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 30px;
    position: relative;
}

header nav ul li a {
    transition: color 0.3s ease;
    color: var(--white-color);
    padding-bottom: 8px;
    font-weight: 400;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a:hover {
    color: var(--white-color);
}

header.scrolled nav ul li a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact a {
    font-weight: 500;
    color: var(--white-color);
    transition: color 0.3s ease;
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

header.scrolled .header-contact a {
    border-color: var(--primary-color);
}

.header-contact a:hover {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    background: var(--white-color);
    transition: all 0.3s ease-in-out;
}

header.scrolled .hamburger span {
    background: var(--dark-color);
}

/* Hero Section */
#hero {
    color: var(--white-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 0;
}

#hero .container {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white-color);
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 14px 28px;
    border-radius: var(--border-radius);
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-color);
}


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

.service-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.service-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-item .button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.service-item .button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Portfolio */
.portfolio {
    background-color: var(--light-color);
}

.portfolio-slider {
    width: 100%;
    padding-top: 50px;
    position: relative;
    padding-bottom: 60px; /* Добавляем место для стрелок */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
       width: 40vw;
    height: 25vw;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
    --swiper-navigation-color: var(--primary-color);
    transition: color 0.3s ease;
    top: auto;
    bottom: 5px;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: var(--primary-hover);
    --swiper-navigation-color: var(--primary-hover);
}

.swiper-button-prev {
    left: calc(50% - 40px);
    transform: translateX(-50%);
}

.swiper-button-next {
    right: calc(50% - 40px);
    transform: translateX(50%);
}

/* About Company Section */
#about-company {
    padding: 80px 0;
    background: var(--white-color);
}

.about-company-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 50px;
}

.about-company-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .about-company-grid {
        grid-template-columns: 1fr;
    }
}


/* About */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature p {
    color: var(--gray-color);
}

/* Testimonials */
.testimonial-items {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item blockquote {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 0;
    box-shadow: var(--shadow);
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.testimonial-item blockquote::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-item footer {
    text-align: right;
    margin-top: 15px;
    font-style: italic;
    font-weight: 600;
    color: var(--dark-color);
}

/* Contact */
#contact {
    background: var(--dark-color);
}

#contact .section-title h2, #contact .section-title p {
    color: var(--white-color);
}

#contact-form {
    max-width: 700px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #4B5563;
    border-radius: var(--border-radius);
    background: #374151;
    color: var(--white-color);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contact-form textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

#contact-form .btn {
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
}

/* Process Section */
.process {
    padding: 60px 0;
    background-color: var(--light-color);
}

.process h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.step {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.step-content {
    padding: 20px;
}

.step-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.before-after {
    display: flex;
    width: 100%;
}

.image-container {
    position: relative;
    width: 50%;
}

.image-container img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

@media (min-width: 768px) {
    .step {
        flex-direction: row;
    }
    .step:nth-child(odd) {
        flex-direction: row-reverse;
    }
    .step-content {
        width: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .before-after {
        width: 60%;
    }
}

@media (max-width: 767px) {
    .before-after {
        flex-direction: column;
    }
    .image-container {
        width: 100%;
    }
    .step-content {
        order: -1;
    }
}

/* Footer */
footer {
    background: #111827;
    color: var(--gray-color);
    text-align: center;
    padding: 40px 0;
}

/* Modal for images */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

/* Success Modal Styles */
.success-modal .modal-content-small {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: zoom 0.5s;
    color: var(--dark-color);
}

.success-modal .modal-content-small p {
    font-size: 40px;
    color: var(--primary-color);
    margin: 0 0 10px;
    line-height: 1;
}

.success-modal .modal-content-small span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Add animation */
.modal-content {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    #hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-right {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark-color);
        opacity: 0.98;
        transition: all 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .header-right.active {
        display: flex;
        transform: translateY(0);
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header nav ul li {
        margin: 20px 0;
    }

    header nav ul li a,
    header.scrolled nav ul li a {
        color: var(--white-color);
        font-size: 1.5rem;
    }

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

    .header-contact a,
    header.scrolled .header-contact a {
        color: var(--white-color);
        border-color: var(--white-color);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #hero {
        text-align: center;
        justify-content: center;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    #contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .swiper-slide {
   
    height: 45vw;
    
}
    
    .portfolio-slider {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
}

