/* =========================================================
   Инженер ПНР · ПТО — сайт-визитка
   Палитра: графит + бирюзовый + сигнальный оранжевый
   Типографика: Inter (UI) + JetBrains Mono (метки/цифры)
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --bg:            #0f1419;
  --bg-alt:        #161b22;
  --bg-deep:       #0a0e12;
  --bg-card:       #1c2229;
  --line:          #232a33;
  --line-strong:   #2d3640;

  --text:          #e6edf3;
  --text-dim:      #9ba6b3;
  --text-mute:     #6b7785;

  --accent:        #ff6b1a;     /* сигнальный оранжевый */
  --accent-soft:   #ff8a47;
  --accent-deep:   #c44800;
  --teal:          #4ec9b0;     /* бирюзовый — тех. акцент */
  --teal-soft:     #6fd9c3;

  --ok:            #4ec9b0;
  --err:           #ff5d5d;

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,.25);
  --shadow:        0 8px 32px rgba(0,0,0,.35);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.45);

  --font-ui:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --container:     1180px;
  --gutter:        24px;

  --t-fast:        .15s ease;
  --t:             .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  /* тонкая зернистая текстура — придаёт материальность */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-soft); }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

::selection { background: var(--accent); color: #000; }

/* ---------- Утилитарные ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.section {
  position: relative;
  padding: 96px 0;
  z-index: 1;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.section__head {
  margin-bottom: 56px;
  max-width: 720px;
}

.section__head--left { margin-bottom: 32px; }
.section__head--inverted .section__title { color: var(--text); }

.section__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: rgba(255,107,26,.06);
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.section__sub {
  margin: 0;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  text-align: center;
  position: relative;
}

.btn--sm { padding: 10px 14px; font-size: 14px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #0a0e12;
  box-shadow: 0 4px 14px rgba(255,107,26,.25);
}
.btn--primary:hover {
  background: var(--accent-soft);
  color: #0a0e12;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255,107,26,.4);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(78,201,176,.06);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .btn__spinner {
  display: none;
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__spinner {
  display: block;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
}

@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,20,25,.7);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
}

.header.is-scrolled {
  background: rgba(15,20,25,.92);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

.header__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--accent);
  color: #0a0e12;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  letter-spacing: -.02em;
}

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

.header__logo-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.header__logo-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: .04em;
  margin-top: 2px;
}

.header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 16px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
}

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

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t);
}

.header__nav a:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Бургер */
.burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform var(--t), opacity var(--t-fast);
}

.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,107,26,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(78,201,176,.08), transparent 60%),
    var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .6;
}
.hero__grid {
  width: 100%; height: 100%;
}

.hero__inner {
  position: relative;
}

.hero__meta {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: rgba(255,107,26,.06);
}
.tag--dim {
  color: var(--text-mute);
  border-color: var(--line-strong);
  background: transparent;
}

.hero__title {
  margin: 0 0 28px;
  font-size: clamp(34px, 5.8vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 920px;
  text-wrap: balance;
}

.hero__title .accent {
  color: var(--accent);
  position: relative;
}

.hero__title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 2px;
  background: var(--accent);
  opacity: .3;
}

.hero__lead {
  margin: 0 0 36px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.55;
}

.hero__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 760px;
}

.chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t);
}

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

.chip--accent {
  background: linear-gradient(135deg, rgba(255,107,26,.08), rgba(255,107,26,.02));
  border-color: rgba(255,107,26,.3);
}

.chip__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
}

.chip__value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__num::after {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  margin-top: 10px;
}

.stat__label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---------- Услуги ---------- */
.services {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}

.service:hover {
  border-color: var(--line-strong);
  background: rgba(255,107,26,.03);
  transform: translateX(4px);
}

.service:hover::before { transform: scaleY(1); }

.service__num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.03em;
}

.service__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.service__desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .service {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 18px 18px;
  }
  .service__num { font-size: 24px; }
  .service__title { font-size: 17px; margin-bottom: 4px; }
  .service__desc { font-size: 14px; }
}

/* ---------- Системы ---------- */
.systems {
  list-style: none;
  padding: 0; margin: 0 0 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.system {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--t);
}

.system:hover {
  border-color: var(--teal);
  background: rgba(78,201,176,.04);
  transform: translateY(-2px);
}

.system__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--teal);
}

