/* Readability and lead forms. Loaded after the existing theme. */
body { font-family: 'Fira Sans Condensed', Arial, sans-serif; font-size: clamp(1.125rem, 1.12vw, 1.25rem); font-weight: 500; line-height: 1.5; color: #17212c; }
.header, .footer__top { font-size: clamp(14px, 1.0416666667vw, 20px); font-weight: 400; line-height: normal; color: #000; }
.header__social .max img, .footer__social .max img { display: block; width: 100%; height: 100%; object-fit: contain; }
h1, h2, h3, .hero__advantages h3 { font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2rem, 3.2vw, 3.75rem); }
h1 strong { font-weight: 700; color: #0073ad; }
h2 { font-size: clamp(1.875rem, 2.7vw, 3.125rem); }
.hero__content p, .hero__benefit-text, .why-works__text, .about__text,
.accordion__content, .team__text, .portfolio__item-text, .portfolio__modal-text,
.portfolio__modal-fields small { font-weight: 500; }
.hero__benefit-title, .portfolio__item-title, .accordion__title, .feedback h2 { font-weight: 600; }
.hero__benefit { height: auto; min-height: clamp(150px, 13.2vw, 253px); padding-bottom: 24px; }
.hero__benefit-text { font-size: clamp(1.0625rem, 1.45vw, 1.75rem); line-height: 1.45; }
.btn { font-size: max(1rem, .99vw); font-weight: 600; line-height: 1.3; min-height: 52px; height: auto; padding: 16px 22px; text-align: center; white-space: normal; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #005f94; outline-offset: 4px; }
.lead-section { padding: 0 0 clamp(48px, 5vw, 88px); }
.lead-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(24px, 3vw, 52px); border-radius: 20px; background: #fff; border: 1px solid #d5dde3; border-top: 5px solid #068ed3; }
.lead-panel__intro { align-self: center; }
.lead-kicker { color: #005f94; text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; font-weight: 700; margin-bottom: 12px; }
.lead-panel h2 { margin: 0 0 18px; }
.lead-panel__intro > p:not(.lead-kicker) { font-size: 1.25rem; max-width: 36ch; }
.lead-direct { margin-top: 24px; }
/* Второстепенная кнопка «Посчитать цену онлайн» — открывает калькулятор в окне, основная кнопка — у формы. */
.lead-calc { margin-top: 20px; }
.btn.lead-calc-btn { background: transparent; color: #005f94; border: 2px solid #068ed3; }
.btn.lead-calc-btn:hover { background: #068ed3; color: #fff; }
.lead-direct a { color: #005f94; font-weight: 600; }
.lead-form { width: 100%; font-family: 'Manrope', Arial, sans-serif; font-size: 1rem; line-height: 1.5; color: #17212c; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.lead-field { display: flex; flex-direction: column; gap: 7px; font-size: .9375rem; font-weight: 600; min-width: 0; }
.lead-field small { font-size: .875rem; font-weight: 400; color: #526071; }
.lead-field input { display: block; width: 100%; min-width: 0; min-height: 54px; height: auto; padding: 13px 14px; border: 1px solid #7b8997; border-radius: 8px; background: #fff; color: #17212c; font: 500 1rem/1.5 'Manrope', Arial, sans-serif; box-shadow: none; }
.lead-field input::placeholder { color: #647184; opacity: 1; }
.lead-field input:focus { outline: 3px solid #c2e5fa; border-color: #006ea5; }
.lead-form .lead-consent { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin-bottom: 10px; font-size: .875rem; line-height: 1.55; font-weight: 400; cursor: pointer; }
.lead-form .lead-consent input { appearance: auto; display: block; position: static; opacity: 1; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #006ea5; cursor: pointer; }
.lead-consent a, .lead-policy a { color: #005f94; text-decoration: underline; text-underline-offset: 3px; }
.lead-policy { margin: 0 0 18px; font-size: .875rem; line-height: 1.5; }
.lead-form .lead-submit { width: 100%; background: #ff8c39; color: #17212c; font: 700 1rem/1.4 'Manrope', Arial, sans-serif !important; text-transform: none; border: 0; border-radius: 8px; cursor: pointer; min-height: 56px; padding: 16px 20px; }
.lead-form .lead-submit:hover { background: #ff7715; }
.lead-submit:disabled { cursor: wait; opacity: .65; }
.lead-status { margin-top: 14px; font-size: .9375rem; font-weight: 500; }
.lead-status:empty { display: none; }
.lead-status[data-state='error'] { color: #a52020; }
.lead-status[data-state='success'] { padding: 14px; color: #155d36; background: #edf8f1; border-radius: 8px; }
.lead-status[data-state='preview'] { padding: 14px; color: #714500; background: #fff5d9; border-radius: 8px; }
.lead-preview-note { color: #625020; background: #fff6dd; border-left: 3px solid #cb901e; padding: 10px 12px; font-size: .875rem; line-height: 1.5; margin: 14px 0 0; }
.lead-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
#contact-popup { display: none; width: min(100%, 540px); padding: 36px; border-radius: 16px; background: white; }
#contact-popup h2 { margin: 0 24px 10px 0; font-size: 2rem; }
.lead-popup-intro { margin-bottom: 24px; font-size: 1.125rem; }
#contact-popup .lead-fields { grid-template-columns: 1fr; }
.lead-alternatives { margin-top: 24px; padding-top: 18px; border-top: 1px solid #d5dde3; font-size: 1rem; }
.lead-alternatives nav { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 10px; }
.lead-alternatives a { color: #005f94; }
/* Окно «Связаться»: ориентир цены → прямой контакт → форма. */
.lead-popup-prices { display: grid; gap: 8px; margin: 14px 0 10px; list-style: none; font-size: 1.0625rem; line-height: 1.4; }
.lead-popup-prices li { position: relative; padding-left: 18px; }
.lead-popup-prices li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: #ff8c39; }
.lead-popup-prices b { font-weight: 700; color: #005f94; white-space: nowrap; }
.lead-popup-note { margin-bottom: 16px; font-size: .9375rem; line-height: 1.5; color: #526071; }
/* Калькулятор цены в окне (js/price-calc.js). Без JS — просто список цен; класс price-calc--on ставит скрипт. */
.price-calc { min-width: 0; margin: 0 0 16px; }
/* Группа «Вид работ» — только три схемы; поля армирования, толщины и площади — вне её. */
.price-calc__schemes { min-width: 0; margin: 0; padding: 0; border: 0; }
.price-calc__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price-calc [hidden] { display: none !important; }
.price-calc__radio { display: none; }
.price-calc--on .lead-popup-prices { gap: 4px; margin: 10px 0 12px; }
.price-calc--on .lead-popup-prices li { padding-left: 0; }
.price-calc--on .lead-popup-prices li::before { display: none; }
.price-calc--on .price-calc__option { display: block; position: relative; padding: 6px 10px 6px 40px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.price-calc--on .price-calc__option:hover { border-color: #d5dde3; }
.price-calc--on .price-calc__option:has(:checked) { border-color: #9fcbe6; background: #eef6fb; }
.price-calc--on .price-calc__radio { appearance: auto; display: block; position: absolute; left: 10px; top: 8px; width: 20px; height: 20px; margin: 0; accent-color: #006ea5; cursor: pointer; }
.price-calc__controls { display: grid; gap: 8px; margin-bottom: 10px; }
.price-calc__work { display: grid; gap: 8px; }
.price-calc__field { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; align-items: center; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.price-calc__field select, .price-calc__field input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #7b8997; border-radius: 8px; background-color: #fff; color: #17212c; font: 500 16px/1.3 'Fira Sans Condensed', Arial, sans-serif; }
.price-calc__field select { appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23005f94' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.price-calc__field input::placeholder { color: #647184; opacity: 1; }
.price-calc__field select:focus, .price-calc__field input:focus { outline: 3px solid #c2e5fa; border-color: #006ea5; }
/* Узкий экран (320–359 px): подпись над полем, иначе «Два ряда арматуры» не влезает в select. */
@media (max-width: 359px) { .price-calc__field { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.price-calc__result { padding: 10px 14px; border-radius: 8px; background: #eef6fb; line-height: 1.4; }
.price-calc__result p { margin: 0 !important; }
.price-calc__price { font-size: 1.1875rem; font-weight: 700; color: #005f94; }
.price-calc__result .price-calc__sum { margin-top: 2px !important; font-size: 1.0625rem; }
.lead-popup-direct { display: grid; gap: 8px; margin: 12px 0 8px; }
.lead-popup-direct .btn { width: 100%; }
.lead-popup-phone { margin: 0; font-size: 1.5rem; font-weight: 700; color: #17212c; }
.lead-popup-call { display: none; }
.lead-popup-direct + .lead-popup-intro { margin: 16px 0; }
.lead-email { font-weight: 600; color: #17212c; overflow-wrap: anywhere; }
.lead-tel-link { display: none; color: #005f94; font-weight: 600; }
.nowrap { white-space: nowrap; }
/* Ссылка tel: — только где есть звонилка (сенсорный экран; в старых браузерах — по ширине).
   С мышью — всегда номер текстом: на ПК клик по tel: даёт ложный lead. */
@media (max-width: 767px), (pointer: coarse) { .lead-popup-call { display: inline-flex; } .lead-tel-link { display: inline; } .lead-popup-phone, .lead-tel-text { display: none; } }
@media (hover: hover) and (pointer: fine) { .lead-popup-call, .lead-tel-link { display: none; } .lead-popup-phone { display: block; } .lead-tel-text { display: inline; } }
@media (max-width: 767px) { #contact-popup h2 { font-size: 1.625rem; } }
.feedback__content { flex: 1 1 55%; min-width: 0; padding-right: 24px; }
.feedback__content .lead-form { padding: 24px; border-radius: 14px; background: #fff; max-width: 540px; }
.feedback__content .lead-fields { grid-template-columns: 1fr; }
.feedback__text { max-width: 38ch; font-size: max(1.125rem, 1.3vw); }
.feedback__person { flex: 1 1 45%; min-width: 0; align-self: end; }
.feedback__phone a { width: auto; padding: 10px 16px; }
.footer-legal { padding: 24px 0 32px; border-top: 1px solid #cfd7de; font-family: 'Manrope', Arial, sans-serif; font-size: .875rem; line-height: 1.6; }
.footer-legal__inner { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 16px 32px; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-legal a { color: #005f94; }
.legal-page { background: #f1f3f5; }
.legal-document { max-width: 920px; margin: 40px auto; padding: clamp(24px, 5vw, 56px); background: #fff; border-radius: 16px; font: 400 1.0625rem/1.7 'Manrope', Arial, sans-serif; }
.legal-document h1 { margin: 28px 0 20px; font: 700 clamp(1.75rem, 4vw, 2.625rem)/1.2 'Manrope', Arial, sans-serif; }
.legal-document h2 { font: 700 1.25rem/1.4 'Manrope', Arial, sans-serif; margin: 28px 0 12px; }
.legal-document p, .legal-document ul { margin-bottom: 16px; }
.legal-document ul { padding-left: 24px; }
.legal-document a { color: #005f94; overflow-wrap: anywhere; }
.legal-draft { background: #fff3d2; border-left: 4px solid #b57800; padding: 16px 20px; color: #634309; }
.legal-placeholder { background: #fff3d2; color: #734900; font-weight: 700; }
@media (max-width: 1100px) { .lead-panel { grid-template-columns: 1fr; gap: 24px; } .feedback__inner { flex-wrap: wrap; } .feedback__content { flex-basis: 100%; padding-right: 0; } .feedback__person { flex-basis: 100%; } }
@media (max-width: 600px) { .lead-fields { grid-template-columns: 1fr; } #contact-popup { padding: 28px 20px; } .lead-panel { padding: 24px 20px; } .feedback__content .lead-form { padding: 20px 16px; } .legal-document { margin: 12px; } .hero__benefit br { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn:before { animation: none !important; } }

/* Mobile and tablet corrections verified in the browser. */
.team__item-image img, .about__person-image img, .feedback__person-image img { height: auto; }
@media (max-width: 1100px) {
  .team__item-title { font-size: 20px; }
  .team__item-text span { font-size: 14px; }
  .feedback__person { flex: 0 1 100%; width: 100%; align-self: stretch; margin: 0; position: relative; }
  .feedback__person-image { width: min(100%, 380px); }
  .feedback__person-text { height: auto; padding: 20px; }
  .feedback__person-text p { font-size: 14px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .team__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0; }
  .team__item-image img { max-height: 300px; object-fit: contain; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__image { width: 40%; }
}
@media (max-width: 767px) {
  .header__logo, .footer__logo { width: min(52vw, 240px); margin-right: auto; min-width: 0; }
  .header__text, .footer__text { display: none; }
  .header__contacts, .footer__contacts { flex-shrink: 0; margin: 0 0 0 12px; gap: 0; }
  .header__social, .footer__social { gap: 8px; }
  .social a, .social .phone { width: 44px; height: 44px; }
  .header__social .max, .footer__social .max { display: flex; align-items: center; justify-content: center; }
  .header__social .max img, .footer__social .max img { width: 32px; height: 32px; }
  .social .phone { background: transparent; }
  .social .phone img { box-sizing: content-box; width: 16px; height: 16px; padding: 8px; border-radius: 50%; background: #ff8c39; }
  .header__email, .footer__email { width: 44px; align-self: flex-start; text-align: center; font-size: 14px; }
  .header__email a, .footer__email a { display: block; padding: 4px 0; }
  .lead-form .lead-consent { min-height: 44px; align-items: center; }
  .lead-alternatives nav { gap: 8px 20px; }
  .lead-alternatives a, .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-legal nav { gap: 4px; flex-direction: column; }
  .portfolio__items-arrow { width: 44px; }
  .portfolio__items-pagination span { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: transparent !important; }
  .portfolio__items-pagination span::before { content: ''; width: 10px; height: 10px; border: 1px solid #b8b8b8; border-radius: 50%; background: #fff; }
  .portfolio__items-pagination span.swiper-pagination-bullet-active { background: transparent !important; }
  .portfolio__items-pagination span.swiper-pagination-bullet-active::before { background: #ff8c39; border-color: #ff8c39; }
  .team__item { scroll-snap-align: start; }
  .team__items { scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
  .team__items::-webkit-scrollbar { height: 4px; background: #f6f6f6; }
  .team__items::-webkit-scrollbar-thumb { background: #ababab; }
  .feedback__content { flex: 0 1 auto; }
}
/* Списки в ответах FAQ (глобальный сброс снимает отступы). */
.accordion__content ul { margin: 0 0 clamp(10.6px, 1.0416666667vw, 20px); padding-left: 1.25em; }
.accordion__content li + li { margin-top: 4px; }
/* Ссылка из FAQ на калькулятор в окне «Связаться». */
.faq-calc-link { color: #005f94; font-weight: 600; text-underline-offset: 3px; }
/* Номер в шапке, подвале и блоке «Узнайте стоимость»: ссылка tel: только на сенсорных экранах, на ПК — текст того же вида. */
.header__phone .lead-tel-link, .footer__phone .lead-tel-link { color: inherit; font-weight: inherit; text-decoration: none; }
.lead-direct .lead-tel-text { font-weight: 600; color: #17212c; }
/* Вход в калькулятор с карточки «Цена по формуле» на первом экране. */
.hero-calc-link { color: #005f94; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-calc-link:hover { text-decoration: none; }
