/* ============================
   БАЗОВЫЕ НАСТРОЙКИ
   ============================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================
   ХЕДЕР
   ============================ */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    color: #fff;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 12px;
}

/* ============================
   ЛОГО
   ============================ */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffb400, #f97316);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 16px;
    flex: 0 0 32px;
}

.logo__text {
    font-size: 18px;
    white-space: nowrap;
}

/* ============================
   НАВИГАЦИЯ
   ============================ */

.nav {
    display: none;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.nav__link {
    color: #e5e7eb;
    position: relative;
    padding-bottom: 2px;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ffb400;
    transition: width 0.2s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--btn {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid rgba(255, 180, 0, 0.6);
}

/* ============================
   ТЕЛЕФОН И КНОПКА ЗВОНКА В ШАПКЕ
   ============================ */

.header-phone a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: 0.2s;
    white-space: nowrap;
}

.header-phone a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.header-call-btn {
    padding: 7px 12px;
    background: #ffb400;
    color: #111;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.25s;
    white-space: nowrap;
}

.header-call-btn:hover {
    background: #ffc733;
    transform: translateY(-1px);
}

/* ============================
   БУРГЕР
   ============================ */

.burger {
    width: 36px;
    height: 32px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.burger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #f9fafb;
    transition: 0.2s;
}

.burger--active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.burger--active span:nth-child(2) {
    opacity: 0;
}

.burger--active span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ============================
   ГЕРО-БЛОК / СЛАЙДЕР
   ============================ */

.hero {
    position: relative;
    min-height: 80vh;
    color: #f9fafb;
    background: #020617;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 180, 0, 0.3), transparent 55%),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.96));
    z-index: 1;
}

.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 10s linear;
}

.hero__slide--active {
    opacity: 1;
    transform: scale(1.08);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 80px 16px 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.hero h1 {
    font-size: 26px;
    line-height: 1.25;
    margin: 0;
}

.hero p {
    max-width: 560px;
    margin: 4px 0 0;
    color: #e5e7eb;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
    text-decoration: none;
}

.btn--primary {
    background: #ffb400;
    color: #111827;
}

.btn--primary:hover {
    background: #ffc733;
    transform: translateY(-1px);
}

.btn--ghost {
    border-color: rgba(249, 250, 251, 0.5);
    color: #f9fafb;
    background: transparent;
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.7);
}

.hero__info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    max-width: 620px;
}

.hero__info div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero__info img,
.hero__info svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.hero__dots {
    display: flex;
    gap: 6px;
    margin-top: 18px;
}

.hero__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.7);
    background: transparent;
    padding: 0;
}

.hero__dot--active {
    background: #ffb400;
    border-color: #ffb400;
    width: 18px;
}

/* ============================
   ОБЩИЕ СЕКЦИИ
   ============================ */

.section {
    padding: 48px 0;
    background: #f3f4f6;
}

.section--grey {
    background: #e5e7eb;
}

.section--accent {
    background: linear-gradient(135deg, #0b1120, #111827);
    color: #f9fafb;
}

.section__title {
    font-size: 24px;
    margin: 0 0 8px;
}

.section__title--light {
    color: #f9fafb;
}

.section__subtitle {
    margin: 0 0 24px;
    color: #4b5563;
    max-width: 640px;
}

.section__subtitle--light {
    color: #e5e7eb;
}

/* ============================
   КАРТОЧКИ УСЛУГ
   ============================ */

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    border-radius: 10px;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.card p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* ============================
   ГАЛЕРЕЯ ПРОЕКТОВ
   ============================ */

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.gallery__item {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.gallery__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery__item figcaption {
    padding: 10px 12px 12px;
    font-size: 14px;
    color: #374151;
}

/* ============================
   ПРЕИМУЩЕСТВА
   ============================ */

.advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.advantages__item {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.advantages__item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.advantages__item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.advantages__item p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.advantages__item .card__icon,
.card .card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   ЭТАПЫ РАБОТЫ
   ============================ */

.steps {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    counter-reset: steps;
}

.steps__item {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 16px 16px 52px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.steps__num {
    position: absolute;
    left: 14px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffb400;
    color: #111827;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.steps__item h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.steps__item p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

/* ============================
   СЕКЦИЯ КОНТАКТОВ / ФОРМА
   ============================ */

.contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__info {
    max-width: 520px;
}

.contact__list {
    margin-top: 10px;
}

.contact__list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    margin-bottom: 6px;
}

.contact__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffb400;
}

.form {
    background: #0b1120;
    border-radius: 18px;
    padding: 18px 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #e5e7eb;
}

.form__field span {
    font-weight: 500;
}

.form input,
.form select,
.form textarea {
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #f9fafb;
    font: inherit;
    outline: none;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    border-color: #ffb400;
    box-shadow: 0 0 0 1px rgba(255, 180, 0, 0.4);
}

.form textarea {
    resize: vertical;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.form__note {
    margin: 8px 0 0;
    font-size: 11px;
    color: #9ca3af;
}

.form__status {
    margin-top: 6px;
    font-size: 13px;
}

/* ============================
   ФУТЕР
   ============================ */

.footer {
    background: #020617;
    color: #9ca3af;
    padding-top: 24px;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
}

.footer__left p {
    margin: 8px 0 0;
    font-size: 13px;
}

.footer__right {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__col h4 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #e5e7eb;
}

.footer__col a {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.footer__col a:hover {
    color: #f9fafb;
}

.footer__bottom {
    border-top: 1px solid #111827;
    font-size: 12px;
    padding: 8px 0 10px;
    color: #6b7280;
}

/* ============================
   ПЛАВАЮЩАЯ КНОПКА ЗВОНКА
   ============================ */

.floating-call-btn {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: #ffb400;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    z-index: 9999;
    transition: 0.25s ease;
}

.floating-call-btn:hover {
    background: #ffc733;
    transform: scale(1.05) translateY(-1px);
}

/* ============================
   АДАПТИВНОСТЬ
   ============================ */

@media (min-width: 640px) {
    .hero h1 {
        font-size: 32px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .header__inner {
        padding: 10px 0;
    }

    .burger {
        display: none;
    }

    .nav {
        display: flex;
    }

    .hero {
        min-height: 85vh;
    }

    .hero__content {
        padding: 100px 16px 80px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .contact {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact__info {
        flex: 1;
    }

    .form {
        flex: 1;
        padding: 22px 20px 20px;
    }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer__right {
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    .hero__content {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero__info {
        gap: 12px;
    }

    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .advantages {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================
   МОБИЛЬНОЕ МЕНЮ
   ============================ */

.nav--open {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    padding: 12px 16px 14px;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid #1f2937;
    gap: 10px;
}

@media (max-width: 767px) {
    .header__inner {
        align-items: center;
    }

    .hero__info {
        grid-template-columns: 1fr;
    }

    .hero__content {
        padding-top: 72px;
    }

    .hero {
        min-height: 80vh;
    }

    .footer__inner {
        align-items: flex-start;
    }
}