@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-100: #ffffff;
  --bg-200: #fafafa;
  --gray-100: #f2f2f2;
  --gray-700: #8f8f8f;
  --gray-900: #4d4d4d;
  --gray-1000: #171717;
  --border: #00000014;
  --border-strong: #00000033;
  --accent: #56843f;
  --accent-100: #eef3ec;
  --accent-400: #ccdac5;
  --focus: hsl(212 100% 48%);
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --header-h: 64px;
  --control: 48px;
  --gutter: 16px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

html:has(.lightbox[open]) {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg-100);
  color: var(--gray-1000);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p,
ul {
  margin: 0;
}

h1,
h2 {
  text-wrap: balance;
}

p,
address {
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

a,
button {
  touch-action: manipulation;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: max(12px, env(safe-area-inset-left));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: var(--gray-1000);
  color: var(--bg-100);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  color: inherit;
  font: 500 16px/20px var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.button-primary {
  background: #ededed;
  color: #0a0a0a;
  font-variant-numeric: tabular-nums;
}

.button-primary:hover {
  background: #ffffff;
}

.button-ghost {
  border-color: rgb(255 255 255 / 0.28);
  background: rgb(255 255 255 / 0.06);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: rgb(255 255 255 / 0.64);
  background: rgb(255 255 255 / 0.14);
}

.button-icon {
  width: var(--control);
  padding: 0;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-100) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}

.brand-logo {
  flex: none;
  width: 36px;
  height: 36px;
}

.header-phone {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.header-phone:hover {
  border-color: var(--border-strong);
  background: var(--gray-100);
}

@media (max-width: 479px) {
  .header-phone {
    width: var(--control);
    height: var(--control);
    padding: 0;
  }

  .header-phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.hero {
  --focus: hsl(210 100% 66%);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 1000px);
  overflow: hidden;
  background: #0a0a0a;
  color: #ffffff;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 0.42) 0%, rgb(0 0 0 / 0) 60%),
    linear-gradient(180deg, rgb(0 0 0 / 0.12) 0%, rgb(0 0 0 / 0.3) 40%, rgb(0 0 0 / 0.8) 100%);
}

.hero-content {
  padding-block: calc(var(--header-h) + clamp(24px, 12.5vh, 96px)) clamp(32px, 9vh, 96px);
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(44px, min(9vw, 13vh), 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 34em;
  margin-top: 24px;
  color: rgb(255 255 255 / 0.88);
  font-size: 18px;
  line-height: 28px;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 20px;
    line-height: 32px;
  }
}

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

.video-toggle {
  position: absolute;
  top: calc(var(--header-h) + 16px);
  right: max(var(--gutter), env(safe-area-inset-right), calc((100% - 1200px) / 2));
}

.video-toggle[data-state="playing"] .icon-play,
.video-toggle:not([data-state="playing"]) .icon-pause {
  display: none;
}

.icon-play path {
  fill: currentColor;
  stroke: none;
}

.sheet {
  padding-block: clamp(48px, 8vw, 96px);
}

.info-grid,
.gallery-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-cell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 24px;
  background: var(--bg-100);
}

@media (min-width: 1024px) {
  .info-cell {
    padding: 40px 32px;
  }
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-400);
  background: var(--accent-100);
  color: var(--accent);
}

.info-cell p,
.info-cell address {
  font-size: 18px;
  font-style: normal;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.info-cell address span {
  display: block;
}

.address-name {
  font-weight: 600;
}

.address-place {
  color: var(--gray-900);
}

.address-phone {
  margin-top: 16px;
  font-variant-numeric: tabular-nums;
}

.address-phone a,
.footer-column address a {
  padding-block: 2px;
  font-weight: 500;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms var(--ease);
}

.address-phone a:hover,
.footer-column address a:hover {
  text-decoration-color: currentColor;
}

.gallery {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: -1px;
  padding: 0;
  list-style: none;
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: clamp(12px, 2.5vw, 28px);
  overflow: hidden;
  background: #ffffff;
  cursor: zoom-in;
}

.gallery-item:focus-visible {
  outline-offset: -2px;
}

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

@media (prefers-reduced-motion: no-preference) {
  .gallery-item img {
    transition: transform 400ms var(--ease);
  }

  .gallery-item:hover img {
    transform: scale(1.04);
  }
}

.gallery-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  color: var(--gray-700);
  font: 400 12px/16px var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-200);
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--gray-900);
  font-size: 14px;
  line-height: 20px;
}

.footer-grid {
  display: grid;
  gap: 40px 32px;
  padding-block: 48px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    padding-block: 64px;
  }

  .footer-about {
    grid-column: auto;
  }
}

.footer-about .brand {
  color: var(--gray-1000);
}

.footer-about p {
  max-width: 36ch;
  margin-top: 12px;
}

.footer-title {
  margin-bottom: 16px;
  color: var(--gray-1000);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.footer-packs {
  display: grid;
  gap: 16px;
  margin: 0;
}

.footer-packs dt {
  color: var(--gray-1000);
}

.footer-packs dd {
  margin: 2px 0 0;
}

.footer-column address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-column address span:first-child {
  color: var(--gray-1000);
  font-weight: 500;
}

.footer-column address a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 8px;
  color: var(--gray-1000);
  font-variant-numeric: tabular-nums;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
  padding-block: 16px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.footer-top:hover {
  color: var(--gray-1000);
}

.lightbox {
  --focus: hsl(210 100% 66%);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  color: #ededed;
  overscroll-behavior: contain;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] {
    animation: fade-in 200ms var(--ease);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left));
}

.lightbox-count {
  color: var(--gray-700);
  font: 400 13px/20px var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.lightbox-count span {
  color: #ededed;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  container-type: size;
  touch-action: pan-y pinch-zoom;
}

.lightbox-image {
  width: min(100cqw, 100cqh * var(--ratio, 1));
  height: auto;
  aspect-ratio: var(--ratio, 1);
  background: #ffffff;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px var(--gutter) max(16px, env(safe-area-inset-bottom));
}

@media (min-width: 768px), (orientation: landscape) {
  .lightbox-stage {
    padding: 0 88px 32px;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    right: max(var(--gutter), env(safe-area-inset-right));
    left: max(var(--gutter), env(safe-area-inset-left));
    justify-content: space-between;
    padding: 0;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .lightbox-nav .button {
    pointer-events: auto;
  }
}
