/* 06.11 · Страница «Тарифы» (/ceny/): первый экран с тремя тарифами и условия оплаты. Остальные блоки — из страницы услуги */
.page-ceny main>.section:first-child{padding-top:0}
.tfh{padding:clamp(120px,12vw,168px) 0 clamp(64px,7vw,110px);background:var(--paper)}
.tfh__top{display:flex;flex-direction:column;align-items:center;text-align:center}
.tfh .u-crumbs{justify-content:center}
.tfh__h{margin:22px 0 0;font-size:clamp(40px,6vw,88px);font-weight:600;line-height:.98;letter-spacing:-.045em;text-wrap:balance;max-width:13em}
.tfh__h .fw-g{color:var(--ink-3)}
.tfh__l{margin:22px 0 0;max-width:40em;font-size:clamp(16px,1.35vw,19px);line-height:1.5;color:var(--ink-2);text-wrap:pretty}
.tfh__l b{color:var(--ink);font-weight:600}

/* переключатели */
.tf-ctl{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:34px}
.tf-sw{position:relative;display:inline-flex;padding:4px;border-radius:999px;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.tf-sw button{position:relative;z-index:1;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border:0;border-radius:999px;background:none;font:inherit;font-size:15px;font-weight:600;color:var(--ink-2);cursor:pointer;white-space:nowrap;transition:color .25s,background .25s}
.tf-sw button[aria-pressed="true"]{background:var(--ink);color:#fff}
.tf-sw button:focus{outline:none}
.tf-sw button:focus-visible{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--ink-3)}
.tf-sw small{display:inline-grid;place-items:center;height:22px;padding:0 8px;border-radius:999px;background:rgba(31,157,85,.12);color:var(--good);font-size:12px;font-weight:700}
.tf-sw button[aria-pressed="true"] small{background:var(--good);color:#fff}

/* карточки тарифов */
.tf-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:40px;align-items:stretch}
.tf-c{position:relative;display:flex;flex-direction:column;min-width:0;padding:30px 30px 28px;border-radius:var(--r-xl);background:#fff;color:var(--ink)}
.tf-c__k{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px}
.tf-c__n{font-size:26px;font-weight:600;letter-spacing:-.03em}
.tf-c__tag{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:var(--accent);color:#fff;font-size:12.5px;font-weight:600;white-space:nowrap}
.tf-c__d{margin:10px 0 0;font-size:15px;line-height:1.45;color:var(--ink-2);min-height:3em}
.tf-c__pl{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}
.tf-c__pl span{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px 0 6px;border-radius:999px;background:var(--paper);font-size:13px;font-weight:600;white-space:nowrap}
.tf-c__pl img,.tf-c__pl .ltop-ico{width:22px;height:22px;border-radius:50%;flex:none}
.tf-c__pl .ltop-ico{display:grid;place-items:center;font-size:6.5px;line-height:1;font-weight:800;text-align:center}
.tf-c__p{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}
.tf-c__v{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
.tf-c__v b{font-size:clamp(40px,3.6vw,52px);font-weight:600;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}
.tf-c__v s{font-size:17px;color:var(--ink-3);text-decoration-thickness:1.5px}
.tf-c__u{display:block;margin-top:8px;font-size:14px;color:var(--ink-3)}
.tf-c .btn{margin-top:22px;width:100%;justify-content:space-between}
.tf-c__li{display:grid;gap:11px;margin:24px 0 0;padding:0;list-style:none}
.tf-c__li>p{margin:0 0 2px;font-size:13.5px;font-weight:600;color:var(--ink-3)}
.tf-c__li li{display:flex;gap:11px;align-items:flex-start;font-size:15px;line-height:1.4}
.tf-c__li i{display:grid;place-items:center;width:20px;height:20px;margin-top:1px;flex:none;border-radius:50%;background:var(--good);color:#fff}
.tf-c__li svg{width:12px;height:12px}

/* центральный — тёмный */
.tf-c--on{background:var(--dark);color:#fff;box-shadow:0 40px 70px -40px rgba(14,14,16,.55)}
.tf-c--on .tf-c__d,.tf-c--on .tf-c__u,.tf-c--on .tf-c__li>p{color:var(--dark-ink-2)}
.tf-c--on .tf-c__pl span{background:rgba(255,255,255,.08);color:#fff}
.tf-c--on .tf-c__p{border-top-color:rgba(255,255,255,.12)}
.tf-c--on .tf-c__v s{color:rgba(255,255,255,.4)}

.tf-note{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 26px;margin-top:26px;font-size:14.5px;color:var(--ink-2)}
.tf-note span{display:inline-flex;align-items:center;gap:8px}
.tf-note span::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--good)}

/* условия оплаты */
.tfp{background:var(--bg)}
.tfp__g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:40px}
.tfp__c{display:flex;flex-direction:column;gap:10px;padding:26px;border-radius:var(--r-lg);background:var(--paper)}
.tfp__c i{display:grid;place-items:center;width:44px;height:44px;margin-bottom:6px;border-radius:14px;background:#fff;color:var(--ink)}
.tfp__c i svg{width:20px;height:20px}
.tfp__c b{font-size:19px;font-weight:600;letter-spacing:-.02em}
.tfp__c p{margin:0;font-size:15px;line-height:1.45;color:var(--ink-2)}

/* общая таблица: без ссылки на саму себя */
.page-ceny .b8-all{display:none}

@media (max-width:1100px){
  .tf-g{grid-template-columns:1fr;max-width:620px;margin-left:auto;margin-right:auto}
  .tf-c__d{min-height:0}
  .tf-c--on{order:-1}
  .tfp__g{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .tfh{padding-top:108px}
  .tf-ctl{flex-direction:column;align-items:stretch;width:100%}
  .tf-sw{display:grid;grid-template-columns:1fr 1fr}
  .tf-sw button{justify-content:center;padding:0 10px;font-size:14px}
  .tf-c{padding:24px 20px 22px;border-radius:var(--r-lg)}
  .tf-c__n{font-size:23px}
  .tfp__g{grid-template-columns:1fr;gap:8px;margin-top:28px}
  .tfp__c{display:grid;grid-template-columns:40px 1fr;column-gap:14px;row-gap:4px;padding:18px 18px 18px 16px;border-radius:var(--r-md)}
  .tfp__c i{grid-row:span 2;width:40px;height:40px;margin:0;border-radius:12px}
  .tfp__c b{font-size:17px;align-self:center}
  .tfp__c p{font-size:14.5px}
  .tf-note{flex-direction:column;align-items:flex-start;gap:8px;max-width:340px;margin-left:auto;margin-right:auto}
}
