/* ==========================================================================
   ПЕЧНИК — дизайн-система «Инженерная эстетика»
   Тёмный премиальный стиль: антрацит + раскалённый уголь
   ========================================================================== */

:root {
    /* Палитра */
    --bg:        #0b0b0d;   /* глубокий антрацит */
    --bg-soft:   #101013;   /* секции-подложки */
    --card:      #15151a;   /* карточки */
    --card-2:    #1b1b21;   /* приподнятые карточки */
    --border:    rgba(255, 255, 255, 0.08);
    --border-hi: rgba(255, 255, 255, 0.16);

    --accent:    #ff5c1f;   /* раскалённый уголь */
    --accent-2:  #ffa04d;   /* янтарный */
    --accent-soft: rgba(255, 92, 31, 0.12);

    --text:      #f4f2ee;
    --muted:     #a3a29b;
    --dim:       #6b6a64;

    /* Градиенты */
    --grad-fire: linear-gradient(135deg, #ff5c1f 0%, #ffa04d 100%);
    --grad-card: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%);

    /* Типографика */
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Геометрия */
    --radius: 20px;
    --radius-sm: 12px;
    --header-h: 76px;
    --container: 1220px;

    /* Тени */
    --glow: 0 0 40px rgba(255, 92, 31, 0.25);
    --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* Тонкий скроллбар */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- Утилиты ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.section-tag::before {
    content: '';
    width: 32px; height: 2px;
    background: var(--grad-fire);
    border-radius: 2px;
}
.section-head--center .section-tag::after {
    content: '';
    width: 32px; height: 2px;
    background: var(--grad-fire);
    border-radius: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; color: var(--text); }

.h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
.h3 { font-size: 1.25rem; }

.lead { color: var(--muted); font-size: 1.08rem; margin-top: 20px; }

.grad-text {
    background: var(--grad-fire);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 34px;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
    background: var(--grad-fire);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(255, 92, 31, 0.55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -10px rgba(255, 92, 31, 0.7); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hi);
    color: var(--text);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-soft); }

.btn--sm { padding: 12px 22px; font-size: 0.85rem; border-radius: 11px; }
.btn--block { width: 100%; }

/* ---------- Бейджи / чипы ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 92, 31, 0.3);
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.chip .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 31, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(255, 92, 31, 0); }
}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    background: rgba(11, 11, 13, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
}

.header__inner {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}
.logo__mark {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--grad-fire);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px -6px rgba(255, 92, 31, 0.6);
}
.logo__mark svg { width: 22px; height: 22px; color: #fff; }
.logo small { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a.is-active { color: var(--accent-2); background: var(--accent-soft); }

.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone {
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.header__phone:hover { color: var(--accent-2); }

/* Бургер */
.burger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-hi);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 120;
}
.burger span {
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(11, 11, 13, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 14px 20px;
    color: var(--text);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover { color: var(--accent-2); }
.mobile-menu__phone { margin-top: 28px; font-family: var(--font-body) !important; font-size: 1.1rem !important; color: var(--accent-2) !important; }

/* ==========================================================================
   ГЕРОЙ-БЛОК
   ========================================================================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 70px) 0 90px;
    overflow: hidden;
}

/* Фоновое свечение */
.hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(255, 92, 31, 0.16) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 160, 77, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* Тонкая инженерная сетка */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }

.hero__content .chip { margin-bottom: 28px; }
.hero__title { margin-bottom: 26px; }
.hero__subtitle { color: var(--muted); font-size: 1.12rem; max-width: 540px; margin-bottom: 40px; }

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

/* Статистика в герое */
.hero__stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}
.hero__stat { padding-right: 40px; margin-right: 40px; border-right: 1px solid var(--border); }
.hero__stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero__stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.1;
}
.hero__stat b span { color: var(--accent); }
.hero__stat small { color: var(--dim); font-size: 0.83rem; font-weight: 600; }

/* Визуал героя — карточка-«объект» */
.hero__visual { position: relative; }

.hero-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border-hi);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 4.6;
    background:
        radial-gradient(ellipse 80% 55% at 50% 108%, rgba(255, 92, 31, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% -5%, rgba(255, 160, 77, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #17171c 0%, #0e0e11 100%);
    display: flex;
    align-items: flex-end;
}

/* «Кирпичная кладка» внутри карточки */
.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,0.05) 46px 48px),
        repeating-linear-gradient(90deg, transparent 0 108px, rgba(255,255,255,0.035) 108px 110px);
    mask-image: linear-gradient(180deg, transparent 20%, #000 90%);
    -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 90%);
}

