/* ==========================================================================
   Webikon Ads — публичный лендинг
   Тёмная база + акцентный цвет. Чистый CSS, адаптив.
   ========================================================================== */

:root {
    --bg:            #0b0d12;
    --bg-2:          #12151d;
    --surface:       #171b24;
    --surface-2:     #1e2330;
    --border:        rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.14);

    --text:          #eef1f6;
    --text-soft:     #a7b0c0;
    --text-dim:      #6c7688;

    --accent:        #ff5a1f;   /* фирменный акцент */
    --accent-2:      #ff8a4c;
    --accent-glow:   rgba(255,90,31,.35);

    --radius:        18px;
    --radius-sm:     12px;
    --shadow:        0 20px 50px rgba(0,0,0,.45);
    --shadow-sm:     0 8px 24px rgba(0,0,0,.35);

    --maxw:          1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    border-radius: 999px;
    padding: 12px 22px;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 26px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 14px 34px var(--accent-glow); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: var(--accent); }

.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11,13,18,.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.02em;
}
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-soft); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 20px var(--accent-glow);
}
.nav-cta:hover { transform: translateY(-1px); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 96px 0 88px;
    overflow: hidden;
    background:
        radial-gradient(1000px 500px at 70% -10%, rgba(255,90,31,.16), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-glow {
    position: absolute;
    width: 520px; height: 520px;
    right: -120px; top: -120px;
    background: radial-gradient(circle, var(--accent-glow), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

.badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255,90,31,.12);
    border: 1px solid rgba(255,90,31,.3);
    color: var(--accent-2);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 26px;
}
.hero-title {
    font-size: clamp(34px, 5.5vw, 64px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 22px;
}
.hero-title .accent {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    max-width: 640px;
    margin: 0 auto 34px;
    color: var(--text-soft);
    font-size: clamp(16px, 2.2vw, 20px);
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b {
    display: block;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.stat span { color: var(--text-dim); font-size: 14px; }

/* ---------- Секции ---------- */
.section { padding: 90px 0; }
.section-map { padding-bottom: 0; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 12px;
}
.section-head p { color: var(--text-soft); margin: 0; font-size: 18px; }

/* ---------- Шаги ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(255,90,31,.4); box-shadow: var(--shadow-sm); }
.step-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(255,90,31,.12);
    color: var(--accent);
    margin-bottom: 18px;
}
.step-icon svg { width: 26px; height: 26px; }
.step-num {
    position: absolute;
    top: 22px; right: 24px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dim);
}
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.step p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ---------- Карта ---------- */
.ymap {
    width: 100%;
    height: 520px;
    margin-top: 8px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Балун Яндекс-карты — лёгкая стилизация под тёмную тему */
.balloon { width: 240px; font-family: "Manrope", sans-serif; }
.balloon-photo {
    width: 100%; height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}
.balloon h4 { margin: 0 0 4px; font-size: 16px; color: #12151d; }
.balloon-addr { margin: 0 0 10px; font-size: 13px; color: #6c7688; }
.balloon-rows { font-size: 13px; color: #2b2f3a; margin-bottom: 12px; }
.balloon-rows div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #eef0f4; }
.balloon-rows b { color: #12151d; }
.balloon-price { font-size: 18px; font-weight: 800; color: #ff5a1f; margin-bottom: 10px; }
.balloon-btn {
    display: block; width: 100%; text-align: center;
    background: #ff5a1f; color: #fff !important;
    padding: 10px; border-radius: 10px; font-weight: 700;
    border: none; cursor: pointer; font-size: 14px; font-family: inherit;
}
.balloon-btn:hover { background: #e94e15; }

/* ---------- Сетка экранов ---------- */
.screens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-loading { color: var(--text-dim); grid-column: 1 / -1; text-align: center; padding: 40px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,90,31,.4); box-shadow: var(--shadow); }
.card-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-city {
    position: absolute; top: 12px; left: 12px;
    background: rgba(11,13,18,.7);
    backdrop-filter: blur(6px);
    padding: 5px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--text);
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.card-addr { margin: 0 0 16px; color: var(--text-dim); font-size: 14px; }

.card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 18px;
}
.spec { font-size: 13px; }
.spec span { display: block; color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.spec b { font-weight: 600; color: var(--text); }

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.card-price b { font-size: 22px; font-weight: 800; }
.card-price span { display: block; font-size: 12px; color: var(--text-dim); }

/* ---------- Форма ---------- */
.section-lead {
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(255,90,31,.1), transparent 60%),
        var(--bg-2);
}
.lead-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--shadow);
}
.lead-text h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }
.lead-text p { color: var(--text-soft); margin: 0 0 24px; }
.lead-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lead-benefits li {
    position: relative;
    padding-left: 30px;
    color: var(--text-soft);
    font-size: 15px;
}
.lead-benefits li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 20px; height: 20px;
    background: rgba(255,90,31,.15);
    color: var(--accent);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field label .opt { color: var(--text-dim); font-weight: 400; }
.field input,
.field textarea {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
    resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,90,31,.15);
}
.field input.invalid { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,.15); }

.form-note { margin: 10px 0 0; font-size: 12px; color: var(--text-dim); text-align: center; }
.form-success {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 14px 18px;
    background: rgba(46,204,113,.12);
    border: 1px solid rgba(46,204,113,.4);
    color: #6ee7a5;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
}
.form-error {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding: 14px 18px;
    background: rgba(255,77,77,.12);
    border: 1px solid rgba(255,77,77,.4);
    color: #ff9a9a;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
}

/* ---------- Футер ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding-top: 56px;
}
/* Подсветка, следующая за курсором */
.footer-glow {
    position: absolute;
    left: var(--mx, 50%);
    top: var(--my, 30%);
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 68%);
    transform: translate(-50%, -50%);
    filter: blur(24px);
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
    z-index: 0;
}
.site-footer.glow-on .footer-glow { opacity: .65; }

.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); margin: 12px 0 0; max-width: 280px; }
.footer-brand .logo { transition: transform .25s ease; display: inline-block; }
.footer-brand .logo:hover { transform: translateY(-2px); }
.footer-col h4 { margin: 0 0 14px; font-size: 15px; }
.footer-col p { margin: 0 0 8px; }
.footer-col a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-soft);
    transition: color .2s ease, transform .2s ease;
}
.footer-col a::before {
    content: "→";
    max-width: 0;
    margin-right: 0;
    opacity: 0;
    overflow: hidden;
    color: var(--accent);
    transform: translateX(-6px);
    transition: max-width .25s ease, opacity .2s ease, transform .25s ease, margin .25s ease;
}
.footer-col a:hover { color: var(--text); transform: translateX(2px); }
.footer-col a:hover::before { max-width: 1.4em; margin-right: 7px; opacity: 1; transform: translateX(0); }

/* Появление блоков при прокрутке.
   Прячем только когда JS добавил .reveal-ready — без JS блоки видны сразу. */
.site-footer.reveal-ready .footer-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.site-footer.reveal-ready .footer-reveal.in { opacity: 1; transform: none; }
.site-footer.reveal-ready .footer-inner .footer-reveal:nth-child(2) { transition-delay: .12s; }

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    padding: 22px 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .footer-glow { display: none; }
    .footer-col a, .footer-col a::before, .footer-brand .logo { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 940px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .screens-grid { grid-template-columns: repeat(2, 1fr); }
    .lead-card { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
}

@media (max-width: 720px) {
    .nav { gap: 14px; }
    .nav a:not(.nav-cta) { display: none; }
    .hero { padding: 64px 0 60px; }
    .hero-stats { gap: 28px; margin-top: 44px; }
    .stat b { font-size: 28px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    .screens-grid { grid-template-columns: 1fr; }
    .lead-form { grid-template-columns: 1fr; }
    .ymap { height: 400px; }
    .container { padding: 0 18px; }
}
