:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #111412;
  --muted: #69736d;
  --line: rgba(17, 20, 18, 0.12);
  --green: #11785f;
  --blue: #215d8b;
  --amber: #c06c22;
  --black: #0b0f0d;
  --shadow: 0 20px 55px rgba(17, 20, 18, 0.1);
  --shadow-soft: 0 12px 30px rgba(17, 20, 18, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(246, 247, 245, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    conic-gradient(from 210deg, var(--green), var(--blue), var(--amber), var(--green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), 0 10px 28px rgba(17, 120, 95, 0.18);
}

.site-nav,
.header-actions,
.hero-actions,
.admin-actions,
.table-actions,
.inline-form,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav {
  justify-content: center;
}

.site-nav a,
.text-button,
.customer-login-link,
.secondary-link,
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 0 13px;
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"],
.text-button:hover,
.customer-login-link:hover,
.secondary-link:hover,
.mini-link:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.header-actions {
  justify-content: end;
}

.customer-login-link {
  border-color: var(--line);
  background: var(--black);
  color: white;
}

.customer-login-link:hover {
  background: #1d221f;
  color: white;
}

.header-actions form {
  margin: 0;
}

.text-button,
.primary-button,
.mini-button {
  cursor: pointer;
}

.text-button {
  background: rgba(255, 255, 255, 0.62);
}

.language-switcher {
  margin: 0;
}

.language-switcher label {
  display: block;
}

.language-switcher select {
  min-height: 38px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding-inline: 10px;
  font-size: 0.9rem;
  font-weight: 780;
}

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

.primary-link,
.secondary-link,
.primary-button,
.mini-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 820;
  text-decoration: none;
}

.primary-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--black);
  color: white;
  padding: 0 18px;
}

.secondary-link {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0 16px;
}

.hero {
  display: grid;
  align-items: end;
  height: 520px;
  min-height: 0;
  padding: clamp(46px, 6vw, 88px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.78), rgba(5, 9, 8, 0.28) 54%, rgba(5, 9, 8, 0.1)),
    var(--hero-image) center / cover no-repeat;
  color: white;
}

.hero-copy {
  width: min(680px, 100%);
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker,
.admin-hero .kicker,
.page-hero .kicker {
  color: #8ce7c9;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero h1 span {
  display: block;
}

.hero-actions {
  margin-top: 26px;
  flex-wrap: wrap;
}

.section-band {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 92px) 0;
}

.contact-bottom {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-bottom h2 {
  max-width: 760px;
  font-size: clamp(1.25rem, 2.1vw, 2.15rem);
  line-height: 1.18;
}

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

.contact-list a,
.contact-list div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list strong {
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-list .primary-link {
  display: inline-flex;
  width: max-content;
  min-width: 150px;
}

.surface {
  width: 100%;
  background: var(--surface-soft);
  padding-inline: max(18px, calc((100% - 1480px) / 2));
}

.geo-knowledge {
  border-block: 1px solid var(--line);
}

.geo-knowledge .section-head {
  align-items: start;
}

.geo-knowledge .section-head p:last-child {
  max-width: 900px;
}

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

.compact-geo .geo-answer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geo-answer-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.geo-answer-card span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.35;
  text-transform: uppercase;
}

.geo-answer-card h3,
.geo-answer-card p {
  margin: 0;
}

.geo-answer-card p,
.geo-faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.geo-faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.geo-faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 16px;
}

.geo-faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head p,
.page-hero p,
.muted,
.product-card p,
.news-card p,
.lead,
.prose p,
.prose li,
.product-detail-copy p,
.detail-columns p,
.empty-state {
  color: var(--muted);
  line-height: 1.72;
}

.promo-grid,
.scene-grid,
.product-grid,
.news-grid,
.admin-panels,
.detail-columns {
  display: grid;
  gap: 18px;
}

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

.promo-tile,
.scene-card,
.product-group-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: #d9e5df;
  color: white;
  text-decoration: none;
  isolation: isolate;
}

.promo-tile {
  min-height: 320px;
}

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

.scene-card {
  min-height: 360px;
}

.promo-tile::after,
.scene-card::after,
.product-group-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.04) 70%);
}

