/* ============ ПЕРЕМЕННЫЕ И СБРОС ============ */
:root {
    --bg-dark: #0f1419;
    --bg-dark-2: #161c24;
    --bg-card: #1c242e;
    --surface: #ffffff;
    --surface-2: #f4f6f8;
    --border: #e3e8ee;
    --border-dark: #2a333e;

    --text: #1a222c;
    --text-muted: #5a6673;
    --text-light: #ffffff;
    --text-light-muted: #9aa7b4;

    --orange: #ff6a00;
    --orange-dark: #e85d00;
    --blue: #1f6feb;
    --blue-dark: #1858c0;

    --wa: #25d366;
    --wa-dark: #1eb955;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 40px rgba(15, 20, 25, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 20, 25, 0.15);
    --container: 1200px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 90px 0; }

.section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.section__tag {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section__title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.section__desc {
    color: var(--text-muted);
    font-size: 17px;
}

/* ============ КНОПКИ ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--lg { padding: 17px 34px; font-size: 16px; }

.btn--primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 106, 0, 0.45); }

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn--whatsapp {
    background: var(--wa);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover { background: var(--wa-dark); transform: translateY(-2px); }

.btn--light {
    background: #fff;
    color: var(--text);
}
.btn--light:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ============ ШАПКА ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.logo__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--orange);
    border-radius: 11px;
    color: #fff;
}
.logo__icon svg { width: 24px; height: 24px; }
.logo__text {
    display: flex;
    flex-direction: column;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.5px;
}
.logo__text b { color: var(--orange); font-weight: 700; }
.logo__text small {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-light-muted);
    font-weight: 600;
    margin-top: 3px;
}
.logo--light .logo__text { color: #fff; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link {
    color: var(--text-light-muted);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.nav__link:hover { color: #fff; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}
.header__phone svg { width: 18px; height: 18px; color: var(--orange); }
.header__phone:hover { color: var(--orange); }
.header__wa { padding: 11px 20px; }
.header__wa svg { width: 18px; height: 18px; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.burger span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    background:
        linear-gradient(180deg, rgba(15, 20, 25, 0.86) 0%, rgba(15, 20, 25, 0.92) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ff6a00' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(1200px 600px at 80% -10%, rgba(31, 111, 235, 0.25), transparent),
        var(--bg-dark);
    color: #fff;
    overflow: hidden;
    padding: 90px 0 100px;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 400px at 20% 100%, rgba(255, 106, 0, 0.14), transparent);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 26px;
}
.pulse {
    width: 9px; height: 9px;
    background: var(--wa);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero__title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(34px, 6vw, 62px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.08;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}
.hero__title .accent { color: var(--orange); }

.hero__subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--text-light-muted);
    max-width: 640px;
    margin-bottom: 28px;
}

.hero__list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-bottom: 36px;
}
.hero__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}
.hero__list svg {
    width: 20px; height: 20px;
    color: var(--wa);
    background: rgba(37, 211, 102, 0.15);
    padding: 4px;
    border-radius: 50%;
    box-sizing: content-box;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============ УСЛУГИ ============ */
.services { background: var(--surface-2); }
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
    width: 62px; height: 62px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 22px;
}
.card__icon svg { width: 32px; height: 32px; color: #fff; }
.card__icon--orange { background: linear-gradient(135deg, #ff8a3d, var(--orange)); }
.card__icon--blue { background: linear-gradient(135deg, #4a90ff, var(--blue)); }

.card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.card__text { color: var(--text-muted); margin-bottom: 20px; }
.card__list { margin-bottom: 26px; flex-grow: 1; }
.card__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 11px;
    color: var(--text);
    font-weight: 500;
}
.card__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 2px;
    transform: rotate(45deg);
}
.card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 700;
    transition: var(--transition);
}
.card__link svg { width: 18px; height: 18px; transition: var(--transition); }
.card__link:hover { color: var(--orange); }
.card__link:hover svg { transform: translateX(4px); }

/* ============ ПРЕИМУЩЕСТВА ============ */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.adv {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
}
.adv:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.adv__num {
    font-family: 'Oswald', sans-serif;
    font-size: 46px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 16px;
}
.adv__icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    background: rgba(31, 111, 235, 0.1);
    border-radius: 14px;
    margin-bottom: 18px;
}
.adv__icon svg { width: 28px; height: 28px; color: var(--blue); }
.adv__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.adv__text { color: var(--text-muted); font-size: 15px; }

/* ============ ГАЛЕРЕЯ РАБОТ ============ */
.works {
    background:
        linear-gradient(180deg, rgba(15,20,25,0.97), rgba(15,20,25,0.97)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23ff6a00' stroke-opacity='0.05'%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E"),
        var(--bg-dark);
}
.works .section__title { color: #fff; }
.works .section__desc { color: var(--text-light-muted); }
.works__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 16px;
}
.work {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    display: block;
    background: var(--bg-dark-2);
}
.work--big {
    grid-column: span 2;
    grid-row: span 2;
}
.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.work::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 20, 25, 0.75) 100%);
    transition: var(--transition);
}
.work:hover img { transform: scale(1.08); }
.work:hover::after { background: linear-gradient(180deg, rgba(255, 106, 0, 0.15) 0%, rgba(15, 20, 25, 0.8) 100%); }
.work__tag {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255, 106, 0, 0.92);
    padding: 5px 12px;
    border-radius: 100px;
}
.works__cta {
    text-align: center;
    margin-top: 44px;
}

