:root {
  --text: #101010;
  --muted: #666;
  --border: #e9e9e9;
  --soft: #f6f6f6;
  --accent: #ff9a24;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease;
}

.header-hidden .header {
  transform: translateY(-110%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #111;
  font-size: 15px;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  color: #111;
  background: #f2f2f2;
}

.cart-button {
  min-width: 58px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

.cart-button span {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  font-size: 12px;
}

.floating-cart-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 154, 36, 0.5);
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  font-weight: 900;
  cursor: pointer;
}

.floating-cart-button span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 12px;
}

.main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 32px;
  align-items: stretch;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero h1,
.detail-hero h1,
.collection-hero h1,
.admin-header h1,
.login-panel h1,
.not-found h1 {
  margin: 0;
  color: #111;
  font-size: 64px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.hero p,
.detail-hero p,
.collection-hero p,
.section-title p,
.card p,
.product-card p,
.footer p,
.muted {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: #111;
}

.button.secondary {
  color: #111;
  background: #fff;
  border-color: #dedede;
}

.button.danger {
  color: var(--danger);
  background: #fff5f5;
  border-color: #f0c0c0;
}

.hit-panel {
  min-width: 0;
  padding: 22px;
  border-radius: 20px;
  background: #111;
  border: 1px solid #ff8a1f;
  box-shadow: 0 24px 70px rgba(255, 122, 0, 0.18);
}

.panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hit-list {
  display: grid;
  gap: 10px;
}

.hit-item {
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 154, 36, 0.5);
}

.hit-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #111;
  background: var(--accent);
}

.hit-item strong,
.hit-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hit-item strong {
  color: #111;
  font-size: 15px;
}

.hit-item small {
  margin-top: 4px;
  color: #777;
  font-size: 13px;
}

.section {
  padding-top: 58px;
}

.catalog-hero {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #111;
  background: #f4f4f4;
}

.section-title h2 {
  margin: 0 0 4px;
  color: #111;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 900;
}

.section-title p {
  margin: 0;
  max-width: 680px;
}

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

.collection-card {
  min-width: 0;
  min-height: 178px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #111;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.06);
}

