/* =====================================================================
   сми-пиар.рф — «Не надо Ля-Ля»
   Палитра и типографика взяты из фирменного стиля агентства:
   тёмно-синий #192733, эфирный красный #F72210, коралловый акцент.
   Display — Oswald (узкий эфирный гротеск), текст — Golos Text,
   цифры и служебные подписи — JetBrains Mono.
   ===================================================================== */

:root {
    --ink:      #101A22;
    --navy:     #192733;
    --navy-70:  rgba(25, 39, 51, .7);
    --navy-45:  rgba(25, 39, 51, .45);
    --red:      #F72210;
    --coral:    #FF8562;
    --mist:     #EFEFEF;
    --paper:    #FFFFFF;
    --line:     rgba(25, 39, 51, .14);

    --wrap: 1180px;
    --gut: 24px;
    --r: 14px;

    --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --body: 'Golos Text', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--navy);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* --------------------------- типографика ------------------------ */

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.01em;
    margin: 0;
    text-transform: uppercase;
}
h1 { font-size: clamp(38px, 6.4vw, 78px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 24px); }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--red);
    flex: 0 0 auto;
}

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--navy-70); }

/* ---------------------------- кнопки ---------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #d3190b; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #0c1620; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--navy); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------------------------- шапка ----------------------------- */

