.page-hero { padding: 60px 0 40px; text-align: center; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ---- Услуги ---- */
.services-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 46px; }
.services-tab { padding: 12px 26px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--text-muted); }
.services-tab.active { background: var(--accent-gradient); color: #fff; border-color: transparent; }
.services-panel { display: none; }
.services-panel.active { display: block; animation: card-in .4s ease; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 90px; align-items: stretch; }
.service-card { padding: 28px; display: flex; flex-direction: column; }
.service-card .ic { width: 46px; height: 46px; margin-bottom: 18px; color: var(--accent); }
.service-card h3 { font-size: 17px; margin: 0 0 10px; }
.service-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; flex: 1; }
.service-card .price-tag { font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.service-card > .btn { margin-top: auto; }

/* ---- Поддержка / форма обратной связи ---- */
.support-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding-bottom: 100px; align-items: start; }
.support-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; min-width: 0; }
.support-form-card .field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.support-form-card label { font-size: 13.5px; color: var(--text-muted); }
.support-form-card input, .support-form-card textarea { width: 100%; }
.support-form-card textarea { min-height: 130px; resize: vertical; }
.support-info-list { display: flex; flex-direction: column; gap: 20px; }
.support-info-item { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.support-info-item .ic { width: 40px; height: 40px; color: var(--accent); flex-shrink: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; cursor: pointer; }
.faq-item .faq-q { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; }
.faq-item .faq-a { max-height: 0; overflow: hidden; color: var(--text-muted); font-size: 13.5px; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 200px; margin-top: 10px; }
.faq-item .faq-q svg { transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }

/* ---- Личный кабинет ---- */
.cabinet-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding-bottom: 100px; }
.cabinet-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; height: fit-content; }
.cabinet-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; margin-bottom: 12px; }
.cabinet-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cabinet-menu a.active, .cabinet-menu a:hover { background: var(--surface-2); color: var(--text); }
.cabinet-content .content-block { display: none; }
.cabinet-content .content-block.active { display: block; animation: card-in .3s ease; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.order-card .order-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
.build-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---- Профиль: карточки-факты + смена пароля ---- */
.profile-facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.profile-fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  transition: border-color .2s;
}
.profile-fact:hover { border-color: var(--accent); }
.profile-fact-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.profile-fact-label { color: var(--text-muted); font-size: 12.5px; margin-bottom: 2px; }
.profile-fact-value { font-weight: 700; font-size: 15px; }

.profile-password-card { padding: 26px; max-width: 440px; }
.profile-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.profile-field label { font-size: 13px; color: var(--text-muted); }
.profile-field input { width: 100%; }

@media (max-width: 700px) {
  .profile-facts-grid { grid-template-columns: 1fr; }
}

.warranty-banner { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.warranty-ok { background: rgba(52,211,153,.12); color: var(--success); }
.warranty-expired { background: rgba(245,101,101,.12); color: var(--danger); }
.warranty-none { background: var(--surface-2); color: var(--text-muted); font-weight: 400; }

.repair-items-table { width: 100%; border-collapse: collapse; }
.repair-items-table th, .repair-items-table td { padding: 8px 10px; text-align: left; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.repair-items-table th { color: var(--text-muted); font-weight: 600; }
.repair-items-table tr:last-child td { border-bottom: none; }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-new { background: rgba(79,124,255,.15); color: var(--accent); }
.status-awaiting_assembly { background: rgba(148,163,184,.15); color: #94a3b8; }
.status-assembling { background: rgba(246,173,85,.15); color: var(--warning); }
.status-ready { background: rgba(79,124,255,.15); color: var(--accent); }
.status-delivering { background: rgba(124,92,255,.15); color: #7c5cff; }
.status-done { background: rgba(52,211,153,.15); color: var(--success); }
.status-cancelled { background: rgba(245,101,101,.15); color: var(--danger); }

/* ---- Правовые страницы (контакты/оферта/политика) ---- */
.legal-content { padding-bottom: 100px; max-width: 820px; }
.legal-content h2 { margin-top: 40px; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.legal-content h3 { margin: 26px 0 8px; font-size: 18px; }
.legal-content ul { padding-left: 22px; margin: 8px 0 14px; list-style: disc; }
.legal-content li { margin-bottom: 4px; }
.legal-content li::marker { color: var(--accent); }
.legal-content a { color: var(--accent); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .support-layout { grid-template-columns: 1fr; }
  .cabinet-layout { grid-template-columns: 1fr; }
}
