/* Редизайн web-calculator.ru, 26.09.2026. Каркас layouts/redesign: шапка, подвал,
   шторка каталога, герой, ряд калькулятора, статья, вопросы и «Похожие».
   Все правила под body.rd — старые страницы на layouts/app не задеваются.
   Макеты — Files/web-calculator-redizajn.pen в базе. */

@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/golos/golos-text-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/golos/golos-text-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/golos/jetbrains-mono-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/golos/jetbrains-mono-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/article/inter-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/article/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

body.rd {
    --bg: #DDE1E6;
    --card: #E8EBEE;
    --line: #D3D7DC;
    --ink: #0D0D0D;
    --accent: #4F5BD5;
    --accent-soft: #DDE0F4;
    --accent-mid: #9FA7E8;
    --pill: #D5DADF;
    --mute: #6B7075;
    --tile: #F7F8F9;
    --good: #2F9E6A;
    --good-soft: #E3F4EA;
    --bad: #D64545;
    --bad-soft: #FBE4E4;
    --f-ui: 'Inter', Arial, sans-serif;
    --f-text: 'Golos Text', Arial, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --gut: clamp(16px, 8.33vw, 120px);

    font-family: var(--f-ui);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
}
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd h1, .rd h2, .rd h3 { font-family: var(--f-ui); color: var(--ink); padding: 0; margin: 0; }
.rd p { display: block; opacity: 1; font-size: inherit; line-height: inherit; color: inherit; margin: 0; }
.rd a { color: inherit; }
.rd .rd-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.rd .rd-card { background: var(--card); border-radius: 28px; padding: 32px; }
.rd .rd-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--pill); color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; text-decoration: none; border: 0; cursor: pointer; }
.rd .rd-pill:hover { opacity: .8; }

/* ===== каркас: .main без отступа сайдбара ===== */
.rd .wrapper { display: block; }
.rd .main.rd-main { margin: 0; width: 100%; max-width: none; padding: 0; }

/* ===== шапка ===== */
.rd .rd-header { display: flex; align-items: center; gap: 20px; padding: 18px var(--gut); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.rd .rd-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.rd .rd-logo__sign { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.rd .rd-logo__name { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.rd .menu-container.rd-header__nav { display: block; flex: none; }
.rd .rd-catalog { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font: 500 14px/1 var(--f-ui); cursor: pointer; }
.rd .rd-catalog svg { stroke: #fff; }
.rd .rd-header .header__rightSide.rd-search { display: block; flex: 1 1 auto; min-width: 0; }
.rd .rd-search .header__input { height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px 8px 18px; gap: 10px; cursor: text; font-size: 15px; line-height: 1.3; }
.rd .rd-search__ico { flex: none; color: var(--ink); }
.rd .rd-search .search-input { flex: 1 1 auto; min-width: 0; font: 400 15px/1.3 var(--f-ui); color: var(--ink); padding: 4px 0; }
.rd .rd-search .search-input::placeholder { color: var(--mute); opacity: 1; }
.rd .rd-search__key { flex: none; font: 12px/1 var(--f-mono); background: var(--pill); border-radius: 6px; padding: 3px 8px; color: var(--ink); }
.rd .rd-search .search-results { top: calc(100% + 8px); border-radius: 18px; border-color: var(--line); box-shadow: 0 10px 30px rgba(13,13,13,.08); font-size: 14px; line-height: 1.4; }
.rd .rd-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.rd .rd-theme { width: 40px; height: 40px; border-radius: 50%; background: var(--pill); border: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rd .rd-search-btn { display: none; }

/* ===== шторка каталога: fixed на всех ширинах ===== */
.rd .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 340px; max-width: 88vw; height: 100vh; max-height: none; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; z-index: 1001; background: var(--tile); border: 0; border-radius: 0 24px 24px 0; padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 12px; }
.rd .sidebar.open { top: 0; height: 100dvh; max-height: none; transform: translateX(0); box-shadow: 0 0 40px rgba(13,13,13,.18); }
.rd .sidebar .logo-link, .rd .sidebar .menu-container { display: none; }
.rd .sidebar .header__rightSide { display: flex; flex-direction: column; gap: 8px; }
.rd .sidebar .header__input { height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 16px; }
.rd .sidebar .search-input { font: 400 15px/1.3 var(--f-ui); }
.rd .sidebar .search-results { top: 52px; }
.rd .sidebar .button__text { font-family: var(--f-ui); font-size: 14px; }
.rd.sidebar-open { overflow: hidden; }
.rd .sidebar-layout { display: none; }
.rd.sidebar-open .sidebar-layout { display: block; position: fixed; inset: 0; width: auto; height: auto; background: rgba(13,13,13,.35); opacity: 1; z-index: 1000; }

/* ===== герой: крошки, H1, байлайн ===== */
.rd .rd-hero { padding: 40px var(--gut) 28px; display: flex; flex-direction: column; gap: 14px; }
.rd .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--mute); }
.rd .breadcrumb__item { display: inline-flex; align-items: center; gap: 6px; opacity: 1; font-size: 13px; }
.rd .breadcrumb__item .icon { display: none; }
.rd .breadcrumb__item:not(:last-child)::after { content: "/"; color: var(--mute); }
.rd .breadcrumb__link { color: var(--mute); text-decoration: none; font-size: 13px; }
.rd .breadcrumb__link:hover { color: var(--ink); }
.rd .breadcrumb__item.active { color: var(--ink); }
.rd .rd-hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -2px; font-weight: 600; max-width: 1000px; }

.rd .author-byline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; border: 0; background: none; }
.rd .author-byline__party { display: flex; align-items: center; gap: 10px; }
.rd .author-byline__ava, .rd .author-byline__ava img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.rd .author-byline__meta { display: flex; flex-direction: column; gap: 2px; }
.rd .author-byline__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.rd .author-byline__label { font-size: 12px; color: var(--mute); }
.rd .author-byline__name { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.rd .author-byline__updated, .rd .author-byline__role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }

