:root {
  --ink: #181a18;
  --muted: #6d716c;
  --paper: #ffffff;
  --soft: #f3f4f0;
  --line: #dfe1dc;
  --accent: #78a63b;
  --dark: #20251f;
  --radius: 22px;
  --max-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

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

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 520;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 4.25vw, 4.45rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.8rem);
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 160px 1fr 90px;
  align-items: center;
  min-height: 68px;
  padding: 7px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgb(223 225 220 / 80%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(16px);
}

.logo {
  display: block;
  width: 160px;
  height: 50px;
  overflow: hidden;
}

.logo img {
  width: 220px;
  max-width: none;
  height: 220px;
  transform: translate(-31px, -76px);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 38px);
  font-size: 16px;
}

.main-nav a,
.header-contacts a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.header-contacts a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-contacts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.header-contacts a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.header-contacts svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: min(760px, calc(100svh - 68px));
  display: flex;
  align-items: flex-start;
  padding: clamp(34px, 3.4vw, 50px)
    max(24px, calc((100vw - var(--max-width)) / 2));
  color: white;
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 72%) 0%,
      rgb(0 0 0 / 36%) 65%,
      rgb(0 0 0 / 12%) 100%
    ),
    url("./assets/images/hero-background.webp") center / cover no-repeat;
}

.hero__content {
  display: grid;
  max-width: 820px;
  gap: 18px;
}

.hero__content > p:not(.eyebrow) {
  max-width: 590px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  font-size: 15px;
  letter-spacing: 0.14em;
}

.button {
  width: fit-content;
  padding: 14px 22px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 16px;
  transition: 180ms ease;
}

.button:hover {
  color: var(--ink);
  background: var(--paper);
}

.section {
  padding: clamp(64px, 7.5vw, 110px)
    max(24px, calc((100vw - var(--max-width)) / 2));
}