/* ============ CTA ============ */
.cta { background: var(--surface-2); }
.cta__box {
    background:
        linear-gradient(135deg, rgba(15, 20, 25, 0.95), rgba(22, 28, 36, 0.95)),
        radial-gradient(600px 300px at 90% 10%, rgba(255, 106, 0, 0.3), transparent);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta__box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04'%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cta__content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta__title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}
.cta__text {
    color: var(--text-light-muted);
    font-size: 18px;
    margin-bottom: 32px;
}
.cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}
.cta__phones {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-weight: 700;
    font-size: 17px;
}
.cta__phones a { color: #fff; transition: var(--transition); }
.cta__phones a:hover { color: var(--orange); }
.cta__phones span { color: var(--text-light-muted); }

/* ============ ПОДВАЛ ============ */
.footer { background: var(--bg-dark); color: var(--text-light-muted); }
.footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 40px;
    padding: 64px 20px 48px;
}
.footer__about { margin-top: 18px; font-size: 15px; max-width: 340px; }
.footer__title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer__links li, .footer__contacts li { margin-bottom: 13px; }
.footer__links a { transition: var(--transition); }
.footer__links a:hover { color: var(--orange); }
.footer__contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer__contacts svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }
.footer__contacts a { transition: var(--transition); }
.footer__contacts a:hover { color: #fff; }

.footer__bottom { border-top: 1px solid var(--border-dark); }
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 20px;
    font-size: 14px;
}

/* ============ ПЛАВАЮЩАЯ WHATSAPP ============ */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    background: var(--wa);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    z-index: 90;
    animation: floatPulse 2.5s infinite;
    transition: var(--transition);
}
.wa-float svg { width: 32px; height: 32px; color: #fff; }
.wa-float:hover { transform: scale(1.08); }
@keyframes floatPulse {
    0% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ НИЖНЯЯ ПАНЕЛЬ (МОБИЛЬНАЯ) ============ */
.mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    background: rgba(15, 20, 25, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-dark);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
}
.mobile-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 52px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}
.mobile-bar__btn svg { width: 20px; height: 20px; }
.mobile-bar__btn--call { background: var(--orange); }
.mobile-bar__btn--call:active { background: var(--orange-dark); }
.mobile-bar__btn--wa { background: var(--wa); }
.mobile-bar__btn--wa:active { background: var(--wa-dark); }

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ АДАПТИВ ============ */
@media (max-width: 992px) {
    .services__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .advantages__grid { grid-template-columns: repeat(2, 1fr); }
    .works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .header__phone span { display: none; }
    .header__phone { padding: 8px; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 74px;
        right: 0;
        width: 78%;
        max-width: 320px;
        height: calc(100vh - 74px);
        background: var(--bg-dark-2);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transform: translateX(100%);
        transition: var(--transition);
        border-left: 1px solid var(--border-dark);
    }
    .nav.open { transform: translateX(0); }
    .nav__link {
        padding: 16px 4px;
        border-bottom: 1px solid var(--border-dark);
        font-size: 17px;
        width: 100%;
    }
    .header__wa span { display: none; }
    .header__wa { padding: 10px; }
    .header__phone { display: none; }
    .burger { display: flex; }
    .section { padding: 64px 0; }
    .hero { padding: 60px 0 72px; }
    .cta__box { padding: 44px 24px; }
    .btn { width: 100%; }
    .hero__actions, .cta__actions { flex-direction: column; }
    .hero__actions .btn, .cta__actions .btn { width: 100%; }

    /* Нижняя панель вместо плавающей кнопки */
    .mobile-bar { display: flex; }
    .wa-float { display: none; }
    body { padding-bottom: 76px; }
}

@media (max-width: 520px) {
    .advantages__grid { grid-template-columns: 1fr; }
    .works__grid { grid-auto-rows: 160px; gap: 10px; }
    .work--big { grid-column: span 2; grid-row: span 1; }
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom-inner { flex-direction: column; text-align: center; }
    .logo__text { font-size: 18px; }
    .hero__list { flex-direction: column; gap: 12px; }
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .wa-float svg { width: 28px; height: 28px; }
}
