:root {
  --site-bg: #0c1724;
  --ink: #ffffff;
  --muted: #ffffff;
  --accent: #7beeff;
  --blue: var(--accent);
  --blue-dark: var(--accent);
  --line: var(--accent);
  --light: var(--site-bg);
  --white: #ffffff;
  --steel: var(--site-bg);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--site-bg);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.page {
  overflow: hidden;
  background: var(--site-bg);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 20px;
}

#top {
  scroll-margin-top: 0;
}

.hero {
  min-height: 660px;
  color: var(--white);
  position: relative;
  background:
    linear-gradient(90deg, rgba(6, 16, 27, 0.96) 0%, rgba(9, 23, 38, 0.78) 36%, rgba(13, 26, 39, 0.28) 74%),
    url("assets/images/hero.webp") center / cover;
  background-color: var(--site-bg);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 15;
  color: var(--white);
  background: transparent;
  transition: background 0.24s ease, box-shadow 0.24s ease;
}

.header.scrolled {
  background: var(--site-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.header .container {
  width: min(1320px, calc(100% - 40px));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.6vw, 24px);
  padding: 22px 0;
}

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

.brand-logo {
  display: block;
  width: 180px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 26px);
  min-width: 0;
  flex: 1 1 auto;
}

.nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  opacity: 1;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.mail-icon {
  width: 24px;
  height: 18px;
  border: 2px solid currentColor;
  position: relative;
}

.mail-icon::before,
.mail-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 13px;
  height: 2px;
  background: currentColor;
}

.mail-icon::before {
  left: 0;
  transform: rotate(35deg);
  transform-origin: left center;
}

.mail-icon::after {
  right: 0;
  transform: rotate(-35deg);
  transform-origin: right center;
}

.contact-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 246px;
  flex: 0 0 246px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 1280px) and (min-width: 981px) {
  .header .container {
    width: min(100% - 28px, 1220px);
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    min-width: 148px;
  }

  .brand-logo {
    width: 148px;
  }

  .nav {
    gap: 12px;
    font-size: 12px;
  }

  .nav-panel {
    gap: 12px;
  }

  .contact-box {
    width: 222px;
    flex-basis: 222px;
    font-size: 12px;
  }
}

.contact-toggle,
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
  width: auto;
  min-width: 0;
}

.contact-toggle:hover,
.contact-email:hover {
  color: var(--accent);
}

.contact-email {
  display: none;
}

.contact-box.revealed .contact-toggle {
  display: none;
}

.contact-box.revealed .contact-email {
  display: inline-flex;
}

.contact-email span:last-child {
  overflow: visible;
  text-overflow: clip;
}

.contact-icon {
  width: 38px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--site-bg);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 164px 0 172px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--white);
  font-size: 20px;
  line-height: 1.4;
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 13vw, 142px);
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h2 {
  margin: 28px 0 22px;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  margin: 0 0 34px;
  max-width: 430px;
  color: var(--white);
  font-size: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 25px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--site-bg);
  font-weight: 900;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 26px rgba(123, 238, 255, 0.32);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  min-height: 42px;
  color: var(--accent);
  background: var(--site-bg);
}

.btn-outline:hover {
  color: var(--site-bg);
  background: var(--blue);
}

.section {
  padding: 30px 0;
  position: relative;
}

.section-title {
  margin: 0 0 42px;
  text-align: center;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  position: relative;
}

.section-title::after,
.about-text h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 13px auto 0;
  background: var(--blue);
}

.about {
  padding-top: 54px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.24fr);
  gap: 72px;
  align-items: center;
}

.about-text h2 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.about-text h2::after {
  margin-left: 0;
  margin-right: 0;
}

.about-text p {
  margin: 0 0 46px;
  color: var(--ink);
  font-size: 16px;
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mini-feature,
.service,
.step,
.advantage {
  text-align: center;
}

.icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
}

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

.item-title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 900;
}

.item-text {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.mobile-break {
  display: none;
}

.drawing-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 17;
  overflow: hidden;
  background: var(--site-bg);
}

.drawing {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.drawing.is-active {
  opacity: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-left: 1px solid var(--line);
}

.service {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 22px;
  border-top: 2px dotted var(--accent);
}

.step {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 50%;
  color: var(--site-bg);
  background: var(--blue);
  font-weight: 900;
  font-size: 19px;
}

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

.advantage {
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-bottom: 28px;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: var(--site-bg);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.25);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-status {
  min-height: 24px;
  margin: -4px 0 28px;
  color: var(--white);
  text-align: center;
  opacity: 0.8;
}

.center {
  text-align: center;
}

.request {
  color: var(--white);
  background: var(--site-bg);
  padding: 70px 0 0;
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1fr);
  gap: 72px;
  align-items: start;
}

