:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --panel: #ffffff;
  --text: #101010;
  --muted: #5f6672;
  --line: #e8e8e8;
  --line-strong: #d9d9d9;
  --orange: #ff9900;
  --orange-dark: #dd8300;
  --green: #1f8d46;
  --green-bg: rgba(31, 141, 70, 0.1);
  --warning: #c47a11;
  --warning-bg: rgba(196, 122, 17, 0.12);
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.09);
  --container: 1160px;
  --radius: 18px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(255, 153, 0, 0.08), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.03), transparent 30%),
    var(--bg);
}

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

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 14px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
}

.skip-link:focus-visible {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(9px);
}

.nav {
  min-height: 74px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header-telegram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 11px;
  color: #2f3a49;
  font-size: 0.83rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-telegram:hover {
  border-color: #cfd5de;
  background: #fbfcfe;
}

.header-telegram svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.logo-prefix {
  color: var(--orange);
  font-weight: 900;
  font-size: 1.02em;
}

.logo-word {
  display: inline-flex;
  align-items: center;
  color: #14171d;
}

.logo-key {
  display: inline-block;
  will-change: transform;
  animation: logoKeyPress 8.6s ease-in-out infinite;
}

.logo-key:nth-child(1) { animation-delay: 0s; }
.logo-key:nth-child(2) { animation-delay: 0.25s; }
.logo-key:nth-child(3) { animation-delay: 0.45s; }
.logo-key:nth-child(4) { animation-delay: 0.65s; }
.logo-key:nth-child(5) { animation-delay: 0.9s; }
.logo-key:nth-child(6) { animation-delay: 1.1s; }
.logo-key:nth-child(7) { animation-delay: 1.35s; }
.logo-key:nth-child(8) { animation-delay: 1.55s; }

@keyframes logoKeyPress {
  0%, 87%, 100% { transform: translateY(0); }
  89% { transform: translateY(1.5px); }
  91% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-key {
    animation: none !important;
  }

  .benefit-card:hover {
    animation: none !important;
    transform: translateY(-3px);
  }

  .badge.verified,
  .badge.verified::after {
    animation: none !important;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.95rem;
  color: #323640;
  font-weight: 700;
}

.admin-user-entry {
  position: relative;
}

.admin-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #2f3a49;
  cursor: pointer;
}

.admin-user-btn:hover {
  border-color: #cfd5de;
  background: #fbfcfe;
}

.admin-user-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 130;
}

.admin-user-menu.open {
  display: grid;
  gap: 6px;
}

.admin-user-menu a,
.admin-user-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  color: #1f2835;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-user-menu a:hover,
.admin-user-menu button:hover {
  background: #fafbfc;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu a {
  font-weight: 700;
}

.mobile-menu.active {
  display: flex;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.hero {
  padding: 28px 0 18px;
}

.hero-card {
  min-height: 460px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 153, 0, 0.22), transparent 38%),
    radial-gradient(circle at 8% 90%, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(130deg, #1f242c 0%, #2c3440 52%, #3a3a35 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-content {
  width: min(100%, 700px);
  padding: 66px 60px;
  color: #fff;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero h1,
.page-title,
.section-head h2,
.cta-box h2,
.details-title {
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--orange);
}

.hero-text {
  max-width: 620px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.82);
}

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

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.btn-primary {
  color: #111;
  background: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  color: #111;
  border-color: var(--line);
  background: #fff;
}

.btn-secondary:hover {
  border-color: var(--line-strong);
}

.btn-block {
  width: 100%;
}

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

.section-head h2,
.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-subtitle,
.muted,
.contract-subtext {
  color: var(--muted);
}

.text-link {
  color: #ca7600;
  font-weight: 800;
}

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

.store-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.store-card.is-sold {
  border-color: rgba(196, 33, 33, 0.34);
  background:
    radial-gradient(circle at top right, rgba(196, 33, 33, 0.09), transparent 42%),
    linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  box-shadow: 0 14px 32px rgba(196, 33, 33, 0.1);
}

