﻿@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700;800&family=League+Spartan:wght@500;600;700&display=swap");

:root {
  --black: #232229;
  --ink: #232229;
  --muted: #626977;
  --line: #e7e9ee;
  --line-strong: #d9dde5;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --block: #eceff3;
  --orange: #f05123;
  --pink: #ee2258;
  --gradient: linear-gradient(135deg, #f05123 0%, #ee2258 100%);
  --shadow-soft: 0 26px 70px rgba(10, 12, 18, 0.08);
  --container: min(1360px, calc(100% - 64px));
  --font-body: "Lato", "Segoe UI", Arial, sans-serif;
  --font-heading: "Lato", "Ubuntu", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg,
      transparent calc(50% - 680px),
      rgba(17, 19, 27, 0.08) calc(50% - 680px),
      rgba(17, 19, 27, 0.08) calc(50% - 679px),
      transparent calc(50% - 679px),
      transparent 50%,
      rgba(17, 19, 27, 0.06) 50%,
      rgba(17, 19, 27, 0.06) calc(50% + 1px),
      transparent calc(50% + 1px),
      transparent calc(50% + 680px),
      rgba(17, 19, 27, 0.08) calc(50% + 680px),
      rgba(17, 19, 27, 0.08) calc(50% + 681px),
      transparent calc(50% + 681px)),
    #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.nav-menu,
.nav-cta,
.btn,
.text-link {
  font-family: var(--font-heading);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.topline {
  display: none;
}

.nav-shell {
  background: transparent;
}

.nav-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 240px 1fr 190px;
  align-items: stretch;
  gap: 34px;
}

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

.brand img {
  width: 206px;
  max-height: 64px;
  object-fit: contain;
}

.nav-menu {
  min-height: 86px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 26px;
}

.nav-menu > a,
.nav-dropdown > a {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-menu > a:hover,
.nav-dropdown:hover > a,
.nav-menu > a.active,
.nav-dropdown > a.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.nav-cta {
  min-width: 190px;
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding-inline: 34px;
  color: #fff !important;
  background: var(--gradient);
  font-size: 14px;
  font-weight: 700;
  border-bottom-color: transparent !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.nav-cta.active {
  box-shadow: 0 12px 28px rgba(238, 34, 88, 0.18);
  transform: translateY(-2px);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 282px;
  padding: 14px 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 12px 22px;
  color: var(--muted);
  font-size: 17px;
}

.dropdown-panel a:hover {
  color: var(--pink);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-self: center;
  justify-self: end;
  padding: 12px;
  border: 0;
  background: var(--gradient);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #fff;
}

.hero,
.page-hero,
.split-section,
.gallery-section,
.process-section,
.offer-grid-section,
.service-detail,
.service-gallery,
.related-section,
.form-section,
.contact-section {
  position: relative;
}

.hero::before,
.split-section::before,
.service-gallery::before {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  background: var(--block);
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

.hero::before {
  left: max(32px, calc((100vw - 1360px) / 2 - 70px));
  bottom: 44px;
}

.hero {
  min-height: 710px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 0.94fr);
  gap: clamp(48px, 7vw, 118px);
  align-items: center;
  padding: 82px 0 96px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1.08;
  font-weight: 700;
}

.hero-copy p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.36;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
}

.btn {
  position: relative;
  overflow: hidden;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.24) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn-primary {
  min-width: 230px;
  color: #fff;
  background: var(--gradient);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(238, 34, 88, 0.18);
  transform: translateY(-3px);
}

.btn-ghost {
  position: relative;
  min-width: 190px;
  color: var(--pink);
  background: transparent;
  border-color: transparent;
  justify-content: flex-start;
  padding-left: 0;
}

.btn-ghost:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.btn-ghost::after,
.text-link::after {
  content: "";
  width: 120px;
  height: 2px;
  margin-left: 18px;
  background: var(--gradient);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.btn-ghost:hover::after,
.text-link:hover::after {
  transform: scaleX(1.16);
}

.pixel-image {
  position: relative;
  min-height: 420px;
  margin: 0;
}

.pixel-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: grayscale(0.18);
}

.hero-visual {
  min-height: 520px;
}

.hero-visual img {
  min-height: 520px;
}

.page-hero-visual {
  min-height: 430px;
}

.pixel-square {
  position: absolute;
  z-index: 2;
  display: block;
}

.pixel-square-a {
  top: 0;
  left: 0;
  width: 142px;
  height: 142px;
  background: var(--block);
}

.pixel-square-b {
  left: -1px;
  top: 50%;
  width: 126px;
  height: 126px;
  background: #fff;
}

.pixel-square-c {
  right: 0;
  bottom: -1px;
  width: 128px;
  height: 128px;
  background: var(--block);
}

.service-rail {
  position: relative;
  z-index: 2;
  margin: 0 0 34px;
}

.service-rail-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.service-mini {
  min-height: 134px;
  display: grid;
  grid-template-columns: 46px 1fr 30px;
  align-items: center;
  gap: 18px;
  padding: 26px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.service-mini:hover {
  color: var(--ink);
  background: #fafbfc;
  box-shadow: inset 0 -4px 0 var(--pink);
  transform: translateY(-2px);
}

.service-mini img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.service-mini span {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.service-mini b {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--gradient);
  border-radius: 0;
  font-size: 20px;
}

.split-section,
.offer-grid-section,
.service-detail,
.service-text-section,
.form-section,
.contact-section {
  padding: 118px 0;
}

.split-section::before {
  right: max(32px, calc((100vw - 1360px) / 2 - 24px));
  bottom: 72px;
}

.split-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  align-items: center;
  gap: clamp(58px, 7vw, 114px);
}

.split-image {
  position: relative;
  min-height: 520px;
}

.split-image::before,
.split-image::after {
  content: "";
  position: absolute;
  z-index: 2;
  display: block;
}

.split-image::before {
  top: 0;
  left: 0;
  width: 132px;
  height: 132px;
  background: var(--block);
}

.split-image::after {
  right: 0;
  bottom: -1px;
  width: 120px;
  height: 120px;
  background: #fff;
}

.split-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: grayscale(0.12);
}

.split-copy h2,
.section-heading h2,
.process-grid h2,
.quote-aside h2,
.detail-copy h2,
.contact-card h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.12;
  font-weight: 700;
}