/* Пламя */
.hero-card__fire {
    position: absolute;
    left: 50%; bottom: 22%;
    transform: translateX(-50%);
    width: 130px; height: 150px;
    filter: blur(1px);
}
.hero-card__fire i {
    position: absolute;
    bottom: 0; left: 50%;
    border-radius: 50% 50% 20% 20%;
    background: var(--grad-fire);
    opacity: 0.9;
    animation: flame 2.6s ease-in-out infinite;
}
.hero-card__fire i:nth-child(1) { width: 74px; height: 104px; transform: translateX(-50%); }
.hero-card__fire i:nth-child(2) { width: 46px; height: 70px; transform: translateX(-72%); animation-delay: 0.5s; opacity: 0.7; }
.hero-card__fire i:nth-child(3) { width: 40px; height: 62px; transform: translateX(-18%); animation-delay: 1.1s; opacity: 0.65; }
@keyframes flame {
    0%, 100% { border-radius: 50% 50% 22% 22%; height: inherit; }
    30% { transform: translateX(-50%) scaleY(1.08) scaleX(0.94); }
    60% { transform: translateX(-48%) scaleY(0.94) scaleX(1.05); }
}

.hero-card__caption {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}
.hero-card__caption b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; display: block; margin-bottom: 6px; }
.hero-card__caption small { color: var(--muted); font-size: 0.85rem; }

/* Плавающие бейджи на карточке */
.float-badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(21, 21, 26, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-hi);
    box-shadow: var(--shadow-card);
    animation: float-y 5s ease-in-out infinite;
}
.float-badge__icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    flex: none;
}
.float-badge__icon svg { width: 20px; height: 20px; color: var(--accent); }
.float-badge b { display: block; font-size: 0.9rem; font-weight: 800; line-height: 1.25; }
.float-badge small { color: var(--dim); font-size: 0.75rem; font-weight: 600; }

.float-badge--tl { top: 26px; left: -34px; }
.float-badge--br { bottom: 60px; right: -30px; animation-delay: 1.4s; }

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==========================================================================
   БЕГУЩАЯ СТРОКА
   ========================================================================== */
.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
    overflow: hidden;
    padding: 22px 0;
    position: relative;
}
.marquee__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.marquee__item {
    display: flex;
    align-items: center;
    gap: 56px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    white-space: nowrap;
}
.marquee__item::after {
    content: '◆';
    color: var(--accent);
    font-size: 0.7rem;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   КАРТОЧКИ УСЛУГ
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-card);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.service-card::after {
    content: '';
    position: absolute;
    top: -60%; right: -40%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 92, 31, 0.14) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(255, 92, 31, 0.4); box-shadow: var(--shadow-card); }
.service-card:hover::before, .service-card:hover::after { opacity: 1; }

.service-card__num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.18em;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}
.service-card__icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: var(--accent-soft);
    border: 1px solid rgba(255, 92, 31, 0.25);
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}
.service-card__icon svg { width: 28px; height: 28px; color: var(--accent); }

.service-card h3 { font-size: 1.28rem; margin-bottom: 14px; position: relative; z-index: 1; }
.service-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; position: relative; z-index: 1; }

.service-card__link {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent-2);
    position: relative;
    z-index: 1;
    transition: gap 0.25s ease;
}
.service-card__link:hover { gap: 16px; }
.service-card__link svg { width: 17px; height: 17px; }

/* ==========================================================================
   ПРЕИМУЩЕСТВА / ЦИФРЫ
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-hi); }
.feature-card b {
    display: block;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 600;
    background: var(--grad-fire);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
    line-height: 1.1;
}
.feature-card h4 { font-size: 1rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.88rem; }

/* ==========================================================================
   ПОРТФОЛИО
   ========================================================================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 4.4;
    display: flex;
    align-items: flex-end;
    background: var(--card);
    transition: transform 0.35s ease, border-color 0.35s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(255, 92, 31, 0.45); }

.work-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.work-card:hover .work-card__img { transform: scale(1.06); }

/* Градиентная заглушка, если фото нет */
.work-card__img--empty {
    background:
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(255, 92, 31, 0.35) 0%, transparent 65%),
        linear-gradient(180deg, #1a1a20 0%, #101014 100%);
}
.work-card__img--empty::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 40px, rgba(255,255,255,0.04) 40px 42px),
        repeating-linear-gradient(90deg, transparent 0 92px, rgba(255,255,255,0.03) 92px 94px);
    mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
}

