:root {
    --bg: #050507;
    --bg-soft: #0a0d14;
    --text: #f5f7ff;
    --muted: #b7bdd2;
    --red: #ff1635;
    --red-soft: #8c1020;
    --card: rgba(9, 13, 23, 0.9);
    --line: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
  }
  
  .container {
    width: min(1120px, 92%);
    margin: 0 auto;
  }
  
  .header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 55, 0.15);
  }
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 16px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo small {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }
  
.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
  
  nav {
    display: flex;
    gap: 18px;
  }
  
  nav a {
    color: #f0f2f8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
  }
  
  nav a:hover {
    color: var(--red);
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, #ff2745 0%, #d80021 100%);
    box-shadow: 0 10px 24px rgba(255, 22, 53, 0.25);
    transition: transform .25s ease, box-shadow .25s ease;
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 22, 53, 0.33);
  }
  
  .btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

.phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phone-list--header {
  justify-content: flex-end;
  max-width: 560px;
  flex-wrap: nowrap;
}

.phone-list--header .btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(255, 22, 53, 0.18);
}

.hero-cta {
  margin-top: 30px;
}
  
  .hero {
    min-height: 78vh;
    display: grid;
    align-items: center;
    background:
      radial-gradient(circle at 18% 20%, rgba(255, 20, 45, 0.25), transparent 45%),
      radial-gradient(circle at 88% 80%, rgba(150, 0, 20, 0.22), transparent 46%),
      linear-gradient(180deg, #090909 0%, #020204 100%);
    border-bottom: 1px solid var(--line);
  }
  
  .hero-inner {
    text-align: center;
    padding: 78px 0;
  }
  
  .hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
  }
  
  .hero h1 span {
    color: var(--red);
  }
  
  .hero p {
    max-width: 760px;
    margin: 18px auto 0;
    color: #d5daea;
    font-size: 18px;
  }
  
  .hero-tags {
    margin: 32px auto 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .hero-tags div {
    background: #10141f;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e8ebf7;
    font-size: 14px;
  }
  
  .section {
    padding: 84px 0;
  }
  
  .section h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: clamp(28px, 4vw, 46px);
  }
  
  .section-sub {
    margin: 0 auto 34px;
    max-width: 760px;
    color: var(--muted);
    text-align: center;
  }
  
  .section.light {
    background: #f8f9fc;
    color: #11151f;
  }
  
  .section.light .section-sub {
    color: #525a6d;
  }
  
  .grid {
    display: grid;
    gap: 18px;
  }
  
.reasons,
.contacts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-item {
    background: #fff;
    border: 1px solid #eceef5;
    border-radius: 14px;
    padding: 22px;
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(16, 23, 43, 0.11);
  }

  .contact-item h3 {
    margin: 0 0 10px;
    font-size: 20px;
  }

  .contact-item p {
    margin: 0;
    color: #566078;
    line-height: 1.5;
  }

/* --- Услуги: процесс, материалы, гарантия --- */
.services-content {
  max-width: 980px;
}

.services-title {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
}

.services-title--spaced {
  margin-top: 52px;
}

.services-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--red);
}

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

.process-step {
  position: relative;
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  padding: 20px 20px 20px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.process-step:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 39, 69, 0.25);
  box-shadow: 0 12px 28px rgba(16, 23, 43, 0.1);
}

.process-step__num {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
}

.process-step p {
  margin: 0;
  color: #3f4960;
  font-size: 15px;
  line-height: 1.5;
}

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

.material-card {
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.material-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 23, 43, 0.1);
}

.material-card--center {
  grid-column: 1 / -1;
  width: min(100%, calc(50% - 8px));
  justify-self: center;
}

.material-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #11151f;
}

.material-card ul {
  margin: 0;
  padding-left: 18px;
  color: #566078;
  line-height: 1.55;
}

.material-card li + li {
  margin-top: 4px;
}

.warranty-card {
  margin-top: 40px;
  padding: 32px 24px;
  background: #fff;
  border-top: 1px solid #d8dce8;
  border-bottom: 1px solid #d8dce8;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 23, 43, 0.06);
}

.warranty-card__title {
  margin: 0 0 16px;
  text-align: center;
  font-size: clamp(22px, 3.5vw, 28px);
  color: #11151f;
}

.warranty-card__text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.warranty-card__text p {
  margin: 0;
  color: #525a6d;
  font-size: 15px;
  line-height: 1.55;
}

.warranty-card__text p + p {
  margin-top: 12px;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  color: #d8102e;
}

.phone-list--contact {
  flex-direction: column;
  align-items: flex-start;
}

.phone-list--contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff2745 0%, #d80021 100%);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
}

.phone-list--contact a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.contacts {
  max-width: 820px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-item {
  padding: 16px 18px;
}

.contact-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-item h3 {
  margin: 0;
  font-size: 20px;
}

.contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff2745 0%, #d80021 100%);
  box-shadow: 0 8px 18px rgba(255, 22, 53, 0.22);
}
  
.contact-icon::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.map-card {
  max-width: 980px;
  margin: 28px auto 0;
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 14px 28px rgba(10, 15, 28, 0.08);
}

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

.map-card p {
  margin: 0 0 12px;
  color: #566078;
}

.map-frame {
  display: block;
  width: 100% !important;
  height: 420px !important;
  min-height: 420px;
  border: 0;
  border-radius: 12px;
}

  .section.dark {
    background: linear-gradient(180deg, #050608 0%, #070a12 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  
  .works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .work-card {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at 80% 20%, rgba(255, 0, 50, 0.16), transparent 45%),
      #10131d;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform .25s ease, border-color .25s ease;
    overflow: hidden;
    cursor: pointer;
  }

  .work-card:focus-visible {
    outline: 2px solid rgba(255, 40, 70, 0.85);
    outline-offset: 3px;
  }

  .work-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  
  .work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 50, 80, 0.45);
  }
  
  .work-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    word-break: break-word;
  }
  
  .work-card p {
    margin: 0;
    color: #a7afc5;
  }

