:root {
  --ink: #181713;
  --muted: #69645b;
  --paper: #fbfaf6;
  --surface: #f0ede5;
  --forest: #253b2d;
  --forest-deep: #122019;
  --moss: #6f7f4b;
  --wood: #c7965f;
  --wood-light: #e6bd83;
  --line: rgba(24, 23, 19, 0.12);
  --white: #ffffff;
  --mx: 0;
  --my: 0;
  color-scheme: light;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(251, 250, 246, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(18, 32, 25, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 0;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.74;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a,
.site-footer a {
  position: relative;
}

.nav a::after,
.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after,
.site-footer a:hover::after {
  transform: scaleX(1);
}

.header-call {
  justify-self: end;
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(620px, 78svh);
  align-content: center;
  padding-block: 96px 48px;
  overflow: clip;
  background:
    linear-gradient(135deg, #08130d 0%, var(--forest-deep) 42%, #22301c 100%);
  color: var(--white);
  isolation: isolate;
}

.hero__media,
.contacts__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero__media {
  --hero-image: url("assets/hero-bg-v3.webp");
  z-index: -4;
  background-image:
    linear-gradient(90deg, rgba(8, 19, 13, 0.92), rgba(18, 32, 25, 0.72) 45%, rgba(18, 32, 25, 0.22)),
    var(--hero-image);
  filter: saturate(0.96) contrast(1.04);
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -10px), 0) scale(1.08);
  transition: transform 500ms ease-out;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(8, 19, 13, 0.9), transparent 42%),
    linear-gradient(110deg, rgba(230, 189, 131, 0.12), transparent 34%, rgba(255, 255, 255, 0.05) 58%, transparent 72%);
  content: "";
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px);
  mask-image: linear-gradient(90deg, black, transparent 78%);
  opacity: 0.5;
}

.hero__rings {
  position: absolute;
  right: min(5vw, 80px);
  bottom: -180px;
  z-index: -2;
  width: min(48vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(230, 189, 131, 0.22);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, rgba(230, 189, 131, 0.12) 23px 24px),
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(230, 189, 131, 0.08) 53%, transparent 70%);
  opacity: 0.7;
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 14px), 0);
  transition: transform 500ms ease-out;
}

.hero__content {
  display: grid;
  width: min(1320px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px;
  align-items: center;
  margin: 0 auto;
  padding-top: 0;
}

.hero__copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  color: var(--wood-light);
  font-style: normal;
  text-shadow: 0 0 32px rgba(230, 189, 131, 0.22);
}

h2 {
  margin-bottom: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.48;
}

.hero__actions,
.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.button--primary {
  background: linear-gradient(135deg, var(--wood-light), var(--wood));
  color: #15110c;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button--line {
  border-color: var(--line);
  color: var(--ink);
}

.hero__hours {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 8px 12px;
  align-items: center;
  max-width: min(100%, 520px);
  border: 1px solid rgba(230, 189, 131, 0.28);
  border-radius: 8px;
  background: rgba(8, 19, 13, 0.48);
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.hero__hours span {
  color: var(--wood-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__hours strong {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero__showcase {
  position: relative;
  aspect-ratio: 1;
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 18px), 0);
  transition: transform 500ms ease-out;
}

.product-slider {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.product-slider::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.2) 49%, transparent 56% 100%);
  content: "";
  transform: translateX(-120%);
  animation: sheen 6s ease-in-out infinite;
  pointer-events: none;
}

.product-slider.is-paused::after { animation-play-state: paused; }

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18%) scale(0.97);
  transition: opacity 560ms ease, transform 560ms ease;
}

.showcase-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.showcase-slide.is-leaving {
  opacity: 0;
  transform: translateX(-18%) scale(0.97);
}

.showcase-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(8, 19, 13, 0.72), transparent 52%);
  content: "";
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.showcase-slide span {
  position: absolute;
  right: 18px;
  bottom: 68px;
  left: 18px;
  z-index: 1;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.slider-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-controls > button {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 4px;
  background: rgba(8, 19, 13, .65);
  cursor: pointer;
}

.slider-controls > button img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.slider-controls > button:hover { background: #253b2d; }
.slider-controls > button:disabled { opacity: .5; cursor: default; }
.slider-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.slider-dots { display: flex; min-width: 0; overflow-x: auto; margin-left: auto; }
.slider-dots button { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.slider-dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); }
.slider-dots button.is-active::after { background: var(--wood-light); outline: 2px solid var(--wood-light); outline-offset: 2px; }

.hero__copy > *,
.hero__showcase {
  animation: hero-in 680ms ease both;
}

.hero__copy > :nth-child(2) {
  animation-delay: 80ms;
}

.hero__copy > :nth-child(3) {
  animation-delay: 150ms;
}

.hero__copy > :nth-child(4) {
  animation-delay: 220ms;
}

.hero__copy > :nth-child(5),
.hero__showcase {
  animation-delay: 300ms;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(72px, 11vw, 128px) 0;
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.52fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: end;
  margin-bottom: 42px;
}

.section__head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section__head p:last-child,
.copy p,
.product p {
  color: var(--muted);
  line-height: 1.62;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product:hover img {
  transform: scale(1.04);
}

.product__body {
  padding: 20px;
}

.product p {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(30px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.copy {
  max-width: 680px;
  font-size: 1.08rem;
}

.copy p:last-child {
  margin-bottom: 0;
}

.contacts {
  scroll-margin-top: 80px;
  display: grid;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  background: var(--surface);
}

.contacts__media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 620px;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 32, 25, 0.88), rgba(37, 59, 45, 0.68)),
    var(--forest-deep);
  isolation: isolate;
}

.contacts__map {
  position: relative;
  flex: 1;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(230, 189, 131, 0.34);
  border-radius: 8px;
  background: #f3f5f1;
}

.contacts__map-frame {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  transform-origin: 0 0;
  zoom: 1;
}

.contacts__map-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--white);
}

