/* SWOODS главная — mobile-first; ≥992px соответствует десктопному фрейму ~1920 */

:root {
  --landing-black: #000000;
  --landing-white: #ffffff;
  --landing-gray: #a7a7a7;
  --landing-gray-muted: #b6b6b6;
  --landing-gray-bg: #f7f7f7;
  --landing-dark-badge: #020204;
  --landing-topbar-1: #2b2b2b;
  --landing-topbar-2: #edf2f3;
  --landing-topbar-3: #e8e6e6;
  --landing-container: 1160px;
  /* Небольшой отступ от краёв экрана (не путать с полями макета — они даются margin: auto у контейнера) */
  --landing-gutter: clamp(16px, 4vw, 32px);
  --landing-font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --landing-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

.landing {
  font-family: var(--landing-font);
  color: var(--landing-black);
  background: var(--landing-white);
  overflow-x: hidden;
}

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

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

.landing a:hover {
  opacity: 0.85;
}

/*
 * Центральная колонка макета 1920: контент 1160px, поля по бокам (1920−1160)/2 = 380px.
 * Задаём только max-width + margin: auto; горизонтальный padding — узкий «gutter» на маленьких вьюпортах.
 */
.landing-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--landing-container);
  margin-inline: auto;
  padding-inline: var(--landing-gutter);
}

@media (min-width: 1224px) {
  .landing-container {
    padding-inline: 0;
  }
}

/* ----- Верхняя полоска ----- */
.landing-topbar {
  height: 25px;
  background: linear-gradient(
    90deg,
    var(--landing-topbar-1) 0%,
    var(--landing-topbar-2) 52%,
    var(--landing-topbar-3) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.24;
  letter-spacing: 0.02em;
}

.landing-topbar span {
  color: var(--landing-black);
}

/* ----- Шапка ----- */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.35s var(--landing-ease),
    box-shadow 0.35s var(--landing-ease);
}

.landing-header.is-solid {
  background: var(--landing-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.landing-header:not(.is-solid) .landing-navlink {
  color: var(--landing-white);
}

.landing-header:not(.is-solid) .landing-navlink.is-active {
  color: var(--landing-gray-muted);
}

.landing-header:not(.is-solid) .landing-icon-btn {
  color: var(--landing-white);
}

.landing-header:not(.is-solid) .landing-logo__text {
  color: var(--landing-white);
}

.landing-header:not(.is-solid) .landing-header__lines span {
  background: var(--landing-white);
}

.landing-header.is-solid .landing-navlink {
  color: var(--landing-black);
}

.landing-header.is-solid .landing-navlink.is-active {
  color: var(--landing-gray-muted);
}

.landing-header.is-solid .landing-icon-btn {
  color: var(--landing-black);
}

.landing-header.is-solid .landing-logo__text {
  color: var(--landing-black);
}

.landing-header.is-solid .landing-header__lines span {
  background: var(--landing-black);
}

.landing-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 73px;
  padding-block: 8px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-logo__badge {
  width: 60px;
  height: 73px;
  background: var(--landing-dark-badge);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.landing-logo__badge img {
  width: 39px;
  height: auto;
  max-height: 49px;
  object-fit: contain;
}

/* Шапка: mobile-first (полное меню от 992px) */
.landing-logo__text {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 576px) {
  .landing-logo__text {
    display: block;
  }
}

.landing-nav {
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

@media (min-width: 992px) {
  .landing-nav {
    display: flex;
  }
}

.landing-navlink {
  font-size: 14px;
  line-height: 1.24;
  font-weight: 400;
  white-space: nowrap;
  color: var(--landing-black);
}

.landing-navlink.is-active {
  color: var(--landing-gray-muted);
}

.landing-navlink--accent {
  font-weight: 500;
}

.landing-header__tools {
  display: none;
  align-items: center;
  gap: 14px;
}

@media (min-width: 992px) {
  .landing-header__tools {
    display: flex;
  }
}

.landing-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--landing-black);
  display: grid;
  place-items: center;
}

.landing-icon-btn svg {
  width: 22px;
  height: 22px;
}

.landing-burger {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 6px;
}

@media (min-width: 992px) {
  .landing-burger {
    display: none;
  }
}

.landing-header__lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 22px;
}

.landing-header__lines span {
  display: block;
  height: 2px;
  background: var(--landing-black);
  border-radius: 1px;
}

/* Мобильное меню */
.landing-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.landing-drawer.is-open {
  pointer-events: auto;
}

.landing-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s var(--landing-ease);
}

