@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --ink: #11100e;
  --paper: #f7f5ef;
  --white: #fff;
  --line: #d9d6cf;
  --page: min(1120px, calc(100vw - 64px));
  --display: "Agrandir", "Montserrat", sans-serif;
  --editorial: "kudryashev-d-contrast", Georgia, serif;
  --body: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body.menu-is-open { overflow: hidden; }

.menu-toggle {
  position: absolute;
  z-index: 1002;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.menu-is-open .menu-toggle span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-is-open .menu-toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }

.menu-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  visibility: hidden;
  background: rgba(17, 16, 14, .42);
  opacity: 0;
  transition: opacity .35s ease, visibility .35s;
}

.menu-panel {
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  width: min(520px, 92vw);
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(28px, 5vw, 58px) 40px;
  color: var(--ink);
  background: var(--paper);
  border-top: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.76, 0, .24, 1);
}

.menu-is-open .menu-backdrop { visibility: visible; opacity: 1; }
.menu-is-open .menu-panel { transform: translateX(0); }

.menu-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 64px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.menu-panel__top p { margin: 0; }

.menu-close {
  padding: 6px 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  margin: auto 0;
}

.menu-nav a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  padding: 10px 0;
  color: inherit;
  font-family: var(--editorial);
  font-size: clamp(34px, 6vh, 58px);
  line-height: 1;
  text-decoration: none;
  opacity: .54;
  transition: opacity .2s ease, transform .2s ease;
}

.menu-nav a span {
  font-family: var(--body);
  font-size: 8px;
  letter-spacing: .12em;
}

.menu-nav a:hover,
.menu-nav a:focus-visible,
.menu-nav a.is-active { opacity: 1; transform: translateX(5px); }

.menu-panel__brand {
  width: 142px;
  height: auto;
  display: block;
  margin: 0;
  filter: invert(1);
}

.site-footer {
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(24px, 6vw, 88px);
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.022em;
}

.site-footer p { margin: 0; }

.site-footer__credit {
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: right;
  white-space: nowrap;
}

.site-footer__credit a {
  width: 34px;
  height: 14px;
  display: block;
}

.site-footer__credit img {
  width: 34px;
  height: 14px;
  display: block;
}

