:root {
  --bg: #091113;
  --bg-deep: #060c0d;
  --panel: rgba(14, 30, 32, .78);
  --panel-solid: #0d1b1d;
  --line: #1b3537;
  --line-bright: #2a5755;
  --accent: #35e0c4;
  --accent-dim: #1d8c7d;
  --accent-glow: rgba(53, 224, 196, .28);
  --danger: #ff4d55;
  --ok: #4be38a;
  --text: #cfe7e3;
  --muted: #6f9590;
  --radius: 3px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Exo 2", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(53, 224, 196, .10), transparent 60%),
    linear-gradient(rgba(53, 224, 196, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 196, .035) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Панель с уголками-скобками в стиле HUD */
.sidecard, .feature, .steps li, .faq__item, .offer, .card, .catalog {
  --c: var(--accent-dim);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--c), var(--c)) left top / 12px 1px,
    linear-gradient(var(--c), var(--c)) left top / 1px 12px,
    linear-gradient(var(--c), var(--c)) right top / 12px 1px,
    linear-gradient(var(--c), var(--c)) right top / 1px 12px,
    linear-gradient(var(--c), var(--c)) left bottom / 12px 1px,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 12px,
    linear-gradient(var(--c), var(--c)) right bottom / 12px 1px,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 12px,
    var(--panel);
  background-repeat: no-repeat;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--accent-dim); background: transparent; color: var(--accent);
  transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow), inset 0 0 10px rgba(53, 224, 196, .12); }
