:root {
  --bg: #dbdbdc;
  --bg-soft: #e6e6e7;
  --surface: #f4f4f5;
  --surface-strong: #ffffff;
  --text: #2f3135;
  --muted: #6a6d72;
  --line: #c7c8cb;
  --dark: #202226;
  --dark-soft: #2f3238;
  --accent: #d1b07a;
  --shadow: 0 12px 28px rgba(25, 24, 23, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  font-family: "Noto Sans SC", "Manrope", sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.1;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.01em;
}

h2 {
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
}

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #d8d8d9 0%, #ddddde 100%);
}

.container {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.btn {
  border: 1px solid transparent;
  padding: 0.78rem 1.25rem;
  border-radius: 0.7rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn--primary,
.btn--accent {
  background: var(--dark);
  color: #fff;
}

.btn--primary:hover,
.btn--accent:hover {
  background: #131519;
}

.btn--ghost {
  background: #fff;
  color: var(--dark);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: #f0f1f2;
}

.header .btn--ghost,
.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.header .btn--ghost:hover,
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(18, 18, 19, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.header__inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.brand__fallback {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.07em;
  color: #fff;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
}

.header__actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.33rem 0.5rem;
  border-radius: 999px;
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: #fff;
  color: #1f2227;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  color: #fff;
}

.hero {
  min-height: 94dvh;
  display: flex;
  align-items: center;
  padding: 6.2rem 0 2.6rem;
  color: #fff;
  background-image:
    linear-gradient(110deg, rgba(9, 10, 12, 0.78) 0%, rgba(9, 10, 12, 0.42) 45%, rgba(9, 10, 12, 0.7) 100%),
    url("assets/hero-bg.svg");
  background-size: cover;
  background-position: center;
}

.hero__shell {
  width: 100%;
  max-width: none;
  background: linear-gradient(150deg, rgba(22, 24, 28, 0.72), rgba(22, 24, 28, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.4rem;
  backdrop-filter: blur(4px);
  padding: clamp(1.05rem, 2.4vw, 2rem);
  display: grid;
  gap: 1.25rem;
  margin-inline: 0;
}

.hero__content {
  max-width: 650px;
}

.hero__label {
  margin: 0 0 0.5rem;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.hero__content p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-stat {
  background: rgba(248, 248, 249, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0.95rem;
  padding: 0.75rem 0.85rem;
}

.hero-stat p {
  margin: 0;
}

.hero-stat__value {
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.2rem;
}

.about,
.contacts,
.order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.about h2,
.contacts h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.about [data-i18n="about.text"] {
  white-space: pre-line;
  text-align: justify;
}

#catalog {
  background: #dbdbdc;
}

#catalog .section-head h2 {
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  color: #4a4d51;
  margin-bottom: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid #ceced1;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e8e9eb;
  padding: 0.55rem;
}

.product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.product-card h3 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.product-card__meta,
.product-card__desc {
  color: #5f6166;
  margin-bottom: 0;
}

.product-card__price {
  margin-top: 0.2rem;
  font-size: 1.8rem;
  font-family: "Oswald", sans-serif;
  color: #6f7278;
}

.product-card__actions {
  margin-top: auto;
  display: grid;
  gap: 0.5rem;
}

.product-card__main-btn {
  width: 100%;
  border-radius: 0.6rem;
}

.card-cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.card-qty {
  border: 1px solid #a8aaaf;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #efeff0;
  min-height: 2.9rem;
}

.card-qty button {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: #5e6167;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.card-qty span {
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
}

.card-add-btn {
  border-radius: 0.55rem;
  white-space: nowrap;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 280px));
  gap: 1rem;
  justify-content: center;
  max-width: 1180px;
  margin-inline: auto;
}

#benefits h2 {
  text-align: center;
  margin-bottom: 1.4rem;
}

.benefits-grid article {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1rem;
  text-align: center;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-lead {
  max-width: 760px;
  margin: 0 0 1.2rem;
  color: #5a5e64;
}

.events-controls {
  display: inline-flex;
  gap: 0.45rem;
}

.events-nav {
  min-width: 2.6rem;
  padding-inline: 0.55rem;
}

.events-carousel {
  overflow: hidden;
}

.events-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.events-track::-webkit-scrollbar {
  height: 8px;
}

.events-track::-webkit-scrollbar-thumb {
  background: #bfc2c8;
  border-radius: 999px;
}

.event-card {
  border: 1px solid #cdced2;
  border-radius: 0.95rem;
  background: #f8f8f9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-width: 0;
}

.event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ececee;
}

.event-card__body {
  padding: 0.9rem;
}

.event-card__body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.event-card__meta {
  color: #666a70;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.event-card__actions {
  margin-top: auto;
  padding-top: 0.6rem;
}

.event-modal {
  display: grid;
  gap: 0.9rem;
}

.event-modal img {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid #cfd2d8;
  max-height: 380px;
  object-fit: cover;
}

.event-modal__text p {
  margin: 0 0 0.85rem;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.62;
}

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

.partners-lead {
  max-width: 760px;
  margin: 0 0 1.2rem;
  color: #5a5e64;
}

.partners-controls {
  display: inline-flex;
  gap: 0.45rem;
}

.partners-nav {
  min-width: 2.6rem;
  padding-inline: 0.55rem;
}

.partners-carousel {
  overflow: hidden;
}

.partners-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 0.3rem;
}