.work-card__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 26px;
    background: linear-gradient(transparent, rgba(5, 5, 7, 0.92) 55%);
}
.work-card__tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255, 92, 31, 0.16);
    border: 1px solid rgba(255, 92, 31, 0.35);
    color: var(--accent-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.work-card__body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.work-card__body p { color: var(--muted); font-size: 0.84rem; }

.work-card__arrow {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 3;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-hi);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.work-card:hover .work-card__arrow { opacity: 1; transform: translateY(0); }
.work-card__arrow svg { width: 18px; height: 18px; color: var(--text); }
.work-card__arrow:hover { background: var(--accent); }

/* ==========================================================================
   ЭТАПЫ РАБОТЫ
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }

.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
}
.step::before {
    counter-increment: step;
    content: '0' counter(step);
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 92, 31, 0.55);
    margin-bottom: 20px;
    line-height: 1;
}
.step h4 { font-size: 1.02rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ==========================================================================
   ФОРМА ЗАЯВКИ (CTA)
   ========================================================================== */
.cta {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-hi);
    background:
        radial-gradient(ellipse 60% 90% at 85% 10%, rgba(255, 92, 31, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 5% 100%, rgba(255, 160, 77, 0.08) 0%, transparent 60%),
        var(--card);
    padding: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.cta__content { position: relative; z-index: 1; }
.cta__content .h2 { margin-bottom: 18px; }
.cta__content p { color: var(--muted); }
.cta__benefits { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.cta__benefits li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text); }
.cta__benefits li svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* Поля формы */
.lead-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }

.field {
    position: relative;
}
.field input, .field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hi);
    border-radius: 14px;
    padding: 17px 20px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 92, 31, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 92, 31, 0.12);
}

.lead-form__note { color: var(--dim); font-size: 0.78rem; text-align: center; }
.lead-form__note a { color: var(--muted); border-bottom: 1px dashed var(--muted); }

/* Сообщение об успехе */
.form-status {
    display: none;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}
.form-status.is-success { display: block; background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.4); color: #6ee7a0; }
.form-status.is-error { display: block; background: rgba(231, 76, 60, 0.12); border: 1px solid rgba(231, 76, 60, 0.4); color: #ff8a80; }

/* HoneyPot — скрытое поле для ботов */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   СТРАНИЦА УСЛУГИ / ПРОЕКТА
   ========================================================================== */
.page-hero {
    padding: calc(var(--header-h) + 60px) 0 70px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(255, 92, 31, 0.13) 0%, transparent 65%);
    pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 860px; }

.crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--dim); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs span { color: var(--dim); }

/* Характеристики объекта */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 40px 0;
}
.spec {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px;
}
.spec small { display: block; color: var(--dim); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.spec b { font-size: 1.05rem; font-weight: 800; }

/* Галерея проекта */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery__item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(ellipse 70% 60% at 50% 110%, rgba(255, 92, 31, 0.28) 0%, transparent 65%),
        linear-gradient(180deg, #191920 0%, #101014 100%);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.gallery__item:hover { transform: scale(1.02); border-color: rgba(255, 92, 31, 0.4); }
.gallery__item--wide { grid-column: span 2; }

/* Контент страницы */
.page-content { max-width: 860px; }
.page-content p { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; }
.page-content h2 { font-size: 1.5rem; margin: 44px 0 20px; }
.page-content ul.check-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.page-content ul.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.page-content ul.check-list li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}
.notfound::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255, 92, 31, 0.1) 0%, transparent 65%);
}
.notfound__code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 18vw, 11rem);
    font-weight: 700;
    line-height: 1;
    background: var(--grad-fire);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}
.notfound h1 { font-size: 1.4rem; margin: 24px 0 12px; position: relative; }
.notfound p { color: var(--muted); margin-bottom: 36px; position: relative; }

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer {
    background: #08080a;
    border-top: 1px solid var(--border);
    padding: 70px 0 36px;
    margin-top: 110px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer__about p { color: var(--dim); font-size: 0.9rem; margin-top: 18px; max-width: 300px; }

.footer h5 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--accent-2); }

.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact a, .footer__contact div { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.93rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.footer__contact a:hover { color: var(--accent-2); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--dim);
    font-size: 0.83rem;
}
.footer__geo { display: inline-flex; align-items: center; gap: 8px; }
.footer__geo svg { width: 15px; height: 15px; color: var(--accent); }

/* ==========================================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1100px) {
    .nav { display: none; }
    .burger { display: block; margin-left: auto; }
    .header__cta .btn { display: none; }
    .hero__inner { grid-template-columns: 1fr; gap: 50px; }
    .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .float-badge--tl { left: 10px; }
    .float-badge--br { right: 10px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .works-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
    .cta { grid-template-columns: 1fr; padding: 50px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 70px 0; }
    .hero { padding-top: calc(var(--header-h) + 44px); }
    .hero__stats { flex-direction: column; gap: 20px; }
    .hero__stat { border-right: none; padding: 0; margin: 0; }
    .hero__actions .btn { width: 100%; }
    .services-grid, .features-grid, .works-grid, .steps, .gallery { grid-template-columns: 1fr; }
    .gallery__item--wide { grid-column: span 1; }
    .specs-grid { grid-template-columns: 1fr; }
    .cta { padding: 36px 24px; border-radius: 24px; }
    .footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .header__phone { display: none; }
    .float-badge { display: none; }
}
