/* ===== Внутренние страницы ===== */

.page{display:block}

/* --- Шапка страницы --- */
.ph{background:var(--black);color:var(--white);position:relative;overflow:hidden}
.ph::before,.ph::after{content:"";position:absolute;border-radius:50%;filter:blur(90px);pointer-events:none}
.ph::before{width:520px;height:520px;right:-160px;top:-220px;background:rgba(215,25,32,.38)}
.ph::after{width:420px;height:420px;left:-180px;bottom:-240px;background:rgba(215,25,32,.22)}
.ph__inner{position:relative;z-index:1;padding:46px 20px 52px}
.ph__crumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13.5px;color:#A6A6AE;margin-bottom:22px;list-style:none;padding:0}
.ph__crumb li{display:flex;align-items:center;gap:8px;min-width:0}
.ph__crumb li+li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--red);flex:none}
.ph__crumb [aria-current]{overflow-wrap:anywhere}
.ph__crumb a{color:var(--gray-300);text-decoration:none;border-bottom:1px solid transparent;transition:color .15s ease,border-color .15s ease}
.ph__crumb a:hover{color:var(--white);border-bottom-color:var(--red)}
.ph__crumb [aria-current]{color:#C9C9D0}
.ph__kicker{display:inline-block;background:var(--red);color:var(--white);border-radius:999px;padding:6px 16px;font-size:12.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;margin-bottom:16px}
.ph h1{font-size:clamp(28px,3.8vw,44px);line-height:1.14;font-weight:800;max-width:880px;margin:0 0 16px;color:var(--white)}
.ph__lead{font-size:clamp(16px,1.5vw,18px);line-height:1.6;color:var(--gray-300);max-width:780px;margin:0 0 20px}
.ph__lead a,.ph p a{color:var(--white);text-decoration:underline;text-decoration-color:rgba(215,25,32,.7);text-underline-offset:3px}
.ph__lead a:hover,.ph p a:hover{color:#ff6b70}
.ph__price{display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,#e4232a,#b01319);color:var(--white);border-radius:999px;padding:11px 22px;font-size:16.5px;font-weight:700;box-shadow:0 10px 26px rgba(215,25,32,.38);margin:2px 0 20px}
.ph__price::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--white);opacity:.9;flex:none}
.ph__actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:22px}
.ph__actions .btn{font-size:15px;padding:11px 22px}
.ph__intro{font-size:15.5px;line-height:1.65;color:rgba(255,255,255,.82);max-width:800px;margin:0}
.ph__intro+.ph__intro{margin-top:10px}

/* --- Секции --- */
.ps{padding:58px 0 0}
.ps--tint{background:var(--gray-100);margin-top:58px;padding:54px 0}
.ps--tint+.ps--tint{margin-top:0}
.ps--flat{padding-top:0}
.page>.ps:last-child{padding-bottom:72px}
.ps__title{font-size:clamp(22px,2.6vw,30px);font-weight:800;line-height:1.2;display:flex;align-items:center;gap:14px;margin:0 0 20px;scroll-margin-top:100px}
.ps__title::before{content:"";width:8px;height:30px;border-radius:4px;background:var(--red);flex:none}
.ps p{font-size:15.5px;line-height:1.65;margin:0 0 12px;max-width:860px}
.ps p a{color:var(--red);font-weight:600;text-decoration:none;border-bottom:1px solid rgba(215,25,32,.35);transition:color .15s ease,border-color .15s ease}
.ps p a:hover{color:var(--red-dark);border-bottom-color:var(--red-dark)}
.ps__note{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--gray-500);margin:14px 0 0;max-width:760px}
.ps__note::before{content:"i";flex:none;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--gray-300);color:var(--gray-500);font-size:12px;font-weight:700;font-style:normal;display:flex;align-items:center;justify-content:center;margin-top:1px}

