:root {
  --bg: #000919;
  --text: #f2f5fa;
  --muted: #8996a9;
  --accent: #478ed0;
  --line: rgba(150, 180, 215, 0.14);
  --gutter: clamp(20px, 5vw, 88px);
  --container: 1640px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 108px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

button, select {
  font: inherit;
}

a, button, select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.page[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1500;
  top: 20px;
  left: var(--gutter);
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #c5d2e0;
  font: 500 11px/1.5 "Inter", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(calc(-100% - 28px));
  transition: transform 0.3s var(--ease), color 0.2s ease;
}

.skip-link:focus, .skip-link:focus-visible {
  outline: none;
  transform: translateY(0);
  color: #f2f5fa;
  text-decoration-color: #8996a9;
  text-underline-offset: 6px;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 108px;
  background: rgba(0, 5, 14, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: height 0.36s var(--ease), background 0.36s ease, box-shadow 0.36s ease;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  height: 100%;
  margin-inline: auto;
}

.header.is-scrolled {
  height: 70px;
  background: rgba(0, 5, 14, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.brand {
  position: relative;
  display: block;
  grid-column: 1;
  justify-self: start;
  width: 76px;
  height: 76px;
}

.brand-full, .brand-mini {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease), filter 0.5s ease;
}

.brand img {
  display: block;
  width: auto;
}

.brand-full img {
  width: 76px;
  height: auto;
}

.brand-mini img {
  height: 32px;
}

.brand-mini {
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  filter: blur(3px);
}

.header.is-scrolled .brand-full {
  opacity: 0;
  transform: translateY(-10px) scale(0.8);
  filter: blur(3px);
}

.header.is-scrolled .brand-mini {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
}

.nav a {
  position: relative;
  padding: 12px 0;
  color: var(--muted);
  font: 600 21px "Manrope", sans-serif;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: color 0.25s ease, font-size 0.36s var(--ease);
}

.nav a:hover, .nav a[aria-current="page"] {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header.is-scrolled .nav a {
  font-size: 19px;
}

.header.is-scrolled .nav a::after {
  display: none;
}

.language-menu {
  position: relative;
  grid-column: 3;
  justify-self: end;
}

.language-menu .language-select {
  display: none;
}

.language-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 64px;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: #e2eaf5;
  font: 600 14px "Inter", sans-serif;
  cursor: pointer;
  transition: color 0.25s ease;
}

.language-trigger:hover {
  color: #fff;
}

.language-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.language-menu[data-open="true"] .language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  width: 172px;
  padding: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: rgba(3, 13, 27, 0.98);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

.language-menu[data-open="true"] .language-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s;
}

.language-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #c1cbd8;
  font: 500 13px "Inter", sans-serif;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.3s ease;
}

.language-option span:last-child {
  color: #8996a9;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.language-option[aria-checked="true"] {
  background: linear-gradient(90deg, rgba(71, 142, 208, 0.10), rgba(71, 142, 208, 0.015) 95%);
  color: #f2f5fa;
  font-weight: 600;
}

.language-option[aria-checked="true"] span:last-child {
  color: #b8c9da;
}

.language-option:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -2px;
  color: #fff;
}

.home, .specs-page {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.home-cinematic {
  position: relative;
  isolation: isolate;
}

.home-cinematic-video {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 50%;
  display: block;
  width: 100vw;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  transform: translateX(-50%);
  pointer-events: none;
}

.home-cinematic::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient( to bottom, rgba(0, 9, 25, 0.25) 0%, rgba(0, 9, 25, 0.45) 35%, rgba(0, 9, 25, 0.55) 65%, #000919 100% );
}

.home-cinematic .home-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100svh - 108px);
  padding: 100px 0;
}

.home-cinematic .home-content {
  min-width: 0;
  width: min(100%, 780px);
  text-align: left;
}

.home-content h1 {
  margin: 0;
  max-width: 7ch;
  font-family: "Inter", sans-serif;
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.home-cinematic .home-content p {
  max-width: 510px;
  margin: 30px 0 0;
}

.home-cinematic .about {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 55svh;
  padding: 80px 0 120px;
}

.home-cinematic .about-content {
  width: min(100%, 530px);
  text-align: left;
}

.home-cinematic .about-content h2 {
  margin: 0 0 26px;
  color: #d8e1ee;
  font: 600 clamp(28px, 3vw, 42px)/1.2 "Manrope", sans-serif;
  letter-spacing: -0.015em;
}

.home-cinematic .about-content p {
  max-width: 510px;
  margin: 0;
}

.home-cinematic .home-content p, .home-cinematic .about-content p {
  color: #bac7d6;
  font-size: 16px;
  line-height: 1.85;
  text-shadow: 0 2px 16px rgba(0, 9, 25, 0.65);
}

.projects {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 8vw, 120px) 0 28px;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/projects-topography.webp") center / cover no-repeat;
  opacity: 0.12;
}

