/*
Theme Name: Garant WP
Theme URI: https://localhost/garant-wp
Author: OpenAI Codex
Description: WordPress theme rebuilt from the legacy Drupal Garant theme as a safe reference implementation.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: garant-wp
*/

:root {
  --gp-blue: #004eb8;
  --gp-blue-dark: #003f97;
  --gp-orange: #f39800;
  --gp-text: #231f20;
  --gp-border: #d7d7d7;
  --gp-bg: #ffffff;
  --gp-wrap: 1180px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--gp-bg);
  color: var(--gp-text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gp-blue);
}

a:hover {
  color: var(--gp-orange);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--gp-wrap);
  max-width: calc(100% - 30px);
  margin: 0 auto;
  position: relative;
}

.clear {
  clear: both;
}

.header-background {
  background: #fff;
  padding: 20px 0 0;
}

.header {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  padding: 0 0 18px;
}

.header .logo {
  float: none;
  margin: 8px 0 0;
  flex: 0 0 310px;
}

.header .logo img {
  display: block;
  width: 100%;
  max-width: 310px;
}

.header .regions {
  float: none;
  width: 285px;
  margin: 18px 0 0;
}

.header .regions .region-trigger {
  display: inline-block;
  color: var(--gp-blue);
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 12px;
}

.header .regions .serach-form {
  position: relative;
  display: block;
  margin: 0;
}

.header .regions .serach-form .search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #a3a3a3;
  border-radius: 4px;
  min-height: 42px;
  padding: 0 42px 0 12px;
  font-size: 17px;
}

.header .regions .serach-form .search-subm {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 26px;
  height: 26px;
  border: 0;
  cursor: pointer;
  background: url(assets/img/loop.png) no-repeat center center;
  background-size: 18px 18px;
}

.header .phones {
  float: none;
  width: auto;
  margin: 0 0 0 auto;
  display: flex;
  gap: 34px;
  align-items: flex-start;
  padding-top: 4px;
}

.header .phones strong {
  display: block;
  margin: 0;
  font-size: 32px;
  font-style: italic;
  color: var(--gp-blue);
  line-height: 1.05;
}

.header .phones strong a {
  color: inherit;
  text-decoration: none;
}

.header .phones strong span {
  display: block;
  margin-top: 4px;
  color: #4c4c4c;
  font-size: 15px;
  font-style: normal;
  font-weight: normal;
}

.header .phones .btn-call-back2 {
  display: none;
}

.header .controls {
  display: none;
}

.header-nav-background {
  background: var(--gp-blue);
  height: auto;
}

.header-nav {
  position: relative;
  min-height: 48px;
}

.header-nav .header-navi {
  display: flex !important;
}