.section--soft {
  background: var(--soft);
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section-heading > * {
  min-width: 0;
}

.section-heading h2 {
  max-width: 900px;
}

.section-heading--split {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 60px;
}

.section-heading--split > div {
  display: grid;
  gap: 18px;
}

.section-heading--split > p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.feature-card {
  display: grid;
  gap: 24px;
  padding: 30px 34px 44px 0;
  border-right: 1px solid var(--line);
}

.feature-card + .feature-card {
  padding-left: 34px;
}

.feature-card:last-child {
  border-right: 0;
}

.feature-card__number,
.collection__heading p {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p,
.advantages-grid p {
  color: var(--muted);
}

.statement {
  max-width: 980px;
  margin: clamp(52px, 7vw, 92px) auto 0;
  font-size: clamp(1.8rem, 3.3vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-align: center;
}

.catalog {
  display: grid;
  gap: 74px;
  min-width: 0;
}

.collection {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.collection__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

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

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

.product-grid figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

.product-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-grid figure:hover img {
  transform: scale(1.025);
}

.product-grid figcaption {
  padding: 16px 18px 20px;
  color: var(--muted);
  font-size: 15px;
}

.collection-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  min-width: 0;
}

.about,
.news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.about {
  padding-top: 0;
  padding-bottom: 0;
}

.about > img,
.news > img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.about__content,
.news__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(40px, 5vw, 64px);
}

.about__content p:not(.eyebrow),
.news__content p:not(.eyebrow) {
  color: var(--muted);
}

.section--dark {
  color: white;
  background: var(--dark);
}

.section--dark .section-heading--split > p,
.section--dark .advantages-grid p {
  color: #b9beb7;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid #444a42;
  border-radius: var(--radius);
  background: #444a42;
}

.advantages-grid article {
  display: grid;
  gap: 20px;
  min-height: 190px;
  padding: clamp(30px, 4vw, 55px);
  background: var(--dark);
}

.news {
  height: auto;
  overflow: hidden;
  padding-top: clamp(64px, 7.5vw, 110px);
  padding-bottom: clamp(64px, 7.5vw, 110px);
  background: #e5e2dd;
}

.news > img {
  order: 2;
  height: 440px;
  min-height: 0;
  object-position: center;
}

.news h2 {
  font-size: clamp(2.25rem, 3.5vw, 4rem);
}

.news__content {
  padding: clamp(38px, 4.5vw, 58px);
  padding-left: 0;
}

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

.partner-grid a {
  display: grid;
  grid-template-columns: auto minmax(100px, 150px);
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 180ms ease;
}

.partner-grid a:hover {
  transform: translateY(-4px);
}

.partner-grid img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.partner-grid span {
  font-size: 20px;
  white-space: nowrap;
}

.site-footer {
  padding: clamp(44px, 5vw, 64px)
    max(24px, calc((100vw - var(--max-width)) / 2)) 22px;
  color: white;
  background:
    linear-gradient(rgb(17 21 17 / 92%), rgb(17 21 17 / 96%)),
    url("./assets/images/footer-background.jpg") center / cover;
}

.footer-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.footer-heading h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.8rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-grid h3 {
  margin-bottom: 4px;
  font-size: 19px;
  letter-spacing: 0;
}

.footer-grid p,
.footer-grid a,
.footer-grid address {
  color: #c4c9c2;
  font-size: 16px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.legal-details {
  background: var(--paper);
}

.legal-details__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.legal-details__grid div {
  min-width: 0;
  padding: 24px 26px;
  background: var(--soft);
}

.legal-details__grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.legal-details__grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.legal-details__wide {
  grid-column: span 2;
}

.legal-details__address {
  grid-column: span 4;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #444a42;
  color: #a8ada6;
  font-size: 14px;
}

.footer-bottom img {
  width: 120px;
  height: 36px;
  object-fit: cover;
  object-position: center 48%;
  filter: brightness(0) invert(1);
}

.footer-bottom a {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .product-grid img,
  .partner-grid a {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 150px 1fr 90px;
  }

  .main-nav {
    gap: 18px;
  }

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

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

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

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding: 7px 18px;
  }

  .logo {
    width: 140px;
    height: 42px;
  }

  .logo img {
    width: 190px;
    height: 190px;
    transform: translate(-26px, -66px);
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: white;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
  }

  .main-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 34px 20px 38px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 18px 35px rgb(0 0 0 / 10%);
  }

  .menu-open .main-nav {
    display: flex;
  }

  .header-contacts {
    display: none;
  }

  .hero {
    min-height: 640px;
    padding-top: 30px;
  }

  .section-heading--split,
  .collection-pair,
  .about,
  .news {
    grid-template-columns: 1fr;
  }

  .news {
    height: auto;
    overflow: visible;
  }

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

  .feature-card,
  .feature-card + .feature-card {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about > img,
  .news > img {
    min-height: 380px;
  }

  .about__content,
  .news__content {
    padding: 50px 24px;
  }

  .about__content {
    padding-right: 0;
    padding-left: 0;
  }

  .news__content {
    padding-right: 0;
    padding-left: 0;
  }

  .news > img {
    order: 0;
    height: 340px;
    min-height: 340px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: 620px;
    padding-top: 24px;
    background-position: 61% center;
  }

  .hero__content {
    gap: 16px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .hero .eyebrow {
    font-size: 13px;
  }

  .hero__content > p:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .news > img {
    height: 300px;
    min-height: 300px;
  }

  .news__content {
    padding: 40px 0;
  }

  .news h2 {
    font-size: 2.1rem;
  }

  .catalog {
    gap: 58px;
  }

  .collection__heading {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .product-grid,
  .product-grid--two {
    display: flex;
    gap: 14px;
    margin-right: -24px;
    padding-right: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-grid figure {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

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

  .partner-grid a {
    grid-template-columns: auto minmax(100px, 150px);
    gap: 14px;
    padding: 22px;
  }

  .partner-grid span {
    font-size: 17px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 40px 24px 20px;
  }

  .footer-heading {
    margin-bottom: 26px;
  }

  .footer-heading h2 {
    font-size: 2.25rem;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-grid section {
    gap: 8px;
  }

  .footer-grid h3 {
    font-size: 17px;
  }

  .footer-grid p,
  .footer-grid a,
  .footer-grid address {
    font-size: 14px;
    line-height: 1.45;
  }

  .footer-grid a {
    display: inline-flex;
    min-height: auto;
    align-items: center;
    padding: 0;
  }

  .footer-bottom a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .legal-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  .legal-details__grid div {
    padding: 18px;
  }

  .legal-details__wide,
  .legal-details__address {
    grid-column: span 2;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 10px;
  }

  .footer-bottom img {
    width: 90px;
    height: 28px;
  }

  .footer-bottom a {
    min-height: auto;
    justify-self: end;
  }
}
