:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5a5a5a;
  --line: #e6e6e6;
  --soft: #f3f3f3;
  --accent: #e6007e;
  --hero-overlay: rgba(0, 0, 0, 0.45);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 72px;
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  font-size: 0.92rem;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-light {
  background: #f2f2f2;
  color: #111;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  min-width: 220px;
}

.btn-nav {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header.is-scrolled .btn-nav {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.4) 100%),
    var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem 3rem;
  align-items: end;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.8vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 11ch;
}

.hero-copy p {
  margin: 0 0 1.4rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: #f7f7f8;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 46rem;
}

.center {
  text-align: center;
}

.section-lead.center,
.center .section-lead {
  margin-inline: auto;
  text-align: center;
}

.section-banner {
  margin: 2rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.section-banner img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Opportunities */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.opp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}

.opp-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.opp-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Catalog */
.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 1.75rem;
}

.tag {
  appearance: none;
  border: 1px solid #d8d8d8;
  background: #f4f4f4;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 560;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tag:hover {
  border-color: #bbb;
}

.tag.is-active {
  background: #151515;
  border-color: #151515;
  color: #fff;
}

.catalog-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  min-height: 420px;
  width: 100%;
  max-width: 100%;
}

.catalog-info {
  padding: 2rem 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.catalog-index {
  color: #9a9a9a;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.catalog-info h3 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.catalog-info p {
  margin: 0;
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-slider {
  position: relative;
  background: #ececec;
  min-height: 320px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.catalog-slider-track {
  position: absolute;
  inset: 0;
}

.catalog-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.7s ease, opacity 0.7s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

.catalog-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.catalog-slide.is-enter-from-right {
  opacity: 1;
  transform: translateX(100%);
  z-index: 2;
}

.catalog-slide.is-enter-from-right.is-active {
  transform: translateX(0);
}

.catalog-slide.is-leave-to-left {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.catalog-slide.is-leave-to-left.is-leaving {
  transform: translateX(-100%);
  opacity: 0;
}

.catalog-slide.is-enter-from-left {
  opacity: 1;
  transform: translateX(-100%);
  z-index: 2;
}

.catalog-slide.is-enter-from-left.is-active {
  transform: translateX(0);
}

.catalog-slide.is-leave-to-right {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.catalog-slide.is-leave-to-right.is-leaving {
  transform: translateX(100%);
  opacity: 0;
}

.catalog-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.88);
  touch-action: none;
  overscroll-behavior: contain;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  position: relative;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  width: 100%;
  height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transform-origin: center center;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 3;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 3;
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-nav[hidden] { display: none; }


.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 2;
}

.slider-nav.is-visible {
  display: inline-flex;
}

.slider-nav.prev {
  left: 12px;
}

.slider-nav.next {
  right: 12px;
}

.slider-nav:hover {
  background: rgba(20, 20, 20, 0.75);
}

/* Materials / Delivery */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.delivery-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.delivery-content .section-lead {
  margin-bottom: 1.5rem;
}

.delivery-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: #e8e8e8;
}

.delivery-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.offer-card {
  background: linear-gradient(180deg, #171717, #0f0f0f);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.offer-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #222;
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.offer-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.2;
}

.offer-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

/* Contacts */
.contacts {
  padding-bottom: 4rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.contact-details .phone,
.contact-details .email {
  display: block;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}

.contact-details .email-secondary {
  display: block;
  font-size: 1.05rem;
  font-weight: 560;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.contact-map {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  border: 1px solid var(--line);
  background: #f0f0f0;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-details .address {
  margin: 0;
  color: var(--muted);
}

.contact-details .address a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  position: relative;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form .field {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}

.contact-form .field:focus {
  border-color: #aaa;
}

.contact-form textarea.field {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.is-ok {
  color: #0a7a3e;
}

.form-status.is-err {
  color: #b00020;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.to-top {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.to-top:hover {
  border-color: #bbb;
}

@media (max-width: 1100px) {
  .delivery-layout {
    gap: 1.25rem;
  }
}

@media (max-width: 960px) {
  .hero-content,
  .catalog-card,
  .contacts-grid,
  .opportunities-grid,
  .offer-grid,
  .delivery-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    align-items: start;
    padding: 6.5rem 0 3.25rem;
  }

  .hero h1 {
    max-width: none;
  }

  .catalog-card {
    min-height: 0;
    overflow: visible;
    gap: 0;
  }

  .catalog-info {
    padding: 1.5rem 1.25rem 1.1rem;
  }

  .catalog-slider {
    min-height: 0;
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 0 0 22px 22px;
  }

  .delivery-media {
    min-height: 260px;
    order: 2;
  }

  .delivery-media img {
    min-height: 260px;
  }

  .nav {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .feature-grid,
  .feature-grid-2 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 64px;
  }

  .btn-accent {
    width: 100%;
    min-width: 0;
  }

  .form-actions {
    justify-content: stretch;
  }

  .catalog-info {
    padding: 1.25rem 1rem 1rem;
  }

  .catalog-slider {
    aspect-ratio: 1 / 1;
  }

  .contact-map {
    height: 180px;
  }

  .section-banner img {
    max-height: 260px;
  }

  .offer-body {
    padding: 1.1rem 1rem 1.25rem;
  }
}
