/* ===== Fonts ===== */
@font-face {
  font-family: 'ALS Hauss';
  src: url('fonts/ALSHauss-Regular.woff2') format('woff2'),
       url('fonts/ALSHauss-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ALS Hauss';
  src: url('fonts/ALSHauss-Medium.woff2') format('woff2'),
       url('fonts/ALSHauss-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ALS Hauss';
  src: url('fonts/ALSHauss-Bold.woff2') format('woff2'),
       url('fonts/ALSHauss-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FBF0E1;
  --color-brown: #5B2B17;
  --color-dark-brown: #301B0E;
  --color-white: #FFFFFF;
  --color-cream: #FFF8F0;
  --color-black: #000000;
  --color-gold: #F4DBB9;
  --color-orange: #F55714;
  --font-main: 'ALS Hauss', 'Helvetica Neue', Arial, sans-serif;
  --font-inter: 'Inter', sans-serif;
  --radius-card: 32px;
  --radius-btn: 1000px;
  --max-width: 1440px;
  --content-width: 1360px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-brown);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Header ===== */
.header {
  padding: 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__logo {
  width: 54px;
  height: 55px;
  flex-shrink: 0;
}

.header__slogan {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  max-width: 265px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-inter);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: scale(1.03);
}

.btn:active {
  transform: scale(0.98);
}

.btn--header {
  background: var(--color-gold);
  color: var(--color-black);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.21;
  letter-spacing: 0.02em;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
}

.btn--outline {
  background: var(--color-white);
  color: var(--color-brown);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  padding: 22px 48px;
  border-radius: var(--radius-btn);
}

/* ===== Hero ===== */
.hero {
  padding-top: 40px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1204px;
  margin-bottom: 72px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.8;
}

.hero__subtitle {
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  opacity: 0.7;
  max-width: 635px;
}

/* ===== Catalog ===== */
.catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog__card {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.catalog__card:hover {
  transform: translateY(-4px);
}

.catalog__card--coming {
  cursor: default;
}

.catalog__card--coming:hover {
  transform: none;
}

.catalog__card-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

/* ===== Origin ===== */
.origin {
  margin-top: 160px;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--color-dark-brown);
}

.origin__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.origin__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.origin__container {
  position: relative;
  z-index: 1;
  padding: 60px 40px 40px;
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 900px;
  display: flex;
  flex-direction: column;
}

.origin__title {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 72px);
  line-height: 1.05;
  color: var(--color-brown);
  text-align: center;
}

.origin__cards {
  display: grid;
  grid-template-columns: 447fr 376fr 376fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: auto;
  align-items: end;
  padding-bottom: 20px;
}

.origin__card {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.origin__card-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
}

.origin__card--big {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: end;
}

.origin__card--small:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

.origin__card--small:nth-child(3) {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: end;
}

/* ===== Reviews ===== */
.reviews {
  padding-top: 160px;
  padding-bottom: 40px;
}

.reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.reviews__title {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  color: var(--color-brown);
}

.reviews__arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.reviews__arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 43, 23, 0.2);
  background: transparent;
  color: var(--color-brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.reviews__arrow:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.reviews__track-wrapper {
  position: relative;
}

.reviews__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 calc((100vw - var(--content-width)) / 2 + 40px) 20px;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.reviews__card {
  flex-shrink: 0;
  width: 505px;
  border-radius: var(--radius-card);
  overflow: hidden;
  scroll-snap-align: start;
}

.reviews__card-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

.reviews__fade {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 20px;
  width: 200px;
  background: linear-gradient(to right, transparent, var(--color-bg));
  pointer-events: none;
}

/* ===== CTA ===== */
.cta {
  margin-top: 80px;
}

.cta__zigzag {
  line-height: 0;
  margin-bottom: -2px;
}

.cta__zigzag svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 180px;
}

.cta__body {
  background: var(--color-orange);
  padding-bottom: 60px;
}

.cta__content {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 64px;
}

.cta__title {
  font-weight: 700;
  font-size: clamp(36px, 6.25vw, 90px);
  line-height: 0.8;
  color: var(--color-white);
  margin-bottom: 18px;
}

.cta__subtitle {
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--color-cream);
  margin-bottom: 48px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn--cta {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  padding: 28px 40px;
  border-radius: var(--radius-btn);
  gap: 12px;
  height: 100px;
}

.btn__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn__inner svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--cta-primary {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--cta-ozon,
.btn--cta-offline {
  background: var(--color-cream);
  color: var(--color-brown);
  padding-left: 16px;
  gap: 12px;
  border: 1.3px solid rgba(91, 43, 23, 0.08);
}

.btn__logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

/* ===== Footer ===== */
.footer {
  padding-top: 64px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__contacts {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  transition: opacity 0.2s;
}

.footer__contact:hover {
  opacity: 0.8;
}

.footer__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer__legal {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-white);
  opacity: 0.3;
  max-width: 900px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .container {
    padding: 0 24px;
  }

  .header {
    padding: 16px 24px;
  }

  .header__slogan {
    display: none;
  }

  .origin {
    margin-top: 80px;
  }

  .origin__container {
    padding: 40px 24px 24px;
    min-height: 700px;
  }

  .origin__cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  .origin__card--big {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: auto;
  }

  .origin__card--small:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    align-self: auto;
  }

  .origin__card--small:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    align-self: auto;
  }

  .reviews {
    margin-top: 80px;
  }

  .reviews__card {
    width: 340px;
  }

  .reviews__track {
    padding: 0 24px 16px;
  }

  .footer__contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .btn--cta {
    font-size: 18px;
    padding: 20px 28px;
    height: 72px;
  }

  .btn__ozon-logo {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 12px 16px;
  }

  .header__logo {
    width: 44px;
    height: 45px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero__text {
    margin-bottom: 40px;
    gap: 16px;
  }

  .catalog {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .origin {
    margin-top: 60px;
  }

  .origin__bg-img {
    object-position: center top;
  }

  .origin__container {
    padding: 32px 16px 16px;
    min-height: 80vh;
  }

  .origin__title {
    font-size: 28px;
  }

  .origin__cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .origin__cards::-webkit-scrollbar {
    display: none;
  }

  .origin__card {
    flex-shrink: 0;
    width: 260px;
    scroll-snap-align: start;
  }

  .origin__card--big {
    grid-column: unset;
    grid-row: unset;
    align-self: unset;
  }

  .origin__card--small:nth-child(2),
  .origin__card--small:nth-child(3) {
    grid-column: unset;
    grid-row: unset;
    align-self: unset;
  }

  .reviews {
    padding-top: 60px;
  }

  .cta {
    margin-top: 40px;
  }

  .cta__content {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--cta {
    justify-content: center;
    height: 64px;
    font-size: 18px;
  }

  .reviews__card {
    width: 280px;
  }

  .reviews__track {
    padding: 0 16px 16px;
  }

  .reviews__fade {
    width: 80px;
  }

  .footer__contacts {
    gap: 16px;
  }
}