.hdr {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 22px; height: 74px; }
.hdr__logo { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; text-decoration: none; }
.hdr__logo img { height: 42px; width: 42px; }
.hdr__logo b {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1;
    display: block;
}
.hdr__logo small {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--navy-45);
    margin-top: 3px;
}
.hdr__nav { display: flex; gap: 24px; margin-left: auto; }
.hdr__nav a {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--navy);
    padding: 6px 0;
    position: relative;
}
.hdr__nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width .22s;
}
.hdr__nav a:hover::after { width: 100%; }
.hdr__side { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.hdr__phone {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.burger {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.burger span {
    position: absolute;
    left: 11px; right: 11px;
    height: 2px;
    background: var(--navy);
    transition: transform .22s, opacity .22s;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------- герой ---------------------------- */

.hero {
    position: relative;
    min-height: min(88vh, 760px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .5;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 26, 34, .82) 0%, rgba(16, 26, 34, .55) 42%, rgba(16, 26, 34, .95) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-top: 130px; padding-bottom: 46px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero__lead {
    max-width: 52ch;
    margin: 22px 0 32px;
    font-size: clamp(17px, 1.6vw, 20px);
    color: rgba(255, 255, 255, .82);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Подпись «в эфире» — фирменный элемент медиагруппы */
.onair {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 26px;
}
.onair__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(247, 34, 16, .7);
    animation: pulse 1.9s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(247, 34, 16, .65); }
    70%  { box-shadow: 0 0 0 11px rgba(247, 34, 16, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 34, 16, 0); }
}

/* эквалайзер в углу героя */
.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.eq i {
    display: block;
    width: 4px;
    background: var(--red);
    border-radius: 2px;
    animation: eq 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 40%; animation-delay: -.9s; }
.eq i:nth-child(2) { height: 75%; animation-delay: -.5s; }
.eq i:nth-child(3) { height: 55%; animation-delay: -.2s; }
.eq i:nth-child(4) { height: 90%; animation-delay: -.7s; }
.eq i:nth-child(5) { height: 45%; animation-delay: -.35s; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eq { transform-origin: bottom; }
.eq i { transform-origin: bottom; }

/* бегущая строка рубрик */
.ticker {
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    border-top: 2px solid var(--red);
}
.ticker__track {
    display: flex;
    gap: 40px;
    padding: 13px 0;
    width: max-content;
    animation: ticker 34s linear infinite;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ticker__track span { opacity: .85; }
.ticker__track span::before { content: '● '; color: var(--red); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ---------------------------- секции ---------------------------- */

.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec--mist { background: var(--mist); }
.sec--navy { background: var(--navy); color: #fff; }
.sec--navy .eyebrow { color: var(--coral); }
.sec--navy .eyebrow::before { background: var(--coral); }
.sec--navy .lead { color: rgba(255, 255, 255, .78); }

.sec__head { max-width: 62ch; margin-bottom: 44px; }
.sec__head p { margin-top: 16px; }

.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

/* маркированный список выгод */
.gains { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gains li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}
.gains li::before {
    content: '';
    display: block;
    width: 22px; height: 2px;
    background: var(--red);
    transform: translateY(-5px);
}
.sec--navy .gains li { border-color: rgba(255, 255, 255, .16); }

/* карточки услуг */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.svc__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(25, 39, 51, .12);
    border-color: transparent;
}
.svc__rule { display: block; width: 42px; height: 4px; background: var(--red); border-radius: 2px; }
.svc__card h3 { font-size: 19px; }
.svc__card p { font-size: 15px; color: var(--navy-70); line-height: 1.5; flex: 1; }

/* факторы стоимости */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.fact {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r);
    padding: 22px;
}
.fact__key {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .16em;
    color: var(--coral);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.fact p { font-size: 15px; color: rgba(255, 255, 255, .82); }

/* ----------------------------- прайс ---------------------------- */

.price { display: grid; gap: 26px; }
.pgroup { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pgroup__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--navy);
    color: #fff;
}
.pgroup__head h3 { font-size: 18px; flex: 1; }
.pgroup__head .btn { flex: 0 0 auto; }

.prow {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr auto auto auto;
    gap: 18px;
    align-items: center;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
}
.prow:first-of-type { border-top: 0; }
.prow__name { font-weight: 600; }
.prow__place { font-size: 14px; color: var(--navy-70); }
.prow__cost { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; }
.prow__term {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--navy-45);
    text-transform: uppercase;
    white-space: nowrap;
}
.price__note { font-size: 14px; color: var(--navy-70); margin-top: 22px; }

/* ---------------------- заказы (пять плашек) -------------------- */

.orders { display: grid; gap: 12px; }
.order {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    text-align: left;
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 20px 24px;
    cursor: pointer;
    font-family: var(--body);
    transition: background-color .2s, transform .2s;
}
.order:hover { background: #0d1a24; transform: translateX(4px); }
.order strong { font-family: var(--display); font-size: 20px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; }
.order span { font-size: 14px; color: rgba(255, 255, 255, .7); }
.order__txt { flex: 1; display: grid; gap: 4px; }
.order__go { font-size: 26px; line-height: 1; color: var(--red); }

/* ----------------------------- блог ----------------------------- */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    text-decoration: none;
    transition: transform .22s, box-shadow .22s;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(25, 39, 51, .1); }
.post__date { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--navy-45); text-transform: uppercase; }
.post h3 { font-size: 20px; }
.post p { font-size: 15px; color: var(--navy-70); line-height: 1.5; flex: 1; }
.post__more { font-size: 14px; font-weight: 600; color: var(--red); }

/* ---------------------------- статья ---------------------------- */

.article { padding: 48px 0 80px; }
.article__wrap { max-width: 760px; }
.article h1 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 18px; }
.article__meta { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--navy-45); text-transform: uppercase; margin-bottom: 34px; }
.article__body { font-size: 18px; line-height: 1.72; }
.article__body h2 { font-size: 26px; margin: 38px 0 16px; }
.article__body ul { padding-left: 20px; }
.article__body li { margin-bottom: 8px; }
.article__body a { color: var(--red); }
.crumbs { font-size: 14px; color: var(--navy-45); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* -------------------------- медиагруппа ------------------------- */

.group {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--navy);
    color: #fff;
    border-radius: var(--r);
    padding: clamp(28px, 4vw, 48px);
}
.group img { border-radius: 10px; }

/* --------------------------- контакты --------------------------- */

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.clist { display: grid; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.clist li { display: grid; gap: 4px; }
.clist b { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-45); font-weight: 500; }
.clist a { font-size: 20px; text-decoration: none; font-weight: 600; }
.clist a:hover { color: var(--red); }

/* ----------------------------- формы ---------------------------- */

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy-70); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--body);
    font-size: 16px;
    color: var(--navy);
    background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.consent { font-size: 12px; color: var(--navy-45); margin-top: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; }