/* ===== ряд калькулятора: слева экран, справа содержание и реклама ===== */
.rd .rd-calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 0 var(--gut) 56px; align-items: start; }
.rd .rd-calc-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.rd .rd-calc-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.rd .rd-toc { background: var(--card); border-radius: 22px; padding: 24px; }
.rd .content-links__title.service-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); font-weight: 400; padding: 0 0 12px; margin: 0; }
.rd .content-links__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rd .content-links__item .button { padding: 0; border: 0; display: block; }
.rd .content-links__item .button i { display: none; }
.rd .content-links__item .button__text { font: 400 14px/1.35 var(--f-ui); color: var(--ink); }
.rd .content-links__item .button:hover { opacity: 1; }
.rd .content-links__item .button:hover .button__text { color: var(--accent); }
.rd .rd-toc + hr, .rd .rd-toc hr.article-divider, .rd .rd-calc-aside hr.article-divider { display: none; }
.rd .rd-adv { border-radius: 22px; overflow: hidden; }
.rd .rd-toc .content-links { border-top: 0; margin-top: 0; padding-top: 0; }
.rd .rd-adv .adv-house__stats { gap: 12px 18px; }
.rd .rd-adv .adv-house__stats b { font-size: 20px; }
.rd .rd-adv a.adv-house__cta { color: #fff; }

/* ===== статья ===== */
.rd .rd-article { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 32px; padding: 48px var(--gut) 24px; align-items: start; }
.rd .rd-article:not(:has(.rd-article__aside)) { grid-template-columns: minmax(0, 1fr); }
.rd .rd-article__body.box.howto { background: var(--card); border-radius: 24px; padding: 56px; margin: 0; border: 0; box-shadow: none; max-width: none; font-family: var(--f-text); font-size: 17px; line-height: 1.6; color: var(--ink); }
.rd .rd-article__body > * { max-width: 760px; }
.rd .rd-article__body > .table-scroll, .rd .rd-article__body > table { max-width: none; }
.rd .rd-article__body p { font-size: 17px; line-height: 1.6; margin: 0 0 16px; }
.rd .rd-article__body h2 { font-family: var(--f-ui); font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.4px; margin: 56px 0 16px; padding: 0; }
.rd .rd-article__body h2:first-child { margin-top: 0; }
.rd .rd-article__body h3 { font-family: var(--f-ui); font-size: 20px; font-weight: 600; line-height: 1.3; margin: 28px 0 10px; padding: 0; }
.rd .rd-article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rd .rd-article__body ol, .rd .rd-article__body ul { margin: 0 0 16px; padding: 0 0 0 24px; }
.rd .rd-article__body li { font-family: var(--f-text); font-size: 17px; line-height: 1.6; margin: 0 0 6px; padding: 0; opacity: 1; }
.rd .rd-article__body ul li::before { content: none; }
.rd .rd-article__body ul { list-style: disc; }
.rd .rd-article__body ol { list-style: decimal; }
.rd .rd-article__body li::marker { color: var(--mute); }
.rd .rd-article__body table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--tile); border-radius: 14px; overflow: hidden; }
.rd .rd-article__body th, .rd .rd-article__body td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.45; }
.rd .rd-article__body thead th { font-family: var(--f-ui); font-weight: 600; background: var(--pill); }
.rd .rd-article__body tbody tr:nth-child(even) { background: transparent; }
.rd .rd-article__body blockquote { margin: 0 0 16px; padding: 14px 18px; background: var(--accent-soft); border-radius: 12px; border: 0; }
.rd .rd-article__body hr.article-divider { display: none; }
.rd .ymyl-disclaimer { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 0 0 32px; border: 0; }
.rd .ymyl-disclaimer p { font-family: var(--f-ui); font-size: 14px; line-height: 1.5; margin: 0; }
.rd .rd-article__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.rd .rd-side-card { background: var(--card); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rd .rd-side-card__title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.rd .rd-side-card p { font-size: 14px; color: var(--mute); }
.rd .rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 22px; font: 500 15px/1 var(--f-ui); cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: opacity .15s; }
.rd .rd-btn--ink { background: var(--ink); color: #fff; }
.rd .rd-btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.rd .rd-btn:hover { opacity: .85; }
.rd .rd-btn:disabled { opacity: .35; cursor: default; }

/* ===== вопросы и «Похожие» ===== */
.rd .rd-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px var(--gut) 96px; align-items: start; }
.rd .rd-bottom__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rd .faq { background: var(--card); border-radius: 24px; padding: 48px; }
.rd .faq__title { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.4px; margin: 0 0 20px; padding: 0; }
.rd .faq .accordion { display: block; }
.rd .faq h3.button.button-dropdown { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.rd .faq h3.button.button-dropdown:first-child { border-top: 0; }
.rd .faq h3.button .button__text { order: 0; font: 600 17px/1.4 var(--f-ui); color: var(--ink); }
.rd .faq h3.button .dropdown__icon { order: 1; flex: none; margin: 2px 0 0; font-size: 16px; }
.rd .faq h3.button:hover { opacity: 1; }
.rd .faq h3.button:hover .button__text { color: var(--accent); }
.rd .faq .dropdown__content { padding: 0 40px 18px 0; }
.rd .faq .dropdown__content p { font-family: var(--f-text); font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.rd .rd-bottom__aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rd .rd-bottom__aside hr.article-divider { display: none; }
.rd .related-calcs h2 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); font-weight: 400; line-height: 1.4; margin: 0 0 12px; padding: 0; }
.rd .related-calcs__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mute); margin: 20px 0 10px; }
.rd .related-calcs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd .related-calcs__list li { background: var(--card); border-radius: 14px; padding: 14px 18px; font-size: 13px; line-height: 1.4; color: var(--mute); opacity: 1; margin: 0; }
.rd .related-calcs__list li::before { content: none; }
.rd .related-calcs__list a { display: block; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; margin-bottom: 2px; }
.rd .related-calcs__list li:hover a { color: var(--accent); }
.rd .related-calcs__hub { margin: 14px 0 0; }
.rd .related-calcs__hub a { font-size: 14px; font-weight: 500; color: var(--accent); }