.menu-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.menu-whatsapp {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: var(--paper);
  border-bottom: 1px solid rgba(247, 245, 239, .65);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-whatsapp img {
  width: 15px;
  height: 15px;
  display: block;
  filter: invert(1);
}

.menu-whatsapp span { font-size: 12px; }

.cover {
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px clamp(32px, 5vw, 88px) 48px;
  background: var(--paper);
}

.cover__header {
  position: relative;
  height: clamp(70px, 8vh, 100px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.brand,
.cover__footer {
  width: 112px;
  height: auto;
  display: block;
  color: inherit;
  text-decoration: none;
}

.brand img,
.cover__footer img { width: 100%; height: auto; display: block; }

.cover__visual {
  position: relative;
  margin-bottom: 106px;
}

.cover__visual > img,
.cover__image-frame,
.cover__image-frame img {
  width: 100%;
  height: clamp(520px, 68vh, 820px);
}

.cover__visual > img,
.cover__image-frame img {
  display: block;
  object-fit: cover;
  object-position: center 62%;
}

.cover__image-frame { overflow: hidden; }

.cover__image-frame--zoomed img {
  transform: scale(1.07);
  transform-origin: center;
}

.cover__title-row {
  position: absolute;
  right: -1px;
  bottom: -58px;
  left: -1px;
  min-height: clamp(106px, 11vw, 164px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px clamp(24px, 3vw, 48px) 10px clamp(14px, 2vw, 32px);
  background: rgba(247,245,239,.93);
  backdrop-filter: blur(3px);
}

.cover h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(76px, 10vw, 156px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.065em;
}

.cover__year {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
}

.cover__year i {
  width: 8px;
  height: 8px;
  display: block;
  background: var(--ink);
  transform: rotate(45deg);
}

.cover__intro {
  width: min(58%, 680px);
  margin: 0 auto;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
}

.cover__welcome {
  margin: 0 0 14px;
  font-family: var(--editorial);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}

.cover__lead {
  margin: 0 0 8px;
  font-weight: 600;
}

.cover__intro > p:last-child { margin: 0; }

.cover__footer {
  margin: 42px auto 0;
  width: 142px;
}

.cover--section { padding-bottom: 54px; }

.section-cover__header {
  position: relative;
  align-items: flex-start;
}

.back-link {
  position: absolute;
  top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.back-link {
  left: 0;
  color: inherit;
  text-decoration: none;
}

.section-cover__visual img { object-position: center 55%; }

.section-cover__intro p { margin: 0 0 13px; }
.section-cover__intro .cover__welcome { margin-bottom: 18px; }

.scroll-cue {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px auto 0;
  padding-bottom: 7px;
  color: inherit;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue img {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.section-menu {
  width: var(--page);
  margin: 0 auto;
  padding: 110px 0 120px;
}

.section-menu__header {
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-menu h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  line-height: .98;
  text-transform: uppercase;
}

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

.section-link {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 8px 18px;
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--white);
  background: var(--ink);
  transform: translateY(-3px);
}

.section-link__number {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}

.section-link__title {
  grid-column: 1 / -1;
  align-self: end;
  font-family: var(--editorial);
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1;
}

.section-link__subtitle {
  align-self: end;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-link__arrow {
  grid-column: 3;
  grid-row: 1;
  font-size: 18px;
  line-height: 1;
}

.section-link:last-child { grid-column: 1 / -1; }

.catalog {
  width: var(--page);
  margin: 0 auto;
  padding: 110px 0 120px;
}

.catalog__header {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px 72px;
  align-items: end;
  margin-bottom: 58px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.catalog h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 400;
  line-height: .95;
  text-transform: uppercase;
}

.catalog__header > p {
  max-width: 430px;
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.catalog__header--stacked {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

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

.catalog-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 0;
  color: #575550;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.catalog-status--error { color: #8c2f28; }

.product-card { position: relative; min-width: 0; }
.product-card__open { position: absolute; z-index: 2; inset: 0; width: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.product-card__open:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.product-card__image { position: relative; aspect-ratio: 1; margin: 0 0 20px; overflow: hidden; background: #eeeeec; }
.product-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.product-card:hover img { transform: scale(1.035); }
.product-card__index { position: absolute; top: 12px; left: 12px; padding: 6px 8px; color: #fff; background: rgba(0,0,0,.78); font-size: 9px; letter-spacing: .12em; }
.product-card h3 { margin: 0 0 11px; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.features { margin: 0; padding: 0; color: #575550; font-size: 11px; line-height: 1.65; list-style: none; }
.features li { display: inline; }
.features li:not(:last-child)::after { content: " · "; }

.product-dialog {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100svh - 48px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  overflow: hidden;
}

.product-dialog::backdrop { background: rgba(17, 16, 14, .72); backdrop-filter: blur(4px); }

.product-dialog__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  min-height: min(680px, calc(100svh - 48px));
}

.product-dialog__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 50%;
  font-family: var(--body);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.product-dialog__image { min-width: 0; min-height: 0; background: #e9e7e1; }
.product-dialog__image img { width: 100%; height: 100%; display: block; object-fit: contain; }

.product-dialog__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 84px);
}

.product-dialog__details h2 {
  margin: 0 0 28px;
  font-family: var(--editorial);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.04;
}

.product-dialog__features {
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: #575550;
  font-size: 12px;
  line-height: 1.7;
  list-style: none;
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 36px); }
  .cover { width: 100%; padding: 18px 16px 28px; }
  .menu-toggle { top: 0; right: 0; width: 44px; height: 44px; padding: 0 12px; }
  .cover__header { height: 58px; }
  .cover__visual { margin-bottom: 78px; }
  .cover__visual > img,
  .cover__image-frame,
  .cover__image-frame img { height: 58vh; min-height: 400px; }
  .cover__title-row { bottom: -48px; min-height: 84px; padding-right: 16px; }
  .cover h1 { font-size: clamp(54px, 18vw, 82px); }
  .cover__year { margin-top: 20px; }
  .cover__intro { width: min(86%, 470px); }
  .section-menu { padding: 78px 0 84px; }
  .section-menu__links { grid-template-columns: 1fr; }
  .section-link:last-child { grid-column: auto; }
  .back-link { top: 2px; font-size: 7px; }
  .catalog { padding: 78px 0 84px; }
  .catalog__header { grid-template-columns: 1fr; gap: 18px; margin-bottom: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 16px; }
  .menu-panel__footer { align-items: flex-start; flex-direction: column-reverse; gap: 18px; }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
    font-size: 9px;
  }
  .site-footer__credit { white-space: normal; }
  .product-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); overflow-y: auto; }
  .product-dialog__content { grid-template-columns: 1fr; min-height: auto; }
  .product-dialog__image { height: min(58vh, 520px); }
  .product-dialog__details { padding: 32px 24px 38px; }
  .product-dialog__close { position: fixed; top: 22px; right: 22px; }
}

@media (max-width: 430px) {
  .cover__visual > img,
  .cover__image-frame,
  .cover__image-frame img { min-height: 360px; }
  .cover__title-row { padding-left: 7px; }
  .cover h1 { font-size: 52px; }
  .cover__intro { width: 92%; font-size: 8px; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .section-link { transition: none; }
  .product-card__image img { transition: none; }
  .menu-toggle span,
  .menu-backdrop,
  .menu-panel,
  .menu-nav a { transition: none; }
}
