﻿@font-face {
  font-family: 'ArialBlack';
  src: url('/fonts/ArialBlack.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Play';
  src: url('/fonts/Play-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1b1a18;
  --muted: #7c766d;
  --line: #e7dfd3;
  --accent: #a42a23;
  --accent-soft: #f3ded9;
  --radius: 18px;
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* атрибут hidden должен работать всегда, даже если у элемента задан display */
[hidden] {
  display: none !important;
}

.container,
.header-inner,
.hero-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 28px rgba(60, 42, 22, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 0 0 1px var(--line);
}

.logo-text {
  font-family: 'Play', var(--ui);
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.search {
  flex: 1 1 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 0 14px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: #d6c9b6;
  box-shadow: 0 0 0 4px rgba(164, 42, 35, 0.07);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.search input::placeholder {
  color: #a49c90;
}

.search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-hint {
  font: inherit;
  font-size: 11px;
  color: #a49c90;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.header-link {
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.header-link:hover {
  border-color: #d6c9b6;
  background: #fffdf8;
}

/* ---------- меню ---------- */

.menu-button.search-toggle {
  display: none;
}

.menu-wrap {
  display: none;
  position: relative;
  flex-shrink: 0;
  margin-left: 4px;
}

/* горизонтальное меню в шапке (десктоп) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}

.header-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-family: 'ArialBlack', 'Arial Black', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s ease;
}

.header-nav a:hover {
  background: #f1eae0;
}

/* на страницах без поиска меню прижимается вправо */
.header-nav--end {
  margin-left: auto;
}

/* кнопки-иконки: без фона и обводки */
.menu-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-button:hover {
  background: rgba(27, 26, 24, 0.06);
}

.menu-button[aria-expanded='true'] {
  background: rgba(27, 26, 24, 0.08);
}

/* бургер нужен только на мобильных */
#menuButton {
  display: none;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(60, 42, 22, 0.16);
  z-index: 30;
}

.menu-dropdown[hidden] {
  display: none;
}

.menu-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-family: 'ArialBlack', 'Arial Black', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: background 0.12s ease;
}

.menu-dropdown a:hover {
  background: #f6efe4;
}

.menu-dropdown a + a {
  margin-top: 2px;
}

/* ---------- hero ---------- */

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px;
  padding: 64px 0 48px;
}

.hero-inner {
  padding-right: 12px;
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: 'Play', var(--ui);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-text {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff7ec;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease;
}

.button:hover {
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(1px);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: #d8cdbb;
}

.button.ghost:hover {
  background: #fffdf8;
}

.hero-art {
  position: relative;
  min-height: 320px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.blob-a {
  inset: 24px 40px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, #f6e7d6, #efe1cc 60%, transparent 70%);
  opacity: 0.9;
}

.blob-b {
  inset: auto auto 10px 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 50% 50%, #f3ded9, transparent 68%);
}

.hero-tag {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 40px auto 0;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(60, 42, 22, 0.14));
}

main {
  flex: 1 0 auto;
}

/* ---------- каталог ---------- */

.catalog {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-family: 'Play', var(--ui);
  font-size: 24px;
}

.counter {
  font-size: 13px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card[hidden] {
  display: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #ddd2c1;
  box-shadow: 0 18px 40px rgba(60, 42, 22, 0.1);
}

.card-art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f2ece1;
  border-bottom: 1px solid var(--line);
}

.card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-art img {
  transform: scale(1.03);
}

.art-keychain {
  background: linear-gradient(135deg, #fdf8f0, #f3e3dd);
}

.art-toppers {
  background: linear-gradient(135deg, #fbf8f1, #eef1e6);
}

.art-vases {
  background: linear-gradient(135deg, #fbf8f1, #eaeef1);
}

.art-magnets {
  background: linear-gradient(135deg, #fbf7f0, #f1e9dd);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px 18px;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #d8cdbb;
  background: #fffdf8;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.card:hover .card-button {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff7ec;
}

.card-body h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.card-meta {
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #9a9184;
}

.empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.empty-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.empty-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- подвал ---------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #f1ece3;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 0 44px;
}

.footer-title {
  margin: 0 0 6px;
  font-family: 'Play', var(--ui);
  font-size: 16px;
}

.footer-text {
  margin: 0;
  max-width: 34ch;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- мобильный ---------- */

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    order: 1;
  }

  #menuButton {
    display: grid;
    order: 3;
  }

  .menu-button.search-toggle {
    display: grid;
    order: 2;
    margin-left: auto;
  }

  .header-nav {
    display: none;
  }

  .menu-wrap {
    display: block;
    order: 5;
    margin-left: 0;
  }

  .cart-button {
    order: 3;
  }

  .account-button {
    order: 4;
  }

  /* страницы без поиска: иконки прижаты вправо */
  .page-simple .cart-button {
    margin-left: auto;
  }

  .page-simple .menu-wrap {
    margin-left: 0;
  }

  .search {
    order: 6;
    display: none;
    max-width: none;
    width: 100%;
    margin-left: 0;
  }

  .header.search-open .search {
    display: flex;
  }

  .header-link {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 0 32px;
  }

  .hero-inner {
    margin: 0;
    padding: 0 20px;
  }

  .hero-art {
    min-height: 240px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .container,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .catalog {
    width: calc(100% - 32px);
  }
}

/* телефоны: две карточки в ряд */
@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-body {
    padding: 12px 12px 14px;
  }

  .card-body h3 {
    font-size: 13.5px;
  }

  .card-body p {
    font-size: 11.5px;
  }
}

  /* ---------- страница категории ---------- */

.back-link {
  display: inline-block;
  margin: 28px 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.back-link:hover {
  color: var(--accent);
}

.page-head {
  margin-bottom: 26px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-family: 'Play', var(--ui);
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
}

.page-subtitle {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 15px;
}

.page-head--center {
  text-align: center;
}

.page-head--center .page-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.placeholder {
  margin-bottom: 64px;
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.placeholder-title {
  margin: 0 0 8px;
  font-family: 'Play', var(--ui);
  font-size: 20px;
}

.placeholder-text {
  margin: 0 auto 20px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- реквизиты ---------- */

.legal {
  margin-bottom: 64px;
}

.legal h2 {
  margin: 0 0 14px;
  font-family: 'Play', var(--ui);
  font-size: 20px;
}

.legal .legal-title {
  margin-top: 64px;
}

.legal .legal-title + .legal-links {
  margin-top: 16px;
}

.legal-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-row {
  display: flex;
  gap: 24px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.legal-row dt {
  width: 170px;
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.legal-row dd {
  margin: 0;
  font-size: 14.5px;
}

.legal-row a {
  color: var(--accent);
}

.legal-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.legal-links a {
  font-size: 14.5px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links a:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 640px) {
  .legal-row {
    flex-direction: column;
    gap: 4px;
  }

  .legal-row dt {
    width: auto;
  }
}
/* ---------- формы входа и кабинета ---------- */

.auth {
  max-width: 460px;
  margin: 8px auto 64px;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: #f1eae0;
  margin-bottom: 22px;
}

.tab {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(60, 42, 22, 0.08);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: #d6c9b6;
  box-shadow: 0 0 0 4px rgba(164, 42, 35, 0.07);
}

.form-error {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--accent);
}

.button.full {
  width: 100%;
}

.form-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #9a9184;
}

.auth-alt {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-alt button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* кабинет */

.account-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1eae0;
  font-family: 'Play', var(--ui);
  font-size: 22px;
  color: var(--accent);
}

.account-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 26px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  margin-bottom: 18px;
}

.account-grid dt {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 3px;
}

.account-grid dd {
  margin: 0;
  font-size: 15px;
}

.orders {
  display: grid;
  gap: 12px;
}

.order {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.order-main {
  display: grid;
  gap: 4px;
}

.order-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.order-meta {
  font-size: 12.5px;
  color: var(--muted);
}

.order-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1eae0;
  font-size: 12px;
  color: #6d655a;
}

@media (max-width: 640px) {
  .order {
    flex-direction: column;
  }
}
/* ---------- корзина ---------- */

.cart-button {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff7ec;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

.cart-badge[hidden] {
  display: none;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  justify-content: center;
  gap: 24px;
  align-items: start;
  width: min(900px, 100%);
  margin: 0 auto 64px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.cart-thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2ece1;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-info h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 650;
}

.cart-info p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.cart-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}

.cart-qty button:hover {
  background: #f6efe4;
}

.cart-qty span {
  min-width: 26px;
  text-align: center;
  font-size: 13.5px;
}

.cart-side {
  padding: 0;
}

.cart-side-inner {
  width: 100%;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-total b {
  font-size: 19px;
}

.cart-remove {
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 4px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-remove:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cart-thumb {
    width: 64px;
    height: 64px;
  }

  .cart-remove {
    grid-column: 2;
    justify-self: start;
  }
}
/* приглашение войти в корзине */
.auth-required {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed #d8cdbb;
  border-radius: 14px;
  background: #fbf7ef;
  text-align: center;
}

.auth-required-title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 650;
}

.auth-required-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.auth-required .button {
  width: 100%;
}
/* ---------- поддержка ---------- */

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 64px;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-card textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-card textarea:focus,
.support-card select:focus {
  outline: none;
  border-color: #d6c9b6;
  box-shadow: 0 0 0 4px rgba(164, 42, 35, 0.07);
}

.support-card select {
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}

.support-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.support-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.support-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-done {
  text-align: center;
  padding: 26px 10px;
}

.support-done-title {
  margin: 0 0 8px;
  font-family: 'Play', var(--ui);
  font-size: 20px;
}

.support-done-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.support-side {
  display: grid;
  gap: 16px;
}

.support-side-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-side-card h2 {
  margin: 0 0 10px;
  font-family: 'Play', var(--ui);
  font-size: 16px;
}

.support-side-card p {
  margin: 0 0 6px;
  font-size: 14.5px;
}

.support-side-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-muted {
  color: var(--muted);
  font-size: 13px;
}

.support-faq {
  margin: 0;
}

.support-faq dt {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 12px;
}

.support-faq dt:first-child {
  margin-top: 0;
}

.support-faq dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .support-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ---------- чат на странице «Оптом» ---------- */

.chat {
  max-width: 760px;
  margin: 0 auto 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbf7ef;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff7ec;
  font-family: 'Play', var(--ui);
  font-size: 18px;
  flex-shrink: 0;
}

.chat-head-text {
  display: grid;
  gap: 2px;
}

.chat-name {
  margin: 0;
  font-weight: 650;
  font-size: 14.5px;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7f9c86;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 380px;
  overflow-y: auto;
  padding: 18px;
  background: #fdfbf7;
}

.chat-row {
  display: flex;
}

.chat-row--me {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(76%, 460px);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  background: #f2ece1;
  border: 1px solid #e7dfd3;
}

.chat-row--me .chat-bubble {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff7ec;
}

.chat-bubble p {
  margin: 0;
}

.chat-time {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  opacity: 0.6;
  text-align: right;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 18px 6px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdfa;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}

.chat-form input:focus {
  outline: none;
  border-color: #d6c9b6;
  box-shadow: 0 0 0 4px rgba(164, 42, 35, 0.07);
}

.chat-form .button {
  flex-shrink: 0;
  padding: 0 20px;
}

.chat .form-note {
  padding: 0 18px 16px;
  margin: 0;
}

@media (max-width: 640px) {
  .chat-log {
    height: 320px;
    padding: 14px;
  }

  .chat-form {
    flex-wrap: wrap;
  }

  .chat-form input {
    width: 100%;
  }

  .chat-form .button {
    width: 100%;
    height: 44px;
  }
}
/* ---------- оплата ---------- */

.pay-card {
  max-width: 520px;
  margin: 0 auto 64px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pay-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.pay-row b {
  font-family: 'Play', var(--ui);
  font-size: 24px;
}

.pay-status {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.order-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.order-status--pending {
  background: #fdf0d8;
  color: #8a5a12;
}

.order-status--paid {
  background: #e4f0e4;
  color: #2f6b3a;
}

.order-status--cancelled {
  background: #f0ece6;
  color: #7c766d;
}

.order-pay {
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .order-side {
    align-items: flex-start;
  }
}