.form__consent { margin: 1.4rem 0; }
.consultation .form__consent, .modal .form__consent { color: #f4f1e9; }
.form__row--action > .form__consent { flex: 1 1 20rem; min-width: 0; margin: 0; text-align: left; }
.form__row--action:has(> .form__consent) { flex-wrap: nowrap; gap: 1.5rem 3.8%; }
.form--modal .form__row--action:has(> .form__consent) { flex-direction: column; align-items: stretch; }
.form--modal .form__row--action > .form__consent { flex-basis: auto; }
.form__consent-label { display: flex; align-items: flex-start; gap: 0.8rem; cursor: pointer; font-size: 0.9rem; line-height: 1.55; }
.form__consent .form__consent-input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; padding: 0; color: inherit; accent-color: #cc9933; appearance: auto; border-radius: 0; }
.form__consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Формы консультации и звонка тёмные: ссылка согласия — как ссылки на графите (решение владельца 30.09.2026). */
.consultation .form__consent a, .modal .form__consent a { color: #cc9933; text-decoration-color: #cc9933; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 0.16s ease; }
.consultation .form__consent a:hover, .modal .form__consent a:hover { text-decoration-color: #fff; }
.form__consent-policy { margin: 0.5rem 0 0 2.05rem; font-size: 0.82rem; }
.form__consent-error { margin: 0.6rem 0 0 2.05rem; color: inherit; font-size: 0.9rem; font-weight: 600; }
.form__consent [aria-invalid="true"] { outline: 2px solid currentColor; outline-offset: 3px; }
.form__consent input:focus-visible, .footer__cookie-settings:focus-visible, .wg-cookie button:focus-visible, .wg-cookie a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.consultation .form__consent input:focus-visible, .modal .form__consent input:focus-visible { outline-color: #cc9933; }
.form__consent [hidden], .wg-cookie[hidden] { display: none !important; }
.footer__box .connection--footer { align-items: flex-start; opacity: 1; }
.connection--footer > .connection__item, .footer__address > .connection__item { opacity: 0.5; }
.connection--footer:hover > .connection__item, .connection--footer:hover .footer__address > .connection__item { opacity: 1; }
.footer__address { min-width: 0; max-width: 100%; text-align: right; }
.footer__legal { display: flex; flex-direction: column; align-items: flex-end; gap: 0; margin: 0.5rem 0 0; padding: 0; border: 0; color: #e5e2da; font-size: 0.8rem; line-height: 1.5; text-align: right; }
.footer__legal a, .footer__cookie-settings { color: #cc9933; text-decoration: underline; text-decoration-color: #cc9933; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 0.16s ease; }
.footer__legal a:hover, .footer__cookie-settings:hover { text-decoration-color: #fff; }
.footer__cookie-settings { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; }
.wg-cookie { position: fixed; z-index: 10000; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 1.5rem; max-width: 1040px; margin: auto; padding: 12px 14px 12px 22px; color: #232323; background: #f8f6f0; border: 1px solid #dcd8cd; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.14); }
.wg-cookie__body { flex: 1; min-width: 0; margin: 0; font-family: "Golos-Regular", sans-serif; font-size: 0.92rem; line-height: 1.5; }
.wg-cookie { width: auto; min-width: 0; }
.wg-cookie__title { margin: 0; font-family: "Golos-SemiBold", sans-serif; font-size: inherit; line-height: inherit; }
.wg-cookie__details { color: #232323; text-decoration: underline; text-decoration-color: #cc9933; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 0.16s ease; }
.wg-cookie__details:hover { text-decoration-color: currentColor; }
.wg-cookie__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.wg-cookie button { min-height: 44px; padding: 10px 18px; white-space: nowrap; border: 1px solid #896722; border-radius: 8px; font-family: "Golos-SemiBold", sans-serif; font-size: 0.92rem; line-height: 1.3; cursor: pointer; }
.wg-cookie__accept { color: #463411; background: #cc9933; }
.wg-cookie__necessary { color: #232323; background: transparent; }
.wg-cookie button:hover { border-color: #232323; }
.wg-legal-page .page-intro .breadcrumbs, .wg-legal-page .page-intro .breadcrumbs a { color: #f4f1e9; }
.wg-legal-page .page-intro .breadcrumbs a:hover { text-decoration-color: currentColor; }
/* Текущая страница в крошках на фото: графит почти не читался; белый 0.85 — не ниже 4,6:1 на светлых участках фото. */
.wg-legal-page .page-intro .breadcrumbs__link[aria-current="page"] { color: rgba(255, 255, 255, 0.85); }
.wg-legal-page .page-intro .page-header { font-family: "Golos-SemiBold", sans-serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.wg-legal-page .main .content { max-width: 88ch; margin-inline: auto; font-family: "Golos-Regular", sans-serif; font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.wg-legal-page .main .content h2 { margin: 2.5rem 0 1rem; font-family: "Golos-SemiBold", sans-serif; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.3; }
.wg-legal-page .main .content h3 { margin: 1.6rem 0 0.75rem; font-family: "Golos-SemiBold", sans-serif; font-size: 1.2rem; }
.wg-legal-page .main .content p, .wg-legal-page .main .content ul, .wg-legal-page .main .content ol { margin: 0 0 1.2rem; }
.wg-legal-page .main .content p, .wg-legal-page .main .content li { font-family: inherit; font-size: inherit; line-height: inherit; }
.wg-legal-page .main .content li { margin: 0.5rem 0; }
.wg-legal-page .main .content a { color: #232323; text-decoration: underline; text-decoration-color: #cc9933; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 0.16s ease; }
.wg-legal-page .main .content a:hover { text-decoration-color: currentColor; }
.wg-legal-page .legal-table { overflow-x: auto; margin: 1.5rem 0; }
.wg-legal-page .legal-table table { border-collapse: collapse; min-width: 680px; width: 100%; font-size: 0.9rem; line-height: 1.5; }
.wg-legal-page .legal-table th, .wg-legal-page .legal-table td { padding: 14px; border: 1px solid #deddd7; text-align: left; vertical-align: top; }
.wg-legal-page .legal-table th { background: #f8f6f0; font-family: "Golos-SemiBold", sans-serif; }
/* Широкий экран: карточка в правом углу, чтобы не ложиться на кнопки первого экрана (они слева или по центру). */
@media (min-width: 1024px) {
  /* Слева: правый нижний угол занимает кнопка чата (решение владельца 13.10.2026). */
  .wg-cookie { left: 16px; right: auto; width: 420px; max-width: calc(100vw - 32px); margin: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
  .wg-cookie__actions { display: grid; grid-template-columns: 1fr 1fr; }
}
/* На главной баннер не перекрывает действия первого экрана. */
body:has(.home-intro + .wg-cookie:not([hidden])) .wgc-launch { display: none; }
@media (min-width: 1024px) {
  .home-intro + .wg-cookie { left: auto; right: 16px; }
}
@media (max-width: 1023px) {
  .home-intro + .wg-cookie { position: static; width: calc(100% - 16px); max-width: 720px; margin: 8px auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer__box .connection--footer { align-items: flex-end; }
  .consultation .form__row--action:has(> .form__consent) { flex-direction: column; align-items: stretch; }
  .consultation .form__row--action > .form__consent { flex-basis: auto; width: 100%; }
  .consultation .form__row--action:has(> .form__consent) > .form__submit { flex: 0 1 auto; width: 100%; }
}
@media (max-width: 767px) {
  .form__row--action:has(> .form__consent) { flex-direction: column; align-items: stretch; }
  .form__row--action > .form__consent { flex-basis: auto; width: 100%; }
  .wg-cookie { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 10px; max-height: calc(100dvh - 16px); overflow-y: auto; }
  .wg-cookie__body { font-size: 0.875rem; line-height: 1.35; }
  .wg-cookie__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; }
  .wg-cookie button { padding: 5px 8px; white-space: normal; }
  .page-cta + .wg-cookie { position: static; margin: 12px 0 0; max-height: none; overflow: visible; box-shadow: none; }
  .footer__box .connection--footer { align-items: center; }
}
