:root {
  --bg: #151b20;
  --bg-soft: #1c242b;
  --bg-deep: #0f1418;
  --surface: #242d35;
  --surface-light: #2c3740;
  --text: #edf5f8;
  --muted: #aebcc5;
  --line: rgba(177, 219, 232, 0.16);
  --accent: #54c7df;
  --accent-strong: #25aeca;
  --accent-soft: rgba(84, 199, 223, 0.13);
  --on-accent: #071216;
  --danger: #ffb8b8;
  --nav-surface: rgba(255, 255, 255, 0.04);
  --control-surface: rgba(255, 255, 255, 0.05);
  --accent-line: rgba(84, 199, 223, 0.42);
  --hero-text: #edf5f8;
  --hero-muted: #d7e8ee;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  font-family: "Segoe UI", Arial, sans-serif;
}

html[data-theme="light"] {
  --bg: #eef3f5;
  --bg-soft: #f7fafb;
  --bg-deep: #dde8ec;
  --surface: #ffffff;
  --surface-light: #eef6f8;
  --text: #172128;
  --muted: #5c6b74;
  --line: rgba(32, 78, 92, 0.16);
  --accent: #168fa8;
  --accent-strong: #08748a;
  --accent-soft: rgba(22, 143, 168, 0.12);
  --on-accent: #ffffff;
  --danger: #a83434;
  --nav-surface: rgba(255, 255, 255, 0.72);
  --control-surface: rgba(255, 255, 255, 0.82);
  --accent-line: rgba(22, 143, 168, 0.38);
  --hero-text: #edf5f8;
  --hero-muted: #d7e8ee;
  --shadow: 0 18px 45px rgba(36, 70, 82, 0.16);
}

* {
  box-sizing: border-box;
}

