/* Работа с текстом. Шапка, вопросы и призыв — components.css */
.inline-link{color:var(--brand);text-decoration:underline;text-underline-offset:4px}

/* Выбор услуги — как «Выберите вид услуги» на странице «Стоимость издания» (prices.css, .price-services) */
.text-services__hint{margin:36px 0 22px;font:500 24px/1.3 var(--reading-font);letter-spacing:-.02em;color:var(--ink)}
.text-services{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--radius-xs);background:#fff}
.text-service{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 12px 18px;border-right:1px solid var(--line);cursor:pointer;text-align:center;transition:background .2s}
.text-service:last-child{border-right:0}
.text-service:hover{background:var(--soft)}
.text-service:last-child{border-right:0}
.text-service input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.text-service img{width:96px;height:96px;object-fit:contain;mix-blend-mode:multiply;transition:transform .2s}
.text-service:hover img{transform:translateY(-2px)}
.text-service__title{margin:0;font-family:var(--body-font);font-size:15px;font-weight:500;line-height:1.35;color:var(--muted)}
.text-service::after{content:'';position:absolute;left:-1px;right:-1px;bottom:-1px;height:3px;background:transparent}
.text-service:has(input:checked){background:var(--soft)}
.text-service:has(input:checked) .text-service__title{color:var(--brand)}
.text-service:has(input:checked)::after{background:var(--brand)}
.text-service:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:-2px}

.text-panel{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center;margin-top:var(--space-6);padding-top:0;border-top:0}
.text-panel[hidden]{display:none}
.text-panel__copy h2{margin-bottom:22px}
.text-panel__copy p{font-family:var(--body-font);font-size:18px;line-height:1.8;color:var(--text);margin-bottom:30px}
.text-panel__media img{width:100%;max-width:440px;height:auto;margin:0 auto}
.text-panel__media--quotes h6{margin:0 0 8px;font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--brand)}
.text-panel__media--quotes h6:not(:first-child){margin-top:22px}
.text-quote{margin:0;padding:18px 22px;border-left:2px solid var(--brand);background:#f6f6f4}
.text-quote p{font-family:var(--body-font);font-size:15px;line-height:1.7;color:var(--text)}

.text-academy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-6);margin-top:40px}
.text-academy__card{display:flex;flex-direction:column;align-items:start;border:1px solid var(--line);border-radius:var(--radius-xl);background:var(--white);overflow:hidden}
.text-academy__card img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover}
.text-academy__card img.text-academy__img--bottom{object-position:0 83%}
.text-academy__card h3{font-size:24px;font-weight:500;letter-spacing:-.03em;margin:22px 24px 12px}
.text-academy__card p{font-family:var(--body-font);font-size:16px;line-height:1.65;color:var(--text-soft);margin:0 24px 20px}
.text-academy__card .text-link{margin:auto 24px 26px}

.text-skills{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:64px;align-items:center}
.text-skills img{width:100%;max-width:520px;height:auto}
.text-skills h2{margin-bottom:22px}
.text-skills p{font-family:var(--body-font);font-size:18px;line-height:1.8;color:var(--text)}
.text-skills .actions{margin-top:30px}

.text-prices{max-width:none}
.text-prices h2{margin-bottom:30px}
.text-price-table{width:100%;border-collapse:collapse;border-top:1px dotted var(--line-strong);border-bottom:1px dotted var(--line-strong)}
.text-price-table th,.text-price-table td{padding:14px 12px;border-bottom:1px dotted var(--line-strong);text-align:left;vertical-align:middle}
.text-price-table tr:last-child th,.text-price-table tr:last-child td{border-bottom:0}
.text-price-table th{position:relative;padding-left:0;font:400 16px/1.5 var(--body-font);color:var(--ink)}
.text-price-table td{font:14px/1.5 var(--body-font);color:var(--text-soft);white-space:nowrap}
.text-price-table td:last-child{padding-right:0;text-align:right;font:600 16px/1.5 var(--reading-font);color:var(--ink)}
.price-hint{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:6px;padding:0;border:1px solid var(--line-strong);border-radius:50%;background:#fff;font:500 12px/1 var(--reading-font);color:var(--text-soft);vertical-align:1px}
.price-hint:hover,.price-hint:focus-visible{border-color:var(--brand);color:var(--brand)}
.price-hint::after{content:attr(data-hint);display:none;position:absolute;z-index:5;left:0;top:calc(100% - 4px);width:max-content;max-width:min(340px,calc(100vw - 64px));padding:12px 14px;border-radius:var(--radius-sm);background:#222;color:#fff;font:13px/1.55 var(--ui-font);text-align:left;box-shadow:var(--shadow-tip)}
.price-hint:hover::after,.price-hint:focus::after{display:block}

@media(max-width:1000px){
 .text-services{grid-template-columns:repeat(3,minmax(0,1fr))}
 .text-service:nth-child(3){border-right:0}
 .text-service:nth-child(-n+3){border-bottom:1px solid var(--line)}
 .text-service img{width:76px;height:76px}
 .text-academy{grid-template-columns:1fr 1fr;gap:28px}}
@media(max-width:800px){
 .text-panel,.text-skills{grid-template-columns:1fr;gap:30px}
 .text-panel__media img{max-width:340px}}
@media(max-width:560px){
 .text-service{padding:14px 6px 12px}
 .text-service img{width:60px;height:60px}
 .text-service__title{font-size:13px}
 .text-services__hint{font-size:21px}
 .text-panel{margin-top:var(--space-5);padding-top:0}
 .text-panel__copy p,.text-skills p{font-size:17px}
 .text-academy{grid-template-columns:1fr}
 .text-academy__card h3{font-size:22px}
 .text-price-table th{font-size:15px}
 .text-price-table th,.text-price-table td{padding:12px 6px}
 .text-price-table td{font-size:12px}
 .text-price-table td:last-child{font-size:15px}}