.contacts__map-details span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.contacts__map-details strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
}

.contacts__content {
  align-self: center;
  padding: clamp(46px, 8vw, 92px);
}

.contacts__content h2 {
  font-size: 32px;
  line-height: 1.3;
}

.contacts__notice {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-list {
  display: grid;
  gap: 15px;
  margin: 34px 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-list a {
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
}

address {
  max-width: 420px;
  font-style: normal;
  line-height: 1.5;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer__copyright {
  min-width: 0;
  white-space: nowrap;
}

.site-footer > a {
  justify-self: end;
  white-space: nowrap;
}

.site-footer__notice {
  margin: 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.site-footer__policy {
  display: block;
  margin-top: 4px;
}

.site-footer__notice a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__notice a::after {
  display: none;
}

.site-footer__notice a:focus-visible {
  outline: 2px solid var(--wood-light);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
  }

  .site-footer__copyright {
    grid-column: 1;
    grid-row: 1;
    white-space: normal;
  }

  .site-footer > a {
    grid-column: 2;
    grid-row: 1;
  }

  .site-footer__notice {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}

.privacy-page {
  background: #fff;
}

.privacy-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(20px, calc((100% - 900px) / 2));
  border-bottom: 1px solid var(--line);
}

.privacy-header__brand {
  font-weight: 800;
}

.privacy-document {
  width: min(900px, calc(100% - 40px));
  margin: 48px auto 64px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.privacy-document h1 {
  margin: 8px 0 16px;
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
}

.privacy-document h2 {
  margin: 32px 0 12px;
  font-family: "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.4;
}

.privacy-document p,
.privacy-document ul {
  margin: 12px 0;
}

.privacy-document ul {
  padding-left: 22px;
}

.privacy-document__date {
  color: var(--muted);
  font-size: 14px;
}

.privacy-document__status {
  padding: 16px 20px;
  border-left: 3px solid var(--wood);
  background: #f4f6f3;
}

.privacy-document a,
.privacy-header__back {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-page a:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .privacy-document {
    margin-top: 28px;
  }

  .privacy-document h1 {
    font-size: 26px;
  }

  .privacy-document h2 {
    font-size: 20px;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheen {
  0%,
  42% {
    transform: translateX(-120%);
  }

  58%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 1439px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
  }

  .hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 1180px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__showcase {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero__media { --hero-image: url("assets/hero-bg-mobile-v3.webp"); }
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .section__head,
  .split,
  .contacts {
    grid-template-columns: 1fr;
  }

  .hero__content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__showcase {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts__media {
    min-height: 0;
    padding: 16px;
  }

  .contacts__map {
    flex: none;
    height: 360px;
    min-height: 360px;
  }

  .contacts__map-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 720px) {
  .site-header {
    gap: 14px;
  }

  .brand small {
    display: none;
  }

  .header-call {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 0;
  }

  .hero__content {
    margin: 0 auto;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.25rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.82rem, 8vw, 3.1rem);
  }

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

  .contacts__content {
    padding-inline: 18px;
  }

  .contacts__content h2 {
    font-size: 28px;
  }

  .contacts__map {
    inset: auto;
  }

}

@media (max-width: 430px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .header-call {
    max-width: 132px;
    text-align: right;
    white-space: normal;
  }

  .hero__content {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(1.48rem, 6.7vw, 1.72rem);
    line-height: 1.08;
    text-transform: none;
  }

  .hero__lead {
    font-size: 0.98rem;
  }

  .hero__actions,
  .contacts__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .site-header,
  .brand {
    gap: 8px;
  }

  .header-call {
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .site-header {
    gap: 8px 16px;
    padding-block: 10px;
  }

  .hero {
    min-height: 0;
    align-content: start;
    padding-block: 144px 36px;
  }

  .brand,
  .header-call {
    min-height: 44px;
  }

  .header-call {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 12px;
    line-height: 1.3;
    text-transform: none;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
  }

  .site-header.is-scrolled .nav {
    border-top-color: var(--line);
  }

  #catalog,
  #about,
  #contacts {
    scroll-margin-top: 128px;
  }
}

@media (max-width: 720px) {
  .hero__content {
    margin-top: 0;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.1;
    text-transform: none;
  }

  .hero__hours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero__hours span {
    grid-column: 1 / -1;
  }

  .hero__hours strong {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 28px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .brand strong {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 21px;
  }
}