.header-navi {
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-navi > li {
  display: block;
  width: auto !important;
  flex: 1 1 0;
  position: relative;
  margin: 0;
}

.header-navi > li > a {
  display: block;
  height: auto;
  padding: 14px 12px 13px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.1;
}

.header-navi > li.active-trail > a,
.header-navi > li:hover > a,
.header-navi > li.current-menu-item > a,
.header-navi > li.current-menu-ancestor > a {
  background: #1f63cf;
}

.header-navi li > ul {
  display: none;
  position: absolute;
  left: 0;
  top: 45px;
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  background: rgba(31, 99, 207, 0.96);
  z-index: 30;
}

.header-navi > li:hover > ul,
.header-navi > li:focus-within > ul {
  display: block;
}

.header-navi li ul li a {
  font-size: 15px;
  padding: 10px 12px;
}

.menu-button {
  display: none;
  background-position: 7px 9px;
  top: -38px;
  right: 0;
}

.service-background {
  background: #fff;
  padding: 18px 0 12px;
}

.service .service-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.service .service-nav li {
  width: 176px !important;
  margin: 0 !important;
  text-align: center;
}

.service .service-nav li a,
.service .service-nav li span.service-link {
  display: block;
  color: var(--gp-blue);
  font-size: 17px;
  font-weight: bold;
  line-height: 1.15;
}

.service .service-nav li a:hover {
  color: var(--gp-orange);
}

.service .service-nav li a img,
.service .service-nav li span.service-link img {
  display: block;
  width: auto;
  max-width: 56px;
  max-height: 56px;
  margin: 0 auto 10px;
}

.service .service-nav li a span,
.service .service-nav li span.service-link span {
  display: block;
}

.service .service-nav .is-disabled {
  opacity: 0.8;
  cursor: default;
}

.content-background {
  background: #fff;
  padding: 14px 0 0;
}

.content {
  display: flex;
  align-items: flex-start;
}

.content .sidebar-left {
  width: 268px;
  margin: 0;
  flex: 0 0 268px;
}

.content .content-right {
  width: calc(100% - 300px);
  margin: 0 0 0 32px;
  min-height: 500px;
}

.sidebar-group {
  margin-bottom: 18px;
}

.sidebar-group-title {
  background: var(--gp-blue);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 16px;
  margin: 0 0 1px;
  letter-spacing: 0.2px;
}

.content .sidebar-left .sidebar-nav.sidebar-nav1 {
  display: block;
  margin: 0;
}

.content .sidebar-left .sidebar-nav.sidebar-nav1 > li {
  margin: 0 0 2px;
}

.content .sidebar-left .sidebar-nav.sidebar-nav1 > li > a {
  display: block;
  background: #2d55b7;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.15;
  padding: 15px 16px;
  text-transform: uppercase;
}

.content .sidebar-left .sidebar-nav.sidebar-nav1 > li > a:hover {
  background: var(--gp-blue-dark);
  color: #fff;
}

.content .sidebar-left .news {
  margin: 18px 0 0;
}

.content .sidebar-left .news .title {
  display: block;
  color: var(--gp-orange);
  font-size: 22px;
  margin: 0 0 12px 0;
}

.content .sidebar-left .news .post {
  margin: 0 0 14px;
}

.content .sidebar-left .news .data-post {
  display: block;
  color: var(--gp-orange);
  font-size: 16px;
  margin: 0 0 2px;
}

.content .sidebar-left .news .news-title {
  display: block;
  color: var(--gp-blue);
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
}

.content .sidebar-left .news .see-all {
  display: inline-block;
  margin-top: 6px;
  color: var(--gp-blue);
}

.content .sidebar-left .sidebar-banner {
  display: block;
  margin: 20px 0 0;
}

.content .sidebar-left .sidebar-banner img {
  display: block;
  width: 100%;
}

.index-content,
.garant-page-content,
.garant-archive-list,
.garant-single-content {
  background: #fff;
}

.index-banner {
  margin: 0 0 24px;
}

.index-banner .flexslider,
.index-banner .slides,
.index-banner .slides li {
  margin: 0;
}

.index-banner .slides img {
  display: block;
  width: 100%;
}

.index-banner .flexslider {
  border: 0;
}

.index-banner .flex-control-nav {
  bottom: 10px;
}

.index-banner .flex-control-paging li a {
  width: 16px;
  height: 16px;
}

.index-content h1,
.index-content .h1 {
  color: var(--gp-orange);
  font-size: 31px;
  line-height: 1.12;
  padding: 0 0 14px 0;
  margin: 0;
}

.index-content h2,
.index-content .h2,
.index-content h3,
.index-content .h3 {
  color: var(--gp-orange);
}

.index-content h2,
.garant-home-content h2,
.garant-home-why h2,
.garant-front-news .title {
  font-size: 27px;
  line-height: 1.15;
}

.about-post,
.garant-home-intro,
.garant-contact-form-placeholder,
.garant-contact-card {
  color: var(--gp-text);
}

.about-post p,
.garant-home-intro p,
.garant-contact-form-placeholder p,
.garant-contact-card p,
.garant-home-content p {
  color: var(--gp-text);
  font-size: 18px;
  line-height: 1.68;
  margin: 0 0 18px;
}

.garant-home-intro {
  padding-bottom: 14px;
}

.garant-home-content h2,
.garant-home-content h3,
.garant-home-content h4 {
  color: var(--gp-orange);
  margin: 0 0 12px;
}

.garant-home-content ul,
.garant-home-content ol {
  margin: 0 0 16px 22px;
}

.garant-home-content li {
  margin: 0 0 8px;
}

.garant-home-why {
  margin: 10px 0 18px;
}

.garant-home-why p {
  font-size: 17px;
  line-height: 1.62;
}

.garant-entry-date {
  color: var(--gp-orange);
  display: block;
  font-size: 16px;
  margin: 0 0 10px;
}

.garant-read-more,
.garant-front-news .section-link {
  color: var(--gp-blue);
  display: inline-block;
  margin: 0;
}

.garant-front-news {
  margin-top: 28px;
}

.garant-front-news .about-post,
.garant-archive-list .about-post,
.garant-page-content .about-post,
.garant-single-content .about-post {
  margin-bottom: 28px;
}

.garant-front-news .about-post .title,
.garant-archive-list .about-post .title,
.garant-single-content .about-post .title {
  font-size: 25px;
  line-height: 1.14;
}

.cheme-descop,
.cheme-mobile {
  max-width: 100%;
  overflow: hidden;
}

.cheme-descop .cheme-img,
.cheme-mobile img {
  max-width: 100%;
}

.garant-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 10px 0 25px;
}

