:root {
  --cream: #fffaf2;
  --cream-2: #f6ecdf;
  --green: #064c3b;
  --green-2: #0d6651;
  --gold: #c99a3f;
  --ink: #101312;
  --text: #2d3431;
  --muted: #6b6258;
  --line: rgba(201, 154, 63, 0.28);
  --card: #fffdf8;
  --shadow: 0 24px 70px rgba(42, 33, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}
img {
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 88px;
  padding: 14px 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  background: rgba(255, 250, 242, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(42, 33, 18, 0.06);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  width: 250px;
  max-width: 32vw;
  color: var(--green);
  text-decoration: none;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 4/1;
  display: block;
  object-fit: contain;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 2px solid var(--gold);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(6, 76, 59, 0.18);
}

.brand-text {
  display: inline-block;
  min-width: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.main-nav a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 28px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.header-cta,
.btn,
button {
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 250, 242, 0.9);
  color: #b37a1f;
  text-decoration: none;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.header-cta,
.btn.primary,
button.primary,
.form-card button,
.cabinet-page button {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 34px rgba(6, 76, 59, 0.22);
}

.btn:hover,
.header-cta:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(42, 33, 18, 0.14);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.poster-hero {
  width: 100%;
  min-height: min(760px, calc(100vh - 88px));
  padding: 64px 56px 70px;
  display: grid;
  grid-template-columns: minmax(360px, 44%) minmax(420px, 56%);
  align-items: center;
  gap: 36px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 16% 24%,
      rgba(255, 255, 255, 0.98),
      transparent 28%
    ),
    linear-gradient(90deg, #fffaf2 0%, #fff8ef 45%, #f6ecdf 100%);
}

.poster-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.poster-copy h1 {
  margin: 0 0 24px;
  color: var(--green);
  font-size: clamp(48px, 5vw, 78px);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 950;
  max-width: 100%;
  overflow-wrap: break-word;
}

.poster-copy p {
  width: 100%;
  max-width: 560px;
  margin: 0 0 34px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 38px;
}

.hero-actions .btn {
  min-width: 210px;
  min-height: 62px;
  font-size: 19px;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 650px;
}

.hero-benefits span {
  position: relative;
  min-height: 34px;
  padding-left: 42px;
  display: flex;
  align-items: center;
  color: #18342d;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.hero-benefits span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(6, 76, 59, 0.18);
}

.poster-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(201, 154, 63, 0.24);
  box-shadow: var(--shadow);
  background:
    linear-gradient(
      135deg,
      rgba(255, 250, 242, 0.95),
      rgba(219, 209, 190, 0.86)
    ),
    #eadfce;
}

.poster-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.poster-image-home {
  object-position: right center;
}

.poster-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 250, 242, 0.02),
    rgba(6, 76, 59, 0.04)
  );
  pointer-events: none;
}

.hero-dashboard {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  width: min(360px, calc(100% - 56px));
  display: grid;
  gap: 12px;
}

.poster-visual-with-dashboard .hero-dashboard {
  left: 28px;
  right: auto;
}

.dash-card {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.88);
  box-shadow: 0 18px 42px rgba(21, 29, 25, 0.18);
  backdrop-filter: blur(14px);
}

.dash-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-card strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
}

.dash-card p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.dash-card-main strong {
  font-size: 34px;
}

.metrics-band {
  width: min(1380px, calc(100% - 96px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metrics-band article {
  min-height: 120px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 42px rgba(42, 33, 18, 0.07);
}

.metrics-band strong {
  display: block;
  color: var(--green);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.metrics-band span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.platform-search-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 82px 48px 18px;
}

.platform-search {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 250, 242, 0.9)),
    var(--card);
  box-shadow: 0 24px 70px rgba(42, 33, 18, 0.1);
  overflow: hidden;
}

.platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(6, 76, 59, 0.04);
}

.platform-tab {
  min-height: 68px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--green);
  font-size: 18px;
}

.platform-tab:hover {
  transform: none;
  box-shadow: none;
}

.platform-tab.active {
  background: var(--green);
  color: #fff;
}

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