.landing-drawer.is-open .landing-drawer__backdrop {
  opacity: 1;
}

.landing-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--landing-white);
  transform: translateX(100%);
  transition: transform 0.35s var(--landing-ease);
  padding: 72px 28px 32px;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
}

.landing-drawer.is-open .landing-drawer__panel {
  transform: translateX(0);
}

.landing-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.landing-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-drawer .landing-navlink {
  font-size: 16px;
}

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

/* ----- Герой ----- */
.landing-hero {
  position: relative;
  min-height: min(975px, 92vh);
  margin-top: -73px;
  padding-top: calc(73px + 48px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  color: var(--landing-white);
}

.landing-hero__media {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    linear-gradient(120deg, #2b2b2b 0%, #4a4a4a 100%);
  background-size: cover;
  background-position: center;
}

/* При наличии экспорта из Figma: hero-bg-984909.png */
.landing-hero__media.has-photo {
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("/assets/template/landing/img/hero-bg-984909.png");
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
}

.landing-hero__title {
  font-weight: 300;
  font-size: clamp(48px, 8vw, 103px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

@media (min-width: 1200px) {
  .landing-hero__title {
    font-size: 103px;
    line-height: 1.245;
  }
}

.landing-hero__tagline {
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.25;
  margin: 0 0 40px;
  max-width: 320px;
}

@media (min-width: 1200px) {
  .landing-hero__tagline {
    font-size: 25px;
    line-height: 1.245;
  }
}

.landing-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 247px;
  min-height: 46px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--landing-white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-hero__cta:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ----- Секции общие ----- */
.landing-section-head {
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.245;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 24px;
}

@media (min-width: 1200px) {
  .landing-section-head {
    font-size: 40px;
    line-height: 1.2452;
  }
}

.landing-section-lead {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.25;
  max-width: 560px;
  margin: 0 0 24px;
}

.landing-section-lead strong {
  font-weight: 400;
}

/* ----- Новинки ----- */
.landing-novinki {
  padding-block: 72px 56px;
}

.landing-novinki__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.landing-carousel-nav {
  display: flex;
  gap: 16px;
}

.landing-carousel-nav button {
  width: 38px;
  height: 38px;
  border: 0.5px solid var(--landing-black);
  background: var(--landing-white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.landing-carousel-nav button:hover {
  background: var(--landing-gray-bg);
}

.landing-carousel-nav svg {
  width: 11px;
  height: 22px;
}

/* Новинки: карусель на узком экране → сетка 2 колонки → 4 колонки (макет 1920) */
.landing-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--landing-gutter));
  padding-inline: var(--landing-gutter);
  scrollbar-width: thin;
}

.landing-product-grid,
.landing-carousel .landing-product-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  width: max-content;
}

.landing-carousel .landing-product-card {
  flex: 0 0 min(283px, 78vw);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 768px) {
  .landing-carousel__viewport {
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .landing-product-grid,
  .landing-carousel .landing-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    width: 100%;
  }

  .landing-carousel .landing-product-card {
    flex: unset;
    scroll-snap-align: unset;
  }
}

@media (min-width: 992px) {
  .landing-product-grid,
  .landing-carousel .landing-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.landing-product-card__photo {
  aspect-ratio: 283 / 390;
  overflow: hidden;
  background: var(--landing-gray-bg);
}

.landing-product-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--landing-ease);
}

.landing-product-card__photo.is-empty {
  background: linear-gradient(145deg, #ececec, #f7f7f7);
}

.landing-product-card:hover .landing-product-card__photo img {
  transform: scale(1.06);
}

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

.landing-product-card__title {
  margin: 14px 0 8px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
  min-height: 2.5em;
}

.landing-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 16px;
}

.landing-price__old {
  color: var(--landing-gray);
  text-decoration: line-through;
}

/* ----- О нас ----- */
.landing-about {
  padding-block: 56px 72px;
}

/* Внутренняя сетка — отдельный блок внутри .landing-container (не смешивать классы на одном узле) */
.landing-about__copy {
  min-width: 0;
}

.landing-about__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .landing-about__grid {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 88px);
    align-items: start;
  }
}

