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

body {
    font-family: Arial, sans-serif;
    background-color: #0f1115;
    color: #e5e5e5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== HEADER ===== */

.header {
    background-color: #151821;
    border-bottom: 1px solid #222;
    position: relative;
    z-index: 1000;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;

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

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

/* ===== NAV ===== */

.nav {
    display: flex;
    gap: 24px;
}


.nav__link {
    font-size: 16px;
    transition: color 0.2s;
}

.nav__link:hover {
    color: #ff4d4d;
}

/* ===== BURGER ===== */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
}

/* ===== MAIN ===== */

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

/* ===== FOOTER ===== */

.footer {
    border-top: 1px solid #222;
    background-color: #151821;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 55%;
        max-width: 320px;

        background-color: #151821;

        display: flex;
        flex-direction: column;
        gap: 24px;

        padding: 100px 24px 24px;

        transition: right 0.3s ease;
        z-index: 1100;
    }

    .nav.active {
        right: 0;
    }

    .nav__link {
        font-size: 18px;
    }

    .burger {
        display: flex;
        z-index: 1200;
    }
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Слайдер --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 400px;
    overflow: hidden;
}

.hero__wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 20px;
}

.slide.active {
    opacity: 1;
}

/* Overlay поверх каждого слайда */
.slide__overlay {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5); /* полупрозрачный черный фон */
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    z-index: 5;
    max-width: 90%;
}

.slide__overlay h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.btn--overlay {
    display: inline-block;
    background-color: #ff4d4d; /* гармоничный цвет кнопки */
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn--overlay:hover {
    background-color: #83bcdb;
}

/* Стрелки */
.hero__controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 10px;
}

#prev { left: 10px; }
#next { right: 10px; }

/* Точки */
.hero__dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: rgba(255,255,255,1);
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .hero {
        height: 40vh;
        min-height: 260px;
    }

    .slide__overlay {
        bottom: 15%;
        padding: 15px 20px;
    }

    .slide__overlay h2 {
        font-size: 1.3rem;
    }

    .btn--overlay {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .hero__controls button { font-size: 1.5rem; }
}
/*Общие секции и контейнеры*/
.section {
    padding: 50px 0;
}

.section--dark {
    background-color: #0f1115;
}

.section--light {
    background-color: #151821;
    border-radius: 20px;
}

.section--accent {
    background: linear-gradient(135deg, #3fbac2, #2f82db);
    color: #0f1115;
    text-align: center;
}

.section__title {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
}

/*Карточки услуг (квадраты)*/
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: #1b1f2a;
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.card p {
    font-size: 15px;
    color: #b5b5b5;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/*Этапы работ (процесс)*/
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background-color: #1b1f2a;
    padding: 25px;
    border-left: 4px solid #3fbac2;
    font-size: 16px;
    border-radius: 6px;
}

/*Приемущества*/
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.advantage {
    background-color: #1b1f2a;
    padding: 25px;
    border-radius: 10px;
    font-size: 15px;
}

/*CTA*/
.section--accent h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.section--accent p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn--accent {
    background-color: #dd3535;
    color: #ffffff;
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 6px;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn--accent:hover {
    background-color: #e85c20;
}

@media (max-width: 1024px) {
    .cards,
    .steps,
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    .cards,
    .steps,
    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .section--accent h2 {
        font-size: 26px;
    }

    .section--accent p {
        font-size: 16px;
    }
}

.hero-info {
    padding-top: 15px;
    padding-bottom: 20px;
    border-radius: 20px;
}


.hero-info__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 0px;
}

.hero-info__title {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero-info__text {
    font-size: 18px;
    color: #bfc3ce;
    margin-bottom: 30px;
}

.hero-info__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-info__stats div {
    background: #1b1f2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.hero-info__stats strong {
    font-size: 28px;
    display: block;
}

.hero-info__stats span {
    font-size: 14px;
    color: #9aa0b3;
}

.geo__text {
    text-align: center;
    font-size: 18px;
    color: #bfc3ce;
}

@media (max-width: 768px) {
    .hero-info {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .hero-info__grid {
        grid-template-columns: 1fr;
    }

    .hero-info__title {
        font-size: 30px;
    }

    .hero-info__stats {
        grid-template-columns: 1fr;
    }
}