/* ===== Переменные (огненно-медная гамма с визитки) ===== */
:root {
  --bg: #150f0a;
  --bg-2: #1d150e;
  --panel: #241a12;
  --panel-2: #2c2016;
  --line: #3a2c1f;
  --copper: #d99a4e;
  --copper-light: #e9b878;
  --orange: #ff8a23;
  --blue: #3a9bd6;
  --ink: #f4ece2;
  --muted: #b6a594;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #ff9a3d 0%, #ff7a1a 55%, #e85d12 100%);
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 22px; border: none; border-radius: 12px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.30);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--ghost {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(217,154,78,.55);
}
.btn--ghost:hover { background: rgba(217,154,78,.12); filter: none; }
.btn--light {
  background: linear-gradient(135deg, #f4ece2, #e9d9c4); color: #5a3a18;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}

/* ===== Логотип ===== */
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.logo__mark { width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; display: block; }
.logo__text { line-height: 1.05; letter-spacing: .3px; }
.logo__text b { display: block; color: var(--copper-light); font-size: .72em; letter-spacing: 3px; font-weight: 700; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 15, 10, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--copper-light); }
.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 800; font-size: 17px; white-space: nowrap; color: var(--ink); }
.header__phone:hover { color: var(--copper-light); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 3px; background: var(--copper-light); border-radius: 3px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 78% -5%, rgba(255,122,26,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(58,155,214,.10), transparent 60%),
    linear-gradient(180deg, #1d130c 0%, #150f0a 100%);
  padding: 70px 0 80px;
}
.hero__embers {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,170,80,.7), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,140,60,.6), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,200,120,.6), transparent),
    radial-gradient(1.5px 1.5px at 35% 80%, rgba(255,150,70,.5), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,180,90,.6), transparent);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-block; background: rgba(217,154,78,.14); color: var(--copper-light);
  font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(217,154,78,.3);
}
.hero__title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; font-weight: 800; letter-spacing: -0.5px; }
.hero__title span { color: var(--copper-light); }
.hero__lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero__features { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
.hero__features li { position: relative; padding-left: 32px; font-weight: 600; }
.hero__features li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--orange), #e85d12); color: #fff; font-size: 13px;
  border-radius: 50%; display: grid; place-items: center;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Форма-карточка ===== */
.lead-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}
.lead-card__title { font-size: 23px; font-weight: 800; }
.lead-card__sub { color: var(--muted); margin: 6px 0 20px; font-size: 15px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 15px; background: #1a130d; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field select option { background: #1a130d; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #7d6c5b; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(217,154,78,.18);
}
.field input.invalid { border-color: #e2553b; }
.lead-card__policy { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ===== Полоса доверия ===== */
.stats { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 32px 20px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--copper-light); }
.stat span { color: var(--muted); font-size: 14px; }

/* ===== О мастере ===== */
.about__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about__photo { position: relative; }
.about__photo img {
  width: 100%; max-width: 420px; border-radius: var(--radius); display: block;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about__badge {
  position: absolute; right: 18px; bottom: 18px; text-align: center;
  background: linear-gradient(135deg, var(--orange), #e85d12); color: #fff;
  padding: 12px 18px; border-radius: 14px; box-shadow: 0 10px 24px rgba(255,122,26,.4);
}
.about__badge b { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.about__badge span { font-size: 12px; opacity: .95; }
.about__eyebrow { color: var(--copper-light); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.about__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 8px 0 4px; }
.about__role { color: var(--copper-light); font-weight: 600; margin-bottom: 16px; }
.about__text > p { color: var(--muted); font-size: 17px; }
.about__list { list-style: none; margin: 20px 0 26px; display: grid; gap: 10px; }
.about__list li { position: relative; padding-left: 32px; font-weight: 600; }
.about__list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--orange), #e85d12); color: #fff; font-size: 13px;
  border-radius: 50%; display: grid; place-items: center;
}
.about__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Секции ===== */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.5px; }
.section__subtitle { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* ===== Карточки ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(217,154,78,.45); }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px;
  background: rgba(217,154,78,.12); border: 1px solid rgba(217,154,78,.2);
  border-radius: 14px; margin-bottom: 16px;
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card__price { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--copper-light); }
.cards--why { grid-template-columns: repeat(4, 1fr); }

/* ===== Поломки ===== */
.problems { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problems li {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 12px; padding: 18px 18px;
}
.problems b { display: block; font-size: 16px; margin-bottom: 4px; }
.problems span { color: var(--muted); font-size: 14px; }

/* ===== Карусель брендов ===== */
.logos { padding: 54px 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; color: var(--muted); font-size: 16px; margin-bottom: 30px; }
.logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logos__track {
  display: flex; gap: 22px; width: max-content;
  animation: scroll-logos 32s linear infinite;
}
.logos__viewport:hover .logos__track { animation-play-state: paused; }
.logos__item {
  flex: 0 0 auto; width: 200px; height: 96px;
  background: #fff; border-radius: 14px; padding: 18px 26px;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.logos__item img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 11px)); }
}
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ===== Этапы ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
}
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--orange), #e85d12); color: #fff;
  font-weight: 800; font-size: 19px; border-radius: 12px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Прайс ===== */