.btn--primary { background: rgba(53, 224, 196, .14); border-color: var(--accent); color: #e9fffb; box-shadow: inset 0 0 12px rgba(53, 224, 196, .15); }
.btn--primary:hover { background: rgba(53, 224, 196, .24); }
.btn--white, .btn--outline, .btn--outline-dark { background: rgba(9, 17, 19, .6); }

/* Промо */
.promo { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(53, 224, 196, .10), rgba(53, 224, 196, .02) 60%, transparent); }
.promo__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 150px; padding-top: 22px; padding-bottom: 22px; }
.promo__title { margin: 0 0 14px; font-size: 26px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #eafffb; text-shadow: 0 0 18px var(--accent-glow); }
.promo__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.promo__sub { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.promo__sub::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.promo__stats { display: flex; gap: 30px; }
.promo__stat { display: flex; flex-direction: column; align-items: center; text-align: center; width: 92px; }
.promo__stat b {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  font-size: 19px; font-weight: 700; color: #eafffb; line-height: 1;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line-bright), 0 0 18px var(--accent-glow), inset 0 0 14px rgba(53, 224, 196, .18);
}
.promo__stat span { display: block; margin-top: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.promo__close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.promo__close:hover { color: var(--accent); }

/* Верхняя строка */
.topbar { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar__city { display: inline-flex; align-items: center; gap: 6px; }
.topbar__links { display: flex; gap: 24px; }
.topbar__links a:hover, .topbar__city:hover { color: var(--accent); }
.topbar__phone { display: none; font-family: var(--mono); font-size: 14px; letter-spacing: .04em; color: var(--accent); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(9, 17, 19, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: .08em; color: var(--danger); margin-right: 12px; white-space: nowrap; text-shadow: 0 0 14px rgba(255, 77, 85, .35); }
.logo__mark { border: 1px solid var(--danger); color: var(--danger); padding: 1px 7px; border-radius: var(--radius); font-size: 14px; box-shadow: 0 0 10px rgba(255, 77, 85, .3), inset 0 0 8px rgba(255, 77, 85, .2); }
.header__catalog { position: relative; }
.catalog { position: absolute; top: calc(100% + 10px); left: 0; width: 340px; padding: 8px; background-color: var(--panel-solid); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.catalog a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; font-size: 13px; border-bottom: 1px solid var(--line); }
.catalog a:last-child { border-bottom: 0; }
.catalog a:hover { color: var(--accent); background: rgba(53, 224, 196, .06); }
.catalog a span { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-bright); border-radius: var(--radius); color: var(--muted); background: rgba(6, 12, 13, .6); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); color: var(--accent); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 14px; color: var(--text); background: transparent; }
.search input::placeholder { color: var(--muted); }
.header__phone { margin-left: auto; font-family: var(--mono); font-size: 18px; letter-spacing: .04em; white-space: nowrap; color: #eafffb; }
.header__phone:hover, .header__user:hover { color: var(--accent); }
.header__user { color: var(--muted); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--accent); }

.mainnav { display: flex; gap: 4px; height: 46px; align-items: stretch; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.mainnav a { position: relative; display: flex; align-items: center; padding: 0 16px; color: var(--muted); }
.mainnav a:first-child { padding-left: 0; }
.mainnav a:hover { color: var(--text); }
.mainnav a.is-active { color: var(--accent); }
.mainnav a.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.mainnav a.is-active:first-child::after { left: 0; }

/* Крошки */
.crumbs { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs__current { color: var(--accent-dim); }

/* Сетка страницы */
.layout { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.page-title { margin: 0 0 26px; font-size: 26px; font-weight: 700; letter-spacing: .03em; color: #eafffb; }

/* Карточки услуг */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: flex; flex-direction: column; padding: 18px 18px 16px; transition: .15s; }
.card:hover { --c: var(--accent); border-color: var(--line-bright); box-shadow: 0 0 22px rgba(53, 224, 196, .08); }
.card__img { width: 96px; height: 78px; margin-bottom: 14px; filter: drop-shadow(0 0 6px rgba(53, 224, 196, .35)); }
.card__img [fill="#123234"], .card__img [fill="#1c4a4a"] { stroke: #2f8a81; stroke-width: 1.5; }
.card__price { font-family: var(--mono); font-size: 21px; color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }
.card__note { margin: 2px 0 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 0 0 14px; font-size: 14px; font-weight: 500; line-height: 1.35; flex: 1; color: var(--text); }
.card__more { align-self: flex-start; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.card__more::after { content: " ›"; }
.card__more:hover { text-shadow: 0 0 8px var(--accent); }
.cards__empty { color: var(--muted); }

/* Боковая карточка */
.layout__side { position: sticky; top: 132px; }
.sidecard { padding: 20px 16px 4px; overflow: hidden; }
.sidecard h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.25; font-weight: 600; color: #eafffb; }
.sidecard p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.sidecard__art { width: 100%; height: auto; margin-top: 18px; filter: drop-shadow(0 0 10px rgba(53, 224, 196, .35)); }
.sidecard__photo { margin-bottom: 12px; border: 1px solid var(--line-bright); border-radius: var(--radius); filter: none; box-shadow: 0 0 16px rgba(53, 224, 196, .15); }

/* Блоки */
.block { margin-top: 56px; scroll-margin-top: 130px; }
.block__title { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.block__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-bright), transparent); }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offer { display: flex; flex-direction: column; gap: 6px; padding: 22px; min-height: 116px; justify-content: flex-end; }
.offer b { font-size: 20px; font-weight: 700; color: #eafffb; }
.offer span { font-size: 13px; color: var(--muted); }
.offer--accent { --c: var(--accent); border-color: var(--accent-dim); box-shadow: inset 0 0 30px rgba(53, 224, 196, .10); }
.offer--accent b { color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { padding: 18px; }
.feature b { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.feature span { font-size: 13px; color: var(--text); opacity: .8; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 18px 16px; }
.steps li::before {
  content: "0" counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  border: 2px solid var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-bright), 0 0 12px var(--accent-glow);
}
.steps b { display: block; font-size: 14px; color: #eafffb; }
.steps span { font-size: 12px; color: var(--muted); }

.faq { display: grid; gap: 10px; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: #eafffb;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--mono); font-size: 16px; color: var(--accent); border: 1px solid var(--accent-dim);
}
.faq__item summary:hover { color: var(--accent); }
.faq__item[open] { --c: var(--accent); border-color: var(--line-bright); }
.faq__item[open] summary { color: var(--accent); }
.faq__item[open] summary::after { content: "−"; box-shadow: 0 0 10px var(--accent-glow); }
.faq__answer { padding: 0 20px 18px; font-size: 14px; color: var(--text); opacity: .85; }
.faq__answer p { margin: 0 0 10px; }
.faq__answer p:last-child { margin-bottom: 0; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-bottom: 64px; }
.contacts p { margin: 0 0 12px; color: var(--text); }
.contacts p b { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contacts a:not(.btn) { font-family: var(--mono); font-size: 17px; color: var(--accent); }
.contacts__btns { display: flex; gap: 10px; margin-top: 20px; }
.contacts__map {
  width: 100%; height: 320px; border: 1px solid var(--line-bright); border-radius: var(--radius); background: var(--panel-solid);
  filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.85);
}

/* Подвал */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 32px 0 96px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__muted { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.footer__note { max-width: 560px; margin: 6px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); opacity: .8; }

/* Плавающая кнопка звонка */
.sos {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 77, 85, .16); color: var(--danger); border: 2px solid var(--danger);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(255, 77, 85, .4), 0 0 24px rgba(255, 77, 85, .45);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* Адаптив */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .layout__side { position: static; }
  .sidecard { display: grid; grid-template-columns: 1fr 160px; gap: 0 16px; padding-bottom: 16px; }
  .sidecard h3, .sidecard p, .sidecard .btn { grid-column: 1; }
  .sidecard .btn { justify-self: start; }
  .sidecard__art { grid-column: 2; grid-row: 1 / 4; margin: 0; }
  .promo__stats { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .topbar__links { display: none; }
  .topbar__phone { display: block; }
  .header__inner { flex-wrap: wrap; height: auto; gap: 10px; padding-top: 8px; padding-bottom: 10px; }
  .header__catalog, .header__user, .header__phone { display: none; }
  .logo { flex: 1; margin-right: 0; font-size: 13px; white-space: normal; }
  .logo__mark { font-size: 12px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .burger { display: block; margin-right: -9px; }
  .mainnav { display: none; flex-direction: column; align-items: flex-start; gap: 0; height: auto; padding-bottom: 10px; }
  .mainnav.is-open { display: flex; }
  .mainnav a { padding: 10px 0; }
  .mainnav a.is-active::after { left: 0; right: auto; width: 40px; bottom: 4px; }
  .promo__title { font-size: 19px; }
  .page-title { font-size: 22px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .offers, .contacts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .card { padding: 14px 12px 12px; }
  .card__img { width: 76px; height: 62px; margin-bottom: 10px; }
  .card__price { font-size: 18px; }
  .card__title { font-size: 13px; }
  .features { grid-template-columns: 1fr; }
  .sidecard { grid-template-columns: 1fr; }
  .sidecard__art { display: none; }
  .sidecard__photo { display: block; margin-top: 16px; }
}
