:root {
  --bg: #070b13;
  --panel: #111827;
  --panel-2: #0d1422;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7fbff;
  --muted: #8f9bb0;
  --blue: #2b80fb;
  --blue-2: #53a0ff;
  --yellow: #ffc400;
  --green: #24d366;
  --radius: 8px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);

  /* Review card sizing controls */
  --review-card-min-height: 300px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%; /* ← добавь эту строку */
  text-size-adjust: 100%;         /* ← и эту */
}

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

.mobile-break {
  display: none;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 6vw, 112px);
  background: rgba(7, 11, 19, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.top-actions,
.hero-actions,
.footer-socials,
.card-title {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 68px;
  color: #c9d3e5;
  font-size: 14px;
}

.nav a:hover,
.phone-link:hover {
  color: var(--blue-2);
}

.top-actions {
  gap: 10px;
}

.top-social {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  transition: transform 0.18s ease;
}

.top-social:hover {
  transform: translateY(-2px);
}

.top-social img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.phone-link {
  color: var(--blue-2);
  font-size: 14px;
  font-weight: 800;
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.social:hover {
  transform: translateY(-2px);
}

.social.whatsapp {
  color: #37f07a;
  background: rgba(36, 211, 102, 0.15);
}

.social.whatsapp:hover {
  background: rgba(36, 211, 102, 0.26);
}

.social.telegram {
  color: #24a8ef;
  background: rgba(36, 168, 239, 0.15);
}

.social.telegram:hover {
  background: rgba(36, 168, 239, 0.26);
}

.social.max {
  background: rgba(241, 102, 40, 0.15);
}

.social.max:hover {
  background: rgba(241, 102, 40, 0.25);
}

.social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.social.max img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.social.whatsapp img,
.footer-social.whatsapp img {
  width: 24px;
  height: 24px;
  display: block;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 19, 0.92) 0%, rgba(7, 11, 19, 0.66) 32%, rgba(7, 11, 19, 0.12) 56%, rgba(7, 11, 19, 0) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 19, 0) 28%),
    url("assets/bg.jpeg") 70% 20% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, calc(100% - 36px));
  margin-left: clamp(18px, 14vw, 250px);
  padding-top: 62px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9ec8ff;
  background: rgba(43, 128, 251, 0.16);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px var(--blue);
}

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

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: clamp(42px, 5.7vw, 76px);
  line-height: 0.9;
  letter-spacing: 0;
}

h1 span {
  color: var(--blue-2);
}

.place {
  display: inline-block;
}

.lead {
  max-width: 700px;
  color: #cad5e7;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--blue);
  box-shadow: 0 12px 32px rgba(43, 128, 251, 0.34);
}

.button.primary:hover {
  background: #4391ff;
  box-shadow: 0 16px 42px rgba(43, 128, 251, 0.48);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.section {
  padding: 80px clamp(18px, 6vw, 112px);
  border-top: 1px solid var(--line);
}

/* Stats — ключевые цифры мастера */
.stats {
  padding: 60px clamp(18px, 6vw, 112px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  color: var(--blue-2);
  letter-spacing: -0.01em;
}

.stat-value .star {
  color: var(--yellow);
  margin-right: 2px;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.section-head {
  text-align: center;
  margin: 0 auto 42px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.35;
}

.reviews-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1320px, 100%);
  margin: 0 auto;
  overflow: visible;
}

.reviews-viewport {
  flex: 1;
  overflow: hidden;
  padding: 64px 0 116px;
  margin: -64px 0 -116px;
  position: relative;
}

/* Градиент по бокам */
.reviews-viewport::before,
.reviews-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.reviews-viewport::before {
  left: 0;
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    transparent 100%
  );
}

.reviews-viewport::after {
  right: 0;
  background: linear-gradient(
    to left,
    var(--bg) 0%,
    transparent 100%
  );
}

