:root {
  --ink: #14171b;
  --muted: #5c656f;
  --paper: #f3f1ec;
  --line: rgba(20, 23, 27, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

img { max-width: 100%; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 30;
}

.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(16, 18, 20, 0.94);
  color: #f6f4ef;
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 15px;
}

.brand span {
  letter-spacing: 0.04em;
  font-weight: 500;
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav a { text-decoration: none; }

.nav a:hover { opacity: 0.72; }

.langs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
}

.langs a {
  display: inline-flex;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0.78;
  line-height: 0;
}

.langs a:hover,
.langs a[aria-current="true"] {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.9);
}

.langs svg {
  width: 100%;
  height: 100%;
  display: block;
}

.phone {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) 1.15fr;
  height: calc(100vh - 62px);
  min-height: 620px;
  max-height: 860px;
  background: #101214;
  color: #f6f4ef;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 48px 56px;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  background: linear-gradient(100deg, #ffe566 0%, #ff8a00 34%, #ff4d6d 68%, #4cc9f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 16em;
  margin: 22px 0 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
  color: #f6f4ef;
}

.more {
  max-width: 28rem;
  margin: 14px 0 0;
  font-size: 18px;
  color: rgba(246, 244, 239, 0.78);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: #f6f4ef;
  color: #14171b;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  color: #f6f4ef;
  border: 1px solid rgba(246, 244, 239, 0.45);
}

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

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  margin-top: calc(26px + 2cm);
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #0a0c0e;
}

.hero-photo {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #101214;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.facts p {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 15px;
}

.facts p + p { padding-left: 22px; }

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 10px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.block-head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  font-weight: 600;
}

.block-head p {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
}

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

.gallery.parts {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}

.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #d9d4cb;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.gallery .wide { grid-column: span 2; }

.gallery .wide:last-child { grid-column: 1 / -1; }

.gallery .wide img { aspect-ratio: 16 / 10; }

.gallery figure::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

.gallery figcaption {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

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

.cards article { grid-column: span 2; }

.cards article:nth-last-child(2):nth-child(3n + 1),
.cards article:last-child:nth-child(3n + 2) {
  grid-column: span 3;
}

.cards article {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.cards img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.cards article:nth-last-child(-n+2) img {
  height: 320px;
  object-fit: contain;
  background: #fff;
}

.cards h3,
.cards p { margin: 0; }

.cards h3 { padding: 14px 14px 6px; font-size: 18px; }

.cards p {
  padding: 0 14px 16px;
  color: var(--muted);
  font-size: 15px;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}

address { font-style: normal; }

address p { margin: 0 0 12px; }

address a { text-decoration: none; border-bottom: 1px solid var(--ink); }

.map {
  border-radius: 18px;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
}

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

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px 56px;
}

.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 40px 32px;
}

.page-card h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: none;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}

.page-card p {
  margin: 0 0 16px;
  max-width: 42rem;
  font-size: 18px;
  color: var(--ink);
}

.page-card p strong { font-weight: 650; }

.page-photo {
  margin: 28px 0 0;
}

.page-photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: #101214;
}

.page-actions {
  margin: 28px 0 0 !important;
}

.btn.back {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 23, 27, 0.28);
}

.btn.back:hover { background: #fff; }

.nav a[aria-current="page"] { opacity: 0.72; font-weight: 600; }

@media (max-width: 980px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery.parts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .top { padding: 12px 16px; align-items: flex-start; flex-direction: column; justify-content: flex-start; }
  .nav { flex-wrap: wrap; gap: 12px 16px; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; overflow: visible; }
  .hero-copy { padding: 28px 18px 32px; order: 2; }
  .hero-video { max-height: 220px; margin-top: calc(22px + 2cm); }
  .hero-photo { height: auto; order: 1; }
  .hero-photo img { height: 68vw; min-height: 280px; }
  .facts { grid-template-columns: 1fr; padding: 8px 18px 0; }
  .facts p, .facts p + p { padding: 12px 0; }
  .block { padding-left: 18px; padding-right: 18px; }
  .block-head, .contact { grid-template-columns: 1fr; display: grid; }
  .gallery, .gallery.parts, .cards { grid-template-columns: 1fr; }
  .cards article,
  .cards article:nth-last-child(2):nth-child(3n + 1),
  .cards article:last-child:nth-child(3n + 2) {
    grid-column: 1 / -1;
  }
  .gallery .wide { grid-column: auto; }
  .gallery img, .gallery .wide img { aspect-ratio: 4 / 3; }
  h1 { font-size: 46px; }
  .page { padding: 28px 18px 40px; }
  .page-card { padding: 24px 18px 22px; }
  .page-photo img { max-height: 280px; }
}