.projects::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient( to right, #000919 0%, rgba(0, 9, 25, 0.98) 22%, rgba(0, 9, 25, 0.9) 38%, rgba(0, 9, 25, 0.62) 56%, rgba(0, 9, 25, 0.38) 72%, rgba(0, 9, 25, 0.58) 86%, #000919 100% ), linear-gradient( to bottom, rgba(0, 9, 25, 0.92) 0%, rgba(0, 9, 25, 0.18) 18%, rgba(0, 9, 25, 0.12) 50%, rgba(0, 9, 25, 0.22) 78%, rgba(0, 9, 25, 0.92) 100% );
}

.projects > * {
  position: relative;
  z-index: 1;
}

.projects h2 {
  margin: 0 0 42px;
  color: #d8e1ee;
  font: 600 clamp(24px, 2.4vw, 32px)/1.2 "Manrope", sans-serif;
  letter-spacing: -0.015em;
}

.projects-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
  padding: 24px 2px;
  border-bottom: 1px solid var(--line);
  color: #dce4ef;
  font: 600 clamp(18px, 2.2vw, 30px)/1.35 "Manrope", sans-serif;
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.35s var(--ease);
}

.projects-list a:last-child {
  border-bottom: none;
}

.specs-page {
  min-height: calc(100svh - 108px);
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 56px clamp(40px, 6vw, 110px);
  padding: clamp(58px, 6vw, 100px) 0 90px;
  animation: pageEnter 0.65s var(--ease) both;
}

.specs-content {
  min-width: 0;
}

.specs-label {
  color: #dbe6f3;
  font: 600 17px "Manrope", sans-serif;
  letter-spacing: -0.015em;
}

.specs-content h1 {
  margin: 24px 0 32px;
  color: #d8e1ee;
  font: 500 clamp(25px, 2.65vw, 38px)/1.14 "Inter", sans-serif;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.specs-table {
  margin: 0;
}

.specs-table div {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}

.specs-table div::before {
  content: "";
  position: absolute;
  inset: -24px -36px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 49% 42% at center, rgba(71, 142, 208, 0.12) 0%, rgba(71, 142, 208, 0.055) 48%, transparent 100%);
  filter: blur(7px);
  transition: opacity 0.7s var(--ease);
}

.specs-table dt, .specs-table dd {
  position: relative;
  z-index: 1;
}

.specs-table dt {
  color: #92a0b5;
  font-weight: 400;
}

.specs-table dd {
  margin: 0;
  color: #dce4ef;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.specs-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 380px;
  margin: 0;
  grid-template-rows: clamp(260px, 36vw, 500px) auto;
  row-gap: 12px;
}

.specs-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 68svh;
  object-fit: contain;
}

.specs-visual > img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}

.specs-visual .model-gallery-controls {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: max-content;
  max-width: 100%;
  margin: 20px auto 0;
}

.specs-visual .model-gallery-controls button {
  appearance: none;
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #9aaabd;
  font-size: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.specs-visual .model-gallery-controls button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 0px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.specs-visual .model-gallery-controls button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
}