.reviews-slider {
  display: flex;
  flex-direction: row;
  gap: 18px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  height: 350px;
  width: 380px; /* фиксированная ширина карточки */
  flex: 0 0 380px;
  padding: 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(12, 18, 31, 0.88);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  color: var(--text);
  transition: transform 0.45s ease, opacity 0.45s ease, border-color 0.28s ease;
  will-change: transform, opacity;
  min-width: 0;
  overflow: hidden;
}

.review-card--main {
  background: linear-gradient(180deg, rgba(32, 42, 66, 0.95), rgba(12, 18, 31, 0.98));
  border-color: rgba(83, 160, 255, 0.28);
  box-shadow: 0 24px 78px rgba(43, 128, 251, 0.2);
  opacity: 1;
}

.review-card--side .review-text {
  font-size: 18px;
  line-height: 1.4;
}

.review-card--side .review-author {
  font-size: 0.95rem;
}

.review-card--side .review-stars img {
  width: 16px;
  height: 16px;
}

.review-stars {
  margin-bottom: 18px;
  display: flex;
  gap: 4px;
}

.review-stars img {
  width: 16px;
  height: 16px;
  display: block;
}

.review-text {
  margin: 0;
  color: #d7def1;
  font-size: 18px;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
}

.review-author {
  font-weight: 700;
  color: #f7fbff;
  margin-bottom: 8px;
}

.reviews-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(43, 128, 251, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  padding: 0;
  z-index: 10;
}

.reviews-arrow-prev {
  margin-right: 12px;
}

.reviews-arrow-next {
  margin-left: 12px;
}

.reviews-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(43, 128, 251, 0.45);
  background: #1f78ff;
}

.reviews-arrow svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reviews-arrow svg path {
  fill: none;
  stroke: currentColor;
}

.reviews-dots {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.review-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-dot.active,
.review-dot:hover {
  background: var(--blue);
  transform: scale(1.15);
}

.services-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.service-card,
.contact-card,
.trust-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 43, 0.98), rgba(13, 20, 34, 0.98));
  box-shadow: var(--shadow);
}

.service-card {
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 160, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(43, 128, 251, 0.22), 0 22px 70px rgba(43, 128, 251, 0.22);
}

.service-card.electric:hover {
  border-color: rgba(255, 196, 0, 0.68);
  box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.22), 0 22px 70px rgba(255, 196, 0, 0.18);
}

.card-title {
  gap: 12px;
  margin-bottom: 18px;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: var(--blue-2);
  background: rgba(43, 128, 251, 0.16);
}

.electric .icon-badge {
  color: var(--yellow);
  background: rgba(255, 196, 0, 0.15);
}

.icon-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.card-title h3 {
  margin: 0;
  font-size: 22px;
}

.price-list {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: #d7dfec;
}

.price-list li::before {
  content: "✓";
  color: var(--blue-2);
  font-weight: 900;
}

.electric .price-list li::before {
  color: var(--yellow);
}

.price-list span {
  flex: 1;
}

.price-list b {
  color: var(--blue-2);
  white-space: nowrap;
}

.electric .price-list b {
  color: var(--yellow);
}

.price-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.works {
  background: #060a11;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.gallery-arrow {
  display: none;
}

.work-photo {
  display: block;
  aspect-ratio: 1.44;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #171b25;
  cursor: zoom-in;
}

.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.work-photo:hover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(380px, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  min-height: 0;
  padding: clamp(56px, 9vw, 86px) clamp(18px, 6vw, 112px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.about::before {
  display: none;
}

.about-photo {
  position: relative;
  z-index: 1;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -1px;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.about-photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
  width: 70%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(68, 148, 255, 0.95) 0%, rgba(68, 148, 255, 0.6) 25%, rgba(68, 148, 255, 0) 65%);
  filter: blur(40px);
  opacity: 0.85;
  z-index: -1;
  pointer-events: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  position: relative;
  z-index: 1;
}

.about-photo.about-photo--mobile {
  display: none;
}

.about-content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-bottom: clamp(56px, 9vw, 86px);
  display: flex;
  flex-direction: column;
}

