/*
Theme Name: СТАБСТРОЙ
Theme URI: https://koshelek.org.ru/
Author: СТАБСТРОЙ
Description: Отдельная классическая тема на основе вёрстки htmls с управлением контентом через Pods.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: koshelek
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, label[for="nav-toggle"] { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.screen-reader-text, .form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 100000; background: var(--white); color: var(--blue); padding: 12px; }
.head_li_trigger { background: transparent; color: inherit; font: inherit; }
.head_submenu a { display: block; }
.head_submenu { z-index: 30; }
.head_list { gap: 24px; }
.head_btn { flex-shrink: 0; }
.intro_right:has(> .in_right_item:nth-child(4)) > .in_right_item:nth-child(3) { margin: 0 !important; }
.btn_head { padding: 16px 20px; white-space: nowrap; }
.logo img { max-width: 220px; height: auto; }
.footer_top > a { align-self: flex-start; }
.footer_top > a img { max-width: 220px; }
.footer_bott a { color: var(--grey); font-size: 12px; line-height: 1.4; }
.analytics-settings { background: transparent; color: var(--grey); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent {
  position: fixed;
  z-index: 1100;
  left: 24px;
  bottom: 24px;
  width: calc(100% - 128px);
  max-width: 760px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 8px 36px #04192c30;
}
.analytics-consent h2 { margin: 0 0 10px; font-family: var(--second-family); font-size: 20px; line-height: 1.3; }
.analytics-consent p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.analytics-consent p a { color: var(--orange); text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.analytics-consent-actions .btn_orange, .analytics-decline { min-width: 0; padding: 12px 18px; font-size: 14px; line-height: 1.4; }
.analytics-decline { border: 1px solid #d4d4d4; border-radius: 8px; background: var(--white); color: var(--black); }
.gallery .gallery_btn { display: flex; justify-content: center; }
.serv_description { font-size: 15px; line-height: 1.5; color: var(--black); max-width: 384px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.serv_item .btn_white { margin-top: auto; }
.service_gallery_item, .gallery_item, .portf_item { cursor: zoom-in; }
.work-lightbox-open, .work-lightbox-open body { overflow: hidden; }
.work_lightbox {
  position: fixed;
  inset: 0;
  width: calc(100% - 48px);
  max-width: 1440px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 56px 24px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: center;
}
.work_lightbox::backdrop { background: rgba(4, 25, 44, 0.9); }
.work_lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; }
.work_lightbox_img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
  border-radius: 8px;
  object-fit: contain;
}
.work_lightbox figcaption { max-width: 80ch; font-size: 16px; line-height: 1.5; }
.work_lightbox_source { display: inline-block; margin-top: 12px; color: var(--white); font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.work_lightbox_close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
}
.work_lightbox_close:hover { background: rgba(255, 255, 255, 0.25); }
.portfolio_page .gallery_two .gallery_item { flex: 1; min-width: 0; }
.portfolio_page .gallery_two .gallery_item:has(.w_820) { flex: 2; }
.portfolio_page .gallery_two img { min-width: 0 !important; max-width: 100% !important; width: 100%; }
.conect_form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.conect_form input:not([type="hidden"]):not([type="checkbox"]), .conect_form select, .conect_form textarea {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #d4d4d4;
  background: var(--white);
  border-radius: 8px;
  color: var(--black);
  font-size: 16px;
  resize: vertical;
}
.conect_form textarea { min-height: 150px; }
.conect .conect_form select { height: 51px; padding: 12px 20px; }
.conect_form .btn_orange { width: 100%; min-width: 0; }
.form-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.5; }
.form-consent input { appearance: auto; width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--orange); }
.form-consent a { color: var(--orange); text-decoration: underline; }
.form-notice { padding: 14px; border-radius: 8px; font-size: 16px !important; }
.form-success { background: #eaf6e9; color: #185c25; }
.form-error { background: #fff0e8; color: #7f2b18; }
.contacts .contacts_img { display: block; flex: 0 1 auto; width: 48%; min-width: 0; }
.contacts .contacts_img .conect_form { max-width: 700px; }
.contacts .conect_form h3, .contacts .form-consent { color: var(--white); }
.service_details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.service_details > img { width: 100%; border-radius: 8px; }
.service_details p { font-size: 18px; line-height: 1.7; margin-bottom: 24px; }
.service_description ul, .service_description ol { font-size: 18px; line-height: 1.7; margin-bottom: 24px; padding-left: 24px; }
.service_description ul { list-style: disc; }
.service_description ol { list-style: decimal; }
.service_description a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.site-content { padding-top: 64px; padding-bottom: 64px; font-size: 18px; line-height: 1.7; }
.site-content p, .site-content ul, .site-content ol { margin-bottom: 20px; }
.site-content ul { list-style: disc; padding-left: 24px; }
.site-content ol { list-style: decimal; padding-left: 24px; }
.site-content img, .new_ifno img { max-width: 100%; }
.map iframe { max-width: 100%; width: 100%; display: block; border: 0; height: 320px; }
.new_ifno { padding-top: 40px; padding-bottom: 40px; }

@media (min-width: 768px) {
  .map iframe { height: 500px; }
}
@media (max-width: 1440px) {
  .head_list { gap: 18px; }
  .btn_head { font-size: 14px; padding: 16px 14px; }
  .logo img { max-width: 180px; }
}
@media (max-width: 1024px) {
  .head_btn { margin-left: auto; }
  .contacts { flex-direction: column; align-items: stretch; gap: 32px; }
  .contacts_info { width: 100%; max-width: none; margin-top: 0; }
  .contacts .contacts_img { width: 100%; }
}
@media (max-width: 768px) {
  .work_lightbox { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 56px 12px 16px; }
  .work_lightbox_img { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
  .analytics-consent { left: 16px; bottom: 88px; width: calc(100% - 32px); max-height: calc(100dvh - 112px); padding: 18px; }
  .service_details { grid-template-columns: 1fr; gap: 24px; }
  .portfolio_page .gallery_two .gallery_item { flex: auto; width: 100%; }
  .portfolio_page .gallery_two .gallery_item:has(.w_820) { flex: auto; }
  .serv_description { font-size: 14px; }
  .conect_form { gap: 14px; }
  .contacts .contacts_img { width: 100%; }
  .site-content { padding-top: 32px; padding-bottom: 32px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@supports (content-visibility: auto) {
  main > section ~ section { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
}
