/*
Theme Name: Original Group
Theme URI: https://original-group.ru/
Author: Original Group
Author URI: https://original-group.ru/
Description: Корпоративная тема для инвестиционно-технологического холдинга Original Group. Точное воспроизведение оригинального дизайна.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: original-group
Tags: business, corporate, dark, technology
*/

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Open Sans', Arial, sans-serif; background: #fff; color: #333; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* === VARIABLES === */
:root {
  --blue:       #2a5f9e;
  --blue-dark:  #1d4a80;
  --blue-light: #3a7abf;
  --gray-bg:    #f5f5f5;
  --gray-border:#ddd;
  --text-dark:  #222;
  --text-muted: #666;
  --white:      #fff;
}

/* === UTILITY === */
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ''; display: table; clear: both; }
.fl { float: left; }
.fr { float: right; }
.text-center { text-align: center; }
.hidden-xs { display: block; }
.visible-xs { display: none; }
.clear { clear: both; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Top bar */
.header_top {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
}
.header_top .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  height: 52px;
  width: auto;
}

/* Vertical separator */
.v_sep {
  width: 1px;
  height: 44px;
  background: var(--gray-border);
  margin: 0 12px;
  flex-shrink: 0;
}

/* Slogan */
.slogan {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  line-height: 1.3;
  text-transform: uppercase;
}

/* Phone */
.phone-top {
  margin-left: auto;
}
.phone-top a {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  transition: color .2s;
}
.phone-top a:hover { color: var(--blue); }

/* Contact button */
.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn_bdblue {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn_bdblue:hover {
  background: var(--blue);
  color: #fff;
}
.btn_bgblue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn_bgblue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.btn_bdwhite {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn_bdwhite:hover { background: #fff; color: var(--blue); }

/* Language switch */
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}
.language-switch .lng img { width: 22px; height: 15px; display: block; }
.language-switch .lng { opacity: .5; transition: opacity .2s; }
.language-switch .lng.lng-active,
.language-switch .lng:hover { opacity: 1; }

/* Navbar */
.topmenu {
  background: var(--blue);
}
.topmenu .container { padding: 0 15px; }

.nav.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav.navbar-nav > li > a {
  display: block;
  padding: 13px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s;
  position: relative;
}
.nav.navbar-nav > li > a:hover,
.nav.navbar-nav > li.current-menu-item > a,
.nav.navbar-nav > li.current-menu-ancestor > a {
  background: rgba(0,0,0,.2);
}

/* Dropdown submenu */
.nav.navbar-nav > li.submenu { position: relative; }
.submenu-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue-dark);
  min-width: 200px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.submenu-menu.open { display: block; }
.submenu-menu li a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  transition: background .2s, color .2s;
}
.submenu-menu li a:hover { background: rgba(255,255,255,.1); color: #fff; }
.submenu-menu .dmenu {
  padding: 8px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.submenu-toggle { cursor: pointer; }

/* Mobile toggle */
.navbar-header { display: none; }
.navbar-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 3px;
  padding: 6px 10px;
  cursor: pointer;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: all .3s;
}

/* ============================================================
   HERO SLIDER (main carousel)
   ============================================================ */
#carousel_main {
  position: relative;
  overflow: hidden;
  background: #000;
}
.carousel-inner { position: relative; width: 100%; }
.carousel-inner .item {
  display: none;
  position: relative;
}
.carousel-inner .item.active { display: block; }
.carousel-inner .item .img {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
}
.carousel-inner .item .img img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}
.carousel-inner .item .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.og-banner-slogan {
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.og-banner-logo { max-height: 80px; margin: 16px auto 0; }

/* Carousel controls */
.controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}
.carousel-control {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.carousel-control:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.carousel-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s;
}
.carousel-indicators li.active { background: #fff; }

/* ============================================================
   ABOUT / SERVICES SECTION
   ============================================================ */
#content.home { background: #fff; }

#content.home > .container h1 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  padding: 0;
}

.about_use {
  position: relative;
  padding: 40px 0 50px;
}
.about_use .bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: var(--gray-bg);
}
.about_use .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.about_use .col-sm-6 {
  width: 50%;
  padding: 0 15px;
  position: relative;
}

/* About column */
.about_use .about .title,
.about_use .use .title {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}
.about_use .about .text,
.about_use .use .text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Award badge */
.about_use .about .pull-right img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-left: 16px;
  margin-bottom: 8px;
}