.about-content h2 {
  margin: 0 0 8px;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.about-content > p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.4;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.trust-grid article {
  min-height: 0;
  padding: 18px;
}

.trust-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.trust-title span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--blue-2);
  background: rgba(43, 128, 251, 0.16);
}

.trust-title svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.trust-grid h3 {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.12;
}

.contact-card h3 {
  margin-bottom: 10px;
}

.trust-grid p,
.contact-card p,
.footer p {
  color: var(--muted);
  line-height: 1.3;
}

.trust-grid p,
.trust-grid li {
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.3;
}

@media (min-width: 921px) and (max-width: 1280px) {
  .about {
    grid-template-columns: minmax(420px, 1.15fr) minmax(360px, 1fr);
    padding-left: clamp(18px, 4vw, 64px);
    padding-top: 60px;
  }

  .about-content {
    padding-bottom: 60px;
  }

  .about-photo {
    margin-left: calc(-1 * (clamp(18px, 6vw, 112px) - clamp(18px, 4vw, 64px)) - 18px);
    justify-content: flex-start;
    padding-left: 18px;
  }

  .trust-grid {
    grid-auto-rows: 1fr;
    gap: 12px;
  }

  .trust-grid article {
    padding: 14px;
  }

  .trust-title {
    gap: 10px;
    margin-bottom: 10px;
  }

  .trust-title span {
    width: 40px;
    height: 40px;
  }

  .trust-title svg {
    width: 20px;
    height: 20px;
  }

  .trust-grid h3 {
    font-size: 14px;
  }

  .trust-grid p,
  .trust-grid li {
    font-size: 13px;
    line-height: 1.3;
  }

  .trust-grid ul {
    gap: 8px;
  }

  .trust-grid li {
    padding-left: 22px;
  }

  .about-content h2 {
    font-size: clamp(24px, 2.4vw, 28px);
  }

  .about-content > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.4;
  }
}

.trust-grid ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-grid li {
  position: relative;
  padding-left: 34px;
}

.trust-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-2);
  font-weight: 900;
}

.contacts-grid {
  width: min(780px, 100%);
}

.contact-card {
  padding: 26px;
}

.large-phone {
  display: block;
  margin: 8px 0 8px;
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  transition: color 0.18s ease;
}

.large-phone:hover {
  color: var(--blue-2);
}

.contact-socials {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px 0;
  list-style: none;
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 10px;
  transition: transform 0.18s ease;
}

.contact-social:hover {
  transform: translateY(-2px);
}

.social-img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.contact-schedule {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .large-phone {
    font-size: 22px;
    margin: 4px 0;
  }

  .social-img {
    width: 44px;
    height: 44px;
  }

  .contact-socials {
    gap: 14px;
    margin: 0 0 10px;
    padding: 10px 0;
  }

  .contact-schedule {
    font-size: 11px;
  }

  .contact-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .contact-card p {
    font-size: 13px;
    line-height: 1.4;
  }
}

input {
  width: 100%;
  height: 48px;
  margin: 8px 0 14px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  background: #050812;
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(43, 128, 251, 0.55);
  border-color: transparent;
}

