/* ==========================================================================
   Поляков ПК — компьютерный мастер в Нижнекамске
   Дизайн-система, темы, адаптив
   ========================================================================== */

/* ---------------------------- 1. Токены ---------------------------------- */
:root {
  --font-sans: "Inter", "Segoe UI Variable", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --container: 1180px;
  --container-narrow: 860px;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --brand-solid: #0b5cff;
  --brand-solid-hover: #004be0;
  --accent-solid: #ffffff;
  --accent-solid-hover: #e3e3e3;
  --accent-ink: #1c0e00;

  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.12);

  --shadow-sm: 0 1px 2px rgba(8, 15, 30, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(8, 15, 30, 0.22);
  --shadow-lg: 0 30px 70px -30px rgba(8, 15, 30, 0.35);

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg-soft: #eaeff8;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --surface-3: #eef3fb;
  --text: #0a1220;
  --text-2: #33415a;
  --muted: #5b6b83;
  --line: rgba(10, 18, 32, 0.1);
  --line-strong: rgba(10, 18, 32, 0.17);
  --brand: #0b5cff;
  --brand-soft: rgba(11, 92, 255, 0.09);
  --accent: #e96f00;
  --accent-soft: rgba(233, 111, 0, 0.1);
  --glow-1: rgba(59, 130, 246, 0.22);
  --glow-2: rgba(255, 138, 31, 0.14);
  --tile: linear-gradient(160deg, #ffffff 0%, #e9f0ff 100%);
  --tile-line: rgba(11, 92, 255, 0.14);
  --header-bg: rgba(244, 246, 251, 0.82);
  --card-shine: rgba(255, 255, 255, 0.9);
  --code-bg: #0c1526;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05080f;
  --bg-soft: #080d18;
  --surface: #0b1220;
  --surface-2: #0f1929;
  --surface-3: #142132;
  --text: #edf3ff;
  --text-2: #c3cfe3;
  --muted: #8fa1bb;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --brand: #6aa8ff;
  --brand-soft: rgba(106, 168, 255, 0.12);
  --accent: #ff9a3d;
  --accent-soft: rgba(255, 154, 61, 0.12);
  --glow-1: rgba(38, 99, 255, 0.28);
  --glow-2: rgba(255, 122, 26, 0.13);
  --tile: linear-gradient(160deg, #ffffff 0%, #dfe9ff 100%);
  --tile-line: rgba(157, 195, 255, 0.28);
  --header-bg: rgba(5, 8, 15, 0.8);
  --card-shine: rgba(255, 255, 255, 0.06);
  --code-bg: #07101f;
}

/* ---------------------------- 2. Сброс ----------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 560px at 88% -12%, var(--glow-1), transparent 62%),
    radial-gradient(820px 520px at -12% 18%, var(--glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand-solid);
  color: #fff;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-solid);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.lead {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.nowrap {
  white-space: nowrap;
}

.grad-text {
  background: linear-gradient(105deg, var(--brand) 10%, #24c4ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .grad-text {
  background: linear-gradient(105deg, #8bc0ff 5%, #43e0ff 95%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------------------------- 4. Кнопки ---------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 0.18s var(--ease),
    background-color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    color 0.18s;
  white-space: nowrap;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--brand-solid);
  --btn-fg: #fff;
  --btn-border: transparent;
  box-shadow: 0 10px 28px -10px rgba(11, 92, 255, 0.65);
}

.btn--primary:hover {
  --btn-bg: var(--brand-solid-hover);
  box-shadow: 0 14px 34px -12px rgba(11, 92, 255, 0.7);
}

.btn--accent {
  --btn-bg: var(--accent-solid);
  --btn-fg: var(--accent-ink);
  --btn-border: transparent;
}

.btn--accent:hover {
  --btn-bg: var(--accent-solid-hover);
}

.btn--vk {
  --btn-bg: #fff;
  --btn-fg: var(--brand-solid);
  --btn-border: var(--brand-solid);
  border-width: 1.5px;
  box-shadow: 0 10px 28px -16px rgba(11, 92, 255, 0.4);
}

.btn--vk:hover {
  --btn-bg: var(--brand-solid);
  --btn-fg: #fff;
  --btn-border: var(--brand-solid);
}

html[data-theme="dark"] .btn--vk {
  --btn-bg: #fff;
  --btn-fg: #07152e;
  --btn-border: #fff;
  box-shadow: 0 14px 34px -12px rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .btn--vk:hover {
  --btn-bg: #eaf0ff;
  --btn-fg: #07152e;
  --btn-border: #eaf0ff;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--surface-2);
  border-color: var(--brand);
}

.btn--soft {
  --btn-bg: var(--surface-2);
  --btn-border: var(--line);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 16px;
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
}

.btn--icon {
  width: 46px;
  height: 46px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--brand);
  transition: gap 0.2s var(--ease);
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  gap: 11px;
}

/* ---------------------------- 5. Шапка ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  border-radius: 12px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0b5cff 10%, #23b6ff 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(11, 92, 255, 0.7);
  flex: none;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
  transform: translateY(-1px);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.main-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.18s, background-color 0.18s;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.main-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  margin-right: 4px;
}

.header-phone span {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.header-phone strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-phone:hover strong {
  color: var(--brand);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.theme-toggle:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  transform: rotate(-8deg);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  place-items: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.site-header.nav-open .nav-toggle .icon-close {
  display: block;
}

.site-header.nav-open .nav-toggle .icon-burger {
  display: none;
}

.mobile-nav {
  display: none;
}

/* ---------------------------- 6. Hero ------------------------------------ */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(700px 480px at 30% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(700px 480px at 30% 30%, #000 20%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero__badge .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok-soft);
  display: grid;
  place-items: center;
  flex: none;
}

.hero__badge .dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.3vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 .hero__h1-sub {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 18px;
  max-width: 30ch;
  text-wrap: pretty;
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-2);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.hero__note svg {
  width: 16px;
  height: 16px;
  color: var(--ok);
  flex: none;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact strong {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.fact span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual__glow {
  position: absolute;
  inset: 8% 2% 4%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--glow-1), transparent 72%),
    radial-gradient(closest-side at 70% 75%, var(--glow-2), transparent 70%);
  filter: blur(12px);
  z-index: -1;
}

.visual-main {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 0.96;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--tile-line);
  box-shadow:
    0 40px 90px -30px rgba(9, 35, 90, 0.45),
    inset 0 1px 0 #fff;
  display: grid;
  place-items: center;
  padding: 5%;
  overflow: hidden;
}

.visual-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 92, 255, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 55%);
  mask-image: linear-gradient(160deg, #000, transparent 55%);
  opacity: 0.45;
  pointer-events: none;
}

.visual-main img {
  position: relative;
  width: 112%;
  height: 112%;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(10, 40, 100, 0.18));
}

