/* Compatibility fixes and responsive behavior for the original ABC design. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; height: auto; font-family: 'Roboto', Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: #237ca9; }
a:hover { color: #155a7e; }
:focus-visible { outline: 3px solid #228ebf; outline-offset: 4px; }
.wrapper { margin: 0; min-height: 55vh; overflow: clip; }
.container { width: min(960px, calc(100% - 40px)); }
.site-header { height: auto; position: relative; z-index: 10; background: white; }
.site-header .contacts { height: auto; }
.header-line { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: #323232; font-size: 18px; line-height: 1.5; }
.brand img { width: 65px; height: auto; flex-shrink: 0; }
.header-phone { color: #323232; font-size: 14px; font-weight: 700; white-space: nowrap; padding-left: 28px; background: url('/images/phone-blue.png') no-repeat left center; }
.site-navigation { border-bottom: 1px solid #d7d7d7; }
.site-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 0; }
.site-navigation a { display: block; padding: 15px 0; font-size: 13px; text-transform: uppercase; color: #323232; border-bottom: 3px solid transparent; }
.site-navigation a:hover, .site-navigation a[aria-current] { border-color: #90c6e6; }
.menu-toggle { display: none; }
.home-page .site-header { position: absolute; top: 0; left: 0; width: 100%; background: transparent; }
.home-page .site-navigation { border-color: #bababa66; }
.home-page .wrapper > .section { height: auto !important; min-height: 100svh; padding: 80px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; scroll-margin-top: 0; }
.home-page .section > .container { flex-shrink: 0; }
.home-page .wrapper > #about { padding-top: 185px; position: relative; z-index: 0; }
.home-page .section > section:empty { display: none; }
.home-page #about h3 { font-size: 24px; line-height: 1.4; }
.home-page #about h2 { font-size: 48px; }
.home-page .section .container-head { padding-top: 0; }
.home-page .section h2 { line-height: 1.2; margin-top: 0; }
.home-page .section .lead { line-height: 1.55; }
.home-page #contacts .container-content { display: flex; align-items: start; }
.btn { display: inline-block; }
.skip-link { position: absolute; top: -100px; left: 15px; padding: 12px; background: white; z-index: 100; }
.skip-link:focus { top: 10px; }
.article-content, .listing-content { padding: 30px 0 70px; line-height: 1.7; }
.article-content h1, .listing-content h1 { font: 400 40px/1.25 'Roboto', sans-serif; margin: 24px 0; color: #323232; overflow-wrap: anywhere; }
.article-content h2 { font-size: 30px; }
.article-content p, .article-content li { font-size: 16px; line-height: 1.7; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; }
.article-image { display: block; max-height: 480px; object-fit: contain; margin: 25px auto; }
.article-content .article-date { color: #767676; font-size: 14px; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.content-card { border-bottom: 2px solid #d7d7d7; padding-bottom: 24px; overflow-wrap: anywhere; }
.content-card img { width: 100%; height: 170px; object-fit: contain; background: #f6f6f6; }
.content-card h2 { font-size: 21px; line-height: 1.4; }
.content-card h2 a { color: #323232; }
.content-card time { color: #666572; font-size: 13px; }
.read-more { display: inline-block; margin-top: 14px; }
.card-preview { max-height: 180px; overflow: hidden; }
.pagination-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 35px 0; }
.pagination-nav a { display: block; border: 1px solid #b7b7b7; padding: 6px 14px; }
.pagination-nav a[aria-current] { background: #237ca9; color: white; }
.site-footer { height: auto; min-height: 100px; padding: 20px 0; clear: both; }
.footer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.site-footer a { display: inline; padding: 0; width: auto; color: #237ca9; }
.site-footer a:hover { color: #155a7e; }
.site-footer p { line-height: 1.6; }
.contact-actions { padding: 25px 0 50px; }
.contact-actions h2 { font-size: 32px; }
.contact-actions a { text-decoration: underline; }
.map-point { cursor: help; }
.map-point:hover .tooltip_description, .map-point:focus .tooltip_description { display: block !important; position: absolute; background: #fff; color: #323232; border: 1px solid #90c6e6; border-radius: 4px; padding: 6px 10px; min-width: 120px; bottom: 100%; left: 0; z-index: 20; }
.partner:hover .bw, .partner:focus-within .bw { display: none; }
.partner:hover .colored, .partner:focus-within .colored { display: inline-block !important; }
#image-viewer { max-width: 95vw; max-height: 95vh; padding: 40px 15px 15px; border: 0; }
#image-viewer::backdrop { background: #000b; }
#image-viewer img { max-height: 80vh; display: block; }
.close-viewer { position: absolute; right: 5px; top: 0; background: white; border: 0; font-size: 32px; cursor: pointer; }
@media (max-width: 1000px) {
  .site-navigation ul { gap: 16px; }
  .brand { font-size: 16px; }
  .map-wrapper { max-width: 100%; }
  .lead { font-size: 22px; line-height: 1.5; }
  h2 { font-size: 36px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .site-header .header-line { min-height: 85px; height: auto; gap: 8px; }
  .brand { font-size: 12px; gap: 8px; }
  .brand img { width: 48px; }
  .header-phone { font-size: 12px; padding-left: 0; background: none; }
  .menu-toggle { display: block; padding: 10px 8px; border: 1px solid #90c6e6; color: #323232; background: #ffffffdd; border-radius: 3px; font-size: 12px; }
  .site-navigation { display: none; background: #fff; }
  .site-navigation.is-open { display: block; }
  .site-navigation ul { display: block; padding: 8px 0; }
  .site-navigation a { padding: 10px 0; }
  .home-page .wrapper > .section { min-height: 600px; padding: 60px 0; background-position: center; }
  .home-page .wrapper > #about { padding-top: 130px; }
  .home-page #about h2 { font-size: 34px; }
  .home-page #about h3 { font-size: 18px; }
  .home-page .section h2 { font-size: 32px; }
  .home-page .section .w70 { width: 100%; }
  .home-page #contacts .container-content { display: block; }
  .home-page #contacts .col-33 { width: 100%; margin: 15px 0; }
  .home-page #contacts { min-height: auto; }
  .home-page #contacts img { max-height: 50px; }
  .lead { font-size: 19px; line-height: 1.6; }
  .btn-more { font-size: 16px; }
  .col-33.usluga, .col-33.field { width: 50%; min-height: 260px; height: auto; padding: 15px 10px; }
  .col-33.partner { width: 50%; height: 150px; }
  .col-50, .fl-5 { width: 100%; flex-basis: 100%; max-width: 100%; }
  .fl-row { flex-wrap: wrap; }
  .contactspage .col-33 { width: 100%; padding: 15px; }
  .contactspage .offices { display: none; }
  .article-content h1, .listing-content h1 { font-size: 30px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-card img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 4px; }
  .txt-header { font-size: 30px !important; }
  .txt-text { font-size: 15px !important; }
  .inner-page .wrapper .container-head { padding-bottom: 25px !important; }
  .map-wrapper .map-point { transform: scale(.65); transform-origin: center; }
}
@media (max-width: 400px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.home-page #about h1 { font: 400 48px/1.2 'Roboto', sans-serif; color: #323232; margin: 0.83em 0; }
.txt-header { font: 600 40px/1.3 'Roboto', sans-serif; }
.unavailable-document { display: block; padding: 16px; border-left: 3px solid #90c6e6; color: #666572; }
@media (max-width:700px) { .home-page #about h1 { font-size: 34px; } }
@media (min-width: 1001px) {
  .home-page .header-line { position: relative; }
  .home-page .header-phone { position: absolute; top: 82px; right: 0; }
  .home-page .site-navigation { position: absolute; top: 15px; left: 0; width: 100%; border: none; }
  .home-page .site-navigation .container { padding-left: 80px; overflow: visible; }
  .home-page .site-navigation ul { gap: 16px; }
  .home-page .site-navigation a { font-size: 15px; }
}
@media (max-width: 700px) {
  .contactspage .offices { display: block; }
  .contactspage .offices .col-50 { width: 100%; }
}
@media (max-width: 700px) {
  .home-page .btn-more { position: static; float: none; margin-top: 20px; }
}