.scene-card::after {
  background: linear-gradient(0deg, rgba(4, 7, 6, 0.78), rgba(4, 7, 6, 0.22) 68%, rgba(4, 7, 6, 0.04));
}

.promo-tile img,
.scene-card img,
.product-group-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.promo-tile span,
.promo-tile strong,
.scene-card span,
.scene-card strong,
.product-group-hero span,
.product-group-hero strong {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 0 22px;
}

.promo-tile span,
.scene-card span,
.product-group-hero span {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 780;
}

.promo-tile strong,
.scene-card strong,
.product-group-hero strong {
  margin-bottom: 22px;
  font-size: 1.35rem;
  line-height: 1.24;
}

.scene-card strong,
.product-group-hero strong {
  max-width: 620px;
  font-size: 1.2rem;
}

.promo-tile:hover img,
.scene-card:hover img,
.product-group-hero:hover img {
  transform: scale(1.03);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.news-card,
.admin-panel,
.auth-panel,
.editor-form,
.detail-columns article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card,
.news-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: contain;
  background: #111412;
}

.product-card span,
.news-card span,
.detail-meta span,
.admin-table small {
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.product-card span,
.product-card h3,
.product-card p {
  margin-inline: 16px;
}

.product-card span {
  margin-top: 16px;
}

.product-card p {
  min-height: 76px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

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

.news-card img {
  width: 100%;
  aspect-ratio: 1.78;
  object-fit: cover;
  background: #d9e2df;
}

.news-card span,
.news-card h3,
.news-card p {
  margin-inline: 18px;
}

.news-card span {
  margin-top: 18px;
}

.news-card p {
  margin-bottom: 20px;
}

.news-source {
  display: block;
  margin: 0 18px 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.source-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.source-line a {
  color: var(--green);
  font-weight: 820;
}

.page-hero,
.admin-hero {
  color: white;
  background:
    linear-gradient(120deg, rgba(7, 20, 16, 0.92), rgba(14, 70, 58, 0.82)),
    url("/public/catalog/promos/fdm-filament-hero.jpg") center / cover no-repeat;
}

.page-hero {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.page-hero.compact h1,
.admin-hero h1,
.product-detail-copy h1,
.article-body h1,
.auth-panel h1 {
  font-size: clamp(2.2rem, 4.6vw, 5rem);
}

.page-hero p,
.admin-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
}

.news-hero {
  background:
    linear-gradient(120deg, rgba(9, 23, 36, 0.9), rgba(33, 93, 139, 0.72)),
    url("/public/catalog/promos/dental-resin-hero.jpg") center / cover no-repeat;
}

.filter-row {
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 760;
  text-decoration: none;
}

.filter-row a[aria-current="page"] {
  background: var(--black);
  color: white;
}

.product-matrix {
  display: grid;
  gap: 34px;
}

.product-group {
  display: grid;
  grid-template-columns: minmax(300px, 0.46fr) minmax(520px, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  scroll-margin-top: 90px;
}

.product-group-hero {
  min-height: 100%;
}

.product-group-content {
  min-width: 0;
}

.compact-head {
  margin-bottom: 14px;
}

.compact-head p {
  max-width: 780px;
}

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

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  min-height: 560px;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 5vw, 72px);
  background: linear-gradient(135deg, #fbfcfb, #e8f0ec);
}

.product-detail-hero img {
  width: 100%;
  aspect-ratio: 1.6;
  border-radius: 8px;
  object-fit: contain;
  background: #111412;
  box-shadow: 0 30px 90px rgba(17, 20, 18, 0.18);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-actions .text-button {
  min-height: 44px;
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 12px;
}

.detail-columns {
  width: min(1120px, calc(100% - 36px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0;
}

.detail-columns article {
  padding: clamp(22px, 3vw, 34px);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 18px;
  border-left: 3px solid var(--green);
  color: var(--ink);
  line-height: 1.56;
}

.parameter-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto clamp(42px, 6vw, 76px);
}

.parameter-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.parameter-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.parameter-table th,
.parameter-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
}

.parameter-table tr:last-child th,
.parameter-table tr:last-child td {
  border-bottom: 0;
}

.parameter-table th {
  width: 38%;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.parameter-table td {
  color: var(--ink);
  font-weight: 760;
}

.article-page {
  width: min(1080px, calc(100% - 36px));
  margin: 36px auto 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-cover {
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
}

.article-body {
  padding: clamp(24px, 5vw, 64px);
}

.lead {
  font-size: 1.08rem;
}

.prose {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.prose h2 {
  margin-top: 26px;
  font-size: 1.5rem;
}

.auth-page,
.empty-page {
  display: grid;
  min-height: calc(100vh - 70px);
  place-items: center;
  padding: 32px 18px;
}

.auth-panel {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 48px);
}

.stack-form,
.editor-form {
  display: grid;
  gap: 16px;
}

.stack-form {
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 20, 18, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 150px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(17, 120, 95, 0.62);
  box-shadow: 0 0 0 4px rgba(17, 120, 95, 0.12);
}

.notice {
  width: min(1480px, calc(100% - 36px));
  margin: 0 auto;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 720;
}

.notice.error {
  background: #fee2e2;
  color: #991b1b;
}

.notice.success {
  background: #dcfce7;
  color: #166534;
}

.admin-shell,
.editor-shell {
  display: grid;
  gap: 18px;
  width: min(1480px, calc(100% - 36px));
  margin: 28px auto 70px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 0 14px;
  font-weight: 780;
  text-decoration: none;
}

.admin-nav a[aria-current="page"] {
  background: var(--black);
  color: white;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-radius: 8px;
  padding: clamp(30px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.compact-admin {
  min-height: 220px;
}

.admin-panels {
  grid-template-columns: minmax(320px, 0.72fr) minmax(320px, 1fr);
}

.admin-panel,
.editor-form {
  padding: clamp(20px, 3vw, 30px);
}

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

.stat-card,
.management-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.stat-card span,
.management-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.stat-card strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stat-card small,
.management-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.management-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 170px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.management-card > a {
  width: max-content;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-panel {
  align-content: center;
  grid-template-columns: auto 1fr;
  display: grid;
  gap: 10px 16px;
}

.metric-panel span {
  color: var(--blue);
  font-size: 3rem;
  font-weight: 850;
  line-height: 1;
}

.metric-panel strong {
  align-self: center;
  font-size: 1.1rem;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--blue);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.record-cell {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
}

.record-cell small {
  grid-column: 2;
}

.admin-table img {
  width: 58px;
  aspect-ratio: 1.6;
  border-radius: 6px;
  object-fit: cover;
  background: #e8ece9;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  text-transform: none;
}

.compact-table {
  min-width: 420px;
}

.wide-table {
  min-width: 1180px;
}

.bar-list,
.plain-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row div,
.plain-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-row strong,
.plain-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-row span,
.plain-list strong {
  color: var(--green);
  font-weight: 850;
}

.plain-list span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.bar-row i {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5ece8;
}

.bar-row i::after {
  content: "";
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.mini-link,
.mini-button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.82rem;
}

.mini-button {
  border: 1px solid var(--line);
  background: var(--black);
  color: white;
}

.mini-button.danger {
  background: #9f2525;
}

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

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

.seo-admin-grid,
.seo-region-grid {
  display: grid;
  gap: 18px;
}

.seo-admin-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
}

.seo-region-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-form {
  display: grid;
  gap: 18px;
}

.seo-region-card {
  display: grid;
  gap: 14px;
}

.compact-select {
  min-width: 150px;
}

.asset-list,
.check-list,
.content-idea-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.content-idea-list li,
.asset-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.asset-list a {
  display: grid;
  gap: 5px;
  color: var(--ink);
  text-decoration: none;
}

.asset-list span,
.content-idea-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.asset-list strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-idea-list strong,
.content-idea-list span {
  display: block;
}

.editor-preview {
  width: min(460px, 100%);
  aspect-ratio: 1.6;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.editor-preview.wide {
  width: min(760px, 100%);
  aspect-ratio: 1.78;
}

.customer-chat {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 40;
}

.chat-toggle {
  min-width: 74px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 850;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto;
  width: min(380px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(17, 20, 18, 0.22);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 120, 95, 0.12), rgba(33, 93, 139, 0.08));
}

.chat-panel header strong,
.chat-panel header span {
  display: block;
}

.chat-panel header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.chat-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 16px;
  background: #f9faf8;
}

.chat-message,
.chat-bubble {
  width: fit-content;
  max-width: 86%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}

.chat-message.visitor,
.chat-bubble.visitor {
  align-self: end;
  margin-left: auto;
  background: #e7f2ed;
  border-color: rgba(17, 120, 95, 0.18);
}

.chat-message.agent,
.chat-bubble.agent {
  align-self: start;
}

.chat-message strong,
.chat-bubble strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.chat-message time,
.chat-bubble time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.chat-message p,
.chat-bubble p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-wrap;
}

.chat-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.chat-prompts button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 780;
  white-space: nowrap;
}

.chat-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: white;
}

.chat-input-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}

.chat-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
  color: var(--ink);
}

.chat-form textarea {
  min-height: 84px;
  resize: vertical;
}

.chat-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.65fr);
  gap: 18px;
}