/* ===== оценка и подсказка после расчёта (макет Pen 26.09.2026) =====
   Разметку даёт общий компонент rating.blade.php (он же на старых страницах),
   поэтому здесь только стили под .rd; счёт и подписи достраивает rd.js. */
.rd .rating-container { background: var(--card); border-radius: 24px; padding: 32px 40px; margin: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.rd .rd-rate__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rd .rating-container .rating-title { font: 600 24px/1.2 var(--f-ui); letter-spacing: -.3px; color: var(--ink); margin: 0; padding: 0; }
.rd .rating-container .star-rating { display: flex; gap: 8px; }
.rd .rating-container .star-rating .star { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; font-size: 26px; line-height: 1; color: var(--line); transition: color .12s, border-color .12s; }
.rd .rating-container .star-rating .star.filled { color: var(--ink); }
.rd .rating-container .star-rating:not(.locked):hover .star { color: var(--ink); }
.rd .rating-container .star-rating:not(.locked) .star:hover ~ .star { color: var(--line); }
.rd .rating-container .star-rating:not(.locked) .star:hover { border-color: var(--ink); }
.rd .star-rating .star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd .rating-container .rating-summary, .rd .rd-rate__hint { font: 400 14px/1.4 var(--f-ui); color: var(--mute); margin: 0; }
.rd .rating-summary.rd-sum-std, .rd .rd-rate__hint[hidden], .rd .rd-rate__score[hidden], .rd .rd-rate__thanks[hidden] { display: none; }
.rd .rd-rate__thanks { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; background: var(--good-soft); color: var(--good); font: 500 14px/1.3 var(--f-ui); }
.rd .rd-rate__score { display: flex; align-items: center; gap: 16px; }
.rd .rd-rate__avg { font: 600 56px/1 var(--f-ui); letter-spacing: -2px; color: var(--ink); }
.rd .rd-rate__mini { position: relative; display: flex; gap: 4px; font-size: 18px; line-height: 18px; color: var(--line); }
.rd .rd-rate__mini span { width: 18px; text-align: center; }
.rd .rd-rate__mini-fill { position: absolute; left: 0; top: 0; display: flex; gap: 4px; overflow: hidden; color: var(--ink); white-space: nowrap; }
.rd .rd-rate__count { font: 400 13px/1.4 var(--f-ui); color: var(--mute); margin-top: 6px; }

.rd .rating-nudge { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; background: var(--accent-soft); border: 0; border-radius: 9999px; padding: 10px 64px 10px 28px; margin-top: 16px; }
.rd .rating-nudge__title { font: 600 16px/1.3 var(--f-ui); color: var(--ink); }
.rd .rating-nudge .star-rating { display: flex; gap: 4px; }
.rd .rating-nudge .star { width: 36px; height: 36px; padding: 0; font-size: 30px; line-height: 36px; text-align: center; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.rd .rating-nudge .star.filled, .rd .rating-nudge .star-rating:not(.locked):hover .star { color: var(--accent); }
.rd .rating-nudge .star-rating:not(.locked) .star:hover ~ .star { color: transparent; }
.rd .rating-nudge .rating-summary { font: 400 13px/1.4 var(--f-ui); color: var(--mute); }
.rd .rating-nudge .rating-nudge__close { top: 50%; right: 10px; transform: translateY(-50%); width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; border-radius: 50%; font-size: 22px; color: var(--accent); }
.rd .rating-nudge .rating-nudge__close:hover { background: rgba(79, 91, 213, .12); color: var(--ink); }

/* ===== комментарии (макет Pen 26.09.2026): форма слева, лента справа ===== */
.rd .rd-comments { padding: 0 var(--gut) 72px; }
.rd .rd-comments .comments { background: var(--card); border-radius: 24px; padding: 40px 48px; margin: 0; border: 0; }
.rd .rd-comments .comments__title.service-title { display: flex; align-items: center; gap: 12px; font: 700 30px/1.2 var(--f-ui); letter-spacing: -.4px; color: var(--ink); padding: 0; margin: 0 0 28px; }
.rd .rd-cm__count { font: 500 13px/1 var(--f-mono); letter-spacing: 0; background: var(--pill); border-radius: 9999px; padding: 6px 10px; }
.rd .rd-cm__body { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 48px; align-items: start; }
.rd .rd-cm--empty .rd-cm__body { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 720px; }
.rd .rd-cm__empty { font: 400 16px/1.6 var(--f-text); color: var(--mute); margin: 0 0 20px; }
.rd .rd-comments .form { background: var(--tile); border-radius: 20px; padding: 24px; margin: 0; border: 0; }
.rd .rd-comments .form form { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; }
.rd .rd-comments .form__inputs { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin: 0; }
.rd .rd-cm__field { display: flex; flex-direction: column; gap: 6px; margin: 0; width: 100%; }
.rd .rd-cm__label { font: 400 11px/1.4 var(--f-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--mute); }
.rd .rd-comments .form .input, .rd .rd-comments .form .textarea { display: block; width: 100%; max-width: none; box-sizing: border-box; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 400 15px/1.45 var(--f-ui); color: var(--ink); box-shadow: none; outline: none; }
.rd .rd-comments .textarea { min-height: 120px; resize: vertical; }
.rd .rd-comments .input:focus, .rd .rd-comments .textarea:focus { border-color: var(--ink); }
.rd .rd-comments .input::placeholder, .rd .rd-comments .textarea::placeholder { color: var(--mute); opacity: 1; }
.rd .rd-comments .form__btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0; }
.rd .rd-comments .form__btns .button { display: inline-flex; align-items: center; justify-content: center; height: 48px; width: auto !important; padding: 0 28px; margin: 0; border: 0; border-radius: 9999px; background: var(--ink); cursor: pointer; }
.rd .rd-comments .form__btns .button__text { font: 600 15px/1 var(--f-ui); color: var(--card); }
.rd .rd-comments .form__btns .button:hover { opacity: .85; }
.rd .rd-cm__note { font: 400 13px/1.4 var(--f-ui); color: var(--mute); }
.rd .rd-cm--collapsed .form__inputs, .rd .rd-cm--collapsed .form__btns, .rd .rd-cm--collapsed .rd-cm__label { display: none; }
.rd .rd-cm--collapsed .textarea { min-height: 52px; height: 52px; resize: none; }
.rd .rd-comments .comment-area { display: flex; flex-direction: column; margin: 0; padding: 0; max-height: none; overflow: visible; background: none; border-radius: 0; box-shadow: none; }
.rd .rd-comments .comment { display: flex; gap: 14px; padding: 20px 0; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.rd .rd-comments .comment:first-child { border-top: 0; padding-top: 0; }
.rd .rd-comments .comment__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--pill); display: flex; align-items: center; justify-content: center; font: 600 16px/1 var(--f-ui); color: var(--ink); }
.rd .rd-comments .comment__avatar svg { display: none; }
.rd .rd-comments .comment__content { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rd .rd-comments .comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.rd .rd-comments .comment__name { font: 600 15px/1.3 var(--f-ui); color: var(--ink); }
.rd .rd-comments .comment__date { font: 400 12px/1.3 var(--f-mono); color: var(--mute); }
.rd .rd-comments .comment__text { font: 400 16px/1.6 var(--f-text); color: var(--ink); opacity: 1; overflow-wrap: anywhere; }

/* ===== подвал ===== */
.rd .rd-footer { padding: 64px var(--gut) 40px; display: flex; flex-direction: column; gap: 48px; border-top: 1px solid var(--line); }
.rd .rd-footer__cols { display: flex; gap: 40px; align-items: flex-start; }
.rd .rd-footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 150px; }
.rd .rd-footer__col a { font-size: 14px; color: var(--ink); text-decoration: none; }
.rd .rd-footer__col a:hover { color: var(--accent); }
.rd .rd-footer__about { margin-left: auto; max-width: 360px; font-size: 14px; line-height: 1.55; color: var(--mute); }
.rd .rd-footer__logo { font-size: 168px; font-weight: 600; line-height: 1; letter-spacing: -6px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; display: block; }
.rd .rd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--mute); }
.rd .rd-footer__bottom a { color: var(--mute); }