.visual-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  line-height: 1.25;
  z-index: 2;
  animation: floaty 7s ease-in-out infinite;
}

.visual-chip strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.visual-chip span {
  color: var(--muted);
  font-size: 11.5px;
}

.visual-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}

.visual-chip__icon svg {
  width: 18px;
  height: 18px;
}

.visual-chip--1 {
  top: 3%;
  left: -2%;
  animation-delay: -1.5s;
}

.visual-chip--1 .visual-chip__icon {
  background: var(--brand-soft);
  color: var(--brand);
}

.visual-chip--2 {
  bottom: 7%;
  right: -3%;
  animation-delay: -4s;
}

.visual-chip--2 .visual-chip__icon {
  background: var(--ok-soft);
  color: var(--ok);
}

.visual-chip--3 {
  bottom: 31%;
  left: -6%;
  animation-delay: -2.6s;
}

.visual-chip--3 .visual-chip__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero-visual__ring {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  z-index: -1;
  animation: spin 60s linear infinite;
}

.hero-visual__ring::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 22%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-solid);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------- 7. Секции ---------------------------------- */
.section {
  padding: clamp(56px, 7.5vw, 96px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section--surface {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-head__text {
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  margin-top: 14px;
  letter-spacing: -0.035em;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
}

.section-head__link {
  flex: none;
  margin-bottom: 6px;
}

/* ---------------------------- 8. Карточки услуг -------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s,
    box-shadow 0.28s;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, var(--card-shine), transparent 45%);
  opacity: 0;
  transition: opacity 0.28s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.service-card__media img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
  filter: drop-shadow(0 14px 18px rgba(10, 40, 100, 0.12));
}

.service-card:hover .service-card__media img {
  transform: scale(1.06) rotate(-1deg);
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
  gap: 10px;
}

.service-card h3 {
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.55;
  flex: 1;
}

.service-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price {
  font-weight: 750;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 3px;
}

.service-card__go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.service-card__go svg {
  width: 15px;
  height: 15px;
}

.service-card:hover .service-card__go {
  background: var(--brand-solid);
  border-color: var(--brand-solid);
  color: #fff;
}

/* ---------------------------- 9. Проблемы -------------------------------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.problem {
  display: flex;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.problem:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.problem__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}

.problem__icon svg {
  width: 21px;
  height: 21px;
}

.problem:nth-child(3n + 2) .problem__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.problem:nth-child(3n + 3) .problem__icon {
  background: var(--ok-soft);
  color: var(--ok);
}

.problem h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.problem p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------------------------- 10. Преимущества --------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0.65;
  transition: transform 0.4s var(--ease);
}

.feature:hover::before {
  transform: scale(1.35);
}

.feature__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.feature h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------------------------- 11. Прайс ---------------------------------- */
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-group + .price-group {
  border-top: 1px solid var(--line);
}

.price-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.price-group__head h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.price-group__head svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: none;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 24px;
  font-size: 14.5px;
  transition: background-color 0.15s;
}

.price-list li + li {
  border-top: 1px dashed var(--line);
}

.price-list li:hover {
  background: var(--surface-2);
}

.price-list li > span:first-child {
  flex: 1;
}

.price-list .price {
  font-size: 15px;
}

.price-list .price--from {
  color: var(--text);
}

.price-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 24px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.price-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* ---------------------------- 12. Шаги ----------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.step__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-solid);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px -8px rgba(11, 92, 255, 0.65);
}

