/* ============================================================
   Inner pages — common styles
   ============================================================ */

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(74, 42, 24, 0.45), transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
@media (max-width: 760px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}
.page-hero h1 {
  max-width: 14ch;
}
.page-hero p.lead {
  margin: 24px 0 0;
  max-width: 56ch;
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.55;
}
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--text-3); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb .sep { margin: 0 8px; color: var(--gold); }

/* ---------- Anchor menu (sticky) ---------- */
.anchor-menu {
  position: sticky;
  top: 70px;
  z-index: 20;
  background: rgba(22, 24, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.anchor-menu-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.anchor-menu a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.anchor-menu a:hover { color: var(--text-1); border-color: var(--gold); }
.anchor-menu .anchor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

/* ---------- Two-column content row ---------- */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.row-2.reverse > :first-child { order: 2; }
.row-2.reverse > :last-child  { order: 1; }
@media (max-width: 900px) { .row-2 { grid-template-columns: 1fr; gap: 40px; } .row-2.reverse > * { order: initial; } }

/* ---------- Method block (dostavka pages) ---------- */
.method {
  scroll-margin-top: 140px;
}
.method + .method { margin-top: clamp(80px, 10vw, 140px); }
.method-head {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 40px;
}
.method-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.method-title { margin: 0; }

.method-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: 24px;
}
.method-num-cell {
  padding: 24px;
  border-left: 1px solid var(--line);
}
.method-num-cell:first-child { border-left: 0; }
.method-num-cell .v {
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.method-num-cell .l {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 8px;
}
@media (max-width: 560px) {
  .method-numbers { grid-template-columns: 1fr; }
  .method-num-cell { border-left: 0; border-top: 1px solid var(--line); }
  .method-num-cell:first-child { border-top: 0; }
}

.method-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 760px) { .method-advantages { grid-template-columns: 1fr; } }
.method-adv {
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.method-adv-icon { margin-bottom: 16px; }
.method-adv-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: var(--text-1); }
.method-adv-desc  { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.55; }

.method-photo {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.method-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.85) sepia(0.4) saturate(0.85) brightness(0.7) contrast(1.1);
}

/* ---------- Pricing table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.price-table th, .price-table td {
  padding: 18px 22px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.price-table thead th {
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.price-table tbody th {
  background: var(--bg-2);
  font-weight: 500;
  color: var(--text-1);
}
.price-table tbody tr:last-child td,
.price-table tbody tr:last-child th { border-bottom: 0; }
.price-table .mono { color: var(--text-1); }
@media (max-width: 640px) {
  .price-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table th, .price-table td { padding: 13px 15px; font-size: 13px; }
}

/* ---------- Steps list (vykup/poisk/upakovka) ---------- */
.steps-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .step-row { grid-template-columns: 60px 1fr; gap: 20px; } .step-row .step-desc { grid-column: span 2; } }
.step-n {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.step-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.step-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; margin: 0; }