.brands {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.brands__title {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.brands__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brands__list li {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: all var(--t-fast);
}

.brands__list li:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.brands__note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
  font-style: italic;
}

/* ---------- Экспертиза ---------- */
.expertise {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.expertise__item {
  display: flex;
  gap: 20px;
  padding: 28px 28px;
  background: var(--bg);
  transition: background var(--t);
}

.expertise__item:hover { background: var(--bg-card); }

.expertise__num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  padding-top: 4px;
}

.expertise__item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.expertise__item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- О специалисте + Порядок работ ---------- */
.about__lead {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.about__lead strong {
  color: var(--accent);
  font-weight: 700;
}

.about__body p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 24px;
}

.about__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.dot {
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}

.process__steps {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 28px; bottom: 28px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.process__steps li {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t);
  position: relative;
}

.process__steps li:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.process__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #0a0e12;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.process__steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.process__steps p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Опыт ---------- */
.objects {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.object {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}

.object::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}

.object:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.object:hover::before { transform: scaleY(1); }

.object__count {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 16px;
  letter-spacing: .08em;
}

.object h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.object p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---------- Гарантия ---------- */
.guarantee {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.guarantee__hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: var(--radius-lg);
  color: #0a0e12;
  box-shadow: 0 20px 50px rgba(255,107,26,.25);
  position: relative;
  overflow: hidden;
}

.guarantee__hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 70%);
  border-radius: 50%;
}

.guarantee__big {
  font-family: var(--font-mono);
  font-size: clamp(80px, 10vw, 120px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}

.guarantee__big-label {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.guarantee__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guarantee__list li {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t);
}

.guarantee__list li:hover {
  border-color: var(--line-strong);
}

.guarantee__check {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0a0e12;
  border-radius: 50%;
}

.guarantee__list h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.guarantee__list p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Футер ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.footer__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

.footer__col h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.5;
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: var(--text-mute);
}

.footer__mono {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

/* ---------- Плавающие кнопки (мобильные) ---------- */
.floating {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  display: none;
  gap: 10px;
}

.floating__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-fast);
}

.floating__btn:active { transform: scale(.97); }

.floating__btn--call {
  background: var(--accent);
  color: #0a0e12;
}

.floating__btn--tg {
  background: #229ED9;
  color: #fff;
}

/* Учитываем safe-area для iPhone с вырезом */
@supports (padding: max(0px)) {
  .floating {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
  }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

/* Планшет */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }

  .container--split { gap: 40px; }

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

  .guarantee {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Мобилы */
@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }

  /* Шапка: прячем навигацию, оставляем лого + бургер */
  .header__nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t);
  }

  .header__nav.is-open {
    max-height: 360px;
  }

  .header__nav a {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .header__phone { display: none; }
  .burger { display: flex; }

  /* Hero */
  .hero { padding: 100px 0 120px; }
  .hero__chips { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  /* Услуги */
  .service { padding: 18px 18px; }

  /* О + Процесс */
  .container--split { grid-template-columns: 1fr; gap: 56px; }

  /* Футер */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* Плавающие кнопки — показываем только на мобиле */
  .floating { display: flex; }

  /* Чтобы футер не уезжал под плавающие кнопки */
  body { padding-bottom: 80px; }
}

/* Очень маленькие экраны */
@media (max-width: 380px) {
  .hero__title { font-size: 36px; }
  .section__title { font-size: 26px; }
  .guarantee__hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 12px;
  }
  .guarantee__big { font-size: 72px; }
}

/* Большие экраны */
@media (min-width: 1400px) {
  :root { --gutter: 32px; }
}

/* Снижение движения для пользователей с preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   ПРЕВЬЮ СТАТЬИ (на главной)
   ========================================================= */
.preview {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.preview__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.preview__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--text);
}

.preview__lead {
  margin: 0;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 760px;
}

.preview__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview__list > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}

.preview__list > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.preview__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  padding-top: 4px;
}

.preview__list h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.preview__list p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.preview__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.preview__cta .btn {
  gap: 10px;
}

.preview__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: .04em;
}

@media (max-width: 720px) {
  .preview { padding: 24px 20px; }
  .preview__list > li { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; }
  .preview__num { font-size: 13px; }
  .preview__cta { flex-direction: column-reverse; align-items: stretch; }
  .preview__cta .btn { width: 100%; }
}

/* =========================================================
   ОТДЕЛЬНАЯ СТРАНИЦА СТАТЬИ
   ========================================================= */
.article {
  padding: 112px 0 96px; /* 64px под фиксированную шапку + воздух */
  background: var(--bg);
}

.article__inner {
  max-width: 820px;
}

.article__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: .04em;
  margin-bottom: 28px;
}