.platform-filters label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.platform-filters span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-filters input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(201, 154, 63, 0.38);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.platform-filters input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(6, 76, 59, 0.1);
}

.platform-toolbar {
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.platform-toolbar p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.platform-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.platform-card {
  min-width: 0;
  min-height: 238px;
  padding: 22px;
  border: 1px solid rgba(201, 154, 63, 0.24);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(42, 33, 18, 0.07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 24px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.platform-card p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}

.platform-card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-card-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(6, 76, 59, 0.08);
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.platform-card-action {
  min-height: 46px;
  margin-top: 4px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(6, 76, 59, 0.18);
}

.platform-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed rgba(201, 154, 63, 0.45);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
  font-weight: 900;
}

.live-board-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 82px 48px 20px;
}

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

.board-column {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 54px rgba(42, 33, 18, 0.08);
}

.board-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.board-title span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.board-title strong {
  color: var(--green);
  font-size: 15px;
  line-height: 1.2;
}

.board-card {
  padding: 18px;
  border: 1px solid rgba(201, 154, 63, 0.24);
  border-radius: 18px;
  background: #fff;
}

.board-card + .board-card {
  margin-top: 12px;
}

.board-card b {
  display: block;
  color: var(--green);
  font-size: 20px;
  line-height: 1.15;
}

.board-card p {
  min-height: 44px;
  margin: 10px 0 16px;
  color: var(--text);
  line-height: 1.35;
}

.board-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-card span,
.board-card em {
  font-style: normal;
  font-size: 14px;
  font-weight: 950;
}

.board-card span {
  color: var(--green);
}

.board-card em {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(6, 76, 59, 0.09);
  color: var(--green);
  white-space: nowrap;
}

.poster-visual-fallback {
  width: min(100%, 760px);
  min-height: 360px;
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 72% 30%,
      rgba(255, 255, 255, 0.75),
      transparent 24%
    ),
    linear-gradient(135deg, rgba(6, 76, 59, 0.14), rgba(201, 154, 63, 0.16));
  border: 1px solid rgba(201, 154, 63, 0.24);
  display: none;
}

.section,
.direction-section,
.function-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 82px 48px;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head h2,
.form-info h2,
.form-intro h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
}

.section-head p,
.form-info p,
.form-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

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

.direction-card,
.function-grid article {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 54px rgba(42, 33, 18, 0.08);
}

.direction-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.direction-card h3,
.function-grid h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 28px;
  line-height: 1.1;
}

.market-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 82px 48px;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(420px, 1.12fr);
  gap: 30px;
  align-items: stretch;
}

.market-copy,
.workflow-list {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(42, 33, 18, 0.08);
}

.market-copy {
  padding: 34px;
}

.market-copy h2 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  font-weight: 950;
}

.market-copy p {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
}

.workflow-list {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.workflow-list article {
  min-height: 86px;
  padding: 18px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(6, 76, 59, 0.07),
    rgba(201, 154, 63, 0.08)
  );
}

.workflow-list b {
  color: var(--green);
  font-size: 24px;
  font-weight: 950;
}

.workflow-list span {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
}

.direction-card p,
.function-grid p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.function-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 950;
}

.why-section,
.tasks-section,
.reviews-section,
.legal-page,
.contacts-page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 82px 48px;
}

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

.why-grid article,
.review-card,
.legal-card,
.contact-card,
.telegram-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 54px rgba(42, 33, 18, 0.08);
}

.why-grid article {
  min-height: 245px;
  padding: 26px;
}

.why-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(6, 76, 59, 0.1);
  color: var(--green);
  font-weight: 950;
}

.why-grid h3,
.legal-card h2,
.contact-card h3,
.telegram-panel h2 {
  margin: 18px 0 12px;
  color: var(--green);
  font-size: 24px;
  line-height: 1.12;
}

.why-grid p,
.legal-card p,
.legal-card li,
.contact-card p,
.telegram-panel p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.task-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.task-cloud span {
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid rgba(201, 154, 63, 0.3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 253, 248, 0.88);
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(42, 33, 18, 0.06);
}

.review-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(360px, 44%);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 6px 4px 18px;
}

.review-card {
  min-height: 230px;
  padding: 26px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  scroll-snap-align: start;
}