/* Services column */
.about_use .use {
  background: var(--gray-bg);
  padding: 30px 30px 30px 15px;
}
.about_use .use .row { margin: 0; }
.about_use .use .col-md-6 { width: 50%; padding: 0 10px; }
.about_use .use ul li {
  padding: 6px 0 6px 20px;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 600;
  position: relative;
  border-bottom: 1px solid var(--gray-border);
}
.about_use .use ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
}
.about_use .use ul li:last-child { border-bottom: none; }

/* ============================================================
   CLIENTS / PARTNERS SECTION
   ============================================================ */
.clients {
  padding: 30px 0;
  background: #fff;
}
.clients h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  display: inline-block;
}

/* Logo carousel (Swiper-based in JS) */
.logos-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.logos-carousel {
  display: flex;
  align-items: center;
  gap: 54px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  cursor: grab;
  user-select: none;
}
.logos-carousel::-webkit-scrollbar { display: none; }
.logos-carousel .item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}
.logos-carousel .item img {
  max-height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .7;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
}
.logos-carousel .item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* Carousel nav buttons */
.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.carousel-nav button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-border);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s, border-color .2s;
}
.carousel-nav button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--blue-dark);
}
.footer_bottom {
  padding: 20px 0;
}
.footer_bottom .text-center {
  text-align: center;
}
.footer_bottom .dib {
  display: inline-block;
}
.copyright {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 4px;
}
.privacy_policy a {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.privacy_policy a:hover { color: #fff; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-dialog {
  background: #fff;
  border-radius: 4px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  animation: modalIn .25s ease-out;
}
.modal-dialog.modal-lg { max-width: 800px; max-height: 90vh; overflow-y: auto; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-border);
  text-align: right;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 16px 20px 0;
}
.modal-body { padding: 20px; }
.close-modal {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color .2s;
}
.close-modal:hover { color: var(--text-dark); }

/* Contact Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color .2s;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
}
textarea.form-control { resize: vertical; min-height: 80px; }
.tac { text-align: center; }
.form-agree-text {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.5;
}
.form-agree-text a { color: var(--blue); }

/* Privacy Policy */
.multilevel_list { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.multilevel_list ol { counter-reset: item; padding-left: 0; }
.multilevel_list > ol { margin-bottom: 0; }
.multilevel_list ol > li {
  display: block;
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}
.multilevel_list ol > li::before {
  content: counters(item, '.') '. ';
  counter-increment: item;
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}
.multilevel_list p { color: var(--text-muted); margin: 8px 0; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity .4s, visibility .4s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader .circle, .loader .circle1 {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  animation: bounce 0.8s infinite alternate;
}
.loader .circle1 { animation-delay: .15s; background: var(--blue-light); }
@keyframes bounce {
  from { transform: translateY(0); opacity: .5; }
  to   { transform: translateY(-14px); opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .about_use .col-sm-6 { width: 100%; }
  .about_use .use { padding: 30px 15px; background: var(--gray-bg); }
  .about_use .bg { display: none; }
}

@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
  .navbar-header { display: block; margin-left: auto; }
  .navbar-collapse { display: none; }
  .navbar-collapse.in { display: block; }

  .nav.navbar-nav { flex-direction: column; align-items: stretch; }
  .nav.navbar-nav > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .submenu-menu { position: static; box-shadow: none; display: none; }
  .submenu-menu.open { display: block; }

  .header_top .container { flex-wrap: wrap; }
  .logo { height: 40px; }
  .phone-top { font-size: 15px; }

  .carousel-inner .item .img img { height: 220px; }
  .og-banner-slogan { font-size: 20px; }

  .about_use .use .col-md-6 { width: 100%; }

  .logos-carousel { gap: 30px; }
  .logos-carousel .item img { max-height: 36px; }
}

@media (max-width: 480px) {
  .carousel-inner .item .img img { height: 160px; }
}

/* ============================================================
   WORDPRESS PAGE / POST STYLES
   ============================================================ */
.entry-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.75;
  font-size: 15px;
  color: var(--text-dark);
}
.entry-content h2 { font-size: 24px; margin: 32px 0 12px; color: var(--blue); }
.entry-content h3 { font-size: 20px; margin: 24px 0 10px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content img { border-radius: 4px; margin: 16px 0; }

/* Pagination */
.wp-pagenavi, .navigation {
  text-align: center;
  margin: 32px 0;
}
.wp-pagenavi a, .wp-pagenavi span,
.navigation a, .navigation span {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  border: 1px solid var(--gray-border);
  border-radius: 3px;
  font-size: 14px;
  color: var(--blue);
  transition: all .2s;
}
.wp-pagenavi .current, .navigation .current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