.step:nth-child(2) .step__num {
  background: linear-gradient(145deg, #0b5cff, #23b6ff);
}

.step:nth-child(3) .step__num {
  background: linear-gradient(145deg, #ff8a1f, #ffb25c);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -8px rgba(255, 138, 31, 0.6);
}

.step:nth-child(4) .step__num {
  background: linear-gradient(145deg, #0f9d58, #34d07c);
}

.step h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.step p {
  font-size: 13.3px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------------------------- 13. О мастере ------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 10, 20, 0.55), transparent 38%);
  pointer-events: none;
}

.about-photo__badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}

.about-photo__badge strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about-photo__badge span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.3;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-top: 14px;
}

.about-copy > p {
  margin-top: 16px;
  color: var(--muted);
}

.about-points {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.about-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
}

.about-point svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--ok);
}

.about-point strong {
  font-weight: 650;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.about-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.about-stat span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------------------- 14. FAQ ------------------------------------ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  font-weight: 650;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s;
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
  color: var(--brand);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.2px;
  line-height: 1.65;
  max-width: 78ch;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ---------------------------- 15. Контакты ------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
}

.contact-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-card h2,
.contact-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
}

.contact-card > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
}

.contact-card--cta {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background:
    radial-gradient(460px 300px at 50% 18%, var(--glow-1), transparent 72%),
    var(--surface);
}

.contact-card--cta .btn {
  width: min(100%, 360px);
  min-height: 58px;
  font-size: 16px;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.contact-phone__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}

.contact-phone__icon svg {
  width: 21px;
  height: 21px;
}

.contact-phone a {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-phone a:hover {
  color: var(--brand);
}

.contact-phone small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.messenger-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.messenger:hover {
  border-color: var(--brand);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.messenger svg {
  width: 17px;
  height: 17px;
}

.messenger--vk svg {
  color: #4c75a3;
}

.messenger--max svg {
  color: var(--text);
}

html[data-theme="dark"] .messenger--max svg {
  color: #fff;
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-list__item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list__item svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--muted);
}

.contact-list__item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.contact-list__item span,
.contact-list__item a {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-list__item a:hover {
  color: var(--brand);
}

/* Форма */
.lead-form {
  display: grid;
  gap: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14.5px;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8aa0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: var(--surface);
}

.field .error-text {
  display: none;
  font-size: 12px;
  color: #e5484d;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #e5484d;
}

.field.is-invalid .error-text {
  display: block;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--brand-solid);
}

.check a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

.form-status {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: rgba(229, 72, 77, 0.1);
  color: #e5484d;
}

.form-status.is-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.form-status__copy {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  resize: vertical;
}

/* Карта */
.map-box {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(145deg, var(--surface-2), var(--surface-3)),
    var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.map-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.7;
}

.map-box__content {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.map-box__content svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
  margin-bottom: 4px;
}

.map-box__content strong {
  font-size: 16px;
}

.map-box__content span {
  font-size: 13px;
  color: var(--muted);
  max-width: 34ch;
}

.map-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------- 16. CTA-баннер ----------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(52, 199, 255, 0.35), transparent 65%),
    radial-gradient(500px 300px at 10% 100%, rgba(255, 138, 31, 0.22), transparent 65%),
    linear-gradient(135deg, #0a1a3a 0%, #0b2a63 55%, #0d3c86 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow-lg);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: 0.4;
  pointer-events: none;
}