.review-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(201, 154, 63, 0.35);
  background: #fff;
}

.review-card h3 {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 22px;
}

.review-card span {
  display: block;
  color: var(--gold);
  font-size: 14px;
  font-weight: 950;
}

.review-card p {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.contacts-hero,
.legal-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  gap: 28px;
  align-items: stretch;
}

.contacts-hero-copy,
.legal-hero-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(246, 236, 223, 0.82));
  box-shadow: var(--shadow);
}

.contacts-hero h1,
.legal-hero h1 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.04;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.contact-card {
  padding: 24px;
}

.contact-card a {
  color: var(--green);
  font-weight: 950;
  text-decoration: none;
}

.telegram-panel,
.legal-card {
  margin-top: 28px;
  padding: 30px;
}

.telegram-connect-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.telegram-connect-form .full {
  grid-column: 1 / -1;
}

.legal-card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.legal-card h2 {
  margin-top: 34px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.form-section {
  max-width: 1380px;
  margin: 0 auto 80px;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 64%);
  gap: 32px;
  align-items: start;
}

.metrics-band,
.live-board-section,
.direction-section,
.function-section,
.market-section,
.form-section,
.admin-panel,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
}

.form-info,
.form-intro,
.form-card,
.cabinet-page section,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(42, 33, 18, 0.09);
}

.form-info,
.form-intro {
  padding: 34px;
}

.form-card {
  padding: 34px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

label.full,
.form-grid label:has(textarea) {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 154, 63, 0.38);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(6, 76, 59, 0.1);
}

.success {
  display: none;
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--green);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 950;
}

.footer-logo {
  width: 200px;
  max-width: 58vw;
  height: auto;
  aspect-ratio: 4/1;
  display: block;
  object-fit: contain;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 850;
}

.auth-page,
.cabinet-page {
  max-width: 1380px;
  margin: 44px auto;
  padding: 0 48px 60px;
}

.service-hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 34px;
  margin-bottom: 34px;
}

.service-hero-copy {
  min-width: 0;
}

.service-hero-copy h1 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  font-weight: 950;
  overflow-wrap: break-word;
}

.service-hero-copy p:not(.eyebrow):not(.message) {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.45;
}

.service-hero-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 63, 0.24);
  border-radius: 24px;
  background: #eadfce;
  box-shadow: var(--shadow);
}

.service-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.auth-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px;
}

.auth-card h2,
.admin-hero h1 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.cabinet-page .role-panel {
  margin-top: 26px;
  padding: 28px;
}

.cabinet-page .role-panel h2 {
  margin: 0 0 12px;
  color: var(--green);
}

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

.cabinet-grid .full {
  grid-column: 1 / -1;
}

.cabinet-actions,
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.form-actions {
  margin-top: 20px;
}

.auth-message {
  margin-top: 20px;
}

.role-panel {
  display: none;
}

.section-divider {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid rgba(201, 154, 63, 0.28);
}

.filter-label {
  margin-bottom: 14px;
}

.filter-label-top {
  margin-top: 16px;
}

.check-label {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  align-items: center;
}

.check-label input {
  width: auto;
  min-height: auto;
}

.list-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.data-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(42, 33, 18, 0.06);
}

.data-card h4 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 20px;
}

.data-card p {
  margin: 8px 0;
  color: var(--text);
  line-height: 1.4;
}

.message {
  color: var(--muted);
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 10px;
  align-items: center;
  border-radius: 999px;
  background: rgba(6, 76, 59, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.admin-hero,
.admin-panel {
  max-width: 1380px;
  margin: 60px auto;
  padding: 0 48px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.settings-form .full {
  grid-column: 1/-1;
}

.settings-subhead {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 154, 63, 0.28);
  color: var(--green);
  font-weight: 950;
}

.settings-form textarea {
  min-height: 96px;
}

.settings-json {
  min-height: 210px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.settings-form input[type="file"] {
  padding: 12px;
  min-height: 48px;
  background: rgba(255, 250, 242, 0.9);
}

.vacancy-feed,
.aggregator-admin {
  max-width: 1380px;
  margin: 60px auto;
  padding: 0 48px;
}

.vacancy-filter-form,
.aggregator-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0;
}

.vacancy-filter-form input,
.aggregator-toolbar input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font: inherit;
}

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

.vacancy-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 18px 42px rgba(42, 33, 18, 0.08);
}

