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

:root {
  --bg:        #d6d5d5;
  --surface:   #ffffff;
  --text:      #1a1a1a;
  --muted:     #000000;
  --accent:    #2a4a6b;
  --accent2:   #4d473c;
  --line:      #e4e0d9;
  --font-head: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%;
  z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245,243,239,.5);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
nav.scrolled { border-bottom-color: var(--line); }

.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  letter-spacing: .04em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

nav ul { list-style: none; display: flex; gap: 28px; }
nav ul a {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color .3s;
}
nav ul a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s ease;
}
nav ul a:hover { color: var(--accent); }
nav ul a:hover::after { width: 100%; }

/* ── HERO ── */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 80px 80px;
}
.hero-tag {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s .3s forwards;
}
.hero-left h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}
.hero-left h1 em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 380px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp .8s .7s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  opacity: 0;
  animation: fadeUp .8s .9s forwards;
}
.btn:hover { background: #1d3654; transform: translateY(-2px); }
.btn svg { transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }

.hero-right {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.2s .4s forwards;
}
.hero-right img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.hero-right:hover img { transform: scale(1.04); }

/* ── SECTION LAYOUT ── */
section { padding: 120px 80px; }

.section-label {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 64px;
}

/* ── CAROUSEL BLOCK ── */
.cat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  overflow: hidden;
}
.cat-block.visible { opacity: 1; transform: none; }
.cat-block.reverse { direction: rtl; }
.cat-block.reverse > * { direction: ltr; }

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.carousel-track {
  display: flex;
  gap: 12px;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.carousel-slide {
  flex: 0 0 calc(60% - 6px);
  min-width: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transition: flex-basis .45s ease;
}
.carousel-slide:not(:first-child) { flex-basis: calc(20% - 6px); }

.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.6);
  transition: filter .45s ease, transform .45s ease;
}
.carousel-slide:first-child img { filter: brightness(1); }

.carousel:hover .carousel-slide { flex-basis: calc(40% - 6px); }
.carousel:hover .carousel-slide:first-child { flex-basis: calc(40% - 6px); }
.carousel:hover .carousel-slide img { filter: brightness(1); transform: scale(1.04); }


/* ── CAROUSEL NAV ── */
.carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s;
  flex-shrink: 0;
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.carousel-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Text side */
.cat-text h3 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.cat-text p { color: var(--muted); margin-bottom: 20px; font-size: .95rem; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0 80px;
}

/* ── ABOUT ── */
#about {
  background: var(--accent);
  color: #fff;
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
#about h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}
#about h2 em { font-style: italic; opacity: .55; }
#about p { color: rgba(255,255,255,.65); font-size: .95rem; line-height: 1.75; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.stat { border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }
.stat .num { font-family: var(--font-head); font-size: 2.2rem; }
.stat .lbl { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }

/* ── CONTACT ── */
#contact {
  padding: 120px 80px;
}
#contact h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
#contact .sub { color: var(--muted); margin-bottom: 48px; }

.contact-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
  text-decoration: none;
  color: var(--text);
}
.contact-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-value { font-size: 1rem; font-weight: 400; }
.contact-value.fill { color: var(--accent2); font-style: italic; font-size: .85rem; }

/* ── FOOTER ── */
footer {
  padding: 40px 80px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
}
footer .logo { font-size: 1.1rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,18,16,.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#lightbox.active {
  opacity: 1;
  pointer-events: all;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  transform: scale(.94);
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
#lightbox.active #lightbox-img { transform: scale(1); }
#lightbox-close {
  position: absolute;
  top: 28px; right: 32px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .25s;
}
#lightbox-close:hover { background: rgba(255,255,255,.18); }
#lightbox-close svg { width: 18px; height: 18px; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 16px 20px;
  }
  nav ul { gap: 16px; }
  nav ul a { font-size: .7rem; letter-spacing: .08em; }
  .logo { font-size: 1.2rem; }

  /* Hero */
  #hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
    min-height: auto;
  }
  .hero-left {
    padding: 48px 20px 40px;
  }
  .hero-right {
    height: 55vw;
    min-height: 240px;
  }

  /* Sections */
  section { padding: 64px 20px; }
  .divider { margin: 0 20px; }

  /* Catalog blocks */
  .cat-block {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 64px;
  }
  .cat-block.reverse { direction: ltr; }

  /* Carousel — на мобиле первый слайд шире */
  .carousel-slide { flex: 0 0 75% !important; }
  .carousel-slide:not(:first-child) { flex-basis: calc(12.5%) !important; }
  .carousel:hover .carousel-slide { flex-basis: 75% !important; }

  /* About */
  #about {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 20px;
  }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat .num { font-size: 1.6rem; }

  /* Contact */
  #contact { padding: 64px 20px; }
  .contact-items {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 32px 20px;
  }
}
