body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #f5f5f5;
}

section {
    padding: 0;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-align: center;
    margin: 0 0 20px;
    position: relative;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.8em;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    position: relative;
}

/* Стили для смайликов */
.emoji {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}


.feature-icon {
    width: 40px; 
    height: 40px;
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 768px) {
    .feature-icon {
        width: 30px; 
        height: 30px;
    }
}


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

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

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#main-header nav {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

#main-header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#main-header li {
    margin: 0 15px;
}

#main-header a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

#main-header.transparent {
    background-color: transparent;
}

#main-header.transparent a {
    color: white;
}

/* Стиль для непрозрачного меню */
#main-header.opaque {
    background-color: rgba(0, 0, 0, 0.8);
}

#main-header.opaque a {
    color: white;
}

/* Первый блок */
#welcome {
    background: url('images/5033x3176.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcome .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

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

#welcome h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#welcome p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

#welcome .btn {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}

#welcome .btn:hover {
    background: #45a049;
    transform: translateY(-3px);
}

#about {
    padding: 60px 0;
    background: #000000;
    color: white;
    padding: 80px 0;
}

#about .text-container {
    text-align: center;
}

#about h2 {
    margin-bottom: 30px;
}

#about p {
    font-size: 1.1em;
    line-height: 1.8;
}

/* Третий блок */
#advantages {
    padding: 80px 0;
    background: url('images/IMG_37951.JPG') no-repeat center center/cover;
    color: white;
    position: relative;
}

#advantages .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

#advantages .container {
    position: relative;
    z-index: 1;
}

#advantages .advantages-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#advantages .advantages-left {
    flex: 0 0 45%;
    padding-right: 40px;
}

#advantages .advantages-right {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
}

#advantages h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: left;
}

#advantages .advantages-left p {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: left;
}

#advantages .feature {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

#advantages .feature:hover {
    transform: translateY(-5px);
}

#advantages .feature .emoji {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}

#advantages .feature h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: left;
}

#advantages .feature p {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    #advantages .advantages-content {
        flex-direction: column;
    }

    #advantages .advantages-left,
    #advantages .advantages-right {
        flex: 0 0 100%;
        padding-right: 0;
    }

    #advantages .advantages-left {
        margin-bottom: 40px;
    }
}

#services {
    background: #000000;
    color: white;
    padding: 80px 0;
}

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

#services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

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

.service-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    text-align: center;
    margin-bottom: 20px;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
}

.service-item p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left;
}


#services .service-item {
    text-align: center;
    max-width: 300px;
    margin: 0 auto 30px;
}

#services .service-icon {
    margin-bottom: 20px;
}

#services .service-icon img {
    width: 60px;
    height: 60px;
}

#services .services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}


#services .service-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#services .service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

#services .service-icon img {
    width: 50px; 
    height: 50px;
}


#services .service-item p {
    margin: 5px 0;
}


#services .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#services .service-item {
    flex-basis: calc(33.33% - 20px);
    min-width: 250px;
}

@media (max-width: 768px) {
    #services .service-item {
        flex-basis: 100%;
    }
}

#services .service-item {
    text-align: left; 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#services .service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#services .service-icon img {
    width: 50px;
    height: 50px;
}

#services h3 {
    align-self: flex-start; 
    width: 100%;
}

#services p {
    align-self: flex-start; 
    width: 100%;
    margin: 5px 0;
}

@media (max-width: 768px) {
    #services .service-icon img {
        width: 40px;
        height: 40px;
    }
}

#services .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#services .service-item {
    flex-basis: calc(33.33% - 20px);
    min-width: 250px;
}

@media (max-width: 768px) {
    #services .service-item {
        flex-basis: 100%;
    }
}

#carousel {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.carousel-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide h2,
.carousel-slide p {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.carousel-slide h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.carousel-slide p {
    font-size: 1.2em;
    line-height: 1.6;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 2em;
    padding: 15px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.advantage-item .emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 1em;
    margin: 0;
}

#advantages,
#services {
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

#sixth, #seventh, #eighth {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 50px;
    text-align: left;
}

#sixth::before, #seventh::before, #eighth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

#sixth .text-container, #seventh .text-container, #eighth .text-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

#sixth h2, #seventh h2, #eighth h2 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
}

#sixth p, #seventh p, #eighth p {
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: 300;
    text-align: left;
}

#sixth {
    background-image: url('images/2.jpg');
}

#seventh {
    background-image: url('images/2024-04-0711.21.52.png');
}

#eighth {
    background-image: url('images/1.jpg');
}

#eighth {
    background: url('images/1.jpg') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    position: relative;
}

#eighth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

#eighth .text-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

#eighth h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: left;
}

#eighth ul {
    list-style-type: none;
    padding: 0;
}

#eighth li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

#eighth .icon {
    font-size: 2em;
    margin-right: 20px;
    flex-shrink: 0;
}

#eighth p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}


#eighth li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