/* ===== планшет ===== */
@media (max-width: 1180px) {
    .rd .rd-footer__logo { font-size: 13vw; letter-spacing: -.035em; }
    .rd .rd-hero h1 { font-size: 44px; letter-spacing: -1.4px; }
}
@media (max-width: 1024px) {
    .rd .rd-calc-row, .rd .rd-article, .rd .rd-bottom { grid-template-columns: minmax(0, 1fr); }
    .rd .rd-calc-aside, .rd .rd-article__aside { position: static; }
    .rd .rd-cm__body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .rd .rd-footer__cols { flex-wrap: wrap; }
    .rd .rd-footer__about { margin-left: 0; flex-basis: 100%; }
}

/* ===== телефон ===== */
@media (max-width: 639px) {
    body.rd { font-size: 15px; }
    .rd .rd-header { padding: 12px 16px; gap: 8px; }
    .rd .rd-logo__name { font-size: 16px; }
    .rd .rd-header .header__rightSide.rd-search { display: none; }
    .rd .rd-header__nav { margin-left: auto; }
    .rd .rd-catalog { height: 40px; padding: 0 14px; }
    .rd .rd-adv-link { display: none; }
    .rd .rd-theme { display: none; }
    .rd .rd-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pill); border: 0; padding: 0; color: var(--ink); cursor: pointer; }
    .rd .sidebar .btn-theme { display: inline-flex; }

    .rd .rd-hero { padding: 20px 16px 16px; gap: 10px; }
    .rd .rd-hero h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.8px; }
    .rd .author-byline { gap: 8px 16px; }
    .rd .rd-card { border-radius: 22px; padding: 20px 16px; }
    .rd .rd-calc-row { padding: 0 16px 32px; gap: 16px; }
    .rd .rd-toc { padding: 20px; }
    .rd .rd-article { padding: 24px 16px 16px; gap: 16px; }
    .rd .rd-article__body.box.howto { padding: 24px 16px; border-radius: 22px; font-size: 16px; }
    .rd .rd-article__body p, .rd .rd-article__body li { font-size: 16px; }
    .rd .rd-article__body h2 { font-size: 24px; margin-top: 40px; }
    .rd .rd-article__body h3 { font-size: 18px; }
    .rd .rd-article__body table, .rd .rd-article__body th, .rd .rd-article__body td { font-size: 13px; }
    .rd .rd-article__body th, .rd .rd-article__body td { padding: 8px 10px; }
    .rd .rd-bottom { padding: 24px 16px 48px; gap: 24px; }
    .rd .faq { padding: 24px 16px; border-radius: 22px; }
    .rd .faq__title { font-size: 24px; }
    .rd .faq h3.button .button__text { font-size: 16px; }
    .rd .faq .dropdown__content { padding-right: 0; }
    .rd .rating-container { padding: 24px 16px; border-radius: 22px; gap: 20px; }
    .rd .rd-rate__main { width: 100%; }
    .rd .rating-container .rating-title { font-size: 20px; }
    .rd .rating-container .star-rating { gap: 6px; }
    .rd .rating-container .star-rating .star { flex: 1 1 0; width: auto; height: 52px; }
    .rd .rd-rate__avg { font-size: 44px; }
    .rd .rating-nudge { flex-direction: column; align-items: flex-start; border-radius: 20px; padding: 14px 52px 14px 16px; }
    .rd .rating-nudge .star { width: 44px; height: 44px; line-height: 44px; padding: 0; }
    .rd .rating-nudge .star-rating { gap: 0; }
    .rd .rating-nudge .rating-nudge__close { top: 4px; right: 4px; transform: none; }
    .rd .rd-comments { padding: 0 16px 48px; }
    .rd .rd-comments .comments { padding: 24px 16px; border-radius: 22px; }
    .rd .rd-comments .comments__title.service-title { font-size: 24px; margin-bottom: 20px; }
    .rd .rd-comments .form { padding: 16px; }
    .rd .rd-comments .form__btns .button { width: 100% !important; }
    .rd .rd-footer { padding: 32px 16px 28px; gap: 28px; }
    .rd .rd-footer__cols { gap: 24px 16px; }
    .rd .rd-footer__col { min-width: calc(50% - 8px); }
    .rd .rd-footer__logo { font-size: 44px; letter-spacing: -1.5px; }
    .rd .rd-footer__bottom { flex-direction: column; }
}
