/* ============================================================
   WHIEDA Marketplace — CSS для внутренних страниц
   about / partnership / contacts / blog / legal
   ============================================================ */

/* ---------- Общий контейнер страницы ---------- */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.page-narrow { max-width: 780px; }

/* ---------- Hero страниц ---------- */
.page-hero {
  padding: 50px 40px;
  border-radius: var(--r-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) { .page-hero { padding: 32px 20px; } }

.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--acc-2); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.page-h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.page-lead {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
}

/* ---------- Секции ---------- */
.page-sec {
  margin-bottom: 40px;
}
.page-sec h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.page-sec h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 24px 0 12px;
}
.page-sec p,
.page-sec li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.page-sec p { margin: 0 0 14px; }
.page-sec ul,
.page-sec ol { padding-left: 22px; margin: 0 0 16px; }
.page-sec li { margin-bottom: 6px; }

.page-sec-glass {
  padding: 32px;
  border-radius: var(--r-md);
}
@media (max-width: 640px) { .page-sec-glass { padding: 20px; } }

/* ---------- About: Roman card ---------- */
.roman-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px;
  border-radius: var(--r-lg);
  align-items: center;
}
@media (min-width: 780px) {
  .roman-card { grid-template-columns: 240px 1fr; gap: 40px; padding: 40px; }
}
.roman-photo {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,93,75,0.12);
  border: 4px solid var(--white);
}
.roman-photo img { width: 100%; height: 100%; object-fit: cover; }
.roman-name {
  font-size: 24px; font-weight: 800;
  margin: 0 0 4px;
}
.roman-title {
  color: var(--mut); font-size: 15px;
  margin: 0 0 14px;
}
.roman-quote {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
  padding-left: 16px;
  border-left: 3px solid var(--acc);
  margin: 0;
}

/* ---------- Journey grid (Тяньцзинь, Наньян, Чжухай) ---------- */
.journey {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (min-width: 720px) { .journey { grid-template-columns: repeat(3, 1fr); } }

.journey-card {
  padding: 24px;
  border-radius: var(--r-md);
  transition: var(--tr);
}
.journey-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.journey-city {
  font-size: 20px; font-weight: 800;
  color: var(--acc-2);
  margin: 0 0 4px;
}
.journey-region {
  font-size: 13px;
  color: var(--mut);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.journey-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* ---------- Fact list ---------- */
.fact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 720px) { .fact-list { grid-template-columns: 1fr 1fr; } }

.fact-item {
  display: flex; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
}
.fact-item-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--acc-soft);
  color: var(--acc-2);
  display: flex; align-items: center; justify-content: center;
}
.fact-item-text {
  font-size: 15px;
  line-height: 1.45;
}
.fact-item-text b { color: var(--ink); font-weight: 700; }

/* ---------- Timeline (18 лет опыта) ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
  margin: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--acc-soft);
}
.tl-item {
  position: relative;
  padding-bottom: 24px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--acc);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  font-size: 13px; font-weight: 800;
  color: var(--acc-2);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.tl-title {
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  margin: 2px 0 4px;
}
.tl-desc {
  font-size: 14.5px; color: var(--mut);
  line-height: 1.5;
  margin: 0;
}

/* ---------- CTA section ---------- */
.cta-band {
  padding: 40px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--acc-2) 0%, var(--acc) 100%);
  color: var(--white);
  text-align: center;
  margin: 40px 0;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
}
.cta-band p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-band-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn-white {
  padding: 14px 28px;
  border-radius: var(--r);
  background: var(--white); color: var(--acc-2);
  font-size: 15px; font-weight: 800;
  transition: var(--tr);
}
.cta-band .btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.cta-band .btn-ghost {
  padding: 14px 28px;
  border-radius: var(--r);
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  font-size: 15px; font-weight: 700;
  transition: var(--tr);
}
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ---------- Partnership: benefits grid ---------- */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--tr);
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.benefit-num {
  font-size: 40px; font-weight: 800;
  color: var(--acc);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.benefit-title {
  font-size: 17px; font-weight: 800;
  margin: 8px 0 8px;
}
.benefit-desc {
  font-size: 14.5px; color: var(--mut);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Steps (партнёрство: как начать) ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: 24px;
  border-radius: var(--r-md);
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px; left: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--white);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-acc);
}
.step-title {
  font-size: 16px; font-weight: 800;
  margin: 14px 0 6px;
}
.step-desc {
  font-size: 14px; color: var(--mut);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Contact form ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 780px) { .contacts-grid { grid-template-columns: 1fr 1fr; } }

.contact-block {
  padding: 26px;
  border-radius: var(--r-md);
}
.contact-block h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 800;
}
.contact-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row-icon {
  flex: 0 0 auto;
  color: var(--acc);
  margin-top: 2px;
}
.contact-row-content {
  flex: 1;
}
.contact-row-label {
  font-size: 12px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-row-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}
.contact-row-value a {
  color: var(--ink);
  text-decoration: none;
}
.contact-row-value a:hover { color: var(--acc-2); }

.form-row {
  margin-bottom: 14px;
}
.form-row label {
  display: block;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bd);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 15px;
  transition: var(--tr);
  box-sizing: border-box;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}
.form-row textarea { min-height: 100px; resize: vertical; }

.form-hint {
  font-size: 12px;
  color: var(--mut);
  margin-top: 6px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--r);
  background: var(--acc);
  color: var(--white);
  font-size: 15px; font-weight: 800;
  transition: var(--tr);
  margin-top: 6px;
}
.form-submit:hover { background: var(--acc-2); }

.map-embed {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  border: 1px solid var(--bd);
  overflow: hidden;
  margin-top: 20px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--r-md);
  transition: var(--tr);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--white);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--acc); }
.blog-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--acc-soft);
  color: var(--acc-2);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-title {
  font-size: 18px; font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--ink);
}
.blog-excerpt {
  font-size: 14.5px;
  color: var(--mut);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.blog-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: var(--mut);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.blog-meta-date { }
.blog-meta-read { display: inline-flex; align-items: center; gap: 4px; }

/* Article page */
.article-body {
  font-size: 17px;
  line-height: 1.7;
}
.article-body h2 { font-size: 26px; margin: 32px 0 14px; }
.article-body h3 { font-size: 20px; margin: 24px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  padding: 20px 24px;
  border-left: 4px solid var(--acc);
  background: var(--acc-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--ink-2);
}
.article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--mut);
}

/* ================================================================
   Блог: фильтры категорий + поиск (v2 — 48 статей)
   ================================================================ */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 16px;
}
.blog-filter {
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-filter:hover {
  background: rgba(255,255,255,0.9);
  border-color: var(--acc);
}
.blog-filter.is-active {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(1,105,111,0.25);
}
.blog-filter-count {
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 8px;
  font-weight: 700;
}
.blog-filter.is-active .blog-filter-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.blog-search {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.blog-search:focus {
  outline: none;
  border-color: var(--acc);
  background: #fff;
}

/* ================================================================
   Блог: dropdown (mobile) vs chips (desktop)
   ================================================================ */
.blog-controls {
  margin: 20px 0 12px;
}
/* Mobile: показываем select, прячем chips */
.blog-select {
  display: block;
  width: 100%;
  padding: 14px 44px 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301696F' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 20px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--acc-2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.blog-select:focus {
  outline: none;
  border-color: var(--acc);
}
@media (min-width: 700px) {
  /* Desktop: показываем chips, прячем select */
  .blog-select { display: none; }
}
@media (max-width: 699px) {
  .blog-filters { display: none; }
}