.vacancy-card-head,
.vacancy-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vacancy-card-head {
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.vacancy-card h3 {
  margin: 14px 0;
  color: var(--green);
  font-size: 24px;
}

.vacancy-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.vacancy-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vacancy-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.vacancy-card p,
.empty-state {
  color: var(--text);
  line-height: 1.5;
}

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

.toggle-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  font-weight: 900;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.aggregator-block {
  margin-top: 28px;
}

.aggregator-block h3 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 26px;
}

.danger {
  border-color: #9f2d20;
  color: #9f2d20;
}

.upload-label {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.72);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--green);
  font-weight: 950;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid rgba(201, 154, 63, 0.18);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

th {
  color: var(--green);
  background: rgba(6, 76, 59, 0.06);
  font-weight: 950;
}

.danger {
  border-color: #b42318;
  color: #b42318;
}

@media (max-width: 1050px) {
  .site-header {
    padding: 16px 22px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .main-nav a:not(:last-child)::after {
    display: none;
  }

  .header-cta {
    justify-self: start;
  }

  .poster-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 42px 22px 58px;
  }

  .auth-page,
  .cabinet-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .service-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-hero-media {
    min-height: 340px;
  }

  .poster-copy h1 {
    font-size: 42px;
  }

  .poster-copy p {
    font-size: 18px;
  }

  .poster-visual {
    min-height: 360px;
    background-position: center;
  }

  .hero-dashboard {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    padding: 22px;
    align-self: end;
  }

  .hero-benefits,
  .metrics-band,
  .platform-results,
  .live-board,
  .direction-grid,
  .function-grid,
  .why-grid,
  .contact-grid,
  .contacts-hero,
  .legal-hero,
  .market-section,
  .form-section,
  .cabinet-grid,
  .settings-form,
  .stats,
  .vacancy-filter-form,
  .aggregator-toolbar,
  .vacancy-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .form-section,
  .section,
  .metrics-band,
  .platform-search-section,
  .live-board-section,
  .direction-section,
  .function-section,
  .why-section,
  .tasks-section,
  .reviews-section,
  .legal-page,
  .contacts-page,
  .market-section,
  .admin-hero,
  .admin-panel,
  .vacancy-feed,
  .aggregator-admin {
    padding-left: 22px;
    padding-right: 22px;
  }

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

  .platform-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-carousel {
    grid-auto-columns: minmax(320px, 78%);
  }

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

  .footer {
    padding: 34px 22px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
  }

  .brand {
    width: 220px;
    max-width: 100%;
    white-space: normal;
  }

  .brand-logo {
    max-width: 220px;
  }

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

  .main-nav a {
    min-width: 0;
    font-size: 15px;
    line-height: 1.2;
  }

  .poster-hero {
    padding: 34px 20px 48px;
  }

  .poster-copy h1 {
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .service-hero-copy h1 {
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .service-hero-copy p:not(.eyebrow):not(.message) {
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .service-hero-media {
    min-height: 250px;
    border-radius: 18px;
  }

  .poster-copy p {
    font-size: 17px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .eyebrow,
  .brand-text,
  .hero-benefits span {
    overflow-wrap: anywhere;
  }

  .hero-actions {
    gap: 14px;
  }

  .hero-actions .btn,
  .btn,
  .header-cta,
  button {
    width: 100%;
    min-width: 0;
  }

  .platform-tabs,
  .platform-filters,
  .platform-results {
    grid-template-columns: 1fr;
  }

  .platform-search-section {
    padding-top: 48px;
  }

  .platform-filters,
  .platform-toolbar,
  .platform-results {
    padding-left: 16px;
    padding-right: 16px;
  }

  .platform-actions {
    width: 100%;
  }

  .platform-card {
    min-height: 0;
  }

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

  .review-carousel {
    grid-auto-columns: minmax(280px, 92%);
  }

  .review-card {
    grid-template-columns: 1fr;
  }

}
