:root {
  --accent: #4f5dff;
  --accent-soft: rgba(79, 93, 255, 0.62);
  --accent-strong: #7a3cff;
  --cyan: #2ad4d0;
  --violet: #9b5cff;
  --white: #ffffff;
  --ink: #12163a;
  --text: #1c2250;
  --muted: #4f5a9a;
  --surface: #eef0ff;
  --surface-2: #e3e7ff;
  --card: #ffffff;
  --card-tint: linear-gradient(160deg, #ffffff 0%, #f0f2ff 100%);
  --border: rgba(89, 103, 255, 0.22);
  --footer: #12163a;
  --hover-t: rgba(79, 93, 255, 0.28);
  --border-t: rgba(180, 200, 255, 0.38);
  --head-height: 72px;
  --left-pad: 4vw;
  --col-w: 22vw;
  --row-h: 18vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(122, 60, 255, 0.12), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(42, 212, 208, 0.1), transparent 30%),
    linear-gradient(180deg, #f5f6ff 0%, #ebefff 45%, #f7f8ff 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ===== Headers ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--head-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.slide-header {
  color: var(--white);
  background: transparent;
}
.normal-header {
  display: none;
  color: var(--ink);
  background: rgba(245, 246, 255, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(55, 70, 180, 0.1);
  backdrop-filter: blur(10px);
}
body.scrolled .slide-header { display: none; }
body.scrolled .normal-header { display: flex; }
body.menu-open .slide-header,
body.menu-open .normal-header { z-index: 50; }
body.menu-open.scrolled .slide-header {
  display: flex;
  color: #fff;
  background: transparent;
}
body.menu-open.scrolled .normal-header { display: none; }

.burger {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: grid;
  align-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-phones {
  display: grid;
  justify-items: end;
  gap: 2px;
  line-height: 1.2;
}
.header-phones a {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.header-phones a:last-child {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
}
.header-phones-dark a {
  color: var(--ink);
}

/* ===== Half-page dropdown menu ===== */
.page-menu-block {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  color: #fff;
  pointer-events: none;
}
.page-menu-block.open {
  display: block;
  pointer-events: auto;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 40, 0.45);
}
.menu-grid {
  position: relative;
  z-index: 2;
  height: 50vh;
  max-height: 50vh;
  min-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: calc(var(--head-height) + 20px) 4vw 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(122, 60, 255, 0.45), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(42, 212, 208, 0.28), transparent 42%),
    linear-gradient(160deg, #151a45 0%, #1d2460 55%, #12163a 100%);
  box-shadow: 0 18px 40px rgba(8, 12, 40, 0.35);
  border-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
}
.menu-title {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  transform-origin: left center;
  transition: transform 0.22s ease, color 0.22s ease;
}
.menu-title:hover {
  transform: scale(1.12);
  color: #fff;
}
.menu-link {
  display: inline-block;
  color: #b8c4ff;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 10px;
  transform-origin: left center;
  transition: transform 0.22s ease, color 0.22s ease;
}
.menu-link:hover {
  color: var(--cyan);
  transform: scale(1.14);
  text-decoration: none;
}
.menu-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.menu-contacts a,
.menu-contacts span {
  display: inline-block;
  color: #dce3ff;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
  transform-origin: left center;
  transition: transform 0.22s ease, color 0.22s ease;
}
.menu-contacts a:hover {
  color: var(--cyan);
  transform: scale(1.12);
}

/* ===== Slider ===== */
.page-slider-block {
  position: relative;
  height: 100vh;
  min-height: 640px;
  color: #fff;
  overflow: hidden;
  --parallax: 0;
  --dir: 1;
}
.page-ground {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.page-background {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(calc(var(--parallax) * var(--dir) * -8%), 0, 0) scale(1.12);
  transition: opacity 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-background.showed { opacity: 1; }
.page-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(25, 30, 90, 0.62), rgba(55, 35, 120, 0.45) 55%, rgba(20, 70, 90, 0.35)),
    rgba(12, 16, 48, 0.28);
}
.parallax-dust {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  background:
    radial-gradient(circle at 20% 30%, rgba(142, 240, 234, 0.22), transparent 28%),
    radial-gradient(circle at 70% 60%, rgba(155, 92, 255, 0.2), transparent 32%),
    radial-gradient(circle at 40% 80%, rgba(79, 93, 255, 0.18), transparent 30%);
  transform: translate3d(calc(var(--parallax) * var(--dir) * -14%), calc(var(--parallax) * -4%), 0);
  will-change: transform;
}
.grid-lines {
  transform: translate3d(calc(var(--parallax) * var(--dir) * -4%), 0, 0);
  will-change: transform;
}
.grid-lines span,
.grid-lines i {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: var(--border-t);
}
.grid-lines span {
  top: 0;
  bottom: 0;
  width: 1px;
}
.grid-lines span:nth-child(1) { left: calc(var(--left-pad) + var(--col-w)); }
.grid-lines span:nth-child(2) { left: calc(var(--left-pad) + var(--col-w) * 2); }
.grid-lines span:nth-child(3) { left: calc(var(--left-pad) + var(--col-w) * 3); }
.grid-lines span:nth-child(4) { left: calc(var(--left-pad) + var(--col-w) * 4); }
.grid-lines i {
  left: var(--left-pad);
  right: calc(100% - var(--left-pad) - var(--col-w) * 4);
  height: 1px;
}
.grid-lines i:nth-child(5) { top: calc(var(--head-height) + 8vh); }
.grid-lines i:nth-child(6) { top: calc(var(--head-height) + 8vh + var(--row-h)); }
.grid-lines i:nth-child(7) { top: calc(var(--head-height) + 8vh + var(--row-h) * 2); }

.page-slider-slide {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(calc(var(--dir) * 28%), 0, 0) scale(0.98);
  transition: none;
  pointer-events: none;
  will-change: transform, opacity;
}
.page-slider-slide.active {
  opacity: calc(1 - var(--parallax) * 0.85);
  visibility: visible;
  transform: translate3d(calc(var(--parallax) * var(--dir) * -22%), 0, 0) scale(calc(1 - var(--parallax) * 0.04));
  pointer-events: auto;
  z-index: 4;
}
.page-slider-slide.is-next {
  opacity: calc(var(--parallax) * 0.95);
  visibility: visible;
  transform: translate3d(calc((1 - var(--parallax)) * var(--dir) * 24%), 0, 0) scale(calc(0.96 + var(--parallax) * 0.04));
  pointer-events: none;
  z-index: 5;
}
.page-slider-slide.is-prev {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(calc(var(--dir) * -28%), 0, 0) scale(0.96);
}
body.slider-locked {
  overflow: hidden;
  height: 100%;
}
html.slider-locked {
  overflow: hidden;
  height: 100%;
}

.page-slider-content {
  position: absolute;
  top: calc(var(--head-height) + 8vh);
  left: var(--left-pad);
  width: calc(var(--col-w) * 4);
  height: calc(var(--row-h) * 3);
  display: flex;
  flex-wrap: wrap;
  z-index: 4;
}
/* Пока открыт cookie-бар — слайдер короче, кнопки не перекрываются */
body.slider-locked.cookie-open .page-slider-block,
body.slider-locked:has(#siteCookie.is-open) .page-slider-block {
  height: calc(100dvh - 124px);
  min-height: calc(100dvh - 124px);
}

/* Sakhalin vector sketch — contours extracted from akhalin.webp */
.sakhalin-sketch,
.slide-side-art {
  position: absolute;
  right: 2vw;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.sakhalin-sketch {
  top: 50%;
  right: 1.5vw;
  height: 100vh;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding: 0;
  box-sizing: border-box;
  transform: translateY(-42%);
}
.sakhalin-svg {
  height: 76vh;
  width: auto;
  max-width: min(40vw, 520px);
  display: block;
  overflow: visible;
  transform: rotate(23deg) translateY(4vh) translateZ(0);
  transform-origin: center center;
  filter: drop-shadow(0 8px 18px rgba(20, 30, 90, 0.25));
}
.slide-side-art {
  top: 52%;
  right: 2vw;
  transform: translateY(-50%);
  width: min(28vw, 340px);
  z-index: 4;
}
.page-slider-slide.active .sakhalin-sketch {
  opacity: 1;
}
.slide-side-art {
  transform: translateY(-46%) translateX(28px) scale(0.94);
  filter: blur(6px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 1.15s cubic-bezier(0.22, 0.7, 0.2, 1),
    filter 1.1s ease;
}
.slide-side-art.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  filter: blur(0);
}
.slide-side-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(20, 30, 90, 0.28));
}

.slide-collage {
  position: absolute;
  top: 10vh;
  right: 4vw;
  bottom: 10vh;
  left: 38%;
  z-index: 2;
  pointer-events: none;
}
.collage-piece {
  position: absolute;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(8, 12, 40, 0.45);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(28px) scale(0.94);
  transition:
    opacity 1.05s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 1.1s cubic-bezier(0.22, 0.7, 0.2, 1),
    filter 1.05s ease;
  transition-delay: calc(var(--i, 0) * 0.14s);
}
.slide-collage.is-visible .collage-piece {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}
.collage-piece:nth-child(1) {
  top: 0;
  left: 0;
  width: 54%;
  aspect-ratio: 16 / 10;
}
.collage-piece:nth-child(2) {
  top: 6%;
  right: 18%;
  width: 42%;
  aspect-ratio: 16 / 9;
  transform: translateY(28px) scale(0.94) rotate(2deg);
}
.slide-collage.is-visible .collage-piece:nth-child(2) {
  transform: translateY(0) scale(1) rotate(2deg);
}
.collage-piece:nth-child(3) {
  bottom: 8%;
  left: 4%;
  width: 48%;
  aspect-ratio: 16 / 10;
  transform: translateY(28px) scale(0.94) rotate(-2deg);
}
.slide-collage.is-visible .collage-piece:nth-child(3) {
  transform: translateY(0) scale(1) rotate(-2deg);
}
.collage-piece:nth-child(4) {
  bottom: 0;
  right: 20%;
  width: 44%;
  aspect-ratio: 16 / 9;
}
.islands-group {
  fill: rgba(89, 103, 255, 0.12);
}
.island-path {
  fill: rgba(89, 103, 255, 0.18);
  stroke: rgba(210, 224, 255, 0.55);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.island-main {
  fill: rgba(122, 60, 255, 0.16);
  stroke: rgba(220, 232, 255, 0.62);
  stroke-width: 2.8;
}
.island-neon {
  fill: none !important;
  stroke: #7af7ff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  filter:
    drop-shadow(0 0 3px rgba(42, 212, 208, 0.95))
    drop-shadow(0 0 10px rgba(89, 103, 255, 0.85))
    drop-shadow(0 0 18px rgba(122, 60, 255, 0.55));
}
.island-neon-alt {
  stroke: #c4b5ff;
  stroke-width: 2.6;
  filter:
    drop-shadow(0 0 3px rgba(196, 181, 255, 0.95))
    drop-shadow(0 0 12px rgba(122, 60, 255, 0.9))
    drop-shadow(0 0 20px rgba(42, 212, 208, 0.4));
}
.page-slider-block {
  transform: translateZ(0);
}
.sakhalin-caption {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 220, 255, 0.75);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.sakhalin-sketch.is-revealing .sakhalin-caption {
  opacity: 1;
  transition-delay: 0.55s;
}
.sakhalin-sketch.is-neon .island-path {
  stroke: rgba(180, 200, 255, 0.35);
}

.cell {
  width: var(--col-w);
  height: var(--row-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid transparent;
}
.cell-wide { width: calc(var(--col-w) * 2); }
.cell-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}
.brand-logo {
  width: clamp(64px, 7.5vw, 96px);
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(20, 30, 90, 0.35));
}
.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.cell-title {
  display: block;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #ffffff 0%, #c9d4ff 55%, #8ef0ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cell-text {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(230, 236, 255, 0.95);
  max-width: 28ch;
}
.cell-stat .stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(42, 212, 208, 0.35);
}
.cell-link {
  background: var(--hover-t);
  border: 1px solid rgba(170, 190, 255, 0.28);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cell-link:hover,
.cell-link.active {
  background: var(--accent-soft);
  border-color: rgba(170, 190, 255, 0.55);
  box-shadow: 0 10px 28px rgba(55, 70, 200, 0.25);
}
.cell-accent {
  background: linear-gradient(145deg, rgba(79, 93, 255, 0.72), rgba(122, 60, 255, 0.72));
  border-color: rgba(180, 200, 255, 0.45);
}
.cell-accent:hover {
  background: linear-gradient(145deg, rgba(79, 93, 255, 0.9), rgba(42, 212, 208, 0.55));
}

.page-control-block {
  position: absolute;
  z-index: 5;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
}
.page-control-block button {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(170, 190, 255, 0.45);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.page-control-block button.active {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(42, 212, 208, 0.3);
}

/* ===== Content sections ===== */
.content-section {
  padding: 88px 0;
  background: transparent;
}
.section-alt {
  background:
    linear-gradient(180deg, rgba(79, 93, 255, 0.08), rgba(122, 60, 255, 0.05));
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}
h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--ink);
}
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
}
.about-layout p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.about-aside {
  display: grid;
  gap: 12px;
}
.about-aside div {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--card-tint);
  box-shadow: 0 10px 24px rgba(70, 85, 190, 0.08);
}
.about-aside strong {
  display: block;
  font-size: 26px;
  color: var(--accent-strong);
}
.about-aside span {
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards article {
  background: var(--card-tint);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  min-height: 150px;
  box-shadow: 0 10px 24px rgba(70, 85, 190, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cards article:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 93, 255, 0.4);
  box-shadow: 0 14px 30px rgba(70, 85, 190, 0.14);
}
.card-openable {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  outline: none;
}
.card-openable:focus-visible {
  box-shadow: 0 0 0 3px rgba(42, 212, 208, 0.35), 0 14px 30px rgba(70, 85, 190, 0.14);
}
.card-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
}
.shot.card-openable { cursor: pointer; }
.shot.card-openable:focus-visible {
  outline: 3px solid rgba(42, 212, 208, 0.55);
  outline-offset: 2px;
}

