/* Общие компоненты: шапка, кнопки, чипы, карточки, форма, подвал */

/* ---- header ---- */
#site-header { position: sticky; top: 0; z-index: 50; }
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(10, 10, 12, .72); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: height .3s var(--ease), background .3s, box-shadow .3s;
}
.header.is-scrolled { height: 62px; background: rgba(10, 10, 12, .92); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); }
.header.is-scrolled .logo img { width: 38px; height: 38px; }
.header.is-scrolled .logo small { display: none; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.logo img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 6px 18px -6px var(--accent-glow); transition: transform .3s var(--ease); }
.logo:hover img { transform: rotate(-6deg) scale(1.04); }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.logo__name { display: flex; align-items: center; text-transform: uppercase; letter-spacing: -.01em; }
.logo__plate { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 5px 2px 6px; border: 1.5px solid currentColor; border-radius: 5px; font-weight: 800; font-size: .92em; line-height: 1.15; }
.logo__plate i { display: grid; justify-items: center; gap: 1px; font: 700 6px/1 var(--font-body); font-style: normal; letter-spacing: 0; }
.logo__plate i::before { content: ""; width: 9px; height: 6px; background: linear-gradient(#fff 0 33%, #1c57d1 0 66%, #d52b1e 0); }
.nav { display: flex; gap: 6px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text-soft); padding: 9px 16px; border-radius: 999px; transition: .2s; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a.is-active { color: var(--text); background: rgba(255, 255, 255, .1); }
.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 600; white-space: nowrap; font-size: 15px; }
.header__phone:hover { color: var(--accent-2); }
.burger { display: none; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; font-size: 18px; }

@media (max-width: 1240px) {
  .header__phone { display: none; }
  .nav a { padding: 9px 12px; }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
         background: rgba(10, 10, 12, .96); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a.is-active { background: none; color: var(--accent-2); }
  .burger { display: block; }
  .header__phone { display: none; }
}
@media (max-width: 520px) {
  .header__inner { gap: 12px; }
  .header__cta { gap: 10px; }
  .header__cta .btn { display: none; }
  .logo small { font-size: 9.5px; letter-spacing: .08em; }
}

/* ---- buttons ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 34px -10px var(--accent-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -8px var(--accent-glow); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .09); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; cursor: default;
}
button.chip, a.chip { cursor: pointer; transition: .2s; }
a.chip:hover, button.chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .1); }
.chip.is-selected { background: var(--grad); border-color: transparent; color: #fff; }
.chip--yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 10px; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---- cards ---- */
.card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.card:hover { border-color: rgba(255, 138, 61, .45); }
.section--paper .card { background: var(--paper-card); border-color: var(--paper-line); }

.service-card { display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.service-card__photo { position: relative; margin: -28px -28px 0; aspect-ratio: 16 / 9; overflow: hidden; }
.service-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, rgba(21, 22, 26, .15) 55%, transparent 100%); }
.service-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transition: transform .9s var(--ease); }
.service-card:hover .service-card__photo img { transform: scale(1.07); }
.service-card__photo + .service-card__icon { margin-top: -50px; position: relative; z-index: 1; background: #1c1d22; }
.service-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%); opacity: 0; transition: opacity .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px var(--accent-glow); }
.service-card:hover::after { opacity: 1; }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 90, 31, .12);
  border: 1px solid rgba(255, 138, 61, .3); display: grid; place-items: center; color: var(--accent-2);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--text-soft); font-size: 15px; }
.service-card__foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.service-card__price { font-size: 13px; font-weight: 600; color: var(--accent-2); }
.service-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); opacity: .7; transition: opacity .25s; }
.service-card__cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.service-card:hover .service-card__cta { opacity: 1; color: var(--accent-2); }
.service-card:hover .service-card__cta svg { transform: translateX(4px); }
.section--paper .service-card { color: var(--ink); }
.section--paper .service-card p { color: var(--ink-soft); }

.stat { display: flex; align-items: baseline; gap: 18px; }
.stat strong { font-family: var(--font-head); font-size: clamp(56px, 8vw, 120px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.callout {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px);
  background: var(--grad); color: #fff;
}
.callout::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .1); }
.callout p { opacity: .92; margin-top: 10px; max-width: 560px; }
.note { border: 1px solid rgba(255, 138, 61, .4); background: rgba(255, 90, 31, .08); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15px; }
.section--paper .note { background: #fff4ee; }

.ticks { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.ticks li { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); flex: none; }

/* ---- form ---- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-soft); letter-spacing: .02em; }
.form input, .form select, .form textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; outline: none; font-size: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form select option { background: var(--surface); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent-2); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.form select.is-preset { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; letter-spacing: 0; cursor: pointer; }
.form .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.form__status { font-weight: 600; min-height: 1.5em; }
.form__status.is-ok { color: #3ddc84; }
.form__status.is-error { color: var(--accent-2); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--grad); opacity: .7; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer li { margin-bottom: 10px; color: var(--text-soft); }
.footer a:hover { color: var(--accent-2); }
.footer__copy { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---- кнопка «наверх» ---- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: #fff; background: var(--grad);
  box-shadow: 0 12px 30px -8px var(--accent-glow);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

.footer__copy small { display: block; margin-top: 8px; font-size: 12px; opacity: .8; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