.chat-conversation-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
}

.chat-conversation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
  text-decoration: none;
}

.chat-conversation.active {
  border-color: rgba(17, 120, 95, 0.45);
  background: #edf6f1;
}

.chat-conversation strong,
.chat-conversation small,
.chat-conversation p,
.chat-conversation time {
  display: block;
}

.chat-conversation small,
.chat-conversation p,
.chat-conversation time {
  color: var(--muted);
  font-size: 0.8rem;
}

.chat-conversation p {
  grid-column: 1 / -1;
  margin: 0;
}

.chat-conversation time {
  grid-column: 1 / -1;
}

.chat-conversation-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-conversation-meta em {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 820;
}

.chat-conversation-meta em.open {
  background: #e7f2ed;
  color: var(--green);
}

.chat-conversation-meta em.closed {
  background: #eef0ef;
  color: var(--muted);
}

.chat-conversation-meta b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: white;
  font-size: 0.72rem;
}

.chat-thread-panel {
  min-width: 0;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f9faf8;
}

.smart-replies {
  margin-top: 18px;
}

.smart-replies h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.smart-replies > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-replies .mini-button {
  height: auto;
  min-height: 34px;
  max-width: 100%;
  padding-block: 7px;
  white-space: normal;
  text-align: left;
}

.chat-reply-form {
  margin-top: 18px;
}