.landing-about__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.landing-about__photos div {
  aspect-ratio: 282 / 380;
  background: linear-gradient(145deg, #e8e8e8, #f5f5f5);
  border-radius: 2px;
}

/* ----- Любимые вышивки ----- */
.landing-embroideries {
  padding-block: 56px 72px;
  background: var(--landing-gray-bg);
}

.landing-tabs {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
}

.landing-tab {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 0;
  color: var(--landing-gray-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.landing-tab.is-active {
  color: var(--landing-black);
  border-bottom-color: var(--landing-black);
}

.landing-tab-panels [hidden] {
  display: none !important;
}

.landing-portrait-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .landing-portrait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .landing-portrait-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.landing-portrait-card {
  background: var(--landing-gray-bg);
  padding-bottom: 16px;
}

.landing-portrait-card__img {
  aspect-ratio: 282 / 380;
  background: #eaeaea;
  overflow: hidden;
}

.landing-portrait-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-portrait-card__caption {
  text-align: center;
  font-size: 14px;
  margin: 14px 12px 10px;
}

.landing-portrait-card__link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--landing-gray);
}

/* ----- Категории (сетка как в макете) ----- */
.landing-categories {
  padding-block: 72px;
}

.landing-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .landing-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .landing-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.landing-cat-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 290 / 368;
  background: #ddd;
}

.landing-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--landing-ease);
}

.landing-cat-card:hover img {
  transform: scale(1.07);
}

.landing-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.landing-cat-card--stub {
  background: linear-gradient(145deg, #c9c9c9, #e6e6e6);
}

.landing-cat-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  font-size: 20px;
  color: var(--landing-white);
}

/* ----- Конструктор ----- */
.landing-constructor {
  padding-block: 72px;
}

.landing-constructor__grid {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .landing-constructor__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.landing-constructor__visual {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: linear-gradient(135deg, #cfd8dc 0%, #eceff1 50%, #b0bec5 100%);
  overflow: hidden;
}

/* ----- Мерч ----- */
.landing-b2b {
  padding-block: 88px;
  background: #111;
  color: var(--landing-white);
  text-align: center;
}

.landing-b2b .landing-section-head {
  margin-inline: auto;
}

.landing-b2b .landing-section-lead {
  margin-inline: auto;
  font-weight: 300;
  opacity: 0.92;
}

.landing-b2b__btn {
  margin-top: 28px;
  display: inline-flex;
  min-width: 200px;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--landing-white);
  background: transparent;
  color: var(--landing-white);
  font-family: inherit;
  font-weight: 300;
  font-size: 16px;
  cursor: pointer;
}

/* ----- Промо блоки ----- */
.landing-promos {
  padding-block: 72px;
}

.landing-promos__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .landing-promos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-promo-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--landing-gray-bg);
}

.landing-promo-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.landing-promo-card__body {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  color: var(--landing-white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.landing-promo-card__title {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}

.landing-promo-card__note {
  margin: 0;
  font-size: 16px;
}

.landing-promo-card__btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 28px;
  border: 1px solid var(--landing-white);
  background: rgba(255, 255, 255, 0.08);
  color: var(--landing-white);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

/* ----- Отзывы ----- */
.landing-reviews {
  padding-block: 72px;
  background: var(--landing-gray-bg);
}

.landing-reviews__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin-inline: calc(-1 * var(--landing-gutter));
  padding-inline: var(--landing-gutter);
  scrollbar-width: thin;
}

.landing-review-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  min-width: 0;
  background: var(--landing-white);
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  padding: 24px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .landing-reviews__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    margin-inline: 0;
    padding-inline: 0;
  }

  .landing-review-card {
    flex: unset;
    scroll-snap-align: unset;
  }
}

@media (min-width: 1200px) {
  .landing-reviews__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.landing-review-card__thumb {
  aspect-ratio: 16 / 10;
  background: #eee;
  margin: -24px -24px 16px;
}

/* ----- Подвал ----- */
.landing-footer {
  padding-block: 56px 40px;
}

.landing-footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .landing-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .landing-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.landing-footer h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 300;
}

.landing-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.1;
}

.landing-newsletter p {
  margin: 0 0 12px;
  font-weight: 300;
  font-size: 14px;
}

.landing-newsletter__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.landing-newsletter input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-family: inherit;
  font-size: 14px;
}

.landing-newsletter button {
  padding: 12px 20px;
  border: 1px solid var(--landing-black);
  background: var(--landing-black);
  color: var(--landing-white);
  font-family: inherit;
  font-weight: 300;
  font-size: 14px;
  cursor: pointer;
}

.landing-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  font-weight: 300;
  font-size: 14px;
  color: var(--landing-black);
}