/* --- Таблица цен --- */
.ptable-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--gray-100);background:var(--white);box-shadow:0 14px 34px rgba(17,17,17,.05)}
.ps--tint .ptable-wrap{border:0}
.ptable{width:100%;min-width:520px;border-collapse:collapse;font-size:15px}
.ptable th{background:var(--black);color:var(--white);text-align:left;font-size:12.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:14px 18px}
.ptable td{padding:14px 18px;border-bottom:1px solid var(--gray-100);vertical-align:top;line-height:1.5}
.ptable tbody tr:last-child td{border-bottom:0}
.ptable tbody tr{transition:background .12s ease}
.ptable tbody tr:hover{background:#faf7f7}
.ptable td:first-child{font-weight:600}
.ptable td:last-child{color:var(--gray-500);white-space:nowrap}
.ptable td:nth-child(2){font-weight:700;white-space:nowrap}
.ptable td:nth-child(2):first-letter{color:inherit}
.ptable tr td:nth-child(2){color:var(--black)}

/* --- Списки --- */
.ps__list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:12px;max-width:860px}
.ps__list li{position:relative;padding-left:32px;font-size:15.5px;line-height:1.6}
.ps__list li::before{content:"";position:absolute;left:0;top:3px;width:18px;height:18px;border-radius:6px;background:rgba(215,25,32,.12);border:1.5px solid var(--red)}
.ps__list li::after{content:"";position:absolute;left:5px;top:8px;width:9px;height:5px;border-left:2px solid var(--red);border-bottom:2px solid var(--red);transform:rotate(-45deg)}
.ps__list li strong{color:var(--black)}

/* --- Шаги --- */
.ps__steps{list-style:none;counter-reset:pstep;margin:6px 0 0;padding:0;max-width:860px}
.ps__steps li{position:relative;counter-increment:pstep;padding:0 0 18px 56px;margin:0;font-size:15.5px;line-height:1.6}
.ps__steps li::before{content:counter(pstep);position:absolute;left:0;top:0;width:36px;height:36px;border-radius:12px;background:var(--black);color:var(--white);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;box-shadow:inset 0 0 0 2px var(--black),inset 0 -3px 0 var(--red)}
.ps__steps li::after{content:"";position:absolute;left:17px;top:42px;bottom:2px;width:2px;background:linear-gradient(var(--gray-300),transparent)}
.ps__steps li:last-child{padding-bottom:0}
.ps__steps li:last-child::after{display:none}
.ps__steps a{color:var(--red);font-weight:600;text-decoration:none;border-bottom:1px solid rgba(215,25,32,.35)}
.ps__steps a:hover{border-bottom-color:var(--red)}