/* ---------- When-to-use list ---------- */
.when-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 760px) { .when-list { grid-template-columns: 1fr; } }
.when-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.when-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.when-item h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--text-1); }
.when-item p  { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ---------- Contact tiles (kontakty page) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile {
  padding: 36px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-tile .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-tile .value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.contact-tile .note { font-size: 13px; color: var(--text-3); margin-top: auto; }

.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 760px) { .address-grid { grid-template-columns: 1fr; } }
.address-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.address-card .city {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.address-card h4 { margin: 8px 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.address-card p  { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------- Map placeholder for kontakty ---------- */
.map-placeholder {
  aspect-ratio: 16/7;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 122, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 122, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 122, 0.15), 0 0 30px var(--gold);
}
.map-pin::after {
  content: attr(data-label);
  position: absolute;
  left: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  color: var(--text-1);
  letter-spacing: 0.04em;
  background: rgba(22,24,28,0.8); padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
}
.notfound-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 760px) { .notfound-inner { grid-template-columns: 1fr; gap: 40px; } }
.notfound-num {
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--text-1);
  margin: 0;
  background: linear-gradient(180deg, var(--text-1) 0%, rgba(245, 241, 234, 0.4) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.notfound h2 { margin: 0 0 16px; max-width: 16ch; }
.notfound p { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 44ch; margin: 0 0 24px; }
.notfound .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.notfound .container-wide { padding: 0; }

/* ---------- helper classes (extracted from inline) ---------- */
.price-table-note { font-size: 13px; color: var(--text-3); margin-top: 16px; }
.cta-submit { align-self: flex-start; }
.cta-title { margin-top: 20px; }

/* ---------- o-nas helpers ---------- */
.hero-stats.flush { margin: 0; }
.section-head-spaced { margin-top: 20px; }
.advantages-3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
@media (max-width: 760px) { .advantages-3 { grid-template-columns: 1fr; } }
.footer-legal-links { display: flex; gap: 24px; }
@media (max-width: 760px) { .footer-legal-links { flex-direction: column; gap: 8px; } }

/* ---------- kontakty map pins ---------- */
.map-pin[data-pin="moscow"]    { top: 24%; left: 21%; }
.map-pin[data-pin="guangzhou"] { top: 80%; left: 79%; }
.map-pin[data-pin="yiwu"]      { top: 69%; left: 85%; }
.map-pin[data-pin="beijing"]   { top: 50%; left: 82%; }

/* ---------- 404 helpers ---------- */
.notfound-tag {
    display: block;
    color: var(--text-3);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ---------- Livewire form states ---------- */
.field-err {
    display: block;
    margin-top: 6px;
    color: #E08C8C;
    font-size: 12px;
    letter-spacing: 0.02em;
}
.form-success {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: rgba(201, 168, 122, 0.12);
    border: 1px solid var(--gold-deep);
    border-radius: 4px;
}
.form-success .icon { color: var(--gold); width: 28px; height: 28px; flex-shrink: 0; }
.form-success strong { color: var(--text-1); font-size: 16px; }
.form-success p { color: var(--text-2); margin: 6px 0 0; font-size: 14px; }
.cta-submit[disabled] { opacity: 0.55; cursor: wait; }

/* ---------- Legal document (privacy) ---------- */
.legal-doc { max-width: 760px; }
.legal-doc .legal-meta { color: var(--text-3); font-size: 12px; margin-bottom: 32px; }
.legal-doc h2.h-3 { margin: 36px 0 12px; color: var(--text-1); }
.legal-doc h2.h-3:first-of-type { margin-top: 0; }
.legal-doc p { color: var(--text-2); line-height: 1.7; margin: 0 0 14px; }
.legal-doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc a:hover { color: var(--gold-bright); }
.legal-doc strong { color: var(--text-1); font-weight: 600; }
.legal-list { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); line-height: 1.7; }
.legal-list li { margin-bottom: 6px; }
.legal-note {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 13px;
  color: var(--text-3);
}

/* ============================================================
   Knowledge base — helpers
   ============================================================ */
.section--tight { padding-top: 28px; padding-bottom: 28px; }

.body-sm { font-size: 13px; line-height: 1.6; color: var(--text-2); }

/* Anchor nav chips */
.kb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kb-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.kb-nav-item:hover { border-color: var(--gold); color: var(--text-1); background: rgba(201, 168, 122, 0.12); }
.kb-nav-item [data-lucide] { width: 15px; height: 15px; stroke-width: 1.6; }

/* Tag pills */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

/* Clickable bento card */
.bento-link { cursor: pointer; }
.bento-link:hover { border-color: var(--gold); background: rgba(201, 168, 122, 0.04); }
.bento-link:hover .bento-title { color: var(--gold-bright); }

/* === Адаптив-фиксы (финальный аудит 2026-06-26) === */
.method-head { flex-wrap: wrap; }
.method-title { overflow-wrap: anywhere; min-width: 0; }
.contact-tile .value { font-size: clamp(20px, 5.5vw, 28px); overflow-wrap: anywhere; }
@media (max-width: 560px) { .anchor-menu a { padding: 11px 14px; } }
@media (max-width: 900px) and (min-width: 761px) { .advantages-3 { grid-template-columns: 1fr 1fr; } }

/* ---------- kontakty map silhouette ---------- */
.contact-map-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: brightness(0.55) sepia(0.45) hue-rotate(-10deg) saturate(1.4);
  opacity: 0.5;
  pointer-events: none;
}
.map-pin { z-index: 2; }
.map-pin[data-pin="guangzhou"]::after,
.map-pin[data-pin="yiwu"]::after,
.map-pin[data-pin="beijing"]::after { left: auto; right: 22px; }