.collection-preview {
  position: relative;
  min-height: 178px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #fff;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.collection-preview::before,
.collection-preview::after {
  content: '';
  position: absolute;
  inset: auto -18% -42% auto;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 999px;
  z-index: -1;
}

.collection-preview::before {
  background: rgba(255, 255, 255, 0.16);
}

.collection-preview::after {
  inset: 46% auto auto -22%;
  background: rgba(255, 255, 255, 0.08);
}

.collection-preview.v1 {
  background: linear-gradient(135deg, #111 0%, #2a1706 48%, #ff8a1f 100%);
}

.collection-preview.v2 {
  color: #111;
  background: linear-gradient(135deg, #fff 0%, #fff2e2 44%, #ff9a24 100%);
}

.collection-preview.v3 {
  background: linear-gradient(135deg, #111 0%, #1f1f1f 52%, #ffb04f 100%);
}

.collection-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.82;
}

.collection-card h3 {
  max-width: 290px;
  margin: 0;
  color: inherit;
  font-size: 27px;
  line-height: 1.04;
  font-weight: 900;
}

.collection-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.collection-price strong,
.collection-offer strong {
  color: inherit;
  font-size: 24px;
  font-weight: 950;
}

.collection-price span,
.collection-offer span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111;
  background: #ff9a24;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.workshop-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card,
.product-card {
  position: relative;
  min-width: 300px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card {
  flex: 0 1 calc((100% - 40px) / 3);
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.card:hover,
.product-card:hover,
.collection-card:hover {
  transform: translateY(-3px);
  border-color: #d8d8d8;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

.discount-card {
  border-color: rgba(255, 138, 31, 0.72);
  box-shadow: 0 24px 70px rgba(255, 138, 31, 0.13);
}

.discount-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 154, 36, 0.28);
}

.card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.cover,
.product-preview {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background-size: cover;
  background-position: center;
}

.cover-large {
  min-height: 420px;
  border-radius: 20px;
}

.cover-rect {
  min-height: auto;
  aspect-ratio: 16 / 9;
}

.cover-square {
  min-height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
}

.cover.mix,
.cover.master {
  background: linear-gradient(135deg, #edf2f7, #f7fafc);
}

.cover.drums {
  background: linear-gradient(135deg, #fff3e8, #fffaf5);
}

.cover.bass {
  background: linear-gradient(135deg, #eaf7ef, #f7fbf8);
}

.cover.vocal {
  background: linear-gradient(135deg, #f1ecff, #fbf9ff);
}

.cover.arrange {
  background: linear-gradient(135deg, #fff5d7, #fffdf4);
}

.cover-top {
  color: #555;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-title {
  max-width: 86%;
  color: #111;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
}

.card-body,
.product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.card-body h3,
.product-body h3 {
  margin: 0;
  color: #111;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}

.card-body p,
.product-body p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.marker-row {
  min-height: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  color: #111;
  background: #f3f3f3;
  border: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 900;
}

.badge.discount {
  background: var(--accent);
  border-color: #ff8a1f;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.price span {
  color: #999;
  font-size: 14px;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.price strong {
  color: #111;
  font-size: 20px;
  font-weight: 900;
}

.meta-row,
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span,
.pill-grid span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #555;
  background: #f7f7f7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-footer {
  width: calc(100% - 36px);
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 18px 18px;
  padding: 0 14px;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.card-footer.in-cart,
.button.in-cart {
  color: #111;
  border-color: rgba(255, 154, 36, 0.62);
  background: #fff0dd;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-actions {
  padding: 0 18px 18px;
}

.product-preview {
  min-height: 150px;
  color: #fff;
  background: linear-gradient(135deg, #111, #ff9a24);
}

.product-preview span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.product-preview-large {
  min-height: 420px;
  border-radius: 20px;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.back-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 14px;
  color: #555;
  text-decoration: none;
  border-radius: 999px;
  background: #f6f6f6;
  font-size: 14px;
  font-weight: 900;
}

.detail-hero,
.collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: stretch;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
}

.collection-hero > div:first-child,
.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.collection-hero > div:first-child > span {
  color: #ff8a1f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-hero h1,
.collection-hero h1 {
  max-width: 760px;
  font-size: 56px;
}

.detail-hero p,
.collection-hero p {
  max-width: 660px;
  margin: 18px 0 28px;
}

.collection-hint {
  margin: 0 0 16px 0 !important;
  color: #666 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  background: transparent;
}

.collection-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}

.collection-offer strong {
  color: #111;
  font-size: 34px;
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.included-item {
  min-height: 132px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.045);
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.included-item:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.included-item span {
  color: #ff8a1f;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none !important;
}

.included-item strong {
  color: #111;
  font-size: 18px;
  line-height: 1.15;
  text-decoration: none !important;
}

.included-item .item-desc {
  text-decoration: none !important;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  margin-top: 2px;
}

.included-item em {
  color: #333;
  font-style: normal;
  font-weight: 700;
  text-decoration: none !important;
  margin-top: 4px;
  display: inline-block;
  padding: 4px 10px;
  background: #f4f4f4;
  border-radius: 8px;
  width: fit-content;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-section,
.time-section {
  margin-top: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.contact-section .section-title {
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-section,
.comparison-section {
  background: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tier-card {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 20px;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tier-card:hover {
  transform: translateY(-3px);
  border-color: #d6d6d6;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.08);
}

.tier-card.selected {
  border-color: var(--accent);
  box-shadow: 0 18px 52px rgba(255, 154, 36, 0.15);
}

.tier-card.recommended {
  background: #fffaf4;
  border-color: rgba(255, 154, 36, 0.7);
}

.tier-card.premium {
  color: #fff;
  border-color: #111;
  background: linear-gradient(145deg, #111, #28221b);
}

.tier-card.premium .button.secondary {
  color: #111;
  background: #fff;
}

.tier-head span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.tier-card.recommended .tier-head span {
  background: var(--accent);
}

.tier-card.premium .tier-head span {
  background: #fff;
  color: #111;
}

.tier-head h3 {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1;
}

.tier-head p {
  margin: 0;
  color: inherit;
  opacity: 0.72;
  line-height: 1.45;
}

.tier-price {
  font-size: 28px;
  font-weight: 900;
}

.tier-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier-card li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-weight: 800;
  line-height: 1.35;
}

.tier-card li i,
.comparison-value.yes {
  display: grid;
  place-items: center;
  color: #119447;
  font-style: normal;
  font-weight: 900;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 18px;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(92px, 0.6fr));
  gap: 1px;
  background: #ededed;
}

.comparison-row > * {
  min-height: 58px;
  padding: 14px;
  background: #fff;
}

.comparison-head > * {
  background: #fafafa;
}

.comparison-row p,
.comparison-row small {
  display: block;
  margin: 5px 0 0;
  color: #777;
  line-height: 1.35;
}

.comparison-value {
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
}

.comparison-value.no {
  color: #b8b8b8;
  font-size: 24px;
}

.comparison-value.text {
  color: #111;
  font-size: 14px;
}

.learn-list {
  display: grid;
  gap: 10px;
}

.learn-list div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #eee;
  background: #f7f7f7;
  color: #444;
}

.learn-list i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111;
  background: #eee;
  font-style: normal;
}

.learn-list p {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
}

.time-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 18px;
}

.time-section span {
  color: #777;
  font-weight: 900;
}

.time-section strong {
  color: #111;
  font-size: 24px;
  font-weight: 900;
}

.time-section p,
.long-text {
  margin: 0;
}

.footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border);
}

.footer strong {
  font-size: 22px;
  font-weight: 900;
}

.footer p {
  max-width: 560px;
  margin: 8px 0 0;
}

.login-panel,
.not-found {
  max-width: 720px;
  margin: 80px auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.login-panel h1 {
  margin-top: 14px;
  font-size: 42px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: 46px;
}

.admin-grid,
.admin-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.admin-lists {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-tabs {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f5f5f5;
  color: #555;
  font-weight: 950;
  cursor: pointer;
}

.admin-tabs button.active {
  color: #111;
  border-color: rgba(255, 154, 36, 0.55);
  background: #fff0dd;
}

.admin-tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 20px;
}

.admin-tab-panel.single {
  grid-template-columns: minmax(0, 1fr);
}

.contacts-panel {
  margin-top: 20px;
}

.panel {
  min-width: 0;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.form {
  display: grid;
  gap: 14px;
}

.admin-subsection {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #ededed;
  border-radius: 18px;
  background: #fafafa;
}

.subsection-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.subsection-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.subsection-head p {
  margin: 0;
  color: #777;
  line-height: 1.4;
}

.tier-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tier-editor,
.feature-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
}

.tier-editor h4 {
  margin: 0;
  font-size: 20px;
}

.feature-editor-list {
  display: grid;
  gap: 12px;
}

.feature-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-value-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #f7f7f7;
}

.form label,
.login-panel label {
  display: grid;
  gap: 8px;
  color: #333;
  font-size: 13px;
  font-weight: 900;
}

.form input,
.form textarea,
.form select,
.login-panel input {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  color: #111;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
}

.form textarea {
  resize: vertical;
}

.pick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 40px 8px;
  margin: 12px auto 24px;
  scrollbar-width: none;
  max-width: 1200px;
}
.filter-tabs::-webkit-scrollbar {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-row {
  min-height: 44px;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  padding: 10px 12px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fafafa;
}

.check-row input {
  width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  accent-color: var(--accent);
}

.hint,
.status {
  margin: 0;
  color: #777;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.status.error {
  color: var(--danger);
}

.pick-list,
.manage-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.pick-item {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  color: #333;
  text-align: left;
  border-radius: 999px;
  border: 1px solid #ededed;
  background: #fafafa;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pick-item.active {
  color: #111;
  border-color: var(--accent);
  background: #fff4e7;
}

.pick-item-complex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ededed;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
}

.pick-item-complex.active {
  border-color: var(--accent);
  background: #fff4e7;
}

.pick-item-complex strong {
  display: block;
  font-size: 14px;
  color: #111;
  margin-bottom: 2px;
}

.pick-item-complex small {
  display: block;
  font-size: 12px;
  color: #777;
}

.pick-item-complex input {
  margin: 0;
}

.manage-list {
  max-height: none;
  gap: 10px;
}

.manage-item,
.cart-item {
  min-height: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fafafa;
}

.manage-item.discount {
  border-color: rgba(255, 154, 36, 0.58);
  background: #fffaf4;
}

.contact-item.unread {
  border-color: rgba(255, 154, 36, 0.58);
  background: #fffaf4;
}

.contact-item small,
.contact-item p {
  display: block;
  margin: 6px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.35;
}

.manage-item strong,
.manage-item span,
.cart-item strong,
.cart-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-item strong,
.cart-item strong {
  margin-bottom: 3px;
  color: #111;
  font-size: 14px;
}

.manage-item span,
.cart-item span {
  color: #777;
  font-size: 12px;
}

.manage-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.manage-title strong {
  margin-bottom: 0;
}

.tiny-badge {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #111 !important;
  background: #f1f1f1;
  font-size: 11px !important;
  font-weight: 900;
}

.tiny-badge.sale {
  background: #fff0dd;
  color: #c35b00 !important;
}

.manage-actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid #dedede;
  background: #fff;
  color: #555;
  cursor: pointer;
}

.icon-button.active {
  color: #111;
  border-color: var(--accent);
  background: #fff0dd;
}

.icon-button.danger:hover {
  color: var(--danger);
  border-color: #f0c0c0;
  background: #fff5f5;
}

.icon-button:disabled {
  color: #bdbdbd;
  background: #f7f7f7;
  cursor: not-allowed;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.34);
}

.cart-drawer {
  width: min(430px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.16);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.cart-header span {
  color: #ff8a1f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-header h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.cart-list {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.cart-note {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  color: #111;
  background: #fff4e7;
  line-height: 1.5;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ededed;
  border-radius: 16px;
  background: #fafafa;
}

.contact-form p {
  margin: 0;
  color: #555;
  line-height: 1.45;
  font-weight: 800;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #333;
  font-size: 13px;
  font-weight: 900;
}

.contact-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
}

.empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  color: #777;
}

@media (max-width: 1080px) {
  .header {
    grid-template-columns: auto auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .hero,
  .detail-hero,
  .collection-hero,
  .admin-grid,
  .admin-lists,
  .admin-tab-panel,
  .login-panel,
  .time-section {
    grid-template-columns: 1fr;
  }

  .collection-grid,
  .product-grid,
  .included-grid,
  .pricing-grid,
  .tier-editor-grid,
  .feature-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-row {
    grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(82px, 0.6fr));
  }

  .card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .header {
    padding: 14px;
    gap: 12px;
  }

  .main,
  .footer {
    width: min(calc(100% - 28px), 1180px);
  }

  .nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav a {
    flex: 1 1 calc(50% - 6px);
  }

  .hero,
  .detail-hero,
  .collection-hero,
  .detail-section,
  .time-section,
  .panel,
  .login-panel,
  .not-found {
    padding: 20px;
    border-radius: 20px;
  }

  .hero,
  .hit-panel {
    min-width: 0;
    max-width: 100%;
  }

  .hero {
    overflow: hidden;
  }

  .hero h1,
  .detail-hero h1,
  .collection-hero h1,
  .admin-header h1,
  .login-panel h1,
  .not-found h1 {
    font-size: 30px;
    line-height: 1.05;
    text-wrap: balance;
  }

  .hit-panel {
    padding: 18px;
  }

  .hit-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .hit-icon {
    width: 38px;
    height: 38px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .collection-grid,
  .product-grid,
  .included-grid,
  .form-row,
  .pricing-grid,
  .tier-editor-grid,
  .feature-values {
    grid-template-columns: 1fr;
  }

  .subsection-head {
    flex-direction: column;
  }

  .comparison-table {
    overflow-x: auto;
  }

  .comparison-row {
    min-width: 620px;
  }

  .card {
    flex-basis: 100%;
    max-width: 520px;
  }

  .cover-large {
    min-height: 280px;
  }

  .footer,
  .admin-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-drawer {
    width: 100%;
  }
}
