/* ============================================================
   responsive.css — медиа-запросы и мобильные правки
   ============================================================ */

/* ── Шапка: скрыть навигацию на мобильных ──────────────────── */
@media (max-width: 899px) {
  .header__nav     { display: none; }
  .header__phone   { display: none; }
  .header__cta     { display: none; }
  .burger          { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero__content { padding-bottom: 100px; }
  .hero__actions .btn-lg { width: 100%; justify-content: center; }
}

/* ── Секции: меньше отступ на мобильных ─────────────────────── */
@media (max-width: 640px) {
  .section        { padding-block: 48px; }
  .section__header { margin-bottom: 32px; }
}

/* ── Как работаем ───────────────────────────────────────────── */
.steps-list {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: steps;
}

@media (min-width: 640px) {
  .steps-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps-list { grid-template-columns: repeat(5, 1fr); }
}

.step-item {
  position: relative;
  padding: 24px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  counter-increment: steps;
}

.step-item::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-accent-soft);
  letter-spacing: 0.06em;
}

.step-item__icon {
  width: 52px; height: 52px;
  background: rgba(224, 122, 43, 0.08);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.step-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-item__desc {
  font-size: 0.83rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
}

/* ── Почему мы (advantages) ─────────────────────────────────── */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .advantages-grid { grid-template-columns: repeat(4, 1fr); }
}

.advantage-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr);
}

.advantage-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.advantage-item__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.advantage-item__label {
  font-size: 0.82rem;
  color: var(--c-ink-soft);
  line-height: 1.4;
}

/* ── 404 страница ───────────────────────────────────────────── */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.page-404__num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-accent), var(--c-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404__title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

.page-404__desc {
  color: var(--c-ink-soft);
  margin-bottom: 32px;
}

/* ── Цены ───────────────────────────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table th {
  background: var(--c-bg-alt);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-ink-soft);
  border-bottom: 1px solid var(--c-border);
}

.price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.price-table tr:last-child td { border-bottom: none; }

.price-table tr:hover td { background: var(--c-bg-alt); }

.price-table td:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--c-accent);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .price-table th,
  .price-table td { padding: 12px; font-size: 0.82rem; }
}

/* ── Фильтры портфолио ──────────────────────────────────────── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  cursor: pointer;
  transition: all var(--tr-fast);
  text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

/* ── Детальная страница услуги ──────────────────────────────── */
.service-detail-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .service-detail-layout { grid-template-columns: 1fr 360px; }
}

.service-detail__sidebar {
  position: sticky;
  top: 88px;
}

.service-detail__sidebar-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.features-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.88rem;
}

.features-list li:last-child { border-bottom: none; }
.features-list li strong { color: var(--c-ink-soft); }
.features-list li span   { font-weight: 600; color: var(--c-ink); text-align: right; }

/* ── Блог ───────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--c-ink-soft);
  margin-bottom: 8px;
}

/* ── Contend rich text (full_description) ───────────────────── */
.rich-content { line-height: 1.75; }

.rich-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

.rich-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.rich-content p { margin-bottom: 1rem; }

.rich-content ul,
.rich-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.rich-content li { margin-bottom: 6px; }

.rich-content img {
  border-radius: var(--r-sm);
  margin: 16px 0;
}