.split-copy p:not(.eyebrow),
.detail-copy p,
.service-text-column p,
.quote-aside p,
.offer-card p:not(.eyebrow) {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: var(--pink);
  font-size: 16px;
  font-weight: 700;
  transition: color 0.18s ease, transform 0.18s ease;
}

.text-link:hover {
  color: var(--orange);
  transform: translateX(3px);
}

.stats-band {
  padding: 38px 0;
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stat {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat strong {
  color: transparent;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 0.92;
  font-weight: 700;
}

.stat span {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}

.gallery-section,
.service-gallery,
.related-section,
.process-section {
  padding: 112px 0;
  background: transparent;
}

.service-gallery::before {
  left: max(32px, calc((100vw - 1360px) / 2 - 70px));
  top: 42px;
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 44px;
}

.section-heading h2 {
  max-width: 840px;
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 420px);
  gap: 20px;
  overflow-x: auto;
  padding: 0 max(32px, calc((100vw - 1360px) / 2)) 18px;
  scroll-snap-type: x mandatory;
}

.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.gallery-tile,
.offer-image {
  position: relative;
  overflow: hidden;
}

.gallery-tile {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
}

.gallery-tile::before,
.offer-image::before {
  display: none;
}

.gallery-tile::after,
.offer-image::after {
  display: none;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: grayscale(0.08);
  transition: transform 0.28s ease;
}

.gallery-strip .gallery-tile {
  aspect-ratio: 4 / 3;
}

.gallery-tile span {
  display: none;
}

.gallery-tile:hover img {
  transform: scale(1.045);
}

.process-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(56px, 8vw, 130px);
}

.process-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.process-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
}

.process-item span {
  color: var(--pink);
  font-size: 18px;
  font-weight: 700;
}

.process-item p {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.36;
}

.cooperation-section {
  position: relative;
  padding: 112px 0 126px;
  background: transparent;
}

.cooperation-section::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1360px) / 2 - 60px));
  bottom: 0;
  width: 140px;
  height: 88px;
  background: var(--block);
  opacity: 0.8;
}

.cooperation-heading {
  margin-bottom: 48px;
}

