@font-face {
  font-family: "Poiret One Custom";
  src: url("/assets/Poiret_One_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --page-bg: #ede9e4;
  --panel-bg: rgba(255, 250, 245, 0.92);
  --panel-soft: #f2eee8;
  --line: rgba(61, 132, 158, 0.18);
  --line-strong: rgba(61, 132, 158, 0.4);
  --text: #1f2d33;
  --muted: #54666d;
  --accent: #3d849e;
  --accent-strong: #285f73;
  --accent-soft: #c3d3d4;
  --success: #2b7a57;
  --danger: #a54747;
  --shadow: rgba(34, 55, 63, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(184, 218, 219, 0.35), transparent 32%),
    linear-gradient(180deg, #f6f1eb 0%, var(--page-bg) 45%, #e3eeef 100%);
}

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

img,
video {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.brand-logo img {
  display: block;
  height: 98px;
}

.brand-title img {
  display: block;
  max-height: 94px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 12px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.menu-link {
  display: block;
  padding: 12px 14px;
  color: var(--muted);
  border-radius: 16px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-link:hover,
.menu-link.is-active {
  color: var(--text);
  background: var(--accent-soft);
  transform: translateX(2px);
}

.content-pane {
  min-height: 60vh;
}

.page-heading {
  margin: 0 0 22px;
  font-family: "Poiret One Custom", Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
}

.flash,
.content-block,
.placeholder-card,
.links-card {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(12px);
}

.flash {
  margin-bottom: 20px;
  padding: 14px 18px;
}

.flash-success {
  border-color: rgba(43, 122, 87, 0.35);
  color: var(--success);
}

.flash-error {
  border-color: rgba(165, 71, 71, 0.35);
  color: var(--danger);
}

.block-list,
.order-list,
.cart-list,
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-block,
.placeholder-card {
  padding: 24px 26px;
}

.content-block h2,
.links-card h2 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  font-weight: 400;
}

.block-summary,
.muted,
.html-fragment,
.content-block p,
.content-block li {
  color: var(--muted);
  line-height: 1.65;
}

.html-fragment {
  font-size: 1rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.media-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.media-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.video-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.video-list video {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #000;
}

.goods-grid,
.auth-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.good-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.good-card h3 {
  margin: 10px 0 12px;
  font-size: 1.3rem;
}

.good-meta,
.section-head,
.meta-item,
.cart-row,
.order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.86rem;
}

.badge-light {
  background: var(--panel-soft);
  color: var(--muted);
}

.price {
  font-size: 1.15rem;
  color: var(--accent-strong);
}

.good-actions,
.order-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button,
.account-link,
.viewer-pill,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff, #eef5f6);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.account-link:hover,
.viewer-pill:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(40, 95, 115, 0.14);
  border-color: var(--accent);
}

.button {
  background: linear-gradient(180deg, #5a9ab1, var(--accent));
  color: #fff;
}

.button-secondary,
.ghost-button {
  background: transparent;
  color: var(--accent-strong);
}

.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.viewer-pill {
  gap: 12px;
}

.viewer-balance {
  color: var(--muted);
}

.inline-form {
  display: inline-flex;
}

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

.stack-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.stack-form input,
.stack-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.stack-form textarea {
  min-height: 140px;
  resize: vertical;
}

.compact-form {
  margin-top: 18px;
}

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

.meta-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-item:last-child {
  border-bottom: 0;
}

.mini-card,
.cart-row,
.order-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-card p,
.cart-copy p,
.order-card p {
  margin: 6px 0 0;
}

.cart-row {
  align-items: flex-start;
}

.cart-copy {
  display: grid;
  gap: 6px;
}

.cart-side {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.links-card {
  margin-top: 20px;
  padding: 24px;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 100px 0;
  gap: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 14px rgba(40, 95, 115, 0.18));
}

.social-link img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.text-link {
  color: var(--accent-strong);
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .menu {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .goods-grid,
  .auth-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .social-links-row {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .brand-cluster {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo img,
  .brand-title img {
    max-height: 82px;
    height: auto;
  }

  .brand-actions,
  .section-head,
  .meta-item,
  .cart-row,
  .order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-side {
    justify-items: stretch;
  }

  .social-links-row {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
}
