:root {
  --ink: #0b2030;
  --ink-2: #143246;
  --blue: #28aeea;
  --blue-2: #75d7ff;
  --blue-dark: #0879bf;
  --paper: #f7fbff;
  --white: #ffffff;
  --muted: #5f7181;
  --line: #dbe8f2;
  --dark-panel: #101820;
  --shadow: 0 18px 46px rgba(22, 67, 97, 0.16);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(40, 174, 234, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #eef7fd 44%, #ffffff 100%);
  background-size: 46px 46px, auto;
  color: var(--ink);
  line-height: 1.58;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(10, 57, 84, 0.12);
  box-shadow: 0 6px 22px rgba(24, 73, 103, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(24, 73, 103, 0.16);
}

.navbar {
  width: var(--container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--blue);
  animation: brandPulse 4s ease-in-out infinite;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong {
  color: var(--blue);
  font-size: 2.2rem;
  letter-spacing: 0;
}

.brand-text small {
  margin-top: 3px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu a {
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: #fff;
  background: var(--blue-dark);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(22, 67, 97, 0.08);
}

.lang-switch button {
  min-width: 38px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button.is-active {
  background: var(--blue-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 126px 0 60px;
  overflow: hidden;
  color: #fff;
  background: var(--dark-panel);
}

.hero-slider,
.hero-slide,
.hero-overlay,
.hero-dust {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.09);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 23, 33, 0.9) 0%, rgba(8, 23, 33, 0.74) 42%, rgba(8, 23, 33, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 23, 33, 0.7), rgba(8, 23, 33, 0.05));
}

.hero-dust {
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  gap: 42px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-2);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 720px;
  font-size: clamp(2.35rem, 5.7vw, 4.9rem);
  line-height: 0.98;
  margin-bottom: 10px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.42);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.05rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-slogan {
  margin-bottom: 18px;
  color: var(--blue-2);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
}

.hero-lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.03rem, 1.8vw, 1.22rem);
}

.hero-actions,
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), var(--blue-dark));
  color: #052032;
  box-shadow: 0 18px 36px rgba(40, 174, 234, 0.28);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

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

.hero-card {
  min-height: 112px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(117, 215, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(4, 20, 31, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.hero-card strong {
  color: #fff;
  font-size: 1.2rem;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.78);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--blue-2);
}

.section {
  padding: 94px 0;
}

.section-head {
  max-width: 830px;
  margin-bottom: 32px;
}

.section-head p:not(.eyebrow),
.text-block p,
.cta p {
  color: var(--muted);
}

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

.card,
.contact-form,
.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
  min-height: 238px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-2), var(--blue-dark));
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(40, 174, 234, 0.5);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-dark);
  font-weight: 900;
}

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

.split-section,
.services-section,
.gallery-section,
.contact-section {
  background: linear-gradient(180deg, #eef8ff, #ffffff);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: start;
}

.text-block {
  padding: 24px;
  border-left: 5px solid var(--blue);
  background: #fff;
  box-shadow: var(--shadow);
}

.process-section {
  background:
    linear-gradient(135deg, rgba(40, 174, 234, 0.14), rgba(255, 255, 255, 0.92)),
    #f6fbff;
}

.process-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.process-visual {
  position: relative;
  min-height: 420px;
  padding: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 33, 48, 0.04), rgba(11, 143, 216, 0.06)),
    url("../img/object-2.jpg") center / cover;
  overflow: hidden;
}

.process-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(117, 215, 255, 0.9);
  border-radius: calc(var(--radius) - 2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 28px rgba(40, 174, 234, 0.42);
  animation: borderGlow 3.4s ease-in-out infinite;
}

.process-visual::after {
  content: "";
  position: absolute;
  left: -35%;
  top: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-14deg);
  animation: imageShine 5.4s ease-in-out infinite;
}

.process-steps {
  display: grid;
  gap: 12px;
}

.process-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fff, #f2faff);
}

.process-step span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-dark);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 121, 191, 0.28);
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.services-grid span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink-2);
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(22, 67, 97, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.services-grid span:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-3px);
}

.ral-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ral-palette span {
  min-height: 112px;
  display: flex;
  align-items: end;
  padding: 14px;
  border: 3px solid #fff;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.36) 100%),
    var(--c);
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  box-shadow: var(--shadow);
}

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

.gallery-item {
  position: relative;
  padding: 0;
  border: 4px solid #fff;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dcebf5;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 30px rgba(22, 67, 97, 0.14);
}

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

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.05);
}

.facility-band {
  position: relative;
  padding: 92px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 23, 33, 0.88), rgba(8, 23, 33, 0.52)),
    url("../img/object-3.jpg") center / cover;
}

.facility-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 28px;
  border: 1px solid rgba(117, 215, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(8, 23, 33, 0.54);
}

.facility-card h2,
.facility-card p {
  margin-bottom: 0;
}

.cta-section {
  padding: 78px 0;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-2));
}

.cta {
  justify-content: space-between;
  gap: 28px;
  color: #052032;
}

.cta .eyebrow,
.cta p {
  color: rgba(5, 32, 50, 0.72);
}

.cta div {
  max-width: 740px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--blue-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 34px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-list strong {
  color: var(--ink);
}

.contact-list a {
  color: var(--blue-dark);
  font-weight: 800;
}

.map-wrap {
  overflow: hidden;
}

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

.contact-form {
  display: grid;
  gap: 15px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #f9fdff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(40, 174, 234, 0.16);
}

.contact-form textarea {
  resize: vertical;
}

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

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--dark-panel);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(4, 17, 25, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 86vh;
  border: 5px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes brandPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(40, 174, 234, 0));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(40, 174, 234, 0.42));
  }
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(0.985);
  }
}

@keyframes imageShine {
  0%,
  38% {
    left: -35%;
  }
  72%,
  100% {
    left: 115%;
  }
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-grid,
  .split,
  .process-board,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .navbar {
    min-height: 70px;
  }

  .brand {
    min-width: auto;
  }

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

  .brand-text strong {
    font-size: 1.72rem;
  }

  .brand-text small {
    max-width: 150px;
    line-height: 1.1;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-panel,
  .benefits-grid,
  .services-grid,
  .ral-palette,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .card {
    min-height: auto;
  }

  .process-board {
    padding: 16px;
  }

  .process-visual {
    min-height: 300px;
  }

  .process-step {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .process-step span {
    width: 44px;
    height: 44px;
  }

  .facility-card,
  .cta {
    align-items: stretch;
    flex-direction: column;
  }

  .cta .btn,
  .hero-actions .btn,
  .facility-card .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