/* --- Просмотр фото работы: листание, свайп --- */
.work-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.work-viewer.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.work-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 22, 0.35);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .work-viewer__backdrop {
    background: rgba(8, 10, 18, 0.82);
  }
}

.work-viewer__panel {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: transparent;
  margin: 0;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}

.work-viewer__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.work-viewer__back {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.work-viewer__back:active {
  background: rgba(255, 40, 60, 0.4);
}

.work-viewer__title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f4f7ff;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-viewer__counter {
  flex-shrink: 0;
  min-width: 54px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #a8b0cc;
}

.work-viewer--single .work-viewer__counter {
  opacity: 0;
  pointer-events: none;
}

.work-viewer__stage {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.work-viewer__imgwrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
  position: relative;
}

.work-viewer__imgwrap img {
  max-width: 100%;
  max-height: min(72vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  vertical-align: middle;
}

.work-viewer__empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: #8f98b5;
  line-height: 1.5;
}

.work-viewer__empty code {
  font-size: 12px;
  color: #c8cfec;
}

.work-viewer__nav {
  flex-shrink: 0;
  width: clamp(44px, 12vw, 56px);
  align-self: stretch;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0 4px;
}

.work-viewer__nav:hover,
.work-viewer__nav:focus-visible {
  color: #ff2745;
  outline: none;
}

.work-viewer__nav:disabled {
  opacity: 0.2;
  cursor: default;
}

.work-viewer--single .work-viewer__nav {
  visibility: hidden;
}

.work-viewer__hint {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 14px 14px;
  text-align: center;
  font-size: 12px;
  color: #6a7390;
  line-height: 1.45;
}

.work-viewer__hint code {
  font-size: 11px;
  color: #8f98b5;
}

body.work-modal-open {
  overflow: hidden;
}
  
  .reason {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    line-height: 1.5;
    color: #f2f5ff;
    transition: transform .2s ease, border-color .2s ease;
  }
  
  .reason small {
    color: #a8b0c8;
  }
  
  .reason:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 30, 60, 0.45);
  }
  
  .cta {
    margin-top: 28px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
    border-radius: 16px;
    background: linear-gradient(180deg, #05070d 0%, #090d16 100%);
    padding: 34px 20px;
    text-align: center;
    color: #f4f7ff;
    border: 1px solid rgba(255, 23, 45, 0.22);
  }
  
  .cta h3 {
    margin: 0 0 8px;
    font-size: 30px;
  }
  
  .cta p {
    margin: 0 0 16px;
    color: #b7bed2;
  }

.phone-list--cta {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
  
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }

  .js .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease;
  }
  
  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    font-size: 24px;
    color: #fff;
    background: #de0d2a;
    box-shadow: 0 10px 25px rgba(223, 8, 40, 0.35);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all .25s ease;
  }
  
  .scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

.site-footer {
  padding: 40px 0 30px;
  background: #040507;
  border-top: 1px solid rgba(255, 30, 60, 0.2);
}

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

.footer-col {
  background: rgba(10, 14, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.footer-col p {
  margin: 0 0 8px;
  color: #b7bdd2;
  line-height: 1.5;
  word-break: break-word;
}

.footer-col a {
  color: #f4f7ff;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ff2745;
}
  
  @media (max-width: 980px) {
    nav { display: none; }
    .works, .reasons, .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
  .work-card h3 { font-size: 18px; }
  .map-frame { height: 280px; }
  }

  @media (max-width: 980px) and (min-width: 681px) {
    .phone-list--header {
      flex-wrap: wrap;
      max-width: 420px;
    }
  }
  
  @media (max-width: 680px) {
    .works, .reasons, .contacts { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .materials-layout { grid-template-columns: 1fr; }
    .material-card--center { width: 100%; }
    .services-title--spaced { margin-top: 36px; }
    .warranty-card { padding: 24px 16px; }
    .process-step p { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
    .container { width: min(1120px, 94%); }
    .section { padding: 46px 0; }
    .section h2 { font-size: 34px; }
    .section-sub { margin-bottom: 20px; font-size: 14px; }
    .hero-inner { padding: 48px 0; }
    .hero p { font-size: 15px; }
    .hero-tags { margin: 20px auto; gap: 8px; }
    .hero-tags div { font-size: 13px; padding: 8px 10px; }
    .btn-sm { display: none; }
    .logo-image { width: 36px; height: 36px; }
    .works { gap: 12px; }
    .work-card { padding: 10px; border-radius: 12px; }
    .work-card img { border-radius: 8px; margin-bottom: 8px; }
    .work-card h3 { font-size: 20px; }
  .contact-item h3 { font-size: 18px; }
    .map-card { margin-top: 14px; padding: 12px; }
    .map-card h3 { font-size: 20px; }
    .map-card p { font-size: 14px; }
    .map-frame { height: 220px !important; min-height: 220px; border-radius: 10px; }
    .cta { margin-top: 16px; padding: 22px 14px; }
    .cta h3 { font-size: 24px; }
    .cta p { font-size: 14px; margin-bottom: 12px; }
    .phone-list--cta { width: 100%; }
    .phone-list--cta .btn { width: 100%; max-width: 320px; }
    .phone-list--contact a { width: 100%; max-width: 320px; }
    .btn { height: 40px; padding: 0 16px; font-size: 14px; }
    .scroll-top { width: 40px; height: 40px; right: 14px; bottom: 14px; }
  }