.cooperation-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(42px, 6vw, 110px);
}

.cooperation-grid::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 32px;
  right: 32px;
  height: 1px;
  background: var(--line);
  z-index: -1;
}

.cooperation-step {
  display: grid;
  align-content: start;
}

.cooperation-step > span {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
}

.cooperation-step h3 {
  max-width: 340px;
  margin: 0;
  color: var(--black);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.14;
  font-weight: 700;
}

.cooperation-step p {
  max-width: 390px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.cooperation-step .btn {
  justify-self: start;
  margin-top: 34px;
}

.btn-with-icon::after {
  content: "";
  width: 17px;
  height: 17px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: 6px 6px 0 -3px currentColor;
  transition: transform 0.2s ease;
}

.btn-with-icon:hover::after {
  transform: translateX(3px);
}

.page-hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 0.95fr);
  gap: clamp(52px, 7vw, 118px);
  align-items: center;
  padding: 70px 0 76px;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

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

.offer-card {
  display: grid;
  align-content: start;
  gap: 24px;
  min-height: 100%;
  padding-bottom: 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.offer-image {
  display: block;
}

.offer-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(0.12);
}

.offer-card > div {
  padding: 0 28px;
}

.offer-card h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.14;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(56px, 7vw, 112px);
  align-items: start;
}

.service-text-section {
  padding-top: 0;
}

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

.service-text-column {
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
}

.service-text-column h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.16;
  font-weight: 700;
}

.service-text-column p:not(.eyebrow) {
  margin: 22px 0 0;
}

.detail-copy {
  max-width: 840px;
}

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

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.4;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  background: var(--gradient);
}

.detail-side {
  position: relative;
  padding: 38px 36px;
  color: var(--ink);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
}

.detail-side::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 78px;
  height: 78px;
  background: var(--block);
  z-index: -1;
}

.detail-side img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 30px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.detail-side h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.02;
}

.detail-side p {
  color: var(--muted);
  font-size: 18px;
}

.related-section {
  padding-top: 0;
}

.related-grid {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: stretch;
}

.form-panel,
.quote-aside,
.contact-card {
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
}

.form-section,
.contact-section {
  background: transparent;
}

.quote-form {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 16px 15px 13px;
  outline: 0;
}

textarea {
  min-height: 162px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(238, 34, 88, 0.12);
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.form-actions p {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.contact-card {
  min-height: 100%;
  display: grid;
  gap: 14px;
  align-content: start;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--orange);
}

.contact-card h2 {
  color: var(--black);
  font-size: clamp(30px, 2.7vw, 44px);
}

.contact-card a,
.contact-card span {
  color: var(--ink);
  font-weight: 600;
}

.contact-map {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.contact-map iframe {
  width: 100%;
  height: 430px;
  display: block;
  border: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0 0 64px;
  color: var(--ink);
  background: transparent;
}

.site-footer::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - 1360px) / 2 - 34px));
  top: 64px;
  width: 140px;
  height: calc(100% - 64px);
  background: var(--block);
  z-index: 0;
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 0.64fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.footer-brand-panel {
  padding: 68px 58px;
  color: #cfd4df;
  background: #07070d;
}

.footer-nav-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: clamp(48px, 7vw, 120px);
  padding: 68px 72px;
  background: #fff;
}

.footer-logo {
  max-width: 220px;
  margin-bottom: 34px;
  padding: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}

.footer-column h2 {
  margin: 0;
  color: var(--black);
  font-size: 28px;
  line-height: 1.05;
}

.footer-brand-panel p,
.footer-brand-panel address {
  margin: 0 0 30px;
  color: #8f96a8;
  font-style: normal;
  font-size: 18px;
  line-height: 1.45;
}

.footer-brand-panel a {
  color: #fff;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 20px;
}

.footer-column a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-column a:hover {
  color: var(--pink);
  transform: translateX(4px);
}

.footer-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px 44px;
  margin-top: 18px;
}