.cta-band__text {
  position: relative;
  max-width: 54ch;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.035em;
}

.cta-band p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  max-width: 52ch;
}

.cta-band__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.cta-band .btn--ghost {
  --btn-border: rgba(255, 255, 255, 0.28);
  --btn-fg: #fff;
}

.cta-band .btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.cta-band .btn--primary {
  --btn-bg: #fff;
  --btn-fg: #0a1a3a;
  box-shadow: none;
}

.cta-band .btn--primary:hover {
  --btn-bg: #eaf2ff;
}

/* ---------------------------- 17. Подвал --------------------------------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(44px, 6vw, 68px) 0 28px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 34px;
}

.footer-about p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 34ch;
  line-height: 1.6;
}

.footer-col h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-contacts {
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.footer-contacts a {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.footer-contacts span {
  color: var(--muted);
  font-size: 12.5px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--text);
}

/* Мобильная нижняя панель */
.mobile-bar {
  display: none;
}

/* ---------------------------- 18. Внутренние страницы -------------------- */
.page-hero {
  position: relative;
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(30px, 4vw, 48px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 75% 0%, var(--glow-1), transparent 70%);
  pointer-events: none;
}

.breadcrumbs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.page-hero h1 {
  position: relative;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.04em;
  max-width: 22ch;
}

.page-hero__lead {
  position: relative;
  margin-top: 16px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--muted);
  max-width: 60ch;
}

.page-hero__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
}

.pill svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.pill--accent svg {
  color: var(--accent);
}

.pill--ok svg {
  color: var(--ok);
}

/* Контент статьи */
.prose {
  max-width: 72ch;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-2);
}

.prose > * + * {
  margin-top: 16px;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  color: var(--text);
  margin-top: 38px;
  letter-spacing: -0.03em;
}

.prose h3 {
  font-size: 1.12rem;
  color: var(--text);
  margin-top: 26px;
  display: flex;
  gap: 20px;
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 32px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: calc(50% - (7px / 2));
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: n;
}

.prose ol li {
  position: relative;
  padding-left: 30px;
  counter-increment: n;
}

.prose ol li::before {
  content: counter(n) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

.prose blockquote {
  border-left: 3px solid var(--accent-solid);
  padding: 6px 0 6px 20px;
  color: var(--text);
  font-weight: 550;
  font-size: 1.02rem;
}

.prose .callout {
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
}

.prose .callout strong {
  display: block;
  margin-bottom: 4px;
}

/* Две колонки: контент + сайдбар */
.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.sidebar-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.sidebar-card .btn {
  margin-top: 14px;
}

.sidebar-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}

.sidebar-price:first-of-type {
  border-top: 0;
}

.sidebar-price .price {
  font-size: 15px;
}

.sidebar-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.sidebar-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  padding: 7px 9px;
  margin: -7px -9px;
  border-radius: 8px;
  transition: background-color 0.15s, color 0.15s;
}

.sidebar-list a:hover {
  background: var(--surface-2);
  color: var(--brand);
}

.sidebar-list a svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex: none;
}

/* Галерея/сетка возможностей */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.info-card h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 13.3px;
  color: var(--muted);
  line-height: 1.55;
}

.info-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.info-card__icon svg {
  width: 19px;
  height: 19px;
}

/* Заголовок группы прайса на странице цен */
.ceny-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ---------------------------- 19. Анимации появления --------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.07s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.14s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.21s;
}

