:root {
  --bg: #0d1115;
  --panel: #151b21;
  --panel-strong: #1d252d;
  --text: #f5f1eb;
  --muted: #c8c3bb;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d4aa63;
  --gold-dark: #9a6f32;
  --red: #b8453f;
  --steel: #8da1ad;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

body::selection {
  background: var(--gold);
  color: #111;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13, 17, 21, 0.88);
  border-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(212, 170, 99, 0.72);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.brand strong {
  font-size: 16px;
}

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

.nav {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.nav a:hover,
.header-phone:hover {
  color: var(--gold);
}

.header-phone {
  justify-self: end;
  font-weight: 700;
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.92) 0%, rgba(7, 9, 11, 0.68) 44%, rgba(7, 9, 11, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 17, 21, 1) 0%, rgba(13, 17, 21, 0.12) 34%, rgba(13, 17, 21, 0.08) 100%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 116px 0 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 24px;
  color: rgba(245, 241, 235, 0.88);
  font-size: clamp(16px, 1.7vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 20px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: #12100c;
}

.btn-primary:hover {
  background: #e2bd78;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--gold);
}

.hero-metrics {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  padding: 14px 16px;
  background: rgba(13, 17, 21, 0.62);
}

.hero-metrics dt {
  color: var(--gold);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-inner {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
}

.hero-copy,
.service-card p,
.proof-copy p,
.cta p {
  overflow-wrap: anywhere;
}

.intro-band {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #11171d;
  scroll-margin-top: 86px;
}

.intro-grid,
.proof-grid,
.cta-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.intro-grid p,
.section-heading p,
.proof-copy p,
.cta p {
  color: var(--muted);
  font-size: 17px;
}

.section {
  padding: 92px 0;
  scroll-margin-top: 86px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 580px;
}

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

.service-card {
  min-height: 236px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.service-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.service-card p,
.steps p,
.contact-panel p,
.footer p {
  color: var(--muted);
}

.proof {
  padding: 82px 0;
  background: #e6e2da;
  color: #171717;
}

.proof img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.24);
}

.proof .section-kicker {
  color: var(--gold-dark);
}

.proof-copy p {
  color: #4f4b45;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.trust-section {
  background: #0d1115;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #192129, #12181e);
}

.trust-list span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.digital-section {
  background: #e6e2da;
  color: #171717;
}

.digital-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

.digital-panel {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 8px;
  background: #f3f0ea;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.12);
}

.digital-section .section-kicker {
  color: var(--gold-dark);
}

.digital-panel p {
  max-width: 660px;
  color: #4f4b45;
  font-size: 17px;
}

.channels {
  display: grid;
  gap: 10px;
}

.channels a {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 104px;
  padding: 22px;
  border: 1px solid rgba(13, 17, 21, 0.14);
  border-radius: 8px;
  background: #151b21;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease;
}

.channels a:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.channels span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channels strong {
  font-size: 20px;
  line-height: 1.18;
}

.process {
  background: #11171d;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps div {
  min-height: 230px;
  padding: 24px;
  background: #11171d;
}

.steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 36px;
  border: 1px solid rgba(212, 170, 99, 0.58);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
}

.gallery-section {
  padding: 92px 0;
  background: var(--bg);
  scroll-margin-top: 86px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #222;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.knowledge-section {
  background: #e6e2da;
  color: #171717;
}

.knowledge-section .section-kicker {
  color: var(--gold-dark);
}

.knowledge-section .section-heading p {
  color: #4f4b45;
}

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

.knowledge-card {
  display: flex;
  min-height: 760px;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 8px;
  background: #f3f0ea;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.12);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 28px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta strong {
  color: #655d51;
}

.knowledge-card h3 {
  font-size: clamp(24px, 2.4vw, 31px);
}

.knowledge-card p {
  color: #4f4b45;
}

.article-points {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(13, 17, 21, 0.14);
}

.article-points li {
  position: relative;
  padding-left: 24px;
  font-weight: 700;
}

.article-points li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.maps-section {
  background: #11171d;
  border-top: 1px solid var(--line);
}

.maps-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

.map-links a {
  display: grid;
  min-height: 148px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #1b232b, #11171d);
  transition: transform 160ms ease, border-color 160ms ease;
}

.map-links a:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.map-links span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-links strong {
  max-width: 260px;
  font-size: 22px;
  line-height: 1.14;
}

.cta {
  padding: 86px 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 21, 0.94), rgba(13, 17, 21, 0.78)),
    url("zvezda-povolzhja-photos/service-photo-06.jpg") center / cover;
  border-top: 1px solid var(--line);
  scroll-margin-top: 86px;
}

.contact-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(17, 23, 29, 0.82);
  box-shadow: var(--shadow);
}

.contact-phone {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.contact-phone.muted {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 22px;
}

.contact-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 700;
}

.full {
  width: 100%;
  margin-bottom: 12px;
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: #0a0d10;
}

.footer-grid {
  align-items: center;
}

.footer p {
  margin: 0;
}

.footer p:first-child {
  color: var(--white);
  font-weight: 800;
}

.footer p:last-child {
  justify-self: end;
}

.lightbox {
  width: min(1080px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

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

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  display: block;
  margin: 0 0 10px auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 10px 14px;
  background: rgba(13, 17, 21, 0.9);
  color: var(--white);
  cursor: pointer;
}

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

  .nav {
    display: none;
  }

  .header-phone {
    font-size: 14px;
  }

  .hero {
    min-height: 880px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(13, 17, 21, 1) 0%, rgba(13, 17, 21, 0.72) 54%, rgba(13, 17, 21, 0.32) 100%),
      linear-gradient(90deg, rgba(7, 9, 11, 0.82), rgba(7, 9, 11, 0.24));
  }

  .intro-grid,
  .proof-grid,
  .trust-grid,
  .digital-grid,
  .maps-grid,
  .cta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .map-links {
    grid-template-columns: 1fr;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 2;
  }

  .footer p:last-child {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small,
  .header-phone {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-content {
    width: min(1120px, calc(100vw - 28px));
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

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

  .section {
    padding: 68px 0;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-card,
  .steps div,
  .knowledge-card {
    min-height: 0;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-item.large,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }
}