.community-shell {
  padding-bottom: 52px;
}

.community-hero {
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.78), rgba(17, 120, 95, 0.34)),
    url("/public/catalog/promos/resin-family-hero.jpg") center / cover no-repeat;
  color: white;
}

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

.compact-board-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.board-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(17, 120, 95, 0.1), rgba(33, 93, 139, 0.06)),
    var(--surface);
  text-decoration: none;
}

.board-card.active {
  border-color: rgba(17, 120, 95, 0.45);
  box-shadow: 0 16px 38px rgba(17, 120, 95, 0.1);
}

.board-card span,
.board-card small {
  color: var(--muted);
  font-weight: 750;
}

.board-card strong {
  font-size: 1.35rem;
}

.board-card p {
  margin: 0;
  color: var(--muted);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 20px;
}

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

.post-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  text-decoration: none;
}

.post-card:hover {
  border-color: rgba(17, 120, 95, 0.36);
}

.post-card span,
.post-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.post-card strong {
  font-size: 1.2rem;
}

.post-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-member-panel,
.community-compose,
.post-detail,
.reply-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.community-member-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.community-member-panel h2,
.community-compose h2 {
  margin: 0;
}

.community-member-panel p {
  margin: 0;
}

.community-member-panel p span {
  display: block;
  color: var(--muted);
}

.community-member-panel .stack-form {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.community-compose {
  margin-top: 18px;
  padding: 20px;
}

.post-detail {
  padding: clamp(22px, 4vw, 42px);
}

.post-detail h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  line-height: 0.98;
}

.post-body,
.reply-card p {
  white-space: pre-line;
}

.post-body {
  max-width: 920px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.72;
}

.reply-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.reply-card {
  padding: 16px;
}

.reply-card strong {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.reply-card time {
  color: var(--muted);
  font-size: 0.78rem;
}

.community-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
  gap: 18px;
}

.portal-shell .admin-hero {
  background:
    linear-gradient(135deg, rgba(17, 120, 95, 0.1), rgba(33, 93, 139, 0.06)),
    var(--surface);
  color: var(--ink);
}