.garant-contact-card {
  border: 2px solid #a0a0a0;
  padding: 16px 18px;
}

.garant-contact-card h3 {
  color: var(--gp-blue);
  font-size: 18px;
  margin: 0 0 8px;
}

.garant-contact-card a {
  color: var(--gp-blue);
}

.garant-contact-form-placeholder {
  border: 2px dashed var(--gp-orange);
  padding: 18px;
  margin: 16px 0 0;
}

.footer-background {
  background: var(--gp-blue);
  padding: 0 0 26px;
}

.footer .descop {
  display: flex;
  align-items: flex-start;
  gap: 38px;
  padding: 24px 0 0;
}

.footer .logo,
.footer .phones,
.footer .copyright,
.footer .social {
  float: none;
  margin: 0;
}

.footer .logo {
  flex: 0 0 220px;
}

.footer .logo img {
  width: 100%;
  max-width: 220px;
}

.footer .phones {
  color: #fff;
  margin-top: 10px;
}

.footer .phones strong {
  display: block;
  margin: 0 0 8px;
  font-size: 31px;
  font-style: italic;
}

.footer .phones strong a {
  color: inherit;
  text-decoration: none;
}

.footer .phones span {
  display: inline-block;
  margin-top: 12px;
}

.footer .phones span a {
  color: #fff;
  font-size: 15px;
}

.footer .copyright {
  color: #fff;
  margin-top: 12px;
}