/* Detail modal */
body.modal-open { overflow: hidden; }
.site-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.site-detail-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.site-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 40, 0.62);
  backdrop-filter: blur(4px);
}
.site-detail-dialog {
  position: relative;
  z-index: 2;
  width: min(980px, 96vw);
  max-height: min(88vh, 900px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(184, 196, 255, 0.22);
  background: linear-gradient(165deg, #ffffff 0%, #eef1ff 100%);
  box-shadow: 0 28px 60px rgba(20, 28, 80, 0.35);
  padding: 22px;
  outline: none;
}
.site-detail-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(79, 93, 255, 0.1);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.site-detail-close:hover { background: rgba(79, 93, 255, 0.18); }
.site-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  clear: both;
}
.site-detail-media {
  display: grid;
  gap: 12px;
  align-content: start;
}
.site-detail-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #10153a;
}
.site-detail-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.site-detail-video {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1028;
  aspect-ratio: 16 / 9;
}
.site-detail-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.site-detail-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink);
  line-height: 1.15;
}
.site-detail-lead {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}
.site-detail-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}
.site-detail-list {
  margin: 0 0 18px;
  padding-left: 1.15em;
  color: var(--text);
  display: grid;
  gap: 8px;
}
.site-detail-list[hidden] { display: none; }
@media (max-width: 860px) {
  .site-detail-grid { grid-template-columns: 1fr; }
  .site-detail-dialog { padding: 16px; max-height: 92vh; }
}
.section-alt .cards article {
  background: linear-gradient(160deg, #ffffff 0%, #edf0ff 100%);
}
.cards h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--ink);
}
.cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid rgba(120, 140, 255, 0.28);
  box-shadow: 0 12px 28px rgba(55, 70, 180, 0.14);
}
.shot.wide {
  grid-column: span 2;
  min-height: 320px;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(25, 30, 90, 0.82));
}
.shot div {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff;
}
.shot h3 { margin: 0; font-size: 18px; }
.shot p { margin: 6px 0 0; font-size: 13px; color: #c9d4ff; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.steps article {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--card-tint);
  box-shadow: 0 10px 24px rgba(70, 85, 190, 0.07);
}
.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.section-contact {
  background:
    radial-gradient(circle at 15% 20%, rgba(122, 60, 255, 0.35), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(42, 212, 208, 0.25), transparent 42%),
    linear-gradient(160deg, #171d52 0%, #2a1f6e 55%, #15245a 100%);
  color: #fff;
}
.section-contact h2 { color: #fff; }
.section-contact p { color: #c4ceff; line-height: 1.65; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.contact-list li { margin-bottom: 10px; color: #d7deff; }
.contact-list a { color: #8ef0ea; }
.contact-form {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(160, 180, 255, 0.28);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(20, 25, 80, 0.28);
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #d7deff;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(160, 180, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(42, 212, 208, 0.2);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #a8b4e8; }

.contact-layout:has(.contact-maps) {
  grid-template-columns: 1fr;
  gap: 22px;
}
.contact-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.office-map-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(160, 180, 255, 0.28);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(20, 25, 80, 0.28);
  min-width: 0;
}
.office-map-meta .office-map-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8ef0ea;
}
.office-map-meta h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #fff;
}
.office-map-meta p {
  margin: 0;
  color: #c4ceff;
}
.office-map-link {
  display: inline-block;
  margin-top: 8px;
  color: #9bb0ff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
}
.office-map-link:hover { color: #8ef0ea; }
.office-map-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(160, 180, 255, 0.22);
  background: rgba(10, 14, 40, 0.45);
  min-height: 220px;
  height: 220px;
  /* без transform/filter — иначе метки Яндекса «плывут» при зуме */
  transform: none;
  filter: none;
}
.office-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.office-map-card,
.contact-maps,
.contact-layout {
  transform: none;
  filter: none;
}
.ymap-indigo-pin {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(79, 93, 255, 0.55);
  box-shadow: 0 8px 18px rgba(20, 25, 80, 0.35);
  box-sizing: border-box;
}
.ymap-indigo-pin img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.btn {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(79, 93, 255, 0.35);
}
.btn:hover {
  filter: brightness(1.05);
}

.site-footer {
  background:
    linear-gradient(180deg, #171d52 0%, #12163a 100%);
  color: #b8c4ff;
  padding: 28px 0;
  border-top: 1px solid rgba(120, 140, 255, 0.2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-inner strong { color: #fff; }
.footer-inner p { margin: 6px 0 0; }
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-inner nav a:hover { color: var(--cyan); }
.copy { margin: 0; font-size: 13px; color: #9aa8e8; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  :root {
    --col-w: 23vw;
    --row-h: 17vh;
  }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .page-slider-block { height: 100vh; min-height: 100vh; }
  body.slider-locked.cookie-open .page-slider-block,
  body.slider-locked:has(#siteCookie.is-open) .page-slider-block {
    height: calc(100dvh - 124px);
    min-height: calc(100dvh - 124px);
  }
  .grid-lines { display: none; }
  .page-slider-slide {
    padding: calc(var(--head-height) + 20px) 16px 80px;
  }
  /* Все кнопки слайдера доступны: контент длиннее экрана */
  .page-slider-slide.active {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;
  }
  .page-slider-content {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-bottom: 72px;
  }
  .page-slider-content > .cell-wide,
  .page-slider-content > .cell-link:first-of-type {
    grid-column: 1 / -1;
  }
  .cell,
  .cell-wide {
    width: 100%;
    height: auto;
    min-height: 64px;
    border-radius: 14px;
  }
  .page-slider-content > .cell-link {
    min-height: 56px;
  }
  .cell-brand {
    gap: 14px;
  }
  .brand-logo {
    width: 72px;
  }
  .cell-link {
    background: rgba(79, 93, 255, 0.32);
    border-color: rgba(170, 190, 255, 0.35);
  }
  .page-control-block {
    left: 50%;
    top: auto;
    bottom: 18px;
    transform: translateX(-50%);
    grid-auto-flow: column;
  }
  .sakhalin-sketch {
    right: 0;
  }
  .sakhalin-svg {
    height: 72vh;
    max-width: min(46vw, 260px);
  }
  .slide-side-art {
    right: 2vw;
    width: min(34vw, 200px);
    top: 58%;
  }
  .slide-side-art {
    transform: translateY(-46%) translateX(16px) scale(0.95);
  }
  .slide-side-art.is-visible {
    transform: translateY(-50%) translateX(0) scale(1);
  }
  .slide-collage {
    left: 8%;
    right: 2vw;
    top: 12vh;
    bottom: 14vh;
  }
  .collage-piece:nth-child(2) {
    right: 28%;
  }
  .collage-piece:nth-child(4) {
    right: 30%;
  }
  .island-path { stroke-width: 2.4; }
  .island-main { stroke-width: 2.8; }
  .sakhalin-caption { font-size: 10px; }
  .about-layout,
  .contact-layout,
  .showcase,
  .cards-2 { grid-template-columns: 1fr; }
  .shot.wide { grid-column: span 1; min-height: 250px; }
  .menu-grid {
    grid-template-columns: 1fr;
    overflow: auto;
    padding-top: calc(var(--head-height) + 16px);
  }
}

@media (max-width: 640px) {
  .cards,
  .steps { grid-template-columns: 1fr; }
  .contact-maps { grid-template-columns: 1fr; }
  .header-phones a { font-size: 13px; }
  .header-phones a:last-child { font-size: 12px; }
  .content-section { padding: 64px 0; }
}