.sold-stamp {
  position: absolute;
  top: 16px;
  right: -46px;
  width: 180px;
  height: 44px;
  border: 1px solid rgba(124, 0, 0, 0.45);
  color: #ffffff;
  background: linear-gradient(120deg, #7a0a0a 0%, #b31616 55%, #d02a2a 100%);
  border-radius: 999px;
  box-shadow:
    0 10px 22px rgba(157, 20, 20, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  transform: rotate(42deg) scale(0.86);
  opacity: 0;
  animation: soldStampIn 520ms ease-out forwards;
  z-index: 2;
  overflow: hidden;
}

@keyframes soldStampIn {
  0% { opacity: 0; transform: rotate(42deg) scale(0.74); }
  72% { opacity: 1; transform: rotate(42deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(42deg) scale(1); }
}

.sold-stamp::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0) 75%
  );
  pointer-events: none;
}

.sold-stamp::after {
  content: "";
  position: absolute;
  top: -18px;
  left: -68px;
  width: 34px;
  height: 88px;
  transform: rotate(22deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  animation: soldGlossSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes soldGlossSweep {
  0%, 58%, 100% {
    opacity: 0;
    left: -68px;
  }
  66% {
    opacity: 0.58;
  }
  78% {
    opacity: 0;
    left: 210px;
  }
}

.featured-outline {
  border-color: rgba(255, 153, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.14);
}

.card-top,
.card-bottom,
.store-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-top {
  margin-bottom: 16px;
  align-items: flex-start;
}

.store-meta {
  margin-bottom: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #4e5560;
}

.store-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a4b00;
  font-size: 0.88rem;
}

.store-marketplace {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #ececec;
  background: #f9f9f9;
  color: #3c4656;
  font-size: 0.82rem;
  font-weight: 700;
}

.country-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 0.95rem;
}

.country-flag-image {
  width: 1.2em;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.country-flag-fallback {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
}

.star {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
}

.star.full {
  color: #ff9900;
}

.star.half {
  color: #ff9900;
  opacity: 0.5;
}

.star.empty {
  color: #d8d8d8;
}

.store-categories {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  font-weight: 800;
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.success {
  color: var(--green);
  background: var(--green-bg);
}

.badge.warning {
  color: var(--warning);
  background: var(--warning-bg);
}

.badge.verified,
.verified-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 56px 0 18px;
  border-radius: 999px;
  border: 2px solid #245740;
  color: #ffffff;
  background: linear-gradient(135deg, #75ddb6 0%, #54cda4 48%, #4bc89f 100%);
  box-shadow:
    inset 0 0 0 2px rgba(18, 73, 52, 0.82),
    0 10px 24px rgba(37, 117, 81, 0.22);
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  animation: approvedFloat 2.2s ease-in-out infinite;
}

.badge.verified {
  font-size: 0.78rem;
}

.verified-label {
  font-size: 0.84rem;
}

.badge.verified::before,
.verified-label::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.badge.verified::after,
.verified-label::after {
  content: "✓";
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #48bf95;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(20, 67, 49, 0.2);
}

@keyframes approvedFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      inset 0 0 0 2px rgba(18, 73, 52, 0.82),
      0 10px 24px rgba(37, 117, 81, 0.22);
  }
  50% {
    transform: translateY(-1px);
    box-shadow:
      inset 0 0 0 2px rgba(18, 73, 52, 0.82),
      0 14px 28px rgba(37, 117, 81, 0.28);
  }
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-btn,
.details-btn {
  background: var(--orange);
  color: #111;
  border-color: rgba(0, 0, 0, 0.04);
}

.contact-btn:hover,
.details-btn:hover {
  background: var(--orange-dark);
  box-shadow: 0 10px 20px rgba(221, 131, 0, 0.35);
  transform: translateY(-1px);
}

.details-btn {
  min-height: 38px;
  font-size: 0.88rem;
  padding: 0 14px;
}

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

.benefit-card,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.benefit-card {
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: #d6d6d6;
  box-shadow: var(--shadow-hover);
  animation: benefitFloat 1.6s ease-in-out infinite alternate;
}

@keyframes benefitFloat {
  0% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(-10px);
  }
}

