/*
Theme Name: Gitun
Theme URI: https://gitun.ru
Author: Gitun
Author URI: https://gitun.ru
Description: Modern and responsive WordPress theme built with Bootstrap 5.3.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gitun
*/

:root {
  --gt-primary: #0d6efd;
  --gt-primary-hover: #0b5ed7;
  --gt-dark: #1e293b;
  --gt-light: #f8fafc;
  --gt-border: #e2e8f0;
  --gt-radius: 12px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.top-bar {
  background-color: #0f172a;
  font-size: 0.875rem;
}
.top-bar a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.top-bar a:hover {
  color: #ffffff;
}
.top-bar .dropdown-menu {
  background-color: #1e293b;
  border-color: #334155;
}
.top-bar .dropdown-item {
  color: #cbd5e1;
}
.top-bar .dropdown-item:hover {
  background-color: #334155;
  color: #ffffff;
}

.logo-banner-bar {
  background-color: #ffffff;
}
.logo-banner-bar img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.logo-banner-bar a:hover img {
  transform: scale(1.02);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.dropdown-menu .dropdown-submenu {
  position: relative;
}
.dropdown-menu .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: 0;
  border-radius: var(--gt-radius);
  display: none;
}
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu,
.dropdown-menu .dropdown-submenu:focus-within > .dropdown-menu,
.dropdown-menu .dropdown-submenu.show > .dropdown-menu {
  display: block;
}
.dropdown-menu .dropdown-submenu > .dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  float: right;
  margin-top: 6px;
}

.pagination-custom .page-item .page-link {
  border: 1px solid var(--gt-border);
  border-radius: 10px !important;
  color: var(--gt-dark);
  font-weight: 600;
  padding: 0.6rem 1rem;
  background-color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
}
.pagination-custom .page-item .page-link:hover {
  background-color: var(--gt-primary);
  color: #ffffff;
  border-color: var(--gt-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.25);
}
.pagination-custom .page-item.active .page-link {
  background-color: var(--gt-primary);
  border-color: var(--gt-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}
.pagination-custom .page-item.disabled .page-link {
  opacity: 0.5;
  background-color: #f1f5f9;
  border-color: var(--gt-border);
  cursor: not-allowed;
}

.card-post {
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.card-post .card-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 60%;
  background: #e2e8f0;
}
.card-post .card-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.card-post:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gt-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1040;
}
.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
}
.btn-scroll-top:hover {
  background: var(--gt-primary-hover);
  transform: translateY(-3px);
  color: #fff;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #1e293b;
  color: #fff;
  padding: 20px;
  border-radius: var(--gt-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 1050;
  display: none;
}
.cookie-banner.show {
  display: block;
}

.contact-card {
  background: #fff;
  border-radius: var(--gt-radius);
  border: 1px solid var(--gt-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.map-container {
  border-radius: var(--gt-radius);
  overflow: hidden;
  min-height: 350px;
  background: #e2e8f0;
}
.map-container iframe, .map-container ymaps {
  width: 100% !important;
  height: 100% !important;
  min-height: 350px;
}

.gitun-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.gitun-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.gitun-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.gitun-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}
footer a, #gitun-cookie-banner a{
  text-decoration: none;
}
#menu-footermenu a{
  color: #94a3b8;
}
#menu-footermenu a:hover{
  color: #0d6efd;
}

/* Top Bar Search */
.top-bar-search {
  max-width: 300px;
  width: 100%;
}
.top-bar-search .search-input {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 0.8125rem;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.top-bar-search .search-input::placeholder {
  color: #94a3b8;
}
.top-bar-search .search-input:focus {
  background-color: #1e293b;
  border-color: var(--gt-primary);
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.top-bar-search .search-submit {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.8125rem;
}
@media (max-width: 767.98px) {
  .top-bar-search {
    max-width: 240px;
  }
}
@media (max-width: 575.98px) {
  .top-bar-search {
    max-width: 100%;
    flex: 1 1 100%;
  }
  h1, h2{
    font-size: calc(1.325rem + -0.1vw) !important;
  }
}