/* carata 04.11: читаемость — шрифты, ширина текста, ссылки, заголовки.
   Подключается в header.php последним стилем. Меняется здесь — меняется на всём сайте. */

/* «Roboto» указан в старых стилях без запасного шрифта, а файла на сайте нет — сопоставляем с системными шрифтами,
   чтобы на Windows не подставлялся Times New Roman */
@font-face{font-family:"Roboto";src:local("Roboto"),local("Roboto-Regular"),local("Segoe UI"),local("SegoeUI"),local("Helvetica Neue"),local("HelveticaNeue"),local("Arial"),local("ArialMT");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Roboto";src:local("Roboto Medium"),local("Roboto-Medium"),local("Segoe UI Semibold"),local("SegoeUI-Semibold"),local("Helvetica Neue Medium"),local("HelveticaNeue-Medium"),local("Arial"),local("ArialMT");font-weight:500 600;font-style:normal;font-display:swap}
@font-face{font-family:"Roboto";src:local("Roboto Bold"),local("Roboto-Bold"),local("Segoe UI Bold"),local("SegoeUI-Bold"),local("Helvetica Neue Bold"),local("HelveticaNeue-Bold"),local("Arial Bold"),local("Arial-BoldMT");font-weight:700 900;font-style:normal;font-display:swap}

:root{
  --crt-font-text:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --crt-font-head:"Roboto Slab",Georgia,"Times New Roman",serif;
  --crt-navy:#193461;--crt-link:#1b74a8;--crt-link-hover:#135f8c;--crt-text:#222;--crt-muted:#4a5668
}

/* 2. Основной текст — системный шрифт для экрана; заголовки и названия блоков — фирменный Roboto Slab */
html,body{font-family:var(--crt-font-text)}
h1,h2,h3,h4,h5,h6,[class*="title"],.crt-adv__t{font-family:var(--crt-font-head)}

/* 8. H1 без капса */
.wrapper__body h1{text-transform:none;letter-spacing:0}

/* Описание раздела каталога: базовая типографика */
.catalog-section-description .col{font-size:16px;line-height:1.65;color:var(--crt-text)}
.catalog-section-description .col p{line-height:1.65}
.catalog-section-description .col li{line-height:1.6}

/* 1. Ширина строки текста ~70–80 знаков; блоки, карточки и таблицы остаются на всю ширину */
.catalog-section-description :is(.col,.crt-msk,.crt-msk__tail)>:is(p,ul:not([class]),ol:not([class]),blockquote,h2,h3,h4){max-width:820px}
.catalog-section-description .crt-msk__faq{max-width:900px}

/* 7. Единая шкала заголовков в описаниях */
.catalog-section-description h2{font-size:26px;line-height:1.25;font-weight:700;color:var(--crt-navy)}
.catalog-section-description h3{font-size:19px;line-height:1.3;font-weight:700;color:var(--crt-navy)}
.catalog-section-description .col>h2{margin:40px 0 14px}
.catalog-section-description .col>h3{margin:28px 0 10px}
.catalog-section-description .col>h2:first-child,.catalog-section-description .col>h3:first-child{margin-top:0}

/* 3. Подписи и примечания — крупнее и темнее */
.catalog-section-description .crt-msk .crt-msk__cap,.catalog-section-description .crt-msk .crt-msk__note{font-size:15px;line-height:1.55;color:var(--crt-muted)}
.catalog-section-description .crt-msk .crt-msk__note{max-width:900px}
.catalog-section-description .crt-msk .crt-msk__steps li{font-size:15px;line-height:1.5}

/* 5. FAQ — крупнее, просторнее, открытый вопрос выделен */
.catalog-section-description .crt-msk__faq details{border:1px solid #e3eaf2;border-radius:14px;background:#fff;margin:0 0 10px;transition:box-shadow .2s,border-color .2s}
.catalog-section-description .crt-msk__faq details:hover{border-color:#cfe0ee}
.catalog-section-description .crt-msk__faq details[open]{border-color:#cfe0ee;box-shadow:0 8px 24px rgba(25,52,97,.08)}
.catalog-section-description .crt-msk__faq summary{font-family:var(--crt-font-text);font-size:17px;line-height:1.4;font-weight:700;color:var(--crt-navy);padding:16px 52px 16px 18px}
.catalog-section-description .crt-msk__faq details p{font-size:16px;line-height:1.65;color:#2a3342;padding:0 18px 16px}

/* 9. Ссылки в тексте — фирменный синий и аккуратное подчёркивание */
.catalog-section-description a:not([class]),.news-detail a:not([class]){color:var(--crt-link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:rgba(27,116,168,.35);transition:color .15s,text-decoration-color .15s}
.catalog-section-description a:not([class]):hover,.news-detail a:not([class]):hover{color:var(--crt-link-hover);text-decoration-color:currentColor}

@media (max-width:600px){
  .catalog-section-description .col{font-size:15.5px}
  .catalog-section-description h2{font-size:22px}
  .catalog-section-description h3{font-size:18px}
  .catalog-section-description .crt-msk__faq summary{font-size:16px;padding:14px 46px 14px 14px}
  .catalog-section-description .crt-msk__faq details p{padding:0 14px 14px}
}