::selection {
  color: var(--on-accent);
  background: var(--accent);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

@keyframes loadingLine {
  0% {
    transform: translateX(-100%);
  }

  55% {
    transform: translateX(-18%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes siteReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-loader {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  animation: loadingLine 0.72s ease forwards;
}

.page-loader.is-hidden {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.site-content {
  animation: siteReveal 0.46s ease both;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: 72px;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 56px;
  color: var(--text);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header--solid {
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

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

.brand__mark {
  display: block;
  width: 148px;
  height: 48px;
  flex: 0 0 auto;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--nav-surface);
}

.desktop-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-phone {
  color: var(--text);
  font-weight: 800;
}

.theme-toggle,
.mobile-theme-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--control-surface);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.theme-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  font-size: 20px;
}

.theme-toggle:hover,
.mobile-theme-toggle:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.mobile-theme-toggle {
  min-height: 46px;
  margin-top: 16px;
  padding: 12px 16px;
  text-align: left;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--nav-surface);
  cursor: pointer;
}

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

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

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

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

.mobile-menu {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  width: min(82vw, 340px);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 92px 24px 24px;
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.34);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 13px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__bottom {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.menu-backdrop {
  position: fixed;
  z-index: 35;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.48);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menu-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.hero-slider {
  position: relative;
  min-height: 100vh;
  color: var(--hero-text);
  overflow: hidden;
  background: var(--bg-deep);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 18, 22, 0.92) 0%, rgba(13, 18, 22, 0.72) 48%, rgba(13, 18, 22, 0.3) 100%),
    linear-gradient(0deg, rgba(13, 18, 22, 0.86), rgba(13, 18, 22, 0.12) 52%);
}

.slide__content {
  position: relative;
  z-index: 1;
  padding-top: 110px;
}

.slide__content p {
  color: var(--hero-muted);
  max-width: 720px;
  font-size: 22px;
}

.slide__content h1,
.slide__content h2 {
  color: var(--hero-text);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

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

.button.button--primary {
  color: var(--on-accent);
  background: var(--accent);
}

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

.button.button--secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--control-surface);
}

.slider-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.slider-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(15, 20, 24, 0.7);
  font-size: 28px;
  cursor: pointer;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.slider-dots button.is-active {
  background: var(--accent);
}

.section {
  padding: 94px 0;
}

.section--dark {
  background: var(--bg-deep);
}

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

.cards {
  display: grid;
  gap: 18px;
}

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

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

.lift-card {
  min-width: 0;
  max-width: 100%;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.lift-card:hover {
  transform: translateY(-9px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.lift-card--dark {
  background: var(--surface);
}

.lift-card a {
  color: var(--accent);
  font-weight: 900;
}

.contact-preview {
  background: var(--bg-soft);
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: 34px;
  align-items: center;
}

.cards > *,
.project-list > *,
.contact-grid > *,
.page-hero__grid > *,
.project-detail > * {
  min-width: 0;
}

.contact-strip__links {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.contact-strip__links a:not(.button) {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 26px 0;
  color: var(--muted);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.page-main {
  padding-top: 80px;
}

.page-hero {
  padding: 88px 0 74px;
  background:
    linear-gradient(135deg, rgba(84, 199, 223, 0.12), transparent 40%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.6fr);
  gap: 42px;
  align-items: center;
}

.page-hero p {
  max-width: 760px;
  font-size: 18px;
}

.page-hero__panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 22px;
}

.project-list {
  display: grid;
  gap: 16px;
}

.equipment-group + .equipment-group {
  margin-top: 56px;
}

.equipment-group__heading {
  margin-bottom: 24px;
}

.project-item span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.project-item--link {
  display: block;
  color: inherit;
  min-width: 0;
}

.project-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 900;
}

.project-card-image,
.project-image {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.project-card-image {
  height: 190px;
  margin-bottom: 18px;
}

.project-image {
  max-height: 430px;
  margin-bottom: 26px;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 24px;
  align-items: start;
}

.project-detail__content p {
  font-size: 18px;
}

.project-detail__aside {
  display: grid;
  gap: 12px;
}

.project-detail__aside h3 {
  margin-bottom: 0;
}

.project-detail__aside .button {
  width: 100%;
}

.contact-card {
  display: grid;
  gap: 10px;
}

.contact-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card a {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 23px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.contact-grid--simple {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-direct {
  display: grid;
  gap: 14px;
}

.contact-direct a {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-page {
  min-height: 100vh;
  padding: 48px 20px;
  background: var(--bg);
}

.admin-panel {
  width: min(760px, 100%);
  margin: 0 auto 24px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-panel--wide {
  width: min(1120px, 100%);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 16px;
}

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

.admin-form__full {
  grid-column: 1 / -1;
}

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

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--bg);
  font: inherit;
  outline: none;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.admin-error {
  color: var(--danger);
  font-weight: 900;
}

.admin-success {
  color: var(--accent);
  font-weight: 900;
}

.admin-projects {
  display: grid;
  gap: 16px;
}

.admin-project {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.admin-project span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 900;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.admin-actions a {
  color: var(--accent);
  font-weight: 900;
}

.admin-link-button {
  padding: 0;
  border: 0;
  color: var(--danger);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .desktop-nav,
  .header-phone,
  .theme-toggle {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .cards--four,
  .cards--three,
  .contact-strip,
  .page-hero__grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-detail {
    grid-template-columns: 1fr;
  }

  .admin-form--grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 34px;
  }

  .slide__content p {
    font-size: 19px;
  }
}

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

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand__mark {
    width: 126px;
    height: 42px;
  }

  .brand__name {
    display: none;
  }

  .slide__content {
    padding-top: 86px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .slide__content p,
  .page-hero p,
  .intro p,
  .split p,
  .contacts p,
  .project-detail__content p {
    font-size: 16px;
  }

  .contact-card a,
  .contact-direct a,
  .contact-strip__links a:not(.button) {
    font-size: 18px;
  }

  .slider-controls {
    bottom: 22px;
  }

  .section {
    padding: 68px 0;
  }

  .page-main {
    padding-top: 66px;
  }

  .page-hero {
    padding: 62px 0 54px;
  }

  .lift-card {
    padding: 22px;
  }

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

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

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .brand__name {
    display: none;
  }

  .brand__mark {
    width: 116px;
    height: 38px;
  }

  .lift-card {
    padding: 18px;
  }

  .mobile-menu {
    width: min(88vw, 340px);
    padding-left: 20px;
    padding-right: 20px;
  }

  .mobile-menu a {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    display: none;
  }

  .site-content {
    animation: none;
  }
}