.article__crumbs a {
  color: var(--text-dim);
  transition: color var(--t-fast);
}

.article__crumbs a:hover {
  color: var(--accent);
}

.article__crumbs span {
  color: var(--text-mute);
}

.article__head {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .08em;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: rgba(255,107,26,.06);
  margin-bottom: 20px;
}

.article__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: .04em;
}

.article__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  padding: 24px 28px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 40px;
}

.article__body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
}

.article__body h2 {
  margin: 56px 0 20px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--text);
  padding-top: 8px;
}

.article__body h2:first-child {
  margin-top: 0;
}

.article__body h3 {
  margin: 40px 0 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.article__body p {
  margin: 0 0 20px;
}

.article__body ul,
.article__body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article__body li {
  margin-bottom: 12px;
}

.article__body li::marker {
  color: var(--accent);
}

.article__body strong {
  color: var(--text);
  font-weight: 600;
}

.article__body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--bg-card);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
}

.article__body blockquote strong {
  color: var(--accent);
  font-weight: 600;
}

.article__cta {
  margin-top: 64px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255,107,26,.06), rgba(255,107,26,.02));
  border: 1px solid rgba(255,107,26,.3);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article__cta h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.article__cta p {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.article__cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .article { padding: 96px 0 80px; }
  .article__lead { font-size: 16.5px; padding: 20px 22px; }
  .article__body { font-size: 16px; }
  .article__cta { padding: 28px 22px; }
  .article__cta-buttons { flex-direction: column; }
  .article__cta-buttons .btn { width: 100%; }
}

/* =========================================================
   HERO: перечень систем и ссылка на форму
   ========================================================= */
.hero__scope {
  margin: -8px 0 28px;
  max-width: 760px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: .06em;
  line-height: 1.7;
  color: var(--teal);
}

.hero__more {
  flex-basis: 100%;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.hero__more:hover { color: var(--accent); }

/* =========================================================
   ДОПУСКИ (в блоке гарантии)
   ========================================================= */
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cred {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  border: 1px solid rgba(78,201,176,.35);
  border-radius: 4px;
  background: rgba(78,201,176,.06);
}

/* =========================================================
   СТОИМОСТЬ
   ========================================================= */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.pricing__col {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pricing__col h3 {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pricing__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing__col li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.pricing__col li::before {
  content: '';
  position: absolute;
  left: 0; top: .65em;
  width: 8px; height: 2px;
  background: var(--accent);
}

.pricing__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   ВОПРОСЫ И ОТВЕТЫ
   ========================================================= */
.faq {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast);
}

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

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
}

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

.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--t);
}

.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--accent-soft); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* =========================================================
   ЗАЯВКА И КОНТАКТЫ
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: start;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field__req { color: var(--accent); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px; /* 16px — чтобы iOS не увеличивал страницу при фокусе */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

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

.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,26,.18);
}

.field.is-invalid input { border-color: var(--err); }

/* Ловушка для ботов: вне экрана, но не display:none (боты такие поля заполняют) */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

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

.check input {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.check a:hover { color: var(--accent); }
.check.is-invalid { color: var(--err); }

.form .btn:disabled { opacity: .7; cursor: progress; }

.form__status {
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  border: 1px solid;
  border-radius: var(--radius-sm);
}
.form__status[hidden] { display: none; }
.form__status a { color: inherit; font-weight: 600; text-decoration: underline; }

.form__status--ok {
  color: var(--ok);
  border-color: rgba(78,201,176,.4);
  background: rgba(78,201,176,.08);
}

.form__status--err {
  color: var(--err);
  border-color: rgba(255,93,93,.4);
  background: rgba(255,93,93,.08);
}

.contact__side {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contact__side h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  line-height: 1.45;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact__list a {
  width: fit-content;
  font-weight: 600;
  color: var(--text);
}
.contact__list a:hover { color: var(--accent); }

.contact__note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
}

.footer__bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__bottom a:hover { color: var(--accent); }

/* =========================================================
   ГАЛЕРЕЯ (включается, когда будут фото — см. index.html)
   ========================================================= */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery__item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery__cap {
  display: block;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .form,
  .pricing__col,
  .contact__side { padding: 22px 20px; }

  .pricing__cta { flex-direction: column; }
  .pricing__cta .btn { width: 100%; }

  .faq__item summary { padding: 16px 18px; font-size: 16px; }
  .faq__item p { padding: 0 18px 18px; }

  .hero__more { text-align: center; padding: 4px 0; }
}
