/* ntp52-cnc.ru — дополнения к макету (подключается после style.css и whole-site.css).
   Здесь только то, чего нет в макете: рабочая форма заявки, блоки главной на исходных текстах,
   подвал без демонстрационных пометок, служебные страницы. Палитра и компоненты — как в макете. */

/* результаты поиска должны перекрывать пункты верхнего меню (в макете оказывались под ними) */
.header .search .results{z-index:60}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- форма заявки ---------- */
.request-form{background:#fff;border:1px solid var(--line);border-radius:4px;padding:28px 30px;display:flex;flex-direction:column;gap:6px;max-width:640px}
.request-form label{font-size:13px;font-weight:600;margin-top:12px;color:#3b4252}
.request-form label:first-of-type{margin-top:0}
.request-form input[type=text],.request-form input[type=tel],.request-form textarea{width:100%;border:1px solid #cfd3da;border-radius:4px;padding:12px 14px;font:15px/1.5 inherit;font-family:inherit;color:var(--ink);background:#fff;transition:border-color .3s,box-shadow .3s}
.request-form textarea{resize:vertical;min-height:110px}
.request-form input[type=file]{font-size:13px;padding:10px 0;max-width:100%}
.request-form input:focus,.request-form textarea:focus{outline:0;border-color:#c99a00;box-shadow:0 0 0 3px #f7cf4e55}
.request-form button[type=submit]{margin-top:18px;align-self:flex-start;padding:14px 26px;font-size:14px}
.request-form button[type=submit]:disabled{opacity:.6;cursor:wait}
.form-status{margin:14px 0 0;padding:12px 14px;background:#fdeceb;border:1px solid #e3a6a1;border-left:4px solid #c8372d;border-radius:3px;font-size:13px;color:#7a1f18}
.form-hint{font-size:12px;color:var(--muted);margin:8px 0 0}
.form-hint a{text-decoration:underline;text-underline-offset:3px}
.request-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:28px;align-items:start}
.request-info{background:#fff;border:1px solid var(--line);border-radius:4px;padding:26px 28px;font-size:14px;line-height:1.7}
.request-info p{margin:0 0 15px}
.request-info p:last-child{margin-bottom:0}
.request-info br{display:none}
.request-info b{display:block;font-size:12px;letter-spacing:.3px;text-transform:uppercase;color:#7a7f89;margin-bottom:2px;font-weight:600}
.request-info a{color:#775a00;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#d4c588}
.form-panel{margin:34px 0}
.form-panel>h2{font-size:26px;line-height:1.3;letter-spacing:-.45px;margin:0 0 18px}
.form-panel .request-form{max-width:760px}

/* ---------- главная: блоки на исходных текстах ---------- */
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:36px auto 12px}
.metric{background:#fff;border:1px solid var(--line);border-top:3px solid #f7cf4e;border-radius:4px;padding:22px 22px 20px}
.metric b{display:block;font-size:30px;line-height:1.1;letter-spacing:-.6px;color:#292f3d}
.metric .mt{display:block;font-size:11px;letter-spacing:1.1px;text-transform:uppercase;font-weight:600;color:#8a6a00;margin:6px 0 12px}
.metric p{margin:0;font-size:13px;line-height:1.65;color:#5f6673}
.chooser h2{margin-top:0}
.chooser .sub{margin-top:8px}
.hub-tiles .service-tile:last-child:nth-child(odd){grid-column:1/-1;height:200px}
.material-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.material-cards .material-card{min-height:118px}
.material-cards .material-card h3{font-size:16px}
.material-cards .material-card p{font-size:12.5px;line-height:1.6}
.more-link{margin:22px 0 0;font-size:13px}
.more-link a{border-bottom:1px solid currentColor;color:#775a00}
.chooser .card .card-body p{min-height:0}
.step-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.step h3{margin-top:0}
.request-section .request-form{max-width:none}
.work h3{overflow-wrap:anywhere}

/* ---------- нижний блок страницы (бывшая CTA-полоса сайта) ---------- */
.bottom-actions{justify-content:space-between}
.bottom-actions .cta-text{display:flex;flex-direction:column;gap:2px;margin-right:auto;min-width:240px}
.bottom-actions .cta-text b{font-size:18px;line-height:1.35}
.bottom-actions .cta-text span{font-size:13px;color:#5f6673}
.bottom-actions .cta-buttons{display:flex;gap:12px;flex-wrap:wrap}
.bottom-actions .btn.secondary{color:#292f3d;border-color:#8d939e}
.bottom-actions .btn.secondary:hover{background:#292f3d;color:#fff;border-color:#292f3d}

/* таблицы из исходных текстов: не рвём телефон и @имя посреди слова (в макете overflow-wrap:anywhere);
   если не помещается — таблица прокручивается внутри своего блока */
.source-body td,.source-body th,.technical-body td,.technical-body th{overflow-wrap:normal;word-break:normal}
.nw,.source-body a[href^="tel:"],.source-body a[href^="mailto:"],.technical-body a[href^="tel:"],.technical-body a[href^="mailto:"]{white-space:nowrap}

/* ---------- ссылки-кнопки из исходных текстов ---------- */
.source-body a.btn-outline,.source-body a.btn-primary,.technical-body a.btn-outline{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border:1px solid #292f3d;border-radius:5px;color:#292f3d;font-weight:650;font-size:14px;text-decoration:none;margin:6px 0;transition:background .3s,color .3s}
.source-body a.btn-outline:hover,.technical-body a.btn-outline:hover{background:#292f3d;color:#fff}
.source-body a.btn-primary{background:#f7cf4e;border-color:#f7cf4e}

/* ---------- подвал ---------- */
.footer-v6 .footer-brand-note{color:#aeb5c2;font-size:12px;line-height:1.7;margin:10px 0 0}
.footer-v6 .footer-phone-label{display:block;color:#8f97a8;font-size:11px;margin:8px 0 0}
.footer-v6 .footer-bottom{gap:6px 24px}
.footer-v6 .footer-bottom span+span{margin-left:auto;text-align:right}

/* ---------- служебные страницы ---------- */
.no-confirmation .page-hero:not(.sent-gate-notice),.no-confirmation .source-content{display:none}
.notfound-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.notfound-links .btn.secondary{color:#fff}
.page-hero .lead{font-size:16px;line-height:1.7;color:#d4d7df;margin:20px 0 0;max-width:640px}
.contact-quick{align-items:center}
.contact-quick .btn.secondary{color:#292f3d;border-color:#8d939e}
.contact-quick .btn.secondary:hover{background:#292f3d;color:#fff;border-color:#292f3d}

@media(max-width:1000px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .material-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .step-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}
  .request-grid{grid-template-columns:1fr}
  .request-form{max-width:none}
  .hub-tiles .service-tile:last-child:nth-child(odd){grid-column:auto}
}
@media(max-width:700px){
  .metrics{grid-template-columns:1fr;gap:12px}
  .metric b{font-size:26px}
  .material-cards{grid-template-columns:1fr}
  .step-grid.five{grid-template-columns:1fr 1fr}
  .request-form,.request-info{padding:20px 18px}
  .form-panel>h2{font-size:23px}
  .bottom-actions .cta-buttons{width:100%}
  .bottom-actions .cta-buttons .btn{flex:1 1 auto}
  .footer-v6 .footer-bottom span+span{margin-left:0;text-align:left}
}
