/* Публичная главная страница. Цвета и шрифты берутся из style.css. */
.hm a{color:var(--accent)}
.hm a.btn--primary{color:#0B0F14}
.hm a.btn--ghost{color:var(--text)}
.hm .btn{text-decoration:none; display:inline-block}
.btn--lg{padding:13px 22px; font-size:16px; border-radius:10px}
.btn--ghost{background:transparent; color:var(--text); border:1px solid var(--border)}
.btn--ghost:hover{border-color:var(--accent)}
.sr-only{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}

.hm-hero{padding:56px 0 40px; border-bottom:1px solid var(--border); background:radial-gradient(900px 300px at 20% -10%, rgba(107,154,196,.12), transparent)}
.hm-hero h1{font-size:clamp(32px,6vw,52px); line-height:1.08; max-width:18ch; margin-bottom:16px; letter-spacing:-.01em}
.hm-lead{font-size:clamp(16px,2.2vw,19px); color:var(--muted); max-width:62ch; margin-bottom:24px}
.hm-cta{display:flex; flex-wrap:wrap; gap:12px; margin:0}
.hm-fine{margin-top:14px; font-size:13px; color:var(--muted); max-width:62ch}

.hm-sec{padding:44px 0 4px}
.hm-sec h2{font-size:clamp(22px,3.4vw,28px); margin-bottom:8px}
.hm-dek, .hm-text{color:var(--muted); max-width:70ch; margin:0 0 20px}
.hm-text{margin-bottom:0}

.hm-tiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
.hm-tile{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; min-width:0}
.hm-tile__l{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.06em}
.hm-tile__v{font-size:clamp(18px,2.6vw,22px); font-weight:650; margin-top:6px; line-height:1.2; font-variant-numeric:tabular-nums}
.hm-tile__s{color:var(--muted); font-size:13px; margin-top:4px; min-height:1.2em}
.hm-table{margin-top:14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; font-variant-numeric:tabular-nums}
.hm-table th, .hm-table td{padding:12px 16px}
.hm-table th[scope=row]{text-align:left; color:var(--text); font-size:15px; font-weight:600; text-transform:none; letter-spacing:0}
.hm-table th[scope=row] span{color:var(--muted); font-weight:400; margin-left:6px; font-size:13px}
.hm-table thead th{font-size:12px}
.hm-stale{margin-top:12px; color:var(--warn); font-size:14px}
.hm-note{margin-top:12px; font-size:13px; color:var(--muted)}

.hm-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px}
.hm-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px}
.hm-card h3{font-size:16px; margin-bottom:8px}
.hm-card p{color:var(--muted); font-size:14px}

.hm-steps{list-style:none; margin:16px 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; counter-reset:s}
.hm-steps li{counter-increment:s; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:18px; display:flex; flex-direction:column; gap:6px}
.hm-steps li::before{content:counter(s); width:28px; height:28px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-weight:700; display:grid; place-items:center; margin-bottom:4px}
.hm-steps b{font-size:16px}
.hm-steps span{color:var(--muted); font-size:14px}

.hm-price{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:24px; margin:16px 0 20px; align-items:center}
.hm-price__n{font-size:18px; color:var(--muted)}
.hm-price__n b{font-size:46px; color:var(--text); line-height:1}
.hm-price__t{color:var(--muted); margin-top:10px}
.hm-list{margin:0; padding:0; list-style:none; display:grid; gap:8px}
.hm-list li{padding-left:22px; position:relative; font-size:14px}
.hm-list li::before{content:"✓"; position:absolute; left:0; color:var(--up); font-weight:700}

.hm-faq{display:grid; gap:8px; max-width:820px}
.hm-faq details{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius)}
.hm-faq summary{cursor:pointer; padding:14px 16px; font-weight:600; list-style:none}
.hm-faq summary::-webkit-details-marker{display:none}
.hm-faq summary::before{content:"▸"; color:var(--accent); margin-right:8px; display:inline-block; transition:transform .15s}
.hm-faq details[open] summary::before{transform:rotate(90deg)}
.hm-faq p{padding:0 16px 16px; color:var(--muted); font-size:14px}

.hm-final{text-align:center; padding:56px 0 8px}
.hm-final .hm-cta{justify-content:center}
.hm-more{margin-top:16px}

@media (max-width:900px){
  .hm-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hm-grid, .hm-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .hm-hero{padding:36px 0 28px}
  .hm-grid, .hm-steps{grid-template-columns:1fr}
  .hm-price{grid-template-columns:1fr; padding:18px}
  .hm-cta .btn{width:100%; text-align:center}
  .hm-sec{padding-top:34px}
  .hm .topnav, .topnav{gap:6px}
}
@media (max-width:380px){
  .hm-tiles{grid-template-columns:1fr}
}

/* отзывы (общие стили списка: главная и /reviews) */
.rv-list{display:grid; gap:12px; margin-top:14px}
.rv{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px}
.rv__h{display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; margin-bottom:8px}
.rv__stars{color:var(--warn); letter-spacing:2px; font-size:16px}
.rv__name{font-size:15px}
.rv__date{color:var(--muted); font-size:13px; margin-left:auto}
.rv__body{color:var(--text); font-size:15px; overflow-wrap:anywhere}
.rv__reply{margin-top:12px; padding:10px 12px; border-left:3px solid var(--accent); background:var(--accent-soft); border-radius:0 8px 8px 0; font-size:14px; color:var(--text)}
.rv-sum{margin:6px 0 0; color:var(--muted)}
.rv-sum__stars{color:var(--warn); letter-spacing:2px}
.rv-sum strong{color:var(--text)}
.rv-empty{color:var(--muted); padding:20px; border:1px dashed var(--border); border-radius:var(--radius); background:var(--surface)}

/* на телефоне общий стиль превращает таблицы в карточки; таблица цен остаётся таблицей */
@media (max-width:640px){
  .hm-table{display:table; width:100%}
  .hm-table thead{display:table-header-group}
  .hm-table tbody{display:table-row-group; width:auto}
  .hm-table tr{display:table-row; padding:0; border:0}
  .hm-table th, .hm-table td{display:table-cell; width:auto; padding:10px 12px; border-bottom:1px solid var(--border); text-align:right; vertical-align:middle}
  .hm-table th[scope=row]{text-align:left}
  .hm-table th[scope=col]:first-child{text-align:left}
  .hm-table td::before{content:none}
  .hm-table tr:last-child th, .hm-table tr:last-child td{border-bottom:0}
}
