/* ==========================================================================
   Личный кабинет, О компании, Сервис, Контакты, Вход/Регистрация
   ========================================================================== */

.page-title { font-size: var(--fs-h1); font-weight: var(--fw-bold); margin: var(--space-5) 0 var(--space-6); }
.page-sub { font-size: var(--fs-body); color: var(--color-graphite-500); max-width: 640px; margin-bottom: var(--space-6); }

/* ---- Личный кабинет ---- */
.acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); padding-bottom: var(--space-8); align-items: start; }
.acc-profile { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-3); }
.acc-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--color-brand-yellow); color: var(--color-graphite-900); font-weight: var(--fw-bold); display: flex; align-items: center; justify-content: center; }
.acc-name { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.acc-email { font-size: 12px; color: var(--color-graphite-500); }
.acc-nav a { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--color-graphite-700); margin-bottom: 2px; }
.acc-nav a.active { background: var(--color-brand-yellow-50); color: var(--color-graphite-900); font-weight: var(--fw-semibold); }
.acc-nav a .cnt { margin-left: auto; background: var(--color-bg-subtle); color: var(--color-graphite-500); font-size: 11px; border-radius: 10px; padding: 1px 7px; }
.acc-tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-5); }
.acc-tab { font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--color-graphite-500); padding-bottom: var(--space-3); border-bottom: 2px solid transparent; }
.acc-tab.active { color: var(--color-graphite-900); font-weight: var(--fw-semibold); border-color: var(--color-brand-yellow-600); }
.order-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-3); }
.order-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.order-card__num { font-size: var(--fs-body); font-weight: var(--fw-bold); }
.order-card__date { font-size: 12px; color: var(--color-graphite-500); }
.order-card__status { font-size: 12px; font-weight: var(--fw-semibold); padding: 4px 10px; border-radius: var(--radius-pill); }
.status--processing { background: #fff4e0; color: #b26a00; }
.status--delivered { background: var(--color-success-bg); color: var(--color-success); }
.status--cancelled { background: var(--color-danger-bg); color: var(--color-danger); }
.order-card__items { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.order-card__thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; }
.order-card__total { font-size: var(--fs-body); font-weight: var(--fw-bold); }

/* ---- О компании ---- */
.about-hero {
  position: relative; min-height: 220px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(115deg, #1a1c1f 0%, #2b2e33 60%, #3a3d42 100%);
  margin: var(--space-5) 0 var(--space-6);
  display: flex; align-items: center; padding: var(--space-6);
}
.about-hero::before { content:''; position:absolute; inset:0; background:linear-gradient(90deg, rgba(10,12,15,.9), rgba(10,12,15,.3)); }
.about-hero__inner { position: relative; z-index: 2; }
.about-hero__title { font-size: var(--fs-h1); font-weight: var(--fw-bold); color: #fff; margin: 0 0 var(--space-2); }
.about-hero__text { font-size: var(--fs-body); color: rgba(255,255,255,.7); max-width: 480px; }
.about-hero__note { position:absolute; top:12px; right:16px; font-size:11px; color:rgba(255,193,7,.6); z-index:2; }
.about-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); padding-bottom: var(--space-8); align-items: start; }
.about-nav a { display: block; padding: var(--space-3); font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--color-graphite-700); border-radius: var(--radius-sm); }
.about-nav a.active { background: var(--color-brand-yellow-50); color: var(--color-graphite-900); font-weight: var(--fw-semibold); }
.about-title { font-size: var(--fs-h2); font-weight: var(--fw-bold); margin-bottom: var(--space-3); }
.about-text { font-size: var(--fs-body); color: var(--color-graphite-700); max-width: 720px; margin-bottom: var(--space-5); }
.stats-row { display: flex; gap: var(--space-7); margin-bottom: var(--space-6); }
.stat-item__num { font-size: 1.75rem; font-weight: var(--fw-bold); color: var(--color-graphite-900); }
.stat-item__label { font-size: var(--fs-body-sm); color: var(--color-graphite-500); }
.adv-title { font-size: var(--fs-h4); font-weight: var(--fw-bold); margin-bottom: var(--space-4); }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-bottom: var(--space-7); }
.adv-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.adv-item__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adv-item__title { font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); }
.adv-item__text { font-size: 12px; color: var(--color-graphite-500); }
.about-consult { display: flex; align-items: center; justify-content: space-between; background: var(--color-graphite-900); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); }
.about-consult__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); color: #fff; margin-bottom: 4px; }
.about-consult__text { font-size: var(--fs-body-sm); color: rgba(255,255,255,.6); }