.specs-visual .gallery-prev::after {
  left: 27px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.specs-visual .gallery-next::after {
  right: 27px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.specs-visual .model-gallery-controls button:hover {
  color: #f2f5fa;
}

.specs-visual .model-gallery-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.specs-visual .model-gallery-controls button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.specs-visual .gallery-counter {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #64758a;
  font: 400 13px/1 "Manrope", sans-serif;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.specs-visual .gallery-counter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
  font-weight: 400;
  transition: color 0.3s ease;
}

.specs-visual .gallery-counter span.active {
  color: #f2f5fa;
  font-weight: 400;
}

main img, .image-dialog img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.specs-visual .model-gallery-controls, .specs-visual .model-gallery-controls button {
  touch-action: manipulation;
}

.specs-bio {
  position: relative;
  grid-column: 1 / -1;
  padding: 44px 0;
  border: 0;
  text-align: center;
  transition: padding 0.55s var(--ease);
}

.specs-bio::before, .specs-bio::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}

.specs-bio::before {
  top: 0;
}

.specs-bio::after {
  bottom: 0;
}

.specs-bio h2 {
  margin: 0 46px 18px;
  color: #d8e1ee;
  font: 600 18px "Manrope", sans-serif;
  text-align: center;
  transition: margin-bottom 0.45s var(--ease);
}

.specs-bio p {
  max-width: 710px;
  margin: 0 auto;
  color: #92a0b5;
  font-size: 15px;
  line-height: 1.85;
}

.specs-bio-content, .configurations-content {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.4s ease;
}

.specs-bio-inner, .configurations-inner {
  min-height: 0;
  overflow: hidden;
}

.specs-bio.is-collapsed .specs-bio-content, .configurations.is-collapsed .configurations-content {
  grid-template-rows: 0fr;
  opacity: 0;
}

.specs-bio.is-collapsed, .configurations.is-collapsed {
  padding-top: 22px;
  padding-bottom: 22px;
}

.specs-bio.is-collapsed h2 {
  margin-bottom: 0;
}

.bio-toggle, .configurations-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8996a9;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.3s ease;
}

.bio-toggle::before, .configurations-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translate(-50%, -30%) rotate(225deg);
  transition: transform 0.45s var(--ease);
}

.specs-bio.is-collapsed .bio-toggle::before, .configurations.is-collapsed .configurations-toggle::before {
  transform: translate(-50%, -70%) rotate(45deg);
}

.configurations {
  position: relative;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 44px 0;
  transition: padding 0.55s var(--ease);
}

.configurations-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 44px;
}

.configurations-header h2 {
  margin: 0;
  color: #d8e1ee;
  font: 600 18px/1.35 "Manrope", sans-serif;
  letter-spacing: -0.015em;
  text-align: center;
}

.configurations-inner .configuration-grid {
  margin-top: 42px;
}

.configuration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(35px, 4vw, 55px) clamp(18px, 2vw, 28px);
}

.configuration-card {
  min-width: 0;
  margin: 0;
}

.configuration-image {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  place-items: center;
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 150, 185, 0.05);
  background: rgba(12, 35, 60, 0.03);
  cursor: zoom-in;
  transition: border-color 0.28s ease, background 0.28s ease;
}

.configuration-image::before {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -8%;
  width: 70%;
  height: 32%;
  transform: translateX(-50%);
  background: url("assets/типу плавник хай буде.webp") center bottom / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.configuration-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 85%;
  height: 85%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.65s var(--ease);
}

.configuration-image:disabled {
  cursor: default;
}

.configuration-caption {
  margin: 0;
  padding: 14px 0 0;
  color: #aebdcd;
  font: 500 13px "Manrope", sans-serif;
}

.specs-visual::after, .configuration-image::after, .image-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: url("assets/logo.png") repeat;
  background-size: 200px 200px;
  opacity: 0.004;
}

.configuration-image::after {
  opacity: 0.004;
  background-size: 50px 50px;
}

.image-dialog::after {
  inset: 32px;
  opacity: 0.009;
  background-size: 160px 160px;
}