.price-table {
  max-width: 780px; margin: 0 auto; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; background: var(--panel);
}
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 16px; }
.price-row:last-child { border-bottom: none; }
.price-row span:last-child { font-weight: 800; color: var(--copper-light); white-space: nowrap; }
.price-row--head { background: linear-gradient(135deg, #3a2718, #2c2016); color: var(--ink); font-weight: 700; }
.price-row--head span:last-child { color: var(--ink); }
.price-note { text-align: center; margin-top: 28px; }

/* ===== CTA ===== */
.cta {
  background:
    radial-gradient(700px 300px at 80% -20%, rgba(255,122,26,.25), transparent 60%),
    linear-gradient(135deg, #3a2616 0%, #241811 100%);
  color: var(--ink); padding: 64px 0; border-top: 1px solid var(--line);
}
.cta__head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.cta__head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta__head p { margin-top: 10px; color: var(--muted); font-size: 17px; }

.contact-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 22px; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s, background .15s;
}
.contact-tile:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); box-shadow: var(--shadow); }
.contact-tile__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; margin-bottom: 10px; color: #fff;
}
.contact-tile__icon svg { width: 24px; height: 24px; }
.contact-tile__name { font-weight: 800; font-size: 18px; }
.contact-tile__val { color: var(--muted); font-size: 14px; }

.contact-tile--phone .contact-tile__icon { background: linear-gradient(135deg, var(--orange), #e85d12); }
.contact-tile--wa .contact-tile__icon { background: #25d366; }
.contact-tile--tg .contact-tile__icon { background: #29a9eb; }
.contact-tile--max .contact-tile__icon { background: linear-gradient(135deg, #7a5cff, #2b7fff); }
.contact-tile--phone:hover { border-color: var(--orange); }
.contact-tile--wa:hover { border-color: #25d366; }
.contact-tile--tg:hover { border-color: #29a9eb; }
.contact-tile--max:hover { border-color: #7a5cff; }

.cta__note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 15px; }

/* ===== Футер ===== */
.footer { background: #110c08; color: var(--muted); padding: 44px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand .logo { margin-bottom: 8px; }
.footer__brand p { max-width: 360px; font-size: 14px; }
.footer__nav { display: flex; gap: 22px; font-weight: 600; }
.footer__nav a:hover { color: var(--copper-light); }
.footer__copy {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 20px; font-size: 13px; width: 100%; padding-top: 18px; border-top: 1px solid var(--line);
}
.footer__dev {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); opacity: .8; transition: color .15s ease, opacity .15s ease;
}
.footer__dev:hover { color: var(--copper-light); opacity: 1; }
.footer__dev-icon { width: 28px; height: 28px; object-fit: contain; display: block; flex-shrink: 0; }
.footer__dev b { font-weight: 800; }

/* ===== Плавающая кнопка ===== */
.fab {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--orange), #e85d12); border-radius: 50%;
  display: none; place-items: center; font-size: 24px;
  box-shadow: 0 10px 24px rgba(255,122,26,.5); z-index: 40; animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 10px 24px rgba(255,122,26,.5), 0 0 0 0 rgba(255,122,26,.45); }
  70% { box-shadow: 0 10px 24px rgba(255,122,26,.5), 0 0 0 16px rgba(255,122,26,0); }
  100% { box-shadow: 0 10px 24px rgba(255,122,26,.5), 0 0 0 0 rgba(255,122,26,0); }
}

/* ===== Тост ===== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(160px);
  display: flex; align-items: center; gap: 16px;
  width: calc(100% - 32px); max-width: 460px;
  background: linear-gradient(135deg, #3a2616, #241811); color: var(--ink);
  border: 1.5px solid var(--copper); padding: 22px 26px; border-radius: 16px;
  font-weight: 700; font-size: 19px; line-height: 1.35;
  box-shadow: var(--shadow); z-index: 60; opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast__icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #2fbf5a, #1d9e45); color: #fff;
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
}
.toast__text { flex: 1; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__inner { grid-template-columns: 1fr; gap: 30px; }
  .about__photo { max-width: 360px; margin: 0 auto; }
  .cards, .cards--why, .steps { grid-template-columns: repeat(2, 1fr); }
  .problems { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header__contacts .header__phone { display: none; }
  .burger { display: flex; margin-left: auto; }
  .fab { display: grid; }
}
@media (max-width: 540px) {
  .cards, .cards--why, .steps, .problems { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 54px; }
  .section { padding: 56px 0; }
  .hero__actions .btn { flex: 1; }
  .header__contacts .btn { display: none; }
  .logos__item { width: 160px; height: 80px; padding: 14px 20px; }
  .footer__copy { flex-direction: column; align-items: flex-start; gap: 14px; }
}