.system-message {
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  max-height: min(84vh, 900px);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 0;
  color: var(--black);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 44px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox p {
  position: fixed;
  left: 50%;
  bottom: 20px;
  margin: 0;
  padding: 8px 14px 6px;
  color: #fff;
  background: rgba(5, 6, 10, 0.72);
  transform: translateX(-50%);
}

@media (max-width: 1120px) {
  :root {
    --container: min(100% - 40px, 1360px);
  }

  .nav-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .nav-cta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 132px;
    min-height: 46px;
    margin-right: 14px;
    padding-inline: 20px;
  }

  .nav-menu {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    min-height: auto;
    overflow: auto;
    padding: 20px;
    background: #fff;
    border-top: 1px solid var(--line);
  }

  body.nav-open .nav-menu {
    display: block;
  }

  .nav-menu > a,
  .nav-dropdown > a {
    width: 100%;
    min-height: 58px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .dropdown-panel {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .process-grid,
  .detail-grid,
  .service-text-grid,
  .form-grid,
  .contact-grid,
  .footer-shell,
  .footer-nav-panel {
    grid-template-columns: 1fr;
  }

  .cooperation-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .cooperation-grid::before {
    top: 32px;
    left: 31px;
    right: auto;
    width: 1px;
    height: calc(100% - 64px);
  }

  .cooperation-step {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0 28px;
  }

  .cooperation-step > span {
    grid-row: span 3;
  }

  .cooperation-step p,
  .cooperation-step .btn {
    grid-column: 2;
  }

  .footer-brand-panel,
  .footer-nav-panel {
    padding: 48px 40px;
  }

  .hero-copy,
  .page-hero-copy {
    max-width: 820px;
  }

  .page-hero-visual,
  .hero-visual {
    max-width: 760px;
  }

  .service-rail-grid,
  .related-grid,
  .stats-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1360px);
  }

  body {
    font-size: 16px;
  }

  .brand img {
    width: 156px;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-cta {
    min-width: 96px;
    padding-inline: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .page-hero-grid {
    gap: 40px;
    padding: 54px 0 66px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-copy p:not(.eyebrow),
  .page-hero p:not(.eyebrow),
  .split-copy p:not(.eyebrow),
  .detail-copy p,
  .quote-aside p,
  .offer-card p:not(.eyebrow),
  .process-item p {
    font-size: 18px;
  }

  .hero-actions,
  .form-actions {
    display: grid;
    gap: 14px;
  }

  .btn,
  .btn-primary,
  .btn-ghost {
    width: 100%;
    min-width: 0;
  }

  .btn-ghost::after,
  .text-link::after {
    width: 70px;
  }

  .pixel-image,
  .pixel-image img,
  .hero-visual,
  .hero-visual img,
  .page-hero-visual,
  .split-image,
  .split-image img {
    min-height: 330px;
    height: 330px;
  }

  .pixel-square-a,
  .split-image::before {
    width: 86px;
    height: 86px;
  }

  .pixel-square-b {
    width: 74px;
    height: 74px;
  }

  .pixel-square-c,
  .split-image::after {
    width: 78px;
    height: 78px;
  }

  .detail-side::before {
    display: none;
  }

  .service-rail-grid,
  .related-grid,
  .stats-grid,
  .gallery-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .split-section,
  .offer-grid-section,
  .service-detail,
  .service-text-section,
  .form-section,
  .contact-section,
  .gallery-section,
  .service-gallery,
  .related-section,
  .process-section,
  .cooperation-section {
    padding: 76px 0;
  }

  .cooperation-step {
    grid-template-columns: 1fr;
  }

  .cooperation-step > span,
  .cooperation-step p,
  .cooperation-step .btn {
    grid-column: auto;
  }

  .cooperation-step > span {
    grid-row: auto;
  }

  .cooperation-grid::before {
    display: none;
  }

  .cooperation-step h3 {
    font-size: 26px;
  }

  .cooperation-step p {
    font-size: 17px;
  }

  .stat {
    min-height: 138px;
  }

  .process-item {
    grid-template-columns: 48px 1fr;
  }

  .gallery-strip {
    grid-auto-columns: minmax(260px, 84vw);
    gap: 18px;
    padding-inline: 14px;
  }

  .form-panel,
  .quote-aside,
  .contact-card,
  .service-text-column {
    padding: 24px;
  }

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

  .contact-map,
  .contact-map iframe {
    min-height: 320px;
    height: 320px;
  }

  .footer-brand-panel,
  .footer-nav-panel {
    padding: 34px 24px;
  }

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