/* Калькулятор неустойки по ДДУ: дополнения к стилям темы msk-legal-final (раунд 4, вторая редакция).
   Поля как в формах темы (.formBlock), кнопки только .btn темы, цвета и шрифты темы:
   #7b0404, #5e5e5e, #434343, #f2f2f2, #dedede, #cacaca; Gilroy. */

/* Жирный в теме задаётся гарнитурой, а не font-weight (как .text-block p strong) */
.ddu-calc b, .page-content-calc b, .ddu-faq b { font-family: Gilroy-SemiBold, sans-serif; font-weight: 400; }

/* Вводный абзац над калькулятором */
.ddu-lead p { margin-bottom: 20px; }

/* Рамка калькулятора: радиус и тень как у нынешнего калькулятора темы (.calc-wrapper .calc) */
.ddu-calc { padding: 30px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); margin-bottom: 20px; }
.ddu-calc .row { row-gap: 20px; }

/* Подписи полей: как подписи в формах темы, полужирный Gilroy */
.ddu-label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 1.3; font-family: Gilroy-SemiBold, sans-serif; color: #434343; }
/* Поля .formBlock темы: на 3px выше и шрифт 16px, чтобы телефон не увеличивал страницу при вводе */
.ddu-form .formBlock input { height: 44px; font-size: 16px; margin-bottom: 16px; background: #fff; }
.ddu-two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }

/* Выбор вариантов: обычные кнопки темы, выбранная .btn__primary, остальные .btn__grey */
.ddu-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ddu-seg--3 { grid-template-columns: 1fr 1fr 1fr; }
.ddu-seg .btn { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 6px; border: 2px solid #f2f2f2; text-align: center; cursor: pointer; }
.ddu-seg .btn.btn__primary { border-color: #7b0404; }
.ddu-seg .btn.btn__grey { color: #434343; } /* у .btn__grey темы нет своего цвета текста, на кнопке-ссылке он белый */
.ddu-seg .btn.btn__grey:hover { border-color: #cacaca; }
.ddu-seg .btn:focus-visible { outline: 2px solid #7b0404; outline-offset: 2px; }
.ddu-radios { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ddu-submit { display: block; width: 100%; margin-top: 20px; }

/* Настройки для юриста: ссылка цвета темы, флажки обычного вида (тема ставит input appearance: none) */
.ddu-more { font-size: 13px; line-height: 1.45; }
.ddu-more summary, .ddu-how summary { cursor: pointer; color: #7b0404; font-size: 16px; line-height: 20px; padding: 10px 0; }
.ddu-more .ddu-label { margin-top: 12px; }
.ddu-opt { display: flex; align-items: flex-start; margin-bottom: 6px; font-size: 13px; line-height: 1.45; }
.ddu-opt input { -webkit-appearance: auto; appearance: auto; flex: 0 0 auto; margin: 2px 8px 0 0; accent-color: #7b0404; }

/* Результат: светло-серый блок темы .bg__light, сумма цветом темы */
.ddu-res { height: 100%; padding: 30px; }
.ddu-res p { margin: 0; }
.ddu-res__label { font-size: 16px; margin-bottom: 4px !important; }
.ddu-res__sum { font-family: Gilroy-SemiBold, sans-serif; font-size: 40px; line-height: 1.1; color: #7b0404; }
.ddu-res__words { min-height: 18px; margin: 8px 0 16px !important; font-size: 13px; line-height: 1.4; color: #5e5e5e; }
.ddu-res__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0; margin-bottom: 16px; border-top: 1px solid #dedede; border-bottom: 1px solid #dedede; }
.ddu-res__facts b { display: block; font-size: 22px; line-height: 1.2; }
.ddu-res__facts span { display: block; font-size: 12px; line-height: 1.3; color: #5e5e5e; }
.ddu-res__facts p { grid-column: 1 / -1; font-size: 12px; line-height: 1.4; color: #5e5e5e; }
.ddu-res__facts[hidden] { display: none; }
.ddu-res__msg p { margin-bottom: 16px !important; font-size: 14px; line-height: 1.45; }
#ddu-alt p { margin-bottom: 16px !important; font-size: 13px; line-height: 1.45; color: #5e5e5e; }
.ddu-res__note { margin-bottom: 12px !important; font-size: 14px; line-height: 1.45; }
.ddu-res__cta { display: block; width: 100%; text-align: center; }
.ddu-res__rate { margin-top: 12px !important; font-size: 13px; color: #5e5e5e; }
.ddu-status:empty { display: none; }
.ddu-status { margin-top: 8px !important; font-size: 13px; color: #7b0404; }
.ddu-error { color: #7b0404; }

/* «Как посчитано»: таблица периодов, строки через одну серые, как строки прайса темы */
.ddu-how { margin-top: 10px; font-size: 14px; line-height: 1.45; }
.ddu-how p { margin: 0 0 10px; }
.ddu-table { width: 100%; border-collapse: collapse; }
#ddu-table th, #ddu-table td { padding: 8px 10px; text-align: left; vertical-align: top; } /* id: перебивает .table-responsive table tr td темы */
#ddu-table th:not(:first-child), #ddu-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.ddu-table tbody tr:nth-child(odd) { background: #f2f2f2; }
.ddu-table tr.is-excluded td { color: #5e5e5e; }
.ddu-table .why { display: block; font-size: 12px; color: #5e5e5e; white-space: normal; }
.ddu-table tfoot td { font-family: Gilroy-Bold, sans-serif; }
.ddu-notes { margin: 0 0 10px; padding-left: 18px; }
.page-content th { padding: 10px 15px; text-align: left; } /* заголовки таблиц в тексте: отступы как у ячеек .table-responsive */

/* Шкала периодов и мораториев: цвета темы, мораторий штриховкой */
.ddu-tl { display: flex; height: 14px; margin: 4px 0 6px; background: #f2f2f2; }
.ddu-tl__seg { min-width: 2px; }
.ddu-tl--full { background: #7b0404; }
.ddu-tl--cap { background: #5e5e5e; }
.ddu-tl--lim { background: #cacaca; }
.ddu-tl--mor { background: repeating-linear-gradient(45deg, #cacaca 0 3px, #f2f2f2 3px 6px); }
.ddu-tl__ends { display: flex; justify-content: space-between; font-size: 12px; color: #5e5e5e; }
.ddu-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 14px; font-size: 12px; }
.ddu-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.ddu-mt { position: relative; margin: 10px 0 20px; }
.ddu-mt .ddu-tl { position: relative; display: block; }
.ddu-mt .ddu-tl__seg { position: absolute; top: 0; bottom: 0; }
.ddu-mt__ticks { position: relative; height: 18px; font-size: 12px; color: #5e5e5e; }
.ddu-mt__ticks span { position: absolute; transform: translateX(-50%); }
.ddu-mt__ticks span:first-child { transform: none; } /* подпись 2020 у левого края не обрезается */

/* Вопросы и ответы: карточки по образцу edencraft.ru и geo-uslugi.ru, шрифт, цвета, радиус кнопок и тень калькулятора темы */
.ddu-faq-wrap .ddu-faq { margin-top: 30px; row-gap: 20px; }
.ddu-faq__aside { padding: 30px; }
.ddu-faq__aside p { margin-bottom: 20px; font-size: 16px; line-height: 1.45; }
.ddu-faq__title { font-family: Gilroy-SemiBold, sans-serif; font-size: 22px !important; color: #434343; }
.ddu-faq__aside .btn { display: block; text-align: center; }
.ddu-faq__item { margin-bottom: 12px; background: #fff; border-radius: 5px; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); }
.ddu-faq__item summary { position: relative; padding: 22px 70px 22px 24px; list-style: none; cursor: pointer; font-family: Gilroy-SemiBold, sans-serif; font-size: 18px; line-height: 1.3; color: #434343; }
.ddu-faq__item summary::-webkit-details-marker { display: none; }
.ddu-faq__item summary::after { content: "+"; position: absolute; top: 50%; right: 20px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: #f2f2f2; color: #7b0404; font-size: 24px; line-height: 32px; text-align: center; transition: transform .2s; }
.ddu-faq__item[open] summary { color: #7b0404; }
.ddu-faq__item[open] summary::after { transform: rotate(45deg); }
.ddu-faq__answer { padding: 0 24px 22px; }
.ddu-faq__answer p { margin: 0; font-size: 16px; line-height: 1.5; }
.ddu-hint { font-size: 13px; line-height: 1.45; color: #5e5e5e; }
.ddu-sources { margin-top: 20px; }
/* Кнопка в абзаце текста: ссылки в .text-block p красные, у кнопки возвращаем цвета .btn__primary темы */
.page-content-calc p a.btn.btn__primary { color: #fff; }
.page-content-calc p a.btn.btn__primary:hover { color: #7b0404; }

/* Телефон (порог 767px, как у сетки калькулятора темы) */
@media (max-width: 767px) {
  .ddu-calc { padding: 20px 15px; }
  .ddu-two { grid-template-columns: 1fr; }
  .ddu-res { padding: 20px; }
  .ddu-res__sum { font-size: 32px; }
  .ddu-res__facts b { font-size: 18px; }
  #ddu-table th, #ddu-table td { padding: 6px 3px; font-size: 12px; }
  #ddu-table .why { font-size: 11px; }
  .ddu-faq__item summary { padding: 18px 60px 18px 16px; font-size: 16px; }
  .ddu-faq__answer { padding: 0 16px 18px; }
  .ddu-faq__aside { padding: 20px; }
}

/* Плашка «Хотите получить консультацию?»: у темы кнопка шириной 360 px, на телефоне 360–390 px она вылезает за край; ограничиваем шириной плашки. */
.ddu-consult .consultation .btn { max-width: 100%; }

/* Ссылка на страницу услуги под кнопкой результата: мелкая, цвет ссылок темы, по центру под кнопкой. */
.ddu-res__more { margin: 10px 0 0; font-size: 14px; text-align: center; }
.ddu-res__more a { color: #7b0404; text-decoration: underline; } /* цвет ссылок темы; у блока результата тема свой цвет ссылок не задаёт */
.ddu-res__more a:hover { text-decoration: none; }

/* ===== Вариант Claude, раунд 2 (14.10.2026): только цвета дизайна, красного минимум =====
   Замечание Александра 11:32: «слишком ярко, перенасыщенно; синего в дизайне нет; упростить, только элементы дизайна».
   Цвета: #7b0404 только у главной кнопки; серые #434343, #5e5e5e, #cacaca, #dedede, #f2f2f2; белый. */

/* Переключатели: выбранный – тёмно-серая плашка с белым текстом (как серые плашки #5e5e5e в макете «Цены»), остальные – светло-серые */
.ddu-seg .btn.btn__grey { background: #f2f2f2; border-color: #f2f2f2; color: #434343; }
.ddu-seg .btn.btn__grey:hover { background: #fff; border-color: #dedede; color: #434343; } /* как серая кнопка в макете hoovers.jpg */
.ddu-seg .btn.is-on, .ddu-seg .btn.is-on:hover { background: #5e5e5e; border-color: #5e5e5e; color: #fff; }

/* «Рассчитать неустойку»: серая кнопка темы (сумма и так пересчитывается при вводе) */
.ddu-submit.btn__grey { color: #434343; border: 2px solid #f2f2f2; }
.ddu-submit.btn__grey:hover { background: #fff; border-color: #dedede; }

/* Главная кнопка – единственная красная. Надпись белая всегда (правило темы .page-content a перекрашивает ссылки);
   при наведении – белая с красной рамкой, как в макете hoovers.jpg */
.ddu-res .ddu-res__cta, .ddu-res .ddu-res__cta:visited { color: #fff; }
.ddu-res .ddu-res__cta:hover { background: #fff; color: #7b0404; }

/* Сумма и ссылки внутри калькулятора – тёмно-серые, без красного */
.ddu-res__more a, .ddu-res__more a:visited { color: #5e5e5e; }
.ddu-more summary, .ddu-how summary, .ddu-isk__doc summary { color: #434343; }
.ddu-submit:focus-visible, .ddu-res__cta:focus-visible, .ddu-seg .btn:focus-visible, .ddu-isk a:focus-visible { outline: 2px solid #434343 !important; outline-offset: 2px; }

/* ===== Блок «Расчёт для искового заявления»: белая карточка с серой рамкой, три серые кнопки темы ===== */
.ddu-isk { margin-top: 24px; padding: 24px 30px; background: #fff; border: 1px solid #dedede; }
.ddu-isk[hidden] { display: none; }
.ddu-isk p { margin: 0; }
.ddu-isk__top { display: grid; grid-template-columns: 1fr 300px; gap: 16px 40px; align-items: start; }
.ddu-isk__title { font-family: Gilroy-SemiBold, sans-serif; font-size: 20px; line-height: 1.3; margin-bottom: 8px !important; color: #434343; }
.ddu-isk__intro p:not(.ddu-isk__title) { font-size: 14px; line-height: 1.5; color: #5e5e5e; }
.ddu-isk__acts { display: grid; gap: 8px; }
.ddu-isk__acts .btn { display: flex; align-items: center; gap: 10px; min-height: 42px; color: #434343; text-transform: none; font-size: 15px; text-align: left; padding-left: 14px; }
.ddu-isk__acts .btn:hover { background: #dedede; }
.ddu-isk__acts .btn.is-done { background: #fff; box-shadow: inset 0 0 0 1px #cacaca; }
.ddu-isk__ico { flex: 0 0 20px; color: #5e5e5e; }
.ddu-isk__warn { margin-top: 16px; padding: 10px 14px; background: #f2f2f2; }
.ddu-isk__warn[hidden] { display: none; }
.ddu-isk__warn p { font-size: 14px; line-height: 1.45; color: #434343; margin: 0 0 4px !important; }
.ddu-isk__warn p:last-child { margin-bottom: 0 !important; }
.ddu-isk__doc { margin-top: 14px; }
.ddu-isk__doc summary { cursor: pointer; padding: 10px 0; line-height: 20px; font-size: 16px; }
/* Лист расчёта: как бумага в иске – Times New Roman, рамки таблицы */
.ddu-isk__paper { margin-top: 6px; padding: 24px 28px; background: #fff; border: 1px solid #dedede; font-family: 'Times New Roman', Times, serif; font-size: 15px; line-height: 1.4; color: #434343; overflow-x: auto; }
.ddu-isk__paper h4 { font-family: 'Times New Roman', Times, serif; font-weight: 700; font-size: 16px; text-align: center; margin: 0 0 12px; text-transform: none; }
.ddu-isk__paper p { margin: 0 0 6px !important; }
.ddu-isk__paper b, .ddu-isk__paper strong { font-family: 'Times New Roman', Times, serif; font-weight: 700; }
.ddu-isk__paper table { width: 100%; border-collapse: collapse; margin: 10px 0 12px; font-size: 14px; }
.ddu-isk__paper th, .ddu-isk__paper td { border: 1px solid #5e5e5e; padding: 4px 6px !important; vertical-align: top; text-align: left; }
.ddu-isk__paper td.n { text-align: right; white-space: nowrap; }
.ddu-isk__paper tr.t td { font-weight: 700; }
.ddu-isk__paper ol { margin: 4px 0 8px; padding-left: 20px; }
.ddu-isk__paper li { font-size: 15px; line-height: 1.4; margin-bottom: 4px; }
.ddu-isk__paper a, .ddu-isk__paper .src a { color: #434343; word-break: break-all; }
.ddu-isk__paper .src { margin-top: 8px !important; font-size: 13px; color: #5e5e5e; }
.ddu-isk__note { margin-top: 12px !important; font-size: 13px; line-height: 1.45; color: #5e5e5e; }
.ddu-isk__note a, .ddu-isk__note a:visited { color: #5e5e5e; }
.ddu-isk__rows { display: none; }
@media (max-width: 991px) {
  .ddu-isk { padding: 20px 16px; }
  .ddu-isk__top { grid-template-columns: 1fr; }
}
/* Телефон: в предпросмотре строки списком; в копии и в Word таблица полная */
@media (max-width: 600px) {
  .ddu-isk__paper { padding: 12px 8px; font-size: 14px; }
  .ddu-isk__paper table { display: none; }
  .ddu-isk__rows { display: block; margin: 10px 0 12px; border-top: 1px solid #5e5e5e; }
  .ddu-isk__rows p { margin: 0 !important; padding: 6px 0; border-bottom: 1px solid #cacaca; font-size: 14px; }
}
/* Заодно: плюсы в «Вопросах и ответах» и флажки «Настроек для юриста» серые */
.ddu-opt input { accent-color: #5e5e5e; }
.ddu-faq__item summary::after { color: #5e5e5e; }
.ddu-faq__item[open] summary { color: #434343; }

/* Вторая точка заявки в блоке для иска: обычная текстовая ссылка темы (красный текст ссылки, как в текстах сайта) */
.ddu-isk__intro p.ddu-isk__lead { margin-top: 10px !important; font-size: 15px; color: #434343; }
.ddu-isk__lead a { color: #7b0404; text-decoration: underline; text-underline-offset: 3px; }

/* После итоговой проверки Codex 14.10: тени и статус в палитре сайта; «Рассчитать» с серой рамкой, чтобы не казалась отключённой */
.ddu-calc { box-shadow: 0 15px 20px rgba(0, 0, 0, .05); } /* тень карточек темы */
.ddu-faq__item { box-shadow: 0 15px 20px rgba(0, 0, 0, .05); }
.ddu-status { color: #5e5e5e; }

/* 14.10 17:25 (Александр): «Скопировать / Скачать / Распечатать» как на страницах документов /docs/: значок слева, красная ссылка 18 px
   (стили .docs__url темы: отступ значка 15 px, без подчёркивания, подчёркивание при наведении). Зона нажатия 40 px. */
.ddu-isk__acts { display: block; }
.ddu-isk__acts .docs__url { margin-bottom: 2px; }
.ddu-isk__acts .docs__url img, .ddu-isk__acts .ddu-isk__ico { flex: 0 0 auto; margin-right: 15px; }
.ddu-isk__acts .docs__url a { display: inline-flex; align-items: center; min-height: 40px; font-size: 18px; color: #7b0404; text-decoration: none; }
.ddu-isk__acts .docs__url a:hover { text-decoration: underline; }
.ddu-isk__acts .docs__url a.is-done { color: #434343; }
/* Светло-серая кнопка «Рассчитать»: текст как у серой кнопки в макете (#5e5e5e на #f2f2f2) */
@media (min-width: 992px) {
  .ddu-isk__top { grid-template-columns: 1fr 360px; gap: 16px 32px; }
  .ddu-isk__acts .docs__url a { white-space: nowrap; }
}
@media (max-width: 600px) { .ddu-isk__acts .docs__url a { font-size: 16px; } }

/* Раунд 3 (15.10, правки Александра): «Рассчитать» красная контурная по ширине текста, сумма и шкала красные как на сайте,
   лист расчёта для иска открыт сразу и со значком копирования, блока «Как посчитано» нет (он повторял лист). */
#calc .ddu-submit { display: inline-block; width: auto; min-height: 48px; background: #fff; color: #7b0404; border: 2px solid #7b0404; }
#calc .ddu-submit:hover { background: #7b0404; color: #fff; border-color: #7b0404; }
.ddu-isk__tl { margin-top: 24px; font-size: 14px; }
.ddu-isk__doc { position: relative; margin-top: 6px; }
.ddu-isk__doc .ddu-isk__paper { margin-top: 0; padding-top: 52px; }
.ddu-isk__copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 5px; background: #f2f2f2; color: #5e5e5e; font: 14px/1 Gilroy-Regular, sans-serif; cursor: pointer; }
.ddu-isk__copy:hover { background: #dedede; color: #434343; }
.ddu-isk__copy.is-done { background: #fff; color: #434343; box-shadow: inset 0 0 0 1px #cacaca; }
.ddu-isk__copy:focus-visible { outline: 2px solid #434343 !important; outline-offset: 2px; }
.ddu-isk__extra { margin-top: 14px; font-size: 14px; line-height: 1.45; color: #434343; }
.ddu-isk__extra p { margin: 0 0 8px; }
.ddu-isk .ddu-notes { font-size: 14px; line-height: 1.45; color: #434343; }
.ddu-spravka { padding: 20px 24px; border-radius: 5px; margin: 0 0 30px !important; }
@media (max-width: 575px) { .ddu-isk__doc .ddu-isk__paper { padding-top: 50px; } .ddu-spravka { padding: 16px; } }
.ddu-isk .ddu-notes { list-style: none; padding-left: 0; }
.ddu-isk__more { margin: 8px 0 0 !important; font-size: 15px; }
.ddu-isk__more a, .ddu-isk__more a:visited { color: #5e5e5e !important; text-decoration: underline; }
.ddu-isk__more a:hover { color: #434343 !important; text-decoration: none; }