.form-status {
  display: block;
  min-height: 22px;
  margin-top: 12px;
  color: #8ee7a7;
  font-weight: 800;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.consent input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.consent-box {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: #050812;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.consent-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.consent input[type="checkbox"]:checked + .consent-box {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 128, 251, 0.18);
}

.consent input[type="checkbox"]:checked + .consent-box svg {
  opacity: 1;
  transform: scale(1);
}

.consent input[type="checkbox"]:focus-visible + .consent-box {
  outline: 2px solid rgba(43, 128, 251, 0.55);
  outline-offset: 2px;
}

.consent-text {
  flex: 1;
}

.consent-link {
  color: var(--blue-2);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(83, 160, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.consent-link:hover {
  color: #82bfff;
  text-decoration-color: var(--blue-2);
}

.callback-form .button[type="submit"][disabled] {
  background: rgba(43, 128, 251, 0.28);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.callback-form .button[type="submit"][disabled]:hover {
  background: rgba(43, 128, 251, 0.28);
  box-shadow: none;
  transform: none;
}

.footer {
  padding: 40px 6vw;
  border-top: 1px solid var(--line);
  background: #080c14;
}

.footer a {
  font-weight: 900;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  width: min(780px, 100%);
  margin: 0 auto;
}

.footer-contacts {
  justify-self: start;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.footer-brand .brand span {
  font-size: clamp(16px, 1.2vw, 18px);
}

.footer-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.footer h3 {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.1;
  text-transform: uppercase;
}

.footer p {
  margin-bottom: 18px;
  font-size: clamp(12px, 1.1vw, 12px);
}

.footer-phone {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.05;
  transition: color 0.18s ease;
}

.footer-phone:hover {
  color: var(--blue-2);
}

.footer-call {
  width: min(180px, 100%);
  min-height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 14px;
}

.footer-call svg {
  width: 22px;
  height: 22px;
}

.footer-socials {
  gap: 8px;
}

.footer-social {
  width: 36px;
  height: 36px;
}

.footer-social svg,
.footer-social.max img {
  width: 18px;
  height: 18px;
}

.footer-callback input {
  height: 48px;
  margin-bottom: 12px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: clamp(13px, 1.4vw, 16px);
}

.footer-callback .button {
  min-height: 48px;
  border-radius: 12px;
  font-size: clamp(13px, 1.4vw, 16px);
}

.footer-callback .button svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin: 20px auto 0;
  padding: 20px clamp(18px, 6vw, 112px) 0;
  width: min(780px, 100%);
  border-top: 1px solid var(--line);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom > * {
  flex: 0 0 auto;
}

.footer-bottom .dot {
  color: rgba(143, 155, 176, 0.4);
}

.footer-bottom a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(143, 155, 176, 0.4);
  text-underline-offset: 3px;
  transition: color 0.18s ease;
  white-space: nowrap;
}

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

.footer-bottom > * {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.float-call {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 38px rgba(43, 128, 251, 0.48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-call.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-call svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  position: relative;
  z-index: 2;
}

.float-call::before,
.float-call::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: 0;
  pointer-events: none;
}

.float-call.is-visible::before,
.float-call.is-visible::after {
  animation: float-call-ring 2s ease-out infinite;
}

.float-call.is-visible::after {
  animation-delay: 1s;
}

.float-call.is-visible svg {
  animation: float-call-shake 2s ease-in-out infinite;
}

@keyframes float-call-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes float-call-shake {
  0%, 60%, 100% {
    transform: rotate(0deg);
  }
  65% {
    transform: rotate(-14deg);
  }
  70% {
    transform: rotate(14deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  80% {
    transform: rotate(10deg);
  }
  85% {
    transform: rotate(-6deg);
  }
  90% {
    transform: rotate(6deg);
  }
  95% {
    transform: rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-call.is-visible svg,
  .float-call.is-visible::before,
  .float-call.is-visible::after {
    animation: none;
  }
}

.lightbox {
  width: min(1120px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 41;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, transform 0.18s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.06);
}

.lightbox-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-prev {
  left: max(18px, calc(50vw - 560px - 36px));
}

.lightbox-next {
  right: max(18px, calc(50vw - 560px - 36px));
}

.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 41;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
}

.close-lightbox {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.popup {
  width: min(640px, calc(100vw - 28px));
  max-height: 86vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 43, 0.98), rgba(13, 20, 34, 0.98));
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.popup::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.popup-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  padding: 28px clamp(20px, 4vw, 32px) 24px;
  gap: 14px;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.popup-close:hover {
  background: rgba(43, 128, 251, 0.22);
  color: var(--blue-2);
}

.popup-title {
  margin: 0;
  padding-right: 44px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.15;
}

.popup-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  color: #cad5e7;
  font-size: 15px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 155, 176, 0.3) transparent;
}

.popup-content h3 {
  margin: 18px 0 8px;
  font-size: 17px;
  color: var(--text);
}

.popup-content p {
  margin: 0 0 12px;
  color: var(--muted);
}

.popup-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
}

.popup-content li {
  margin-bottom: 6px;
}

.popup-content::-webkit-scrollbar {
  width: 6px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: rgba(143, 155, 176, 0.3);
  border-radius: 4px;
}

.popup-meta {
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.popup-intro {
  background: rgba(43, 128, 251, 0.1);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 0 0 18px;
  color: #cad5e7;
  font-size: 14px;
  line-height: 1.55;
}

.popup-content section {
  margin-bottom: 22px;
}

.popup-content strong {
  color: var(--text);
  font-weight: 700;
}

.popup-contact {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 8px 0 4px;
}

.popup-contact p {
  margin: 0 0 6px;
  color: #cad5e7;
  font-size: 14px;
  line-height: 1.5;
}

.popup-contact p:last-child {
  margin-bottom: 0;
}

.popup-content a {
  color: var(--blue-2);
  text-decoration: none;
  transition: color 0.18s ease;
}

.popup-content a:hover {
  color: #82bfff;
  text-decoration: underline;
}

.popup-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(143, 155, 176, 0.7);
}


@media (max-width: 920px) {
  .topbar {
    padding: 12px 18px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 700px;
    align-items: end;
  }

  .hero-bg {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 11, 19, 0.44) 30%, rgba(7, 11, 19, 0.1) 50%),
      url("assets/bg.jpeg") 72% bottom / cover no-repeat;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 18px 46px;
    padding-top: 86px;
  }

  .hero .lead {
    font-size: 14px;
    line-height: 1.4;
  }

  .h1,
  h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 0.94;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

  .about {
    min-height: 0;
    padding-top: 54px;
  }

  .about-content {
    padding-bottom: 0;
  }

  .trust-grid {
    margin-top: 32px;
  }

  .trust-grid article {
    min-height: 0;
  }

  .footer-main {
    gap: 42px;
  }

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

  .about-photo {
    display: none;
  }

  .about-photo.about-photo--mobile {
    display: block;
    margin: 28px auto 0;
    width: min(100%, 520px);
  }

  .about-photo.about-photo--mobile img {
    width: 100%;
    height: auto;
    max-height: 360px;
  }

  .about-content {
    text-align: center;
    align-items: stretch;
  }

  .about-content h2 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .about-content > p:not(.eyebrow) {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
  }

  .trust-grid {
    margin-top: 0;
  }

  .trust-grid,
  .trust-grid article {
    text-align: left;
    width: 100%;
  }

}


@media (max-width: 820px) {
   .reviews-wrap {
    padding: 0 18px;
  }

  .reviews-viewport {
    overflow: hidden;
    padding: 64px 0 116px;
    margin: -64px 0 -116px;
  }

  .reviews-viewport::before,
  .reviews-viewport::after {
    width: 60px;
  }

  .reviews-slider {
    gap: 14px;
  }

   .review-card {
    flex: 0 0 calc(100% - 100px);
    margin: 0 50px;
    height: 300px;        /* фиксированная высота */
    padding: 22px 22px;
  }

  .review-card .review-text,
  .review-card--side .review-text {
    font-size: clamp(12px, 2.4vw, 16px);
    line-height: 1.4;
  }

  .review-card .review-author {
    font-size: clamp(13px, 2vw, 18px);
  }

  .review-card--main,
  .review-card {
    transform: none;
  }

 .reviews-arrow {
    width: 42px;              /* меньше стрелки */
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .reviews-arrow svg {
    width: 26px;
    height: 26px;
  }

  .reviews-arrow-prev {
    margin-right: 20px;       /* больше отступ */
  }

  .reviews-arrow-next {
    margin-left: 20px;        /* больше отступ */
  }

  .reviews-dots {
    margin-top: 14px;
  }

}

@media (max-width: 620px) {
  .review-card {
    flex: 0 0 calc(100% - 48px);
    margin: 0 24px;
    min-height: 260px;
    height: auto;
  }

  .reviews-viewport::before,
  .reviews-viewport::after {
    width: 40px;
  }

  .reviews-arrow {
    width: 36px;              /* меньше стрелки */
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .reviews-arrow svg {
    width: 22px;
    height: 22px;
  }

  .reviews-arrow-prev {
    margin-right: 20px;       /* больше отступ */
  }

  .reviews-arrow-next {
    margin-left: 20px;        /* больше отступ */
  }

}

@media (max-width: 480px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contact-card {
    width: 100%;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
    gap: 0;
  }

  .footer-bottom > * {
    flex: 0 0 auto;
  }

  .footer-bottom a {
    font-size: 12px;
  }

  .footer-bottom .dot,
  .footer-bottom span {
    font-size: 12px;
    color: rgba(143, 155, 176, 0.7);
    margin: 0 6px;
  }

  .top-actions .phone-link {
    font-size: 12px;
    white-space: nowrap;
  }

  .brand span {
    font-size: 13px;
  }

  .top-social {
    width: 22px;
    height: 22px;
  }

  .hero {
    min-height: 690px;
  }

  .hero .eyebrow {
    display: none;
  }

  .lead {
    font-size: 15px;
    line-height: 1.45;
  }

  .h1,
  h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 0.94;
  }

  .desktop-break {
    display: none;
  }

  .mobile-break {
    display: inline;
  }

  h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 0.94;
  }

  .place {
    display: inline;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 62px 16px;
  }

  .stats {
    padding: 44px 16px;
  }

  .stats-grid {
    max-width: 420px;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
  }

  .stat-value {
    font-size: 30px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  h2 {
    margin-bottom: 8px;
  }

  .service-card,
  .contact-card {
    padding: 18px;
  }

  .price-list li {
    align-items: flex-start;
  }

  .price-list b {
    font-size: 14px;
  }

  .gallery,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wrapper {
    position: relative;
  }

  .gallery {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    width: auto;
    margin: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 0;
    scroll-padding-inline-start: 18px;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .work-photo {
    flex: 0 0 calc(100vw - 36px);
    max-width: 360px;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
  }

  .reviews-wrap {
  padding: 0 8px;
  }

  .reviews-slider {
    gap: 12px;
  }

 .review-card {
    flex: 0 0 calc(100% - 32px);
    margin: 0 16px;
    min-height: auto;
    height: 250px;        /* фиксированная высота */
    padding: 16px 16px;
    transform: none;
  }

  .reviews-viewport::before,
  .reviews-viewport::after {
    width: 24px;
    top: 64px;      /* сдвигаем вниз, чтобы не перекрывать подзаголовок */
    bottom: 116px;  /* и снизу тоже убираем лишнее */
  }

  .review-card--main {
    transform: none;
  }

  .review-text {
    font-size: (12px, 3.4vw, 14px);  /* меньше текст */
    overflow: hidden;
  }

  .review-card--side .review-text{
    font-size: (12px, 3.4vw, 14px);  /* меньше текст */
  }

  .review-author {
    font-size: 0.88rem;
    margin: 8px 0 0;
  }

  .review-stars img {
    width: 14px;
    height: 14px;
  }
  .review-card--side .review-stars img{
    width: 14px;
    height: 14px;
  }
  .review-stars{
    margin-bottom: 2px;
  }

  .reviews-arrow {
    width: 30px;              /* меньше стрелки */
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }

  .reviews-arrow svg {
    width: 16px;
    height: 16px;
  }

  .reviews-arrow-prev {
    margin-right: 12px;       /* больше отступ */
  }

  .reviews-arrow-next {
    margin-left: 12px;        /* больше отступ */
  }

  .reviews-dots {
    margin-top: 16px;
  }

  .gallery-arrow {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
  }

  .gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .gallery-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .gallery-arrow-prev {
    left: 6px;
  }

  .gallery-arrow-next {
    right: 6px;
  }

  .footer {
    padding: 36px 18px 28px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .footer-contacts,
  .footer-brand {
    align-items: center;
    justify-self: center;
    text-align: center;
  }

  .footer-brand .brand {
    justify-content: center;
  }

  .footer-brand .brand img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .footer-brand .brand span {
    font-size: 15px;
  }

  .footer p {
    font-size: 12px;
  }

  .footer-phone {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .footer-call,
  .footer-callback .button,
  .footer-callback input {
    min-height: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 13px;
  }

  .footer-social {
    width: 36px;
    height: 36px;
  }

  .footer-social svg,
  .footer-social.max img {
    width: 20px;
    height: 20px;
  }

  .footer h3 {
    font-size: 14px;
    margin: 4px 0 10px;
  }

  .footer-bottom a {
    font-size: 12px;
  }

  .footer-bottom .dot {
    font-size: 12px;
  }

  .trust-title {
    gap: 16px;
  }

  .trust-title span {
    width: 52px;
    height: 52px;
  }

  .trust-grid article {
    padding: 22px;
  }

  .trust-grid p,
  .trust-grid li {
    font-size: 17px;
  }

  .about {
    display: flex;
    flex-direction: column;
    padding: 54px 16px 62px;
  }

  .about-content {
    order: 1;
    padding-bottom: 0;
    text-align: center;
  }

  .about-content h2,
  .about-content > p:not(.eyebrow) {
    text-align: center;
  }

  .about-photo {
    order: 2;
    margin: 24px auto 0;
    width: min(100%, 320px);
    min-height: 0;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
  }

  .about-photo img {
    position: static;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-position: center;
    transform: none;
  }

  .trust-grid {
    order: 3;
    position: relative;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: -56px;
  }

  .trust-grid article {
    padding: 16px;
    min-height: 0;
  }

  .trust-title {
    gap: 10px;
    margin-bottom: 10px;
  }

  .trust-title span {
    width: 36px;
    height: 36px;
  }

  .trust-title svg {
    width: 18px;
    height: 18px;
  }

  .trust-grid h3 {
    font-size: 15px;
  }

  .trust-grid p,
  .trust-grid li {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .trust-grid ul {
    gap: 8px;
  }

  .trust-grid li {
    padding-left: 20px;
  }
}

/* Scroll-reveal анимация */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 2560px) {
  .about-photo img {
    width: 70%;
    margin-inline: auto;
  }

  .hero-content {
    width: min(1100px, calc(100% - 36px));
    margin-left: clamp(18px, 14vw, 320px);
    padding-top: 90px;
  }

  .eyebrow {
    font-size: 18px;
    padding: 9px 16px;
  }

  h1 {
    font-size: clamp(80px, 6vw, 128px);
    max-width: 1100px;
    margin-bottom: 28px;
  }

  .lead {
    max-width: 980px;
    font-size: 28px;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 20px;
    margin: 44px 0 30px;
  }

  .button {
    min-height: 64px;
    padding: 0 28px;
    font-size: 18px;
  }

  .button svg {
    width: 22px;
    height: 22px;
  }

  .topbar {
    padding: 22px clamp(24px, 6vw, 140px);
    gap: 32px;
  }

  .brand {
    gap: 12px;
    font-size: 22px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .nav {
    gap: 90px;
    font-size: 18px;
  }

  .top-actions {
    gap: 14px;
  }

  .top-social {
    width: 36px;
    height: 36px;
  }

  .phone-link {
    font-size: 18px;
  }
}

