/* ============ СТИЛИ ВНУТРЕННИХ СТРАНИЦ — ПРОБА · Скупка 585 ============ */

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 0;
  font-size: 13px;
}
.breadcrumbs .container { display: flex; align-items: center; gap: 8px; color: var(--color-text-3); }
.breadcrumbs a { color: var(--color-text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-brand); }
.breadcrumbs .sep { color: var(--color-text-3); }
.breadcrumbs .current { color: var(--color-text); }

/* ---------- Page hero ---------- */
.page-hero {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(19,139,69,.07), transparent 60%);
  pointer-events: none;
}
.page-hero__inner { max-width: 820px; }
.page-hero__icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(19,139,69,.1);
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--color-brand);
}
.page-hero__title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.page-hero__lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--color-text-2);
  margin: 0;
  max-width: 720px;
}

/* ---------- Цена-таблица (полная) ---------- */
.price-table-block { overflow-x: auto; }
.price-table-full {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.price-table-full thead th {
  background: rgba(19,139,69,.06);
  color: var(--color-text-2);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-table-full tbody td {
  padding: 16px 18px;
  border-top: 1px solid var(--color-border);
  font-size: 15px;
}
.price-table-full tbody tr:hover { background: rgba(19,139,69,.03); }
.price-table-full .price-cell {
  font-weight: 700;
  color: var(--color-brand);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.price-table-full .price-cell .unit { font-weight: 500; color: var(--color-text-3); font-size: 13px; }
.tag-hit {
  display: inline-block;
  background: var(--color-accent);
  color: #1c2120;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
  text-transform: uppercase;
}

/* ---------- Карточки офисов ---------- */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.office-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 280ms, box-shadow 280ms, border-color 280ms;
  position: relative;
  overflow: hidden;
}
.office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
  border-color: rgba(19,139,69,.3);
}
.office-card__metro {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-brand);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.office-card__head h3 { margin: 0 0 14px; font-size: 19px; }
.office-card__props { list-style: none; padding: 0; margin: 0 0 14px; }
.office-card__props li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 14px;
  color: var(--color-text);
}
.office-card__props li:last-child { border-bottom: 0; }
.office-card__props span {
  display: inline-block;
  width: 80px;
  color: var(--color-text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.office-card__desc {
  font-size: 13px;
  color: var(--color-text-2);
  line-height: 1.5;
  margin: 0 0 14px;
}
.office-card__actions { display: flex; gap: 8px; }

/* ---------- Отзывы ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 280ms, box-shadow 280ms;
  position: relative;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.06); }
.review-card__rating { color: var(--color-accent); font-size: 18px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card__rating .off { color: var(--color-border); }
.review-card__text { font-size: 14px; line-height: 1.6; color: var(--color-text); margin: 0 0 14px; }
.review-card__meta { font-size: 12px; color: var(--color-text-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.review-card__meta strong { color: var(--color-text); font-size: 13px; }
.review-card__meta .dot { color: var(--color-border); }
.review-card__meta .src { color: var(--color-brand); }

/* ---------- FAQ-аккордеон ---------- */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 280ms, box-shadow 280ms;
}
.faq-item[open] { border-color: rgba(19,139,69,.3); box-shadow: 0 8px 20px rgba(0,0,0,.04); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__arrow {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(19,139,69,.08);
  border-radius: 50%;
  color: var(--color-brand);
  font-size: 18px;
  font-weight: 400;
  transition: transform 280ms, background 280ms;
  flex-shrink: 0;
}
.faq-item[open] .faq-item__arrow { transform: rotate(45deg); background: var(--color-brand); color: #fff; }
.faq-item__body {
  padding: 0 22px 18px;
  color: var(--color-text-2);
  line-height: 1.6;
  font-size: 15px;
}

/* ---------- Шаги (большие) ---------- */
.steps--big {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.steps--big .step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  transition: transform 280ms, box-shadow 280ms;
}
.steps--big .step:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.06); }
.steps--big .step__num {
  width: 44px; height: 44px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  font-family: var(--font-display, serif);
}
.steps--big .step h4 { margin: 0 0 8px; font-size: 17px; }
.steps--big .step p { margin: 0; color: var(--color-text-2); font-size: 14px; line-height: 1.5; }

/* ---------- USP-карточки helper (.adv-card__icon вариант, используется в render.php) ---------- */
/* ВНИМАНИЕ: правила .adv-grid и .adv-card перенесены в layout.css (мудборд-стиль 4-колонки).
   Здесь оставлены ТОЛЬКО стили для иконки-блока внутри карточки на внутренних страницах. */
.adv-card__icon {
  width: 48px; height: 48px;
  background: rgba(19,139,69,.1);
  color: var(--color-brand);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-brand) 0%, #0F7A3C 100%);
  border-radius: 18px;
  padding: 34px 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(245,197,24,.18), transparent 50%);
  pointer-events: none;
}
.cta-band__text h3 { margin: 0 0 6px; font-size: 24px; color: #fff; }
.cta-band__text p { margin: 0; color: rgba(255,255,255,.85); font-size: 15px; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-accent { background: var(--color-accent); color: #1c2120; }
.cta-band .btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Калькулятор ---------- */
.calc-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 30px;
  max-width: 760px;
  margin: 0 auto;
}
.calc-block__head { text-align: center; margin-bottom: 22px; }
.calc-block__head h3 { margin: 0 0 6px; font-size: 24px; }
.calc-block__head p { margin: 0; color: var(--color-text-2); font-size: 14px; }
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.calc-row label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.calc-row select, .calc-row input {
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  text-transform: none;
}
.calc-row select:focus, .calc-row input:focus { outline: none; border-color: var(--color-brand); }
.calc-result {
  background: linear-gradient(120deg, rgba(19,139,69,.06), rgba(245,197,24,.06));
  border: 1px dashed rgba(19,139,69,.3);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.calc-result__label { color: var(--color-text-2); font-size: 14px; }
.calc-result__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-brand);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display, serif);
}

/* ---------- Списки статей ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 280ms, box-shadow 280ms;
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.06); }
.article-card__date { font-size: 12px; color: var(--color-text-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.article-card__title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.article-card__excerpt { font-size: 14px; line-height: 1.5; color: var(--color-text-2); margin: 0 0 12px; }
.article-card__more { color: var(--color-brand); font-weight: 600; font-size: 14px; }

/* ---------- Юридические страницы ---------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: 40px 0; }
.legal-page h2 { margin-top: 30px; font-size: 22px; }
.legal-page p { line-height: 1.65; color: var(--color-text); margin: 0 0 14px; }
.legal-page ul { padding-left: 22px; }
.legal-page li { margin-bottom: 8px; line-height: 1.6; }

/* ---------- Контакты — макет ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 26px;
}
.contact-card h3 { margin: 0 0 16px; font-size: 19px; }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 15px; display: flex; justify-content: space-between; gap: 14px; }
.contact-card li:last-child { border-bottom: 0; }
.contact-card li span { color: var(--color-text-3); font-size: 13px; }
.contact-card li a { color: var(--color-brand); text-decoration: none; font-weight: 500; }

/* ---------- О компании ---------- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.about-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  text-align: left;
}
.about-stat .num {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--color-brand);
  font-family: var(--font-display, serif);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat .lab { color: var(--color-text-2); font-size: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 720px) {
  .calc-row { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
  .cta-band__text h3 { font-size: 19px; }
  .page-hero { padding: 36px 0 28px; }
}