.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg.ok { color: #1a7f3c; }
.form-msg.err { color: var(--red); }

/* короткая форма в подвале */
.calc { background: #fff; border-radius: var(--r); padding: 26px; color: var(--navy); }
.calc h3 { font-size: 22px; margin-bottom: 8px; }
.calc p { font-size: 14px; color: var(--navy-70); margin-bottom: 18px; }

/* ---------------------------- подвал ---------------------------- */

.ftr { background: var(--mist); padding: 56px 0 30px; }
.ftr__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 36px; align-items: start; }
.ftr__logo img { height: 60px; width: 60px; margin-bottom: 14px; }
.ftr__logo b { font-family: var(--display); font-size: 22px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.ftr__nav { display: grid; gap: 10px; }
.ftr__nav a { font-size: 15px; text-decoration: none; }
.ftr__nav a:hover { color: var(--red); }
.ftr__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 13px;
    color: var(--navy-45);
}
.ftr__bottom a { text-decoration: none; }

/* --------------------------- попапы ----------------------------- */

.pop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 26, 34, .72);
}
.pop.is-open { display: flex; }
.pop__card {
    background: #fff;
    border-radius: var(--r);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}
.pop__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border: 0;
    border-radius: 8px;
    background: var(--mist);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
}
.pop__close:hover { background: #e2e2e2; }
.pop h3 { margin-bottom: 10px; padding-right: 40px; }
.pop__descr { font-size: 15px; color: var(--navy-70); margin-bottom: 22px; }
.pop__icon { height: 60px; width: auto; margin-bottom: 14px; }

/* квиз */
.quiz__bar { height: 4px; background: var(--mist); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.quiz__bar i { display: block; height: 100%; background: var(--red); width: 20%; transition: width .3s; }
.quiz__count { font-family: var(--mono); font-size: 12px; color: var(--navy-45); margin-bottom: 20px; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; }
.quiz__nav { display: flex; gap: 10px; margin-top: 20px; }
.checks { display: grid; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.checks label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}
.checks label:hover { border-color: var(--navy); }
.checks input { accent-color: var(--red); width: 18px; height: 18px; }

/* капча */
.cap__q { font-family: var(--display); font-size: 30px; margin: 4px 0 12px; }
.cap__err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 8px; }
.cap__row { display: flex; gap: 10px; margin-top: 16px; }
.cap__refresh { background: none; border: 0; padding: 0; margin-top: 12px; font-size: 13px; color: var(--navy-45); text-decoration: underline; cursor: pointer; font-family: inherit; }

/* плавающая кнопка */
.fab {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 70;
    box-shadow: 0 12px 30px rgba(247, 34, 16, .35);
}

/* появление блоков при прокрутке */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1; transform: none; } }

/* --------------------------- адаптив ---------------------------- */

@media (max-width: 1000px) {
    .svc { grid-template-columns: repeat(2, 1fr); }
    .posts { grid-template-columns: repeat(2, 1fr); }
    .facts { grid-template-columns: 1fr; }
    .cols, .contacts, .group { grid-template-columns: 1fr; }
    .prow { grid-template-columns: 1fr 1fr; row-gap: 10px; }
    .prow__place { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .hdr__nav {
        position: fixed;
        inset: 74px 0 auto;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 20px;
        display: none;
    }
    .hdr__nav.is-open { display: flex; }
    .hdr__nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .hdr__phone { display: none; }
    .burger { display: block; margin-left: auto; }
    .hdr__side .btn { display: none; }
    .hero__in { padding-top: 100px; padding-bottom: 40px; }
    .svc, .posts { grid-template-columns: 1fr; }
    .prow { grid-template-columns: 1fr; row-gap: 6px; }
    .pgroup__head { flex-wrap: wrap; }
    .ftr__grid { grid-template-columns: 1fr; }
    .pop__card { padding: 24px 20px; }
    .fab { right: 14px; bottom: 14px; }
}