.partners-track::-webkit-scrollbar {
  height: 8px;
}

.partners-track::-webkit-scrollbar-thumb {
  background: #bfc2c8;
  border-radius: 999px;
}

.partner-link {
  display: block;
  scroll-snap-align: start;
}

.partner-card {
  background: #fcfcfd;
  border: 1px solid #ced0d5;
  border-radius: 0.85rem;
  padding: 0.5rem;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

.partner-card img {
  width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(18%);
}

.steps {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: order-steps;
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
}

.steps li {
  counter-increment: order-steps;
  position: relative;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem 0.95rem 3.35rem;
  text-align: left;
}

.steps li::before {
  content: counter(order-steps);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
}

#how-order .container {
  max-width: 940px;
  text-align: center;
}

#how-order h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
}

textarea[readonly] {
  background: #f3f3f4;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

#order-form .btn--ghost,
.modal .btn--ghost,
.cart-drawer .btn--ghost,
.contacts .btn--ghost {
  color: var(--dark);
  border-color: var(--line);
  background: #fff;
}

#order-form .btn--ghost:hover,
.modal .btn--ghost:hover,
.cart-drawer .btn--ghost:hover,
.contacts .btn--ghost:hover {
  background: #f1f2f3;
}

.form-message {
  min-height: 1.3rem;
  margin-top: 0.7rem;
  font-size: 0.95rem;
}

.form-message.success {
  color: #2f7a4f;
}

.form-message.error {
  color: #ab3838;
}

.contacts-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 1.1rem;
}

.contacts-grid {
  display: grid;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}

.contacts-qr {
  flex: 0 0 auto;
  min-width: 300px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.contacts-qr h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.contacts-qr__grid {
  display: flex;
  gap: 0.8rem;
}

.contacts-qr__grid .qr-card {
  width: 145px;
  flex: 0 0 145px;
}

.qr-card {
  margin: 0;
  background: #fff;
  border: 1px solid #cdd0d6;
  border-radius: 0.8rem;
  padding: 0.55rem;
}

.qr-card img {
  width: 100%;
  display: block;
  border-radius: 0.45rem;
}

.qr-card figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #53575f;
  text-align: center;
}

.footer {
  padding: 1.2rem 0 5rem;
}

.footer__inner {
  border-top: 1px solid #c0c2c5;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cart-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
}

.mobile-cart {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 18;
  border: 0;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.72rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 20px rgba(22, 20, 18, 0.27);
}

.mobile-cart .cart-badge {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.modal,
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.modal.is-open,
.cart-drawer.is-open {
  display: block;
}

.modal__backdrop,
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 13, 0.5);
}

.modal__panel,
.cart-drawer__panel {
  position: relative;
  z-index: 1;
  background: #f9f9fa;
  border-radius: 1rem;
  margin: 1rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border: 1px solid #c8cacf;
}

.modal__panel {
  max-width: 720px;
  margin-inline: auto;
  padding: 1rem;
}

.modal__close {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  float: right;
  cursor: pointer;
}

.cart-drawer__panel {
  width: min(460px, 96vw);
  margin: 0 0 0 auto;
  border-radius: 1rem 0 0 1rem;
  height: 100dvh;
}

.cart-drawer__head {
  padding: 1rem;
  border-bottom: 1px solid #d0d1d5;
}

.cart-list {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.cart-item {
  border: 1px solid #d1d3d8;
  border-radius: 0.75rem;
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
  background: #fff;
}

.cart-item__line {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.cart-item__controls {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.cart-item__controls button {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.45rem;
  border: 1px solid #c4c7cd;
  background: #fff;
  cursor: pointer;
}

.cart-summary {
  border-top: 1px solid #d0d1d5;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.product-modal {
  display: grid;
  gap: 1rem;
}

.product-modal img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid #cfd2d8;
  max-height: 360px;
  object-fit: contain;
  background: #ececef;
  padding: 0.5rem;
}

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

  .mobile-cart {
    display: none;
  }
}

@media (max-width: 899px) {
  .brand__logo {
    width: 68px;
    height: 68px;
  }

  .nav,
  .header__actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .lang-switch {
    margin-left: auto;
  }

  .header.is-open .nav {
    display: grid;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    background: rgba(34, 35, 39, 0.95);
    box-shadow: var(--shadow);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .contacts-qr {
    min-width: 0;
    margin-top: 0.2rem;
    padding-top: 0.9rem;
    border-top: 1px solid #d2d4d9;
  }

  .contacts-qr__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .contacts-qr__grid .qr-card {
    width: auto;
    flex: initial;
  }

  .events-controls {
    align-self: flex-end;
  }

  .partners-controls {
    align-self: flex-end;
  }

  .partners-track {
    grid-auto-columns: minmax(150px, 74vw);
  }

  .hero {
    min-height: 86dvh;
    padding-top: 6rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.6rem);
  }

  .hero__shell {
    border-radius: 1.1rem;
    padding: 1rem;
  }

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

  .steps li {
    padding-left: 1rem;
    text-align: center;
  }

  .steps li::before {
    position: static;
    transform: none;
    margin-bottom: 0.55rem;
  }
}