/* --- CTA-блок --- */
.ps__cta{position:relative;background:var(--black);color:var(--white);border-radius:var(--radius);padding:26px 30px 26px 34px;margin:26px 0 0;font-size:15.5px;line-height:1.6;max-width:900px;overflow:hidden}
.ps__cta::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#e4232a,#b01319)}
.ps__cta strong{display:block;font-size:18px;margin-bottom:6px}
.ps__cta a{color:var(--white);font-weight:600;text-decoration:none;border-bottom:1.5px solid var(--red)}
.ps__cta a:hover{color:#ff8a8e}

/* --- Карточка «частые проблемы» --- */
.page__problems{background:var(--gray-100);border-radius:var(--radius);padding:18px 22px;margin:44px 0 0;font-size:15px;line-height:1.65;color:var(--gray-700)}
.page__problems a{color:var(--red);font-weight:600;text-decoration:none;border-bottom:1px solid rgba(215,25,32,.3)}
.page__problems a:hover{border-bottom-color:var(--red)}
.ps p.diag-note{font-size:13px;color:var(--gray-500);margin:10px 0 0;max-width:860px}

/* --- Контактная полоса --- */
.page__contacts{background:var(--black);color:var(--gray-300);border-radius:var(--radius);padding:22px 26px;margin:16px 0 0;font-size:15px;line-height:1.8;text-align:center}
.page__contacts a,.ps p.page__contacts a{color:var(--white);font-weight:600;text-decoration:none;border-bottom:1px solid var(--gray-700);transition:color .15s ease,border-color .15s ease}
.page__contacts a:hover,.ps p.page__contacts a:hover{color:#ff6b70;border-bottom-color:var(--red)}

/* --- Чипы связанных страниц --- */
.ps__chips{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 0}
.ps__chips a{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1.5px solid var(--gray-300);border-radius:999px;text-decoration:none;font-size:14px;font-weight:600;color:var(--black);background:var(--white);transition:border-color .15s ease,color .15s ease,transform .15s ease}
.ps__chips a::after{content:"→";color:var(--red);font-weight:700}
.ps__chips a:hover{border-color:var(--red);color:var(--red);transform:translateY(-2px)}

/* --- FAQ --- */
.faq{display:grid;gap:10px;max-width:860px;margin:4px 0 0}
.faq details{background:var(--white);border:1.5px solid var(--gray-100);border-radius:16px;transition:border-color .15s ease}
.faq details[open]{border-color:rgba(215,25,32,.5)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:16px 20px;font-size:16px;font-weight:700;line-height:1.4}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;width:28px;height:28px;border-radius:50%;background:var(--gray-100);color:var(--black);font-size:20px;font-weight:600;display:flex;align-items:center;justify-content:center;transition:transform .2s ease,background .2s ease,color .2s ease}
.faq details[open] summary::after{transform:rotate(45deg);background:var(--red);color:var(--white)}
.faq details[open] summary{color:var(--red-dark)}
.faq details p{padding:0 20px 18px;font-size:15px;line-height:1.65;color:var(--gray-700);margin:0;max-width:none}

/* --- Политика конфиденциальности --- */
.legal{padding:52px 0 76px;font-size:15px;line-height:1.7;color:var(--gray-700)}
.legal h1{font-size:clamp(26px,3.2vw,36px);font-weight:800;line-height:1.15;color:var(--black);margin:0 0 10px}
.legal__updated{display:inline-block;font-size:13px;font-weight:600;color:var(--gray-500);background:var(--gray-100);border-radius:999px;padding:6px 14px;margin-bottom:34px}
.legal h2{font-size:clamp(18px,2vw,21px);font-weight:800;color:var(--black);margin:38px 0 12px;padding-top:26px;border-top:1px solid var(--gray-100);display:flex;align-items:baseline;gap:12px;scroll-margin-top:100px}
.legal h2::before{content:"";width:7px;height:22px;border-radius:4px;background:var(--red);flex:none;align-self:center}
.legal p{margin:0 0 12px;max-width:860px}
.legal ul{margin:0 0 14px;padding:0;list-style:none;display:grid;gap:8px;max-width:860px}
.legal li{position:relative;padding-left:24px}
.legal li::before{content:"";position:absolute;left:2px;top:9px;width:8px;height:8px;border-radius:50%;background:var(--red)}
.legal a{color:var(--red);font-weight:600;text-decoration:none;border-bottom:1px solid rgba(215,25,32,.35)}
.legal a:hover{border-bottom-color:var(--red)}

/* --- Адаптив --- */
@media (max-width:760px){
  .ph__inner{padding:34px 16px 40px}
  .ps{padding:44px 0 0}
  .ps--tint{margin-top:44px;padding:42px 0}
  .page>.ps:last-child{padding-bottom:56px}
  .ps__title{gap:10px}
  .ps__title::before{width:6px;height:24px}
  .ptable{min-width:0;width:100%;font-size:13.5px}
  .ptable th{padding:11px 10px;font-size:11px}
  .ptable td{padding:11px 10px}
  .ptable td:first-child{overflow-wrap:anywhere}
  .ptable td:nth-child(2),.ptable td:last-child{white-space:normal;overflow-wrap:anywhere}
  .ps__cta{padding:22px 20px 22px 26px;border-radius:18px}
  .ps__steps li{padding-left:48px}
  .page__contacts{text-align:left}
  .faq summary{font-size:15px;padding:14px 16px}
  .faq details p{padding:0 16px 16px}
  .page__contacts a,.ps__cta a,.page__problems a{display:inline-block;padding:8px 6px;margin:-8px -6px}
}