/* ---------------------------- 20. Адаптив --------------------------------- */
@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }

  .visual-main {
    width: min(100%, 340px);
  }

  .hero h1 {
    max-width: 18ch;
  }

  .hero__facts {
    max-width: 640px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .layout-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 920px) {
  .main-nav,
  .header-phone,
  .header-cta {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .nav-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: block;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 14px 22px 22px;
    animation: navIn 0.22s var(--ease);
  }

  .mobile-nav nav {
    display: grid;
    gap: 2px;
    margin-bottom: 14px;
  }

  .mobile-nav a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
    font-weight: 550;
  }

  .mobile-nav a:not(.btn) svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
  }

  .mobile-nav__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .mobile-nav__actions .btn {
    min-height: 46px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero__badge {
    font-size: 12px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  body {
    padding-bottom: 68px;
  }

  .container {
    padding-inline: 16px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 11px;
  }

  .brand__name {
    font-size: 15.5px;
  }

  .brand__sub {
    font-size: 9.5px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .visual-main {
    width: min(100%, 280px);
    border-radius: var(--r-lg);
  }

  .visual-chip {
    padding: 8px 11px;
    font-size: 11.5px;
    border-radius: 11px;
  }

  .visual-chip strong {
    font-size: 12px;
  }

  .visual-chip span {
    font-size: 10.5px;
  }

  .visual-chip__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .visual-chip__icon svg {
    width: 15px;
    height: 15px;
  }

  .visual-chip--1 {
    top: 0;
    left: 0;
  }

  .visual-chip--2 {
    bottom: 0;
    right: 0;
  }

  .visual-chip--3 {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.6vw, 2.8rem);
  }

  .hero h1 .hero__h1-sub {
    margin-top: 14px;
    font-size: 1rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    margin-top: 28px;
  }

  .services-grid,
  .problems-grid,
  .features-grid,
  .steps,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    gap: 14px;
  }

  .service-card {
    flex-direction: row;
  }

  .service-card__media {
    width: 118px;
    flex: none;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .service-card__media img {
    width: 96%;
    height: 96%;
  }

  .service-card__media::after {
    display: none;
  }

  .service-card__body {
    padding: 14px 15px;
    gap: 5px;
  }

  .service-card h3 {
    font-size: 14.5px;
  }

  .service-card p {
    font-size: 12.3px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-card__meta {
    margin-top: 6px;
    padding-top: 9px;
  }

  .price {
    font-size: 14px;
  }

  .service-card__go {
    width: 28px;
    height: 28px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-head__link {
    margin: 0;
  }

  .cta-band {
    padding: 26px 22px;
    border-radius: var(--r-lg);
  }

  .cta-band__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer {
    margin-bottom: 0;
  }

  .footer-bottom {
    margin-top: 28px;
    flex-direction: column;
  }

  .mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }

  .mobile-bar .btn {
    min-height: 48px;
    font-size: 14px;
    padding: 10px 12px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 20px;
  }

  .page-hero h1 {
    max-width: none;
  }

  .page-hero__meta {
    gap: 7px;
  }

  .prose {
    font-size: 15px;
  }

  .faq-item summary {
    padding: 16px;
    font-size: 14.5px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 13.6px;
  }

  .contact-card {
    padding: 22px 18px;
  }

  .price-list li {
    padding: 12px 16px;
    font-size: 13.5px;
  }

  .price-group__head {
    padding: 14px 16px;
  }

  .price-note {
    padding: 14px 16px;
  }

  .map-box {
    min-height: 220px;
  }
}

@media (max-width: 420px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .header-inner {
    gap: 10px;
  }

  .hero-visual {
    min-height: 270px;
  }

  .visual-main {
    width: 240px;
  }

  .visual-chip--1 {
    left: -4px;
  }

  .visual-chip--2 {
    right: -4px;
  }

  .visual-chip--3 {
    display: none;
  }
}

/* ---------------------------- 21. Доступность / печать ------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .service-card,
  .problem,
  .feature,
  .step,
  .faq-item,
  .price-card {
    border: 1px solid ButtonText;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .site-footer,
  .cta-band,
  .hero-visual,
  .lead-form {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 16px 0;
  }
}

/* ---------------------------- 21. �������� ����� -------------------------- */
.page-media {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.page-media img {
  width: min(100%, 430px);
  height: auto;
}

.page-media + .prose {
  margin-top: clamp(24px, 4vw, 36px);
}

@media (max-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }
}

.page-media {
  max-width: 580px;
  margin-inline: auto;
}

.page-media img {
  width: min(100%, 360px);
}