.configuration-image img, .image-dialog img, .specs-visual img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.image-dialog {
  position: fixed;
  inset: 0;
  width: min(1120px, 92vw);
  height: min(76svh, 760px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 32px;
  overflow: hidden;
  border: none;
  background: radial-gradient( ellipse at 50% 45%, rgba(71, 142, 208, 0.055), transparent 62% ), linear-gradient( rgba(120, 165, 210, 0.018) 1px, transparent 1px ), linear-gradient( 90deg, rgba(120, 165, 210, 0.018) 1px, transparent 1px ), linear-gradient(180deg, #061326, #030b17);
  background-size: auto, 128px 128px, 128px 128px, auto;
}

.image-dialog::backdrop {
  background: rgba(0, 5, 14, 0.88);
  backdrop-filter: blur(6px);
}

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

.image-dialog-close {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dce5f0;
  font: 0 32px/1 "Inter", sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.25s var(--ease);
}

.image-dialog-close::before, .image-dialog-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.image-dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.image-dialog-close:hover::before, .image-dialog-close:hover::after {
  opacity: 1;
}

.image-dialog-close:hover {
  color: #fff;
  transform: scale(1.07);
}

.image-dialog[open] {
  transform-origin: center center;
  animation: imageDialogOpen 0.45s var(--ease) both;
}

.image-dialog[open]::backdrop {
  animation: imageBackdropOpen 0.45s ease both;
}

.image-dialog[open].is-closing {
  animation: imageDialogClose 0.26s ease-in both;
}

.image-dialog[open].is-closing::backdrop {
  animation: imageBackdropClose 0.26s ease-in both;
}

body.modal-open {
  overflow: hidden;
}

.image-dialog.is-loading img {
  visibility: hidden;
}

.preview-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-dialog.is-loading.show-loader .preview-loading {
  opacity: 1;
  visibility: visible;
}

.preview-loading-line {
  position: relative;
  display: block;
  width: 90px;
  height: 1px;
  overflow: hidden;
  background: rgba(150, 180, 215, 0.18);
}

.preview-loading-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: previewLoading 1.4s ease-in-out infinite;
}

.image-dialog.is-loading {
  min-height: 0;
}

.image-dialog .preview-loading img.preview-loading-logo {
  display: block;
  width: 96px;
  height: auto;
  max-height: none;
  object-fit: contain;
  visibility: visible;
  opacity: 0.85;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro img {
  display: block;
  width: auto;
  height: 110px;
}

.intro-line {
  width: 80px;
  height: 1px;
  overflow: hidden;
  background: rgba(71, 142, 208, 0.2);
}

.intro-line::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  animation: loadingLine 1.6s linear infinite;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-ready .home-content h1 {
  animation: pageEnter 0.85s var(--ease) both;
}

.site-ready .home-content p {
  animation: pageEnter 0.85s var(--ease) 0.12s both;
}

.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: none;
}

main, .site-footer {
  transition: opacity 0.2s ease, filter 0.2s ease;
}

body.language-changing main, body.language-changing .site-footer {
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
}

.site-footer {
  position: relative;
  padding: 28px var(--gutter) 34px;
  background: #00050e;
}

.site-footer[hidden] {
  display: none !important;
}

.footer-shell {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.footer-left {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "heading contacts" "description contacts";
  column-gap: clamp(40px, 6vw, 100px);
  row-gap: 10px;
  align-items: start;
}

.footer-left h2 {
  grid-area: heading;
  margin: 0;
  color: var(--text);
  font: 500 23px/1.3 "Inter", sans-serif;
  letter-spacing: -0.025em;
}

.footer-left > p {
  grid-area: description;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-info {
  grid-area: contacts;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-self: center;
}

.footer-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.footer-item p {
  margin: 0;
  color: var(--text);
  font: 500 16px/1.5 "Inter", sans-serif;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.footer-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-item a:hover {
  color: var(--accent);
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  50% {
    transform: translateX(0);
  }

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

@keyframes imageDialogOpen {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.965);
  }

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

@keyframes imageDialogClose {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.975);
  }
}

@keyframes imageBackdropOpen {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes imageBackdropClose {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes previewLoading {
  to {
    transform: translateX(100%);
  }
}

@media (hover: hover) {
  .projects-list a:hover {
    color: #fff;
    padding-left: 12px;
  }

  .specs-table div:hover::before {
    opacity: 1;
  }

  .configuration-image:hover {
    border-color: rgba(120, 170, 220, 0.24);
  }

  .configuration-image:hover img {
    transform: scale(1.03);
  }

  .language-option:hover {
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(71, 142, 208, 0.12), rgba(71, 142, 208, 0.02) 95%);
    color: #fff;
  }

  .language-option:hover span:last-child {
    color: #c0d0e0;
  }

  .bio-toggle:hover {
    color: #dce5f0;
  }

  .configurations-toggle:hover {
    color: #f2f5fa;
  }
}

@media (min-width: 1025px) {
  .specs-page > .configurations {
    margin-top: -56px;
  }
}

@media (max-width: 1024px) {
  .specs-page {
    grid-template-columns: 1fr;
    gap: 38px;
    position: relative;
    isolation: isolate;
  }

  .specs-content {
    max-width: 640px;
  }

  .specs-visual {
    min-height: 0;
  }

  .specs-visual img {
    max-height: 470px;
  }

  .specs-page > .configurations {
    margin-top: -38px;
  }

  .specs-bio:not(.is-collapsed) .bio-toggle {
    top: 36px;
    transform: none;
  }
}

@media (min-width: 821px) and (max-width: 1024px) {
  .specs-content {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .specs-label {
    display: block;
    text-align: center;
  }

  .specs-content h1 {
    margin: 22px 0 36px;
    text-align: center;
  }

  .specs-visual {
    width: min(100%, 700px);
    margin-inline: auto;
  }

  .specs-visual img {
    max-height: 440px;
  }
}

@media (max-width: 900px) {
  .configuration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 20px;
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 0;
  }

  .header {
    position: sticky;
    top: 0;
    inset: auto;
    z-index: 100;
    background: #00050e;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background 0.25s ease, box-shadow 0.25s ease;
    height: 76px;
  }

  .header.is-scrolled {
    background: #00050e;
    height: 76px;
  }

  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px);
  }

  .brand {
    flex: 0 0 57px;
    width: 57px;
    height: 57px;
  }

  .brand-full img {
    width: 57px;
    height: auto;
  }

  .brand-mini img {
    height: 28px;
  }

  .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 14px;
  }

  .nav a {
    font-size: 18px;
  }

  .header.is-scrolled .nav a {
    font-size: 17px;
  }

  .language-menu {
    margin-left: auto;
  }

  .language-trigger {
    min-width: 44px;
    gap: 8px;
  }

  .projects {
    padding: 32px 0 28px;
  }

  .specs-page {
    padding: 54px 0 72px;
  }

  .footer-left {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "description" "contacts";
    row-gap: 6px;
  }

  .footer-info {
    margin-top: 18px;
  }

  .specs-bio::before, .specs-bio::after {
    width: calc(100% + 2 * var(--gutter));
  }

  .specs-table div::before {
    inset: -24px -16px;
  }

  .specs-bio h2 {
    transition: margin-bottom 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .specs-bio-content {
    transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  }

  .specs-bio {
    transition: padding 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-cinematic .home-hero {
    min-height: 72svh;
    padding: 60px 0 80px;
  }

  .home-cinematic .home-content h1 {
  margin: 0;
  font: 500 clamp(46px, 5.3vw, 80px)/1.08 "Manrope", sans-serif;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
}

.home-cinematic .home-content p {
  max-width: 440px;
  margin: 24px 0 0;
}

  .home-cinematic .about {
    justify-content: flex-start;
    min-height: 360px;
    padding: 50px 0 90px;
  }

  .home-cinematic .home-content, .home-cinematic .about-content {
    text-align: left;
  }

  .home-cinematic .home-content p, .home-cinematic .about-content p {
    max-width: 420px;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .home-cinematic .about-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .projects h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 23px;
  }

  .projects-list a {
    min-height: 72px;
    padding: 18px 0;
    font-size: 19px;
  }

  .configuration-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .configurations-inner .configuration-grid {
    margin-top: 28px;
  }

  .configuration-image {
    padding: 12px;
  }

  .specs-bio {
    padding: 34px 0;
  }

  .specs-bio h2 {
    margin: 0 40px 16px;
  }

  .image-dialog {
    position: fixed;
    inset: auto 0;
    top: 50%;
    translate: 0 -50%;
    margin: 0 auto;
    width: calc(100% - 32px);
    max-width: 540px;
    height: min(70dvh, 420px);
    max-height: 80dvh;
    padding: 44px 12px 12px;
  }

  .image-dialog::after {
    inset: 48px 12px 12px;
    background-size: 125px 125px;
  }

  .specs-visual::after, .configuration-image::after {
    background-size: 110px 110px;
  }

  .site-footer {
    padding: 28px var(--gutter) 36px;
  }

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

  .image-dialog:focus, .image-dialog:focus-visible {
    outline: none;
  }

  .specs-label {
    display: block;
    text-align: center;
  }

  .specs-content h1 {
    text-align: center;
    margin: 24px 0 36px;
  }

  .specs-bio.is-collapsed {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .specs-bio:not(.is-collapsed) .bio-toggle {
    top: 26px;
  }

  .specs-visual .model-gallery-controls {
    gap: 12px;
  }

  .specs-visual .gallery-counter {
    gap: 12px;
  }

  .home-cinematic .home-hero, .home-cinematic .about {
    justify-content: center;
  }

  .home-cinematic .home-content, .home-cinematic .about-content {
    width: 100%;
    text-align: center;
  }

  .home-cinematic .home-content p, .home-cinematic .about-content p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .home-cinematic .about-content h2 {
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
  .home-cinematic .home-hero, .home-cinematic .about {
    justify-content: center;
  }

  .home-cinematic .home-content, .home-cinematic .about-content {
    width: min(100%, 620px);
    margin-inline: auto;
    text-align: center;
  }

  .home-cinematic .home-content p, .home-cinematic .about-content p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .home-cinematic .about-content h2 {
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 1024px) and (orientation: landscape) {
  .home-cinematic .home-hero {
    justify-content: flex-start;
  }

  .home-cinematic .about {
    justify-content: flex-end;
  }

  .home-cinematic .home-content, .home-cinematic .about-content {
    width: min(100%, 530px);
    text-align: left;
  }

  .home-cinematic .home-content p, .home-cinematic .about-content p {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 15px;
  }

  .nav a, .header.is-scrolled .nav a {
    font-size: 16px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .specs-table div {
    gap: 12px;
  }
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .configurations, .configurations.is-collapsed {
    padding-top: 24px;
    padding-bottom: 24px;
    transition: none;
  }

  .configurations-content, .configurations.is-collapsed .configurations-content {
    display: block;
    overflow: hidden;
    opacity: 1;
    transition: none;
  }

  .configurations.is-collapsed .configurations-content {
    height: 0;
  }

  .configuration-card {
    contain: layout paint;
  }

  html.configurations-animating {
    scroll-behavior: auto;
    overflow-anchor: none;
  }

  .home-cinematic::before {
    background-image: linear-gradient( to bottom, rgba(0, 9, 25, 0.40) 0%, rgba(0, 9, 25, 0.55) 40%, rgba(0, 9, 25, 0.90) 70%, #000919 100% ), url("assets/home-video-poster.webp");
    background-size: 100% 100%, cover;
    background-position: center, center;
    background-repeat: no-repeat;
  }

  .home-cinematic-video {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .intro {
    display: none;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }

  body.language-changing main, body.language-changing .site-footer {
    opacity: 1;
    filter: none;
  }

  .preview-loading, .preview-loading-line::after {
    animation: none;
    transition: none;
  }

  .specs-visual .model-gallery-controls button {
    transition: none;
  }

  .home-cinematic-video {
    display: none;
  }

  .home-cinematic::before {
    background-image: linear-gradient(to bottom, rgba(0, 9, 25, 0.40) 0%, rgba(0, 9, 25, 0.55) 40%, rgba(0, 9, 25, 0.90) 70%, #000919 100%), url("assets/home-video-poster.webp");
    background-size: 100% 100%, cover;
    background-position: center, center;
    background-repeat: no-repeat;
  }
}


@media (max-width: 600px) {
  .home-cinematic .home-content h1 {
    font-size: clamp(36px, 9vw, 54px);
    line-height: 1.1;
    letter-spacing: -0.045em;
  }

  .home-cinematic .home-content p {
    max-width: 320px;
    margin: 20px auto 0;
  }
}


@media (max-width: 600px) {
  .home-cinematic .home-hero {
    min-height: calc(100svh - 76px);
    align-items: center;
    justify-content: center;
    padding: 40px 0;
  }

  .home-cinematic .home-content {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .home-cinematic .home-content h1 {
    text-align: center;
  }

  .home-cinematic .home-content p {
    margin: 20px auto 0;
    text-align: center;
  }
}


@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .home-cinematic .home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-cinematic .home-content {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }

  .home-cinematic .home-content h1 {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }

  .home-cinematic .home-content p {
    margin: 20px auto 0;
    text-align: center;
    max-width: 380px;
  }
}

.home-cinematic .home-content h1 {
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.home-cinematic .home-content p {
  max-width: 540px;
  margin: 22px auto 0;
  font-size: 15px;
  line-height: 1.7;
}


.about-content p {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.005em;
}

@media (max-width: 600px) {
  .home-cinematic .home-content h1 {
    font-size: clamp(32px, 7.8vw, 44px);
    line-height: 1.12;
  }

  .home-cinematic .home-content p {
    max-width: 340px;
    margin: 20px auto 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .about-content p {
    font-size: 14px;
    line-height: 1.8;
  }
}


.home-cinematic .home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.home-cinematic .home-content h1 {
  margin: 0;
}

.home-cinematic .home-content p {
  width: 100%;
  max-width: 560px;
  margin: 0;
  text-align: left;
  align-self: flex-start;
}

@media (max-width: 600px) {
  .home-cinematic .home-content {
    align-items: center;
    text-align: center;
  }

  .home-cinematic .home-content p {
    max-width: 340px;
    text-align: center;
    align-self: center;
  }
}

header nav a {
  border-bottom: none !important;
  text-decoration: none !important;
}

header nav a::before,
header nav a::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 600px) {
  .site-footer .footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer .footer-item {
    width: 100%;
    min-width: 0;
  }

  .site-footer .footer-item p {
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}

