:root {
  --ink: #121820;
  --muted: #4f5f6d;
  --paper: #ece8df;
  --panel: #fffdf8;
  --line: #c8cfd1;
  --accent: #e24e25;
  --accent-dark: #a93117;
  --steel: #234c66;
  --steel-dark: #162a38;
  --field: #e4e8e8;
  --shadow: 0 20px 52px rgba(18, 24, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 36px rgba(18, 24, 32, 0.18);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 2px solid currentColor;
  font-weight: 800;
}

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

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.78;
}

.site-nav,
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a,
.main-nav a,
.header-phone {
  opacity: 0.9;
}

.site-nav a:hover,
.main-nav a:hover,
.header-phone:hover {
  opacity: 1;
}

.header-phone {
  font-weight: 800;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero-scrim,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
}

.hero-scrim,
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 16, 0.93) 0%, rgba(10, 17, 24, 0.78) 46%, rgba(10, 17, 24, 0.32) 100%),
    linear-gradient(0deg, rgba(18, 24, 32, 0.82) 0%, rgba(18, 24, 32, 0.06) 48%);
}

.hero-content {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 168px 0 60px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary,
.button.primary,
.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(226, 78, 37, 0.28);
}

.button-primary:hover,
.button.primary:hover,
.primary:hover {
  background: var(--accent-dark);
}

.button-secondary,
.button.secondary,
.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.button-outline {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.button-outline:hover {
  border-color: var(--steel);
}

.hero-stats {
  display: grid;
  width: min(760px, calc(100% - 36px));
  max-width: 760px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 40px auto 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.hero-stats div,
.hero-stats article {
  padding: 22px;
  background: rgba(9, 14, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-stats dt,
.hero-stats strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd,
.hero-stats span {
  display: block;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.section {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.muted {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1140px) / 2));
  padding-left: max(18px, calc((100% - 1140px) / 2));
  background: #dde3e1;
}

.dark {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1140px) / 2));
  padding-left: max(18px, calc((100% - 1140px) / 2));
  color: #fff;
  background: var(--steel-dark);
}

.dark .eyebrow,
.dark .section-kicker {
  color: #ffb199;
}

.dark p,
.dark .section-heading p,
.dark .workers-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.intro-grid,
.section-heading,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

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

.intro p,
.section-heading p,
.contact-copy p,
.service-card p,
.project-card p,
.process-list p {
  margin: 0;
  color: var(--muted);
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #b9c3c6;
  border: 1px solid #b9c3c6;
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 236px;
  padding: 28px;
  background: var(--panel);
}

.service-card img {
  width: calc(100% + 56px);
  height: 160px;
  margin: -28px -28px 24px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.08);
}

.service-number {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 14px;
}

.trust {
  width: 100%;
  padding: 0;
  background: var(--steel-dark);
}

.trust-panel {
  display: grid;
  width: min(1140px, calc(100% - 36px));
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  margin: 0 auto;
  padding: 72px 0;
  color: #fff;
}

.trust-panel .section-kicker {
  color: #ffb199;
}

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

.trust-list li {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.workers {
  padding-top: 72px;
}

.workers-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.workers-copy p {
  margin: 0;
  color: var(--muted);
}

.workers-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 24, 32, 0.06);
}

.project-card div:last-child {
  padding: 24px;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-visual {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #c7d1d4;
  filter: saturate(1.04) contrast(1.06);
}

.gallery {
  padding-top: 0;
}

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

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #c7d1d4;
  filter: saturate(1.04) contrast(1.06);
}

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

.proof-card {
  min-height: 220px;
  padding: 28px;
  color: #fff;
  background: var(--steel-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.proof-card strong {
  display: block;
  margin-bottom: 28px;
  color: #ffb199;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.proof-card h3 {
  margin-bottom: 12px;
}

.proof-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: #b9c3c6;
  border: 1px solid #b9c3c6;
  box-shadow: var(--shadow);
  list-style: none;
}

.process-list li {
  min-height: 240px;
  padding: 28px;
  background: var(--panel);
}

.process-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 40px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.process-list h3 {
  margin-bottom: 12px;
}

.requisites {
  border-top: 1px solid var(--line);
}

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

.requisites-list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.requisites-list div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 20px;
  background: var(--panel);
}

.requisites-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.requisites-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.requisites-list a {
  color: var(--steel);
}

.contact {
  align-items: stretch;
}

.contact-copy {
  padding: 46px 0;
}

.contact-copy p {
  max-width: 560px;
  margin-top: 22px;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  font-weight: 800;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  font-weight: 800;
}

.contact-links a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-links .telegram-link {
  color: #fff;
  border-color: #229ed9;
  background: #229ed9;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid rgba(18, 24, 32, 0.08);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d0d2;
  border-radius: 4px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--field);
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--steel);
  outline: none;
}

textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  font-weight: 800;
}

.footer-links a:hover {
  color: #fff;
}

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

  .menu-button {
    display: block;
  }

  .site-nav,
  .main-nav {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .main-nav,
  .site-header.is-open .header-phone {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-grid,
  .project-grid,
  .gallery-grid,
  .proof-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .section-heading,
  .trust-panel,
  .workers-panel,
  .contact,
  .requisites-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 132px;
  }

  .hero h1 {
    font-size: 42px;
  }

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

  .hero-stats,
  .service-grid,
  .project-grid,
  .gallery-grid,
  .proof-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .project-visual,
  .gallery-grid img {
    height: 240px;
  }

  .requisites-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-stats {
    margin-top: 44px;
  }

  .section {
    padding: 64px 0;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