.request-copy {
  padding: 20px 0 54px;
  position: relative;
}

.request-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.request-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--white);
  font-size: 18px;
}

.form-card {
  padding: 26px;
  margin-bottom: 42px;
}

.form-card h3 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--site-bg);
  color: var(--white);
  padding: 0 14px;
  outline: none;
}

.field::placeholder {
  color: var(--white);
}

.field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 238, 255, 0.18);
}

textarea.field {
  min-height: 92px;
  grid-column: 1 / -1;
  padding-top: 12px;
  resize: vertical;
}

.privacy-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  color: var(--white);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.privacy-consent a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.privacy-consent a:hover,
.privacy-consent a:focus-visible {
  color: var(--accent);
}

.form-card .btn {
  margin-top: 14px;
}

.form-card .btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--white);
  font-weight: 900;
}

.footer {
  color: var(--white);
  background: var(--site-bg);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-details {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
  font-size: 13px;
}

.footer-details p {
  margin: 0;
}

.footer-email,
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-email:hover,
.footer-email:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  text-align: center;
  color: var(--white);
  font-size: 12px;
}

.icon-credit {
  margin: 8px 0 0;
  text-align: center;
  color: var(--white);
  font-size: 11px;
}

.icon-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 340px;
  padding: 16px 18px;
  color: var(--white);
  background: var(--site-bg);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 10, 18, 0.78);
}

.modal.open {
  display: grid;
}

.modal-content {
  width: min(980px, 100%);
  background: var(--site-bg);
  box-shadow: var(--shadow);
  position: relative;
}

.modal-content img {
  width: 100%;
  max-height: 76vh;
  display: block;
  object-fit: cover;
}

.modal-caption {
  padding: 16px 22px;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--site-bg);
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 18;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--site-bg);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--blue);
}

.to-top-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.to-top:hover .to-top-icon,
.to-top:focus-visible .to-top-icon {
  content: url("assets/icons/arrow-up-dark.webp");
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, 760px);
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 9;
  }

  .brand {
    position: relative;
    z-index: 9;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    max-height: 100svh;
    padding: 112px max(32px, calc((100vw - 760px) / 2)) 34px;
    overflow-y: auto;
    background: var(--site-bg);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.32s ease, opacity 0.24s ease, visibility 0.32s ease;
  }

  .nav-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-panel .nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    font-size: 18px;
    text-align: left;
  }

  .nav-panel .nav a {
    width: 100%;
  }

  .nav-panel .contact-box {
    width: auto;
    flex-basis: auto;
    align-self: flex-start;
  }

  .mail-link,
  .contact-toggle,
  .contact-email {
    font-size: 17px;
  }

  .hero {
    min-height: 620px;
  }

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

  .about-grid,
  .request-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .services-grid,
  .timeline,
  .advantages-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-details {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 520px);
  }

  .hero {
    min-height: 600px;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }

  .header-inner {
    padding: 16px 0;
  }

  .nav-panel {
    padding: 98px 24px 30px;
  }

  .brand {
    min-width: 142px;
  }

  .brand-logo {
    width: 142px;
  }

  .eyebrow {
    font-size: 16px;
  }

  .lead {
    font-size: 15px;
  }

  .section {
    padding: 30px 0;
  }

  .about {
    padding-top: 20px;
  }

  .services-grid,
  .timeline,
  .advantages-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .mini-features {
    display: none;
  }

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

  .timeline {
    gap: 0;
  }

  .step {
    display: block;
    min-height: 64px;
    padding: 0 42px 48px;
    text-align: center;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::after {
    content: "";
    position: absolute;
    top: 21px;
    bottom: -21px;
    left: 20px;
    z-index: -1;
    border-left: 2px dotted var(--accent);
  }

  .step:last-child::after {
    display: none;
  }

  .step-number {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 2;
  }

  .step .icon {
    margin: 0 auto 18px;
  }

  .step .item-title {
    margin-right: auto;
    margin-left: auto;
  }

  .step .item-text {
    max-width: 230px;
    margin: 0 auto;
    line-height: 1.55;
  }

  .mobile-break {
    display: initial;
  }

  .service,
  .advantage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 10px;
  }

  .services-grid,
  .advantages-grid {
    border-left: 0;
  }

  .request {
    padding-top: 48px;
  }

  .request-copy {
    padding: 0 0 12px;
    text-align: center;
  }

  .request-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .form-card {
    padding: 18px;
  }

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

  .footer-separator {
    display: none;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}