.footer .copyright p {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.footer .copyright a {
  color: #fff;
}

.footer .social {
  color: #fff;
  text-align: center;
  margin-left: auto;
  margin-top: 12px;
}

.footer .social p {
  margin: 0 0 16px;
  font-size: 16px;
}

.footer .social a {
  display: inline-block;
  margin: 0 5px;
}

.footer .mobile {
  display: none;
}

/* PASS 5: final parity overrides */
.header-background {
  padding: 12px 0 0;
}

.header {
  gap: 24px;
  padding: 0 0 10px;
}

.header .logo {
  margin-top: 4px;
  flex-basis: 270px;
}

.header .logo img {
  max-width: 270px;
}

.header .regions {
  width: 250px;
  margin-top: 12px;
}

.header .regions .region-trigger {
  font-size: 16px;
  margin-bottom: 8px;
}

.header .regions .serach-form .search {
  min-height: 36px;
  font-size: 15px;
}

.header .regions .serach-form .search-subm {
  top: 6px;
  right: 8px;
}

.header .phones {
  gap: 26px;
  padding-top: 0;
}

.header .phones strong {
  font-size: 25px;
}

.header .phones strong span {
  margin-top: 3px;
  font-size: 13px;
}

.header-navi > li > a {
  padding: 11px 10px 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.header-navi li > ul {
  top: 37px;
}

.header-navi li ul li a {
  font-size: 14px;
  padding: 8px 11px;
  text-transform: none;
}

.service-background {
  padding: 14px 0 10px;
}

.service .service-nav li {
  width: 170px !important;
}

.service .service-nav li a,
.service .service-nav li span.service-link {
  font-size: 15px;
}

.service .service-nav li a img,
.service .service-nav li span.service-link img {
  max-width: 48px;
  max-height: 48px;
  margin-bottom: 8px;
}

.content .sidebar-left {
  width: 250px;
  flex-basis: 250px;
}

.content .content-right {
  width: calc(100% - 278px);
  margin-left: 28px;
}

.sidebar-group-title,
.content .sidebar-left .sidebar-nav.sidebar-nav1 > li > a {
  background: #2d55b7;
}

.sidebar-group {
  margin-bottom: 12px;
}

.sidebar-group-title {
  font-size: 16px;
  padding: 11px 14px;
}

.content .sidebar-left .sidebar-nav.sidebar-nav1 > li {
  margin-bottom: 1px;
}

.content .sidebar-left .sidebar-nav.sidebar-nav1 > li > a {
  font-size: 14px;
  line-height: 1.12;
  padding: 11px 14px;
}

.content .sidebar-left .news .title {
  font-size: 18px;
}

.content .sidebar-left .news .data-post {
  font-size: 14px;
}

.content .sidebar-left .news .news-title {
  font-size: 15px;
  line-height: 1.14;
}

.garant-breadcrumbs {
  color: #8b8b8b;
  font-size: 13px;
  line-height: 1.25;
  margin: 0 0 14px;
}

.garant-breadcrumbs a,
.garant-breadcrumbs span {
  color: #8b8b8b;
  text-decoration: none;
}

.garant-breadcrumbs a:hover {
  color: var(--gp-blue);
}

.garant-breadcrumbs-sep {
  color: #a0a0a0;
}

.index-content h1,
.index-content .h1 {
  font-size: 27px;
  line-height: 1.08;
  padding-bottom: 10px;
}

.index-content h2,
.garant-home-content h2,
.garant-home-why h2,
.garant-front-news .title {
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.index-content h3,
.garant-home-content h3,
.garant-home-post-scheme h3 {
  font-size: 20px;
  line-height: 1.12;
  margin: 0 0 8px;
}

.about-post p,
.garant-home-intro p,
.garant-contact-form-placeholder p,
.garant-contact-card p,
.garant-home-content p,
.garant-page-content .about-post p,
.garant-single-content .about-post p {
  font-size: 16px;
  line-height: 1.48;
  margin: 0 0 12px;
}

.garant-home-why p,
.garant-home-post-scheme p {
  font-size: 16px;
  line-height: 1.48;
  margin-bottom: 12px;
}

.garant-home-intro,
.garant-home-why,
.garant-home-post-scheme,
.garant-front-news,
.cheme-descop,
.cheme-mobile {
  margin-top: 0;
  margin-bottom: 18px;
}

.garant-page-content--forms .about-post,
.garant-page-content--forms .about-post p,
.garant-page-content--forms .about-post li {
  font-size: 15px;
  line-height: 1.42;
}

.garant-page-content--forms h2,
.garant-page-content--forms h3 {
  margin-top: 10px;
  margin-bottom: 8px;
}

.garant-entry-date {
  font-size: 14px;
  margin-bottom: 6px;
}

.garant-front-news .about-post .title,
.garant-archive-list .about-post .title,
.garant-single-content .about-post .title {
  font-size: 21px;
}

.footer-background {
  padding-bottom: 18px;
}

.footer .descop {
  gap: 28px;
  padding-top: 18px;
}

.footer .logo {
  flex-basis: 180px;
}

.footer .logo img {
  max-width: 180px;
}

.footer .phones strong {
  font-size: 25px;
  margin-bottom: 5px;
}

.footer .phones span a,
.footer .copyright p,
.footer .social p {
  font-size: 13px;
}

/* PASS 5 follow-up fixes */
.header-nav-background {
  padding: 0;
}

.header-nav {
  min-height: 0;
}

.header-navi > li > a {
  text-transform: uppercase;
}

.sidebar-group {
  margin-bottom: 18px;
}

.sidebar-group-title {
  margin: 0;
}

.sidebar-group-title a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.sidebar-group-title a:hover {
  color: #fff;
}

.sidebar-subnav {
  margin: 0;
  padding: 8px 0 0;
  background: #fff;
}

.sidebar-subnav > li {
  margin: 0;
  background: #fff;
}

.content .sidebar-left .sidebar-nav.sidebar-subnav > li > a,
.sidebar-subnav > li > a {
  display: block;
  background: #fff;
  color: #0b57b7;
  font-size: 15px;
  font-weight: normal;
  line-height: 0.9;
  padding: 6px 18px 6px 18px;
  text-transform: none;
}

.content .sidebar-left .sidebar-nav.sidebar-subnav > li > a:hover,
.sidebar-subnav > li > a:hover {
  background: #fff;
  color: #0b57b7;
  text-decoration: underline;
}

@media screen and (max-width: 1024px) {
  .wrap {
    max-width: calc(100% - 24px);
  }

  .header {
    gap: 20px;
  }

  .header .logo {
    flex-basis: 260px;
  }

  .header .phones {
    gap: 22px;
  }

  .service .service-nav li {
    width: 16.2% !important;
  }

  .content .sidebar-left {
    width: 250px;
    flex-basis: 250px;
  }

  .content .content-right {
    width: calc(100% - 275px);
    margin-left: 25px;
  }
}

@media screen and (max-width: 800px) {
  .wrap {
    max-width: calc(100% - 18px);
  }

  .header {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .header .logo {
    flex: 0 0 180px;
  }

  .header .regions {
    width: 170px;
    margin-top: 16px;
  }

  .header .phones {
    gap: 12px;
    margin-left: 0;
  }

  .header .phones strong {
    font-size: 22px;
  }

  .header-nav-background {
    height: 0;
  }

  .menu-button {
    display: block;
  }

  .header-nav .header-navi {
    display: none;
    margin: 0;
    width: 220px;
    position: absolute;
    right: 0;
    top: -6px;
    z-index: 100;
    background: var(--gp-blue);
  }

  .header-nav .header-navi > li {
    flex: none;
  }

  .header-nav .header-navi > li > a {
    text-align: left;
    padding: 10px 12px;
  }

  .header-nav .header-navi li ul,
  .header-nav .header-navi li:hover ul {
    display: none;
  }

  .service .service-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 6px;
  }

  .service .service-nav li {
    width: 31% !important;
  }

  .content {
    display: block;
  }

  .content .sidebar-left,
  .content .content-right {
    width: 100%;
    margin: 0;
  }

  .content .sidebar-left {
    margin-bottom: 20px;
  }

  .garant-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer .descop {
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer .social {
    margin-left: 0;
  }
}

@media screen and (max-width: 479px) {
  .wrap {
    max-width: calc(100% - 12px);
  }

  .header-background {
    padding-top: 8px;
  }

  .header .logo {
    flex: 0 0 170px;
  }

  .header .regions {
    width: 120px;
    margin-top: 10px;
  }

  .header .phones {
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
  }

  .header .phones strong {
    font-size: 18px;
  }

  .header .phones strong span {
    font-size: 12px;
  }

  .header .phones .btn-call-back2 {
    display: inline-block;
    color: var(--gp-blue);
    font-size: 14px;
    margin-top: 2px;
  }

  .header .regions .serach-form {
    display: none;
  }

  .service-background {
    padding-top: 6px;
  }

  .service .service-nav li {
    width: 32% !important;
  }

  .service .service-nav li a,
  .service .service-nav li span.service-link {
    font-size: 13px;
    line-height: 1.2;
  }

  .service .service-nav li a img,
  .service .service-nav li span.service-link img {
    max-width: 42px;
    max-height: 42px;
    margin-bottom: 5px;
  }

  .index-content h1,
  .index-content .h1 {
    font-size: 20px;
  }

  .about-post p,
  .garant-home-intro p,
  .garant-home-content p {
    font-size: 14px;
    line-height: 1.45;
  }
}
