:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-strong: #f0f0f0;
  --ink: #151515;
  --muted: #666666;
  --line: #dedede;
  --green: #db1b1b;
  --green-dark: #750f0f;
  --yellow: #db1b1b;
  --red: #db1b1b;
  --shadow: 0 18px 45px rgba(21, 21, 21, 0.16);
  --radius: 8px;
  font-family:
    Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body,
button,
input,
select,
textarea {
  font: 16px/1.5 Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

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

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__logo {
  width: clamp(92px, 16vw, 128px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: #2f2f2f;
  font-size: 15px;
}

.main-nav a:hover,
.footer a:hover {
  color: var(--green);
}

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

.icon-link,
.call-link,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 700;
}

.icon-link {
  padding: 0 14px;
  background: #f3eeee;
  color: var(--green-dark);
}

.messenger-link {
  gap: 8px;
}

.messenger-link img,
.messenger-text-link img,
.contact-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.contact-icon {
  fill: currentColor;
}

.messenger-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.call-link {
  padding: 0 16px;
  background: var(--red);
  color: #fff;
}

.button {
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  text-align: center;
}

.button--primary {
  background: var(--yellow);
  color: #fff;
  box-shadow: 0 12px 26px rgba(219, 27, 27, 0.28);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(24px, 4vw, 54px);
  min-height: calc(100svh - 76px);
  padding: clamp(52px, 7vw, 110px) clamp(18px, 4vw, 56px);
  overflow: hidden;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("/assets/hero-appliances.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.92), rgba(21, 21, 21, 0.74) 47%, rgba(21, 21, 21, 0.42)),
    linear-gradient(0deg, rgba(21, 21, 21, 0.18), rgba(21, 21, 21, 0.18));
}

.hero__content,
.lead-form {
  position: relative;
  z-index: 1;
}

.hero__content {
  align-self: center;
  max-width: 780px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero__lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.hero__checks span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.lead-form {
  align-self: center;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.lead-form h2 {
  margin-bottom: 6px;
  font-size: 28px;
  color: var(--green-dark);
}

.lead-form p {
  color: var(--muted);
}

.lead-form label {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: #333333;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(219, 27, 27, 0.12);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.form-result--success {
  background: #f0fff4;
  color: #14532d;
}

.form-result--error {
  background: #fff1f1;
  color: #7f1d1d;
}

.form-result p {
  margin-bottom: 12px;
}

.section,
.band,
.cta-strip,
.footer {
  padding: clamp(58px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.section__head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section__head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.device-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(28, 45, 34, 0.08);
}

.device-card img {
  height: 210px;
  object-fit: cover;
}

.device-card h3,
.device-card p,
.device-card a {
  margin-right: 18px;
  margin-left: 18px;
}

.device-card h3 {
  margin-top: 18px;
}

.device-card p {
  min-height: 78px;
  color: var(--muted);
}

.device-card a {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--green);
  font-weight: 800;
}

.band {
  background: var(--ink);
  color: #fff;
}

.band .section__head p:not(.eyebrow),
.band .steps span,
.band .reviews p {
  color: rgba(255, 255, 255, 0.74);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #201804;
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 8px;
  font-size: 20px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.benefits article {
  border-left: 4px solid var(--green);
  padding: 18px 18px 16px;
  background: var(--surface);
  border-radius: var(--radius);
}

.benefits p {
  margin-bottom: 0;
  color: var(--muted);
}

.seo-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-grid article,
.faq-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.seo-grid p,
.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.area-list li {
  padding: 8px 10px;
  border: 1px solid rgba(219, 27, 27, 0.18);
  border-radius: var(--radius);
  background: #fff5f5;
  color: var(--green-dark);
  font-weight: 800;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(28, 45, 34, 0.08);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.map-frame__action {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.map-frame__action a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.branch-list {
  display: grid;
  max-height: 420px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.branch-list__head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px;
  border: 1px solid rgba(219, 27, 27, 0.18);
  border-radius: var(--radius);
  background: #fff5f5;
}

.branch-list__head h3 {
  margin-bottom: 4px;
  color: var(--green-dark);
}

.branch-list__head p {
  margin-bottom: 0;
}

.branch-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.branch-list h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.branch-list p {
  margin-bottom: 8px;
  color: var(--muted);
}

.branch-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.branch-list a {
  color: var(--green);
  font-weight: 800;
}

.price-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-table > div {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1.1fr 0.75fr;
}

.price-table > div:first-child {
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
}

.price-table span {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.price-table > div:not(:first-child) span + span {
  border-left: 1px solid var(--line);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reviews article {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.reviews strong {
  color: #fff;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--green);
  color: #fff;
}

.cta-strip h2 {
  margin-bottom: 0;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
  text-align: right;
}

.footer address a:first-child {
  font-size: 24px;
  font-weight: 900;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-contact__btn {
  display: grid;
  width: 58px;
  height: 58px;
  min-height: 58px;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 12px 28px rgba(21, 21, 21, 0.24);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.floating-contact__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(21, 21, 21, 0.3);
}

.floating-contact__btn--phone {
  background: var(--red);
}

.floating-contact__btn--telegram {
  background: #229ed9;
}

.floating-contact__btn--max {
  background: #111111;
}

.floating-contact .contact-icon {
  width: 30px;
  height: 30px;
}

.floating-contact .contact-icon--max {
  width: 34px;
  height: 34px;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .lead-form {
    max-width: 620px;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .icon-link {
    flex: 1;
  }

  .header-actions .call-link {
    flex: 1 0 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero__overlay {
    background: rgba(17, 34, 25, 0.82);
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .lead-form {
    padding: 18px;
  }

  .device-grid,
  .steps,
  .two-column,
  .benefits,
  .seo-grid,
  .faq-list,
  .map-layout,
  .reviews,
  .footer {
    grid-template-columns: 1fr;
  }

  .branch-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .steps li {
    min-height: auto;
  }

  .price-table {
    border: 0;
    background: transparent;
  }

  .price-table > div {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
  }

  .price-table > div:first-child {
    display: none;
  }

  .price-table span {
    border-bottom: 1px solid var(--line);
  }

  .price-table span::before {
    display: block;
    margin-bottom: 3px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .price-table div span:nth-child(1)::before {
    content: "Техника";
  }

  .price-table div span:nth-child(2)::before {
    content: "Рабочая";
  }

  .price-table div span:nth-child(3)::before {
    content: "Требования";
  }

  .price-table div span:nth-child(4)::before {
    content: "Выезд";
  }

  .cta-strip {
    display: block;
  }

  .cta-strip .hero__actions {
    margin-top: 20px;
  }

  .footer address {
    text-align: left;
  }

  .floating-contact {
    right: 50%;
    bottom: 10px;
    left: auto;
    flex-direction: row;
    transform: translateX(50%);
    opacity: 0;
    pointer-events: none;
  }

  .floating-contact.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .floating-contact__btn {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .floating-contact .contact-icon {
    width: 25px;
    height: 25px;
  }

  .floating-contact .contact-icon--max {
    width: 29px;
    height: 29px;
  }
}