.portal-shell .admin-hero .kicker {
  color: var(--green);
}

.portal-nav {
  overflow-x: auto;
}

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

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

.wide-auth {
  width: min(980px, calc(100vw - 32px));
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(17, 20, 18, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  background: #eef0ef;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge.sent,
.status-badge.viewed,
.status-badge.in-review,
.status-badge.in-production,
.status-badge.processing,
.status-badge.submitted,
.status-badge.deposit-submitted,
.status-badge.balance-submitted,
.status-badge.under-review {
  background: #eaf1f7;
  color: var(--blue);
}

.status-badge.accepted,
.status-badge.converted,
.status-badge.paid,
.status-badge.deposit-paid,
.status-badge.balance-paid,
.status-badge.completed,
.status-badge.confirmed,
.status-badge.verified,
.status-badge.uploaded,
.status-badge.qc-completed {
  background: #e7f2ed;
  color: var(--green);
}

.status-badge.rejected,
.status-badge.failed,
.status-badge.cancelled,
.status-badge.dispute,
.status-badge.hidden,
.status-badge.blacklisted {
  background: #f7e9e9;
  color: #9f2525;
}

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

.summary-list > div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.summary-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.trust-notice {
  border: 1px solid rgba(17, 120, 95, 0.18);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
  background: #edf6f1;
  color: #234d40;
  font-weight: 720;
  line-height: 1.55;
}

.quote-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.quote-actions form {
  display: flex;
  align-items: end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

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

.payment-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfb;
}

.payment-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-card p,
.payment-card small {
  margin: 0;
}

.payment-card small {
  color: var(--muted);
}

.order-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-timeline li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  min-height: 48px;
}

.order-timeline li span {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
}

.order-timeline li span::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 4px;
  width: 2px;
  height: 36px;
  background: var(--line);
}

.order-timeline li:last-child span::after {
  display: none;
}

.order-timeline li.completed span {
  border-color: var(--green);
  background: var(--green);
}

.order-timeline strong,
.order-timeline small {
  display: block;
}

.order-timeline small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.document-list > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.document-list strong,
.document-list small,
.document-list span {
  display: block;
}

.document-list small {
  color: var(--muted);
}

.daily-news-page {
  background: #f5f5f2;
}

.daily-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 4vw, 58px);
  align-items: end;
  min-height: 430px;
  padding: clamp(52px, 7vw, 90px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.78) 52%, rgba(219, 53, 34, 0.68)),
    url("/public/assets/paper-grid.svg") center / 520px repeat;
  color: white;
}

.daily-hero-copy {
  max-width: 860px;
}

.daily-hero-copy h1 {
  max-width: 800px;
}

.daily-hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.76;
}

.daily-hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 22px;
  backdrop-filter: blur(20px);
}

.daily-hero-panel > span,
.daily-item-meta,
.daily-tags,
.daily-history a,
.daily-source-list div {
  display: flex;
  align-items: center;
}

.daily-hero-panel > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 820;
  text-transform: uppercase;
}

.daily-hero-panel > strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.daily-hero-panel p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.daily-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.daily-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 10px;
}

.daily-metrics strong,
.daily-metrics span {
  display: block;
}

.daily-metrics strong {
  font-size: 1.35rem;
}

.daily-metrics span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.daily-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 4vw, 52px);
  width: min(1460px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) 0;
}

.daily-feed {
  display: grid;
  gap: 42px;
}

.daily-comic {
  border-top: 4px solid #111412;
  background: white;
  padding: clamp(16px, 3vw, 32px);
}

.daily-comic h2 {
  margin: 0 0 16px;
  color: #087b5f;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.daily-comic-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
}

.daily-section {
  border-top: 4px solid #111412;
  background: white;
  padding-inline: clamp(16px, 3vw, 32px);
}

.daily-section.accent-0 {
  border-color: #e23a2e;
}

.daily-section.accent-1 {
  border-color: #0f6fbd;
}

.daily-section.accent-2 {
  border-color: #d08b22;
}

.daily-section-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px) 0 14px;
  border-bottom: 1px solid var(--line);
}

.daily-section-head > span {
  display: block;
  color: #e23a2e;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.daily-section-head h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.daily-section-head p:last-child {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.68;
}