.benefit-card h3,
.insight-card h2 {
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cta-box {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.seller-lead-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.seller-lead-copy {
  padding: 24px 8px 0 0;
}

.seller-lead-copy h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.seller-lead-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.seller-lead-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #d7e9df;
  background: #f6fbf8;
  color: #204131;
  font-size: 0.84rem;
  font-weight: 700;
}

.seller-lead-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 153, 0, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: var(--shadow);
  padding: 26px;
}

.seller-lead-card h3 {
  margin-bottom: 14px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

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

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

.seller-lead-grid label {
  display: grid;
  gap: 6px;
}

.seller-lead-grid span {
  font-size: 0.84rem;
  font-weight: 800;
  color: #253040;
}

.seller-lead-grid input,
.seller-lead-grid select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
}

.seller-lead-grid input:focus,
.seller-lead-grid select:focus {
  outline: none;
  border-color: rgba(255, 153, 0, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.16);
}

.seller-lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.page-head {
  margin-bottom: 28px;
}

.page-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.filters input,
.filters select,
.contract-form input,
.contract-form textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
}

.filters input:focus,
.filters select:focus,
.contract-form input:focus,
.contract-form textarea:focus {
  outline: none;
  border-color: rgba(255, 153, 0, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.16);
}

.details-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 26px;
  align-items: start;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #666f7d;
  margin-bottom: 18px;
}

.details-header {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.details-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sold-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 26, 26, 0.34);
  color: #9c1e1e;
  background: rgba(255, 235, 235, 0.92);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.details-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.06;
}


.details-table-card,
.price-box,
.contract-card,
.legal-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.details-table-card {
  overflow: hidden;
}

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

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

.details-table th {
  width: 38%;
  color: #4f5865;
  background: #fcfcfc;
  font-size: 0.92rem;
}

.big-price {
  font-size: 1.1rem;
  font-weight: 800;
}

.price-box {
  position: sticky;
  top: 94px;
  padding: 22px;
}

.price-box-label {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.price-box-value {
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.small-note {
  margin-top: 12px;
  color: #616a75;
  font-size: 0.88rem;
  text-align: center;
}

.payment-methods {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbfd;
  padding: 12px;
}

.payment-methods-title {
  color: #55606e;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.payment-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid #e4e8ec;
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  color: #212b39;
  font-size: 0.8rem;
  font-weight: 800;
}

.payment-chip svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.admin-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 9, 15, 0.5);
  padding: 16px;
}

.admin-auth-modal.open {
  display: flex;
}

.admin-auth-card {
  width: min(100%, 380px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-hover);
  padding: 18px;
}