/* ---- Сервис ---- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-7); }
.svc-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4); }
.svc-card__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3); font-size: 18px; }
.svc-card__title { font-size: var(--fs-body); font-weight: var(--fw-semibold); margin-bottom: 4px; }
.svc-card__text { font-size: var(--fs-body-sm); color: var(--color-graphite-500); }
.svc-steps-block { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-6); align-items: center; margin-bottom: var(--space-8); background: var(--color-bg-subtle); border-radius: var(--radius-lg); padding: var(--space-6); }
.svc-steps__title { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin-bottom: var(--space-4); }
.svc-steps { display: flex; gap: var(--space-5); }
.svc-step { flex: 1; }
.svc-step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--color-brand-yellow); color: var(--color-graphite-900); font-weight: var(--fw-bold); font-size: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); }
.svc-step__text { font-size: var(--fs-body-sm); color: var(--color-graphite-700); }
.svc-photo { height: 160px; border-radius: var(--radius-md); background: linear-gradient(150deg,#e8e8eb,#cfcfd4); display: flex; align-items: center; justify-content: center; color: var(--color-graphite-300); font-size: 12px; }

/* ---- Контакты ---- */
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-8); }
.contact-item { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); }
.contact-item__icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-bg-subtle); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item__title { font-size: var(--fs-body-sm); color: var(--color-graphite-500); }
.contact-item__value { font-size: var(--fs-body); font-weight: var(--fw-semibold); }
.map-placeholder { height: 100%; min-height: 320px; border-radius: var(--radius-md); background: linear-gradient(150deg,#e8e8eb,#cfcfd4); display: flex; align-items: center; justify-content: center; color: var(--color-graphite-300); }
.social-row { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---- Вход / Регистрация ---- */
body.page-subtle { background: var(--color-bg-subtle); }
.auth-page { display: flex; justify-content: center; align-items: flex-start; padding: var(--space-8) var(--space-4); min-height: 60vh; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: var(--space-6) var(--space-6) var(--space-7);
}
.auth-card__logo { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.auth-card__logo img { width: 32px; height: 32px; }
.auth-card__logo span { font-size: var(--fs-h4); font-weight: var(--fw-bold); letter-spacing: .02em; color: var(--color-graphite-900); }
.auth-card__title { font-size: var(--fs-h2); font-weight: var(--fw-bold); text-align: left; margin-bottom: var(--space-6); }

.auth-field { margin-bottom: var(--space-4); }
.auth-field label { display: block; font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--color-graphite-700); margin-bottom: 6px; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--color-graphite-300); display: flex; pointer-events: none;
}
.auth-input-wrap .auth-icon svg { width: 100%; height: 100%; }
.auth-field input {
  display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 11px 12px 11px 40px; font-size: var(--fs-body);
  line-height: normal; transition: border-color var(--transition-fast);
}
.auth-field input:focus { outline: none; border-color: var(--color-accent-blue); }
.auth-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: none;
  color: var(--color-graphite-300); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.auth-toggle svg { width: 18px; height: 18px; }
.auth-toggle .icon-eye-off { display: none; }
.auth-toggle.is-visible .icon-eye { display: none; }
.auth-toggle.is-visible .icon-eye-off { display: block; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); font-size: var(--fs-body-sm); }
.auth-check { display: flex; align-items: flex-start; gap: 8px; color: var(--color-graphite-700); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--color-brand-yellow); }
.auth-link { color: var(--color-accent-blue); font-weight: var(--fw-medium); }
.auth-foot { text-align: center; font-size: var(--fs-body-sm); color: var(--color-graphite-500); margin-top: var(--space-5); }

@media (max-width: 1024px) {
  .acc-layout, .about-layout, .contacts-layout { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-steps-block { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
}

/* ---- Вход/Регистрация на мобильном — форма во весь экран, без "коробки" ---- */
@media (max-width: 640px) {
  body.page-subtle { background: var(--color-bg); }
  .auth-page { padding: var(--space-6) var(--space-4); min-height: auto; }
  .auth-card { max-width: 100%; border: none; box-shadow: none; border-radius: 0; padding: 0; }
}