.daily-item-list {
  display: grid;
}

.daily-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: white;
}

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

.daily-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e23a2e;
  font-weight: 900;
}

.daily-item h3 {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
}

.daily-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.daily-item h3 a:hover {
  color: #e23a2e;
}

.daily-item p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.68;
}

.daily-item .daily-why {
  color: #343936;
  font-weight: 680;
}

.daily-item-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.daily-item-meta strong {
  color: var(--ink);
}

.daily-item-meta span {
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.daily-tags {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.daily-source-link-row {
  margin-top: 12px;
}

.wechat-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(226, 58, 46, 0.28);
  border-radius: 8px;
  background: rgba(226, 58, 46, 0.06);
  color: #b62720;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 820;
  text-decoration: none;
}

.wechat-source-link:hover {
  border-color: rgba(226, 58, 46, 0.5);
  background: rgba(226, 58, 46, 0.1);
}

.wechat-source-link.disabled {
  border-color: var(--line);
  background: #fafaf8;
  color: var(--muted);
}

.daily-tags span,
.account-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafaf8;
  color: var(--muted);
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 760;
}

.daily-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.daily-sidebar section {
  border-top: 4px solid var(--ink);
  background: white;
  padding: 18px 0 0;
}

.daily-sidebar h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.daily-history,
.daily-source-list,
.account-cloud {
  display: grid;
  gap: 8px;
}

.daily-history a,
.daily-source-list div {
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.daily-history a[aria-current="page"] {
  color: #e23a2e;
}

.daily-history strong,
.daily-source-list strong {
  color: #e23a2e;
}

.account-cloud {
  display: flex;
  flex-wrap: wrap;
}

.daily-empty {
  border-top: 4px solid #e23a2e;
  background: white;
  padding: clamp(28px, 5vw, 52px) 0;
  padding-inline: clamp(16px, 3vw, 32px);
}

.daily-empty code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f7f4;
  padding: 2px 6px;
}

.payment-method-grid {
  display: grid;
  gap: 10px;
}

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

.milestone-admin-list form {
  display: grid;
  grid-template-columns: 1fr minmax(140px, auto) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compact-form {
  min-width: 260px;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .section-head,
html[dir="rtl"] .detail-meta {
  direction: rtl;
}

html[dir="rtl"] .admin-table th,
html[dir="rtl"] .admin-table td,
html[dir="rtl"] .parameter-table th,
html[dir="rtl"] .parameter-table td {
  text-align: right;
}

@media (max-width: 1120px) {
  .promo-grid,
  .scene-grid,
  .news-grid,
  .detail-columns,
  .admin-panels,
  .management-grid,
  .analytics-grid,
  .seo-admin-grid,
  .seo-region-grid,
  .contact-bottom,
  .geo-answer-grid,
  .compact-geo .geo-answer-grid,
  .geo-faq-list,
  .chat-admin-layout,
  .community-layout,
  .community-admin-grid,
  .portal-grid,
  .auth-grid,
  .daily-hero,
  .daily-shell {
    grid-template-columns: 1fr;
  }

  .board-grid,
  .compact-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
  }

  .product-group {
    grid-template-columns: 1fr;
  }

  .product-group-hero {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 14px;
  }

  .site-nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    justify-content: start;
  }

  .hero {
    height: 460px;
    min-height: 0;
    align-items: end;
    background:
      linear-gradient(0deg, rgba(5, 9, 8, 0.84), rgba(5, 9, 8, 0.18)),
      var(--hero-image) center / cover no-repeat;
  }

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

  .daily-section-head {
    grid-template-columns: 1fr;
  }

  .daily-item {
    grid-template-columns: 1fr;
  }

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

  .geo-answer-grid,
  .compact-geo .geo-answer-grid,
  .geo-faq-list {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row.two-columns {
    grid-template-columns: 1fr;
  }

  .chat-input-grid {
    grid-template-columns: 1fr;
  }

  .record-cell {
    grid-template-columns: 48px 1fr;
  }

  .board-grid,
  .compact-board-grid {
    grid-template-columns: 1fr;
  }

  .quote-actions form,
  .document-list > div,
  .milestone-admin-list form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  h1 {
    font-size: 2.15rem;
  }
}