.admin-auth-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.admin-auth-row {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.admin-auth-row label {
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-auth-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
}

.admin-auth-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-auth-error {
  min-height: 20px;
  color: #b41919;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f7f8fa;
  font-size: 0.84rem;
  color: #2c323b;
  font-weight: 700;
}

.contract-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.contract-card {
  padding: 22px;
}

.contract-card h2 {
  margin-bottom: 6px;
}

.contract-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.contract-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contract-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.contract-form textarea {
  min-height: 108px;
  padding: 12px 14px;
  resize: vertical;
}

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

.contract-preview {
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 22px;
  background: #fff;
}

.contract-doc {
  font-family: "Times New Roman", serif;
  color: #111;
}

.contract-doc h3 {
  text-align: center;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  font-size: 1.28rem;
}

.contract-preview h3 {
  margin-bottom: 16px;
}

.contract-preview h4 {
  margin: 16px 0 8px;
  font-size: 1.01rem;
}

.contract-preview p {
  margin-bottom: 9px;
  text-align: justify;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.signature-block {
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fcfcfc;
  padding: 12px;
}

.signature-grid.formal {
  margin-top: 14px;
  gap: 18px;
}

.signature-block.formal {
  border-radius: 0;
  border: 1px solid #e3e3e3;
  background: #fff;
  padding: 14px;
}

.signature-image {
  display: inline-block;
  max-width: 250px;
  max-height: 88px;
  vertical-align: middle;
}

.signature-line {
  display: inline-block;
  width: 250px;
  height: 18px;
  border-bottom: 1px solid #111;
  vertical-align: middle;
}

.signature-pad-group {
  display: grid;
  gap: 8px;
}

.signature-pad {
  width: 100%;
  min-height: 150px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  touch-action: none;
}

.contract-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-wrap,
.legal-wrap {
  max-width: 920px;
}

.article-content {
  display: grid;
  gap: 14px;
}

.article-content h2 {
  margin-top: 12px;
  font-size: 1.2rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.legal-wrap {
  display: grid;
  gap: 14px;
}

.legal-section {
  padding: 22px;
}

.legal-section h2 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-main {
  padding: 24px 0 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  grid-template-areas:
    "brand links"
    "contact links";
  align-items: start;
  gap: 22px 28px;
}

.footer-brand {
  grid-area: brand;
}

.footer-brand p {
  margin-top: 4px;
  max-width: 360px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 14px 18px;
}

.footer-links a {
  color: #37404d;
  font-size: 0.92rem;
}

.footer-contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 260px;
}

.footer-contact strong,
.footer-brand strong {
  display: block;
  margin-bottom: 2px;
}

.footer-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-contact p a {
  color: #37404d;
  font-weight: 600;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #232c38;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-email {
  color: #37404d;
  font-weight: 600;
}

.footer-email svg {
  width: 17px;
  height: 17px;
  fill: #4c5564;
}

.footer-contact-row > a:not(.footer-email) {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-contact-row > a:not(.footer-email):hover {
  border-color: #ccd3db;
  background: #fbfbfc;
}

.footer-contact-row svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.footer-bottom {
  padding: 14px 0 22px;
  border-top: 1px solid #f1f1f1;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.a11y-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 105;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #111;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.a11y-panel {
  position: fixed;
  right: 16px;
  bottom: 68px;
  z-index: 105;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
  gap: 10px;
}

.a11y-panel.open {
  display: grid;
}

.a11y-panel h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.a11y-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.a11y-panel input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

:focus-visible {
  outline: 3px solid rgba(255, 153, 0, 0.55);
  outline-offset: 2px;
}

body.a11y-large-text {
  font-size: 112%;
}

body.a11y-readable-font {
  font-family: "Segoe UI", Arial, sans-serif;
}

body.a11y-underline-links a {
  text-decoration: underline;
}

body.a11y-high-contrast {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #000000;
  --muted: #1b1b1b;
  --line: #8d8d8d;
}

body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (max-width: 980px) {
  .card-grid,
  .benefits-grid,
  .insight-grid,
  .details-layout,
  .contract-layout,
  .contract-row,
  .seller-lead-shell,
  .seller-lead-grid {
    grid-template-columns: 1fr;
  }

  .price-box {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-telegram span {
    display: none;
  }

  .header-telegram {
    min-height: 34px;
    padding: 0 10px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
  }

  .hero-content {
    padding: 42px 24px;
  }

  .section-head,
  .cta-box,
  .details-header,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-areas:
      "brand"
      "contact"
      "links";
  }

  .footer-links {
    justify-content: flex-start;
  }

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

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

  .a11y-panel {
    width: min(260px, calc(100vw - 24px));
    right: 12px;
  }

  .footer-bottom {
    padding-bottom: 26px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .a11y-fab,
  .a11y-panel,
  .skip-link,
  .page-head,
  .contract-form-panel,
  .contract-subtext,
  .contract-note,
  .contract-actions {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .container {
    width: 100%;
    margin: 0;
  }

  .contract-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contract-preview-panel,
  .contract-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .contract-preview-panel > h2 {
    display: none;
  }

  .contract-preview {
    border: 0;
    padding: 0;
  }

  .contract-doc {
    font-size: 12pt;
    line-height: 1.45;
  }
}