#eighth .feature-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    flex-shrink: 0;
}

#eighth p {
    margin: 0;
}

/* Контакты */
#contact {
    padding: 80px 0;
    background: url('images/3929.jpg') no-repeat center center/cover;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact h2 {
    color: white;
    margin-bottom: 40px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 50px;
    margin: 10px;
    transition: background 0.3s, transform 0.3s;
}

.contact-buttons .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-buttons .btn .emoji {
    font-size: 1.5em;
    margin-right: 10px;
}


.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-social {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-social:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-social:hover .fa-whatsapp {
    color: #25D366;
}

.btn-social:hover .fa-telegram-plane {
    color: #0088cc;
}

.btn-social:hover .fa-phone {
    color: #4CAF50;
}


.contact-buttons .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 20px;
}

.contact-buttons .btn-social i {
    margin-right: 10px;
}

.contact-buttons .btn-social span {
    font-size: 16px;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}


* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


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

.slide-in-left {
    opacity: 1;
    transform: translateX(0); 
    transition: none; 
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

#mobile-menu-btn {
    display: none; 
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s;
}

#mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

#mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px auto;
    transition: 0.3s;
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

@media (max-width: 768px) {
    #main-header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; 
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        padding-top: 70px;
        overflow-y: auto; 
    }

    #main-header nav.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; 
        align-items: center;
    }

    #main-header ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 50px; 
    }

    #main-header li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }

    #main-header a {
        font-size: 1.5em;
        display: block;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    .container {
        padding: 0 15px;
    }

    #main-header {
        background-color: rgba(0, 0, 0, 0.8);
    }

    #main-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
    }

    #main-header nav.active {
        display: block;
    }

    #main-header ul {
        flex-direction: column;
    }

    #main-header li {
        margin: 10px 0;
    }

    #mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
    }

    #welcome {
        height: auto;
        min-height: 100vh;
    }

    #welcome h1 {
        font-size: 2.5em;
    }

    #welcome p {
        font-size: 1em;
    }

    #advantages .advantages-content {
        flex-direction: column;
    }

    #advantages .advantages-left,
    #advantages .advantages-right {
        width: 100%;
        padding-right: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide h2 {
        font-size: 1.5em;
    }

    .carousel-slide p {
        font-size: 0.9em;
    }

    .carousel-btn {
        font-size: 1.2em;
        padding: 8px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    #sixth, #seventh, #eighth {
        padding: 50px 20px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
        margin: 10px 0;
    }


    #carousel, #sixth, #seventh, #eighth, #contact {
        font-size: 14px; 
    }

    #carousel h2, #sixth h2, #seventh h2, #eighth h2, #contact h2 {
        font-size: 1.8em;
    }

    #carousel p, #sixth p, #seventh p, #eighth p, #contact p {
        font-size: 1em;
        line-height: 1.4;
    }

    .advantage-item p {
        font-size: 0.9em;
    }


    .container, .text-container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    
    body {
        overflow-x: hidden;
    }
}


@media (max-width: 768px) {
    .carousel-slide {
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .carousel-slide h2,
    .carousel-slide p {
        width: 100%;
        max-width: 300px; 
        margin-left: auto;
        margin-right: auto;
    }

    .carousel-slide h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .carousel-slide p {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .advantages-grid {
        width: 100%;
        max-width: 300px; 
        margin-left: auto;
        margin-right: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .advantage-item {
        padding: 10px;
    }

    .advantage-item .emoji {
        font-size: 1.5em;
    }

    .advantage-item p {
        font-size: 0.8em;
        margin: 5px 0 0;
    }

    .carousel-btn {
        font-size: 1.2em;
        padding: 8px;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}


@media (max-width: 768px) {
    #contact .contact-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #contact .contact-buttons .btn {
        width: 80%; 
        max-width: 300px;
        margin: 10px 0;
    }
}


@media (max-width: 768px) {
    .container, .text-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        overflow: hidden; 
    }
}


@media (max-width: 768px) {
    .carousel-slide {
        padding: 60px 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .carousel-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-slide h2,
    .carousel-slide p {
        width: 100%;
        max-width: 280px; 
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    .carousel-slide h2 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .carousel-slide p {
        font-size: 0.85em;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .carousel-btn {
        font-size: 1em;
        padding: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}


@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    #advantages h2,
    #services h2 {
        font-size: 1.5em;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    #advantages p,
    #services p {
        font-size: 0.9em;
        line-height: 1.4;
    }

    #advantages .feature h3,
    #services .service-item h3 {
        font-size: 1.2em;
        line-height: 1.3;
    }

    #advantages .feature p,
    #services .service-item p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    #advantages .advantages-content,
    #services .services-grid {
        padding: 0 10px;
    }

    #advantages .feature,
    #services .service-item {
        padding: 15px;
        margin-bottom: 15px;
    }
}


@media (max-width: 768px) {
    #services .service-icon img {
        width: 40px;
        height: 40px;
    }
}




