/*
Theme Name: IT-Consult GIS
Theme URI: https://it-consult.by
Author: IT-Consult
Author URI: https://it-consult.by
Description: Тема WordPress для IT-Consult — Геоинформационные системы. Статичный макет с динамическими меню.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: it-consult-gis
*/

:root {
  --navy: #1a2744;
  --navy-mid: #2a3d6b;
  --navy-light: #3a5490;
  --accent: #4a8fd4;
  --accent-bright: #5ba3e8;
  --silver: #758698;
  --silver-light: #b0bec8;
  --silver-pale: #dde4ea;
  --bg: #f2f5f8;
  --bg-white: #ffffff;
  --text: #1a2744;
  --text-muted: #4a5a6a;
  --text-light: #758698;
  --border: #c8d4de;
  --border-light: #dde4ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  background-color: #c8d4de;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23c8d4de'/%3E%3Crect x='0' y='0' width='2' height='2' fill='%23b8c6d2'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23b8c6d2'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--text);
  line-height: 1.6;
}

/* ─── HEADER ─── */
header {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  padding: 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 26px; height: 26px; fill: #fff; }

.logo-text { color: #fff; }
.logo-text .company { font-size: 20px; font-weight: 600; letter-spacing: 0.02em; }
.logo-text .tagline { font-size: 11px; color: var(--silver-light); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.header-quote {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-left: 1px solid rgba(255,255,255,0.1);
  max-width: 380px;
}

.header-quote p {
  font-size: 11px;
  color: var(--silver-light);
  font-style: italic;
  line-height: 1.5;
}

/* ─── NAV ─── */
nav.top-nav {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

nav.top-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav.top-nav ul li { position: relative; }

nav.top-nav ul li a {
  display: block;
  padding: 11px 18px;
  color: var(--silver-light);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}

nav.top-nav ul li a:hover { background: rgba(255,255,255,0.06); color: #fff; }
nav.top-nav ul li.current-menu-item a,
nav.top-nav ul li.current_page_item a { background: var(--accent); color: #fff; }

/* Sub-menu (dropdown) */
nav.top-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  min-width: 200px;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
}

nav.top-nav ul li:hover > ul { display: block; }

nav.top-nav ul ul li a {
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}

/* ─── LAYOUT ─── */
.layout {
  max-width: 1100px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 20px;
  padding: 0 16px;
}

/* ─── SIDEBAR PANELS ─── */
.sidebar-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}

.panel-title {
  background: linear-gradient(to right, #1a3060 0%, #2e5494 40%, #4a7abf 72%, #3a6aaf 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 2px solid var(--accent);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.panel-body { padding: 10px 12px; }

.panel-body a {
  display: block;
  color: var(--navy-mid);
  text-decoration: none;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.12s, padding-left 0.12s;
}

.panel-body a:last-child { border-bottom: none; }
.panel-body a:hover { color: var(--accent); padding-left: 4px; }
.panel-body a.active { color: var(--accent); font-weight: 500; }

.panel-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0 4px;
  margin-top: 4px;
  border-top: 1px solid var(--border-light);
}

.panel-section-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }

/* submenu toggle */
.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--navy-mid);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
  user-select: none;
}

.submenu-toggle:hover { color: var(--accent); }

.submenu-toggle .arrow {
  width: 12px; height: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.submenu-toggle.open .arrow { transform: rotate(90deg); }

.submenu {
  display: none;
  padding-left: 14px;
}

.submenu.visible { display: block; }

.submenu a { font-size: 11px; }

/* counter widget */
.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border-light);
}

.counter-row:last-child { border-bottom: none; }
.counter-row .num { font-weight: 600; color: var(--navy); font-family: 'IBM Plex Mono', monospace; }
.counter-row .label { color: var(--text-muted); }

/* contact block */
.contact-info { font-size: 12px; line-height: 1.8; color: var(--text-muted); }
.contact-info strong { color: var(--text); display: block; margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info strong:first-child { margin-top: 0; }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* search */
.search-form { display: flex; flex-direction: column; gap: 6px; }
.search-form input, .search-form select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  color: var(--text);
  background: var(--bg);
  font-family: inherit;
}

.search-form input:focus, .search-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.btn {
  padding: 7px 14px;
  background: var(--navy-mid);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-align: center;
}

.btn:hover { background: var(--accent); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--navy-mid);
  color: var(--navy-mid);
}
.btn-outline:hover { background: var(--navy-mid); color: #fff; }

/* subscribe */
.subscribe-form { display: flex; flex-direction: column; gap: 6px; }
.subscribe-form input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-family: inherit;
  background: var(--bg);
}

.subscribe-form input:focus { outline: none; border-color: var(--accent); background: #fff; }

.radio-row { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); align-items: center; }
.radio-row label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.subscriber-count { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 2px; }

/* ─── MAIN CONTENT ─── */
.content-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.content-title {
  background: linear-gradient(to right, #1a3060 0%, #2e5494 40%, #4a7abf 72%, #3a6aaf 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.content-title svg { width: 18px; height: 18px; fill: var(--accent-bright); flex-shrink: 0; }

.content-body { padding: 24px; }

.content-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-body p:last-of-type { margin-bottom: 0; }

.section-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading svg { width: 15px; height: 15px; fill: var(--accent); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 3px;
  border-left: 2px solid var(--accent);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.benefit-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.benefit-item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefit-item .icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; }

.content-footer {
  border-top: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  background: var(--bg);
}

.content-footer a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--navy-mid);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  transition: border-color 0.15s, color 0.15s;
}

.content-footer a:hover { border-color: var(--accent); color: var(--accent); }
.content-footer a svg { width: 14px; height: 14px; fill: currentColor; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  border-top: 3px solid var(--accent);
  text-align: center;
  padding: 16px;
  margin-top: 32px;
  font-size: 11px;
  color: var(--silver);
}

.bottom-nav {
  background: var(--navy-mid);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  margin-top: 28px;
}

.bottom-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.bottom-nav-inner ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.bottom-nav-inner ul li { position: relative; }

.bottom-nav-inner ul li a {
  display: block;
  padding: 10px 16px;
  color: var(--silver-light);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}

.bottom-nav-inner ul li a:hover { background: rgba(255,255,255,0.06); color: #fff; }

.bottom-nav-inner ul li.current-menu-item a,
.bottom-nav-inner ul li.current_page_item a { color: var(--accent-bright); }

.bottom-nav-inner .nav-top {
  margin-left: auto;
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.06);
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}

.bottom-nav-inner .nav-top:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ─── BURGER BUTTON ─── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 18px;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver-light);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--silver-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mobile-menu a.active { color: var(--accent-bright); }

/* sidebar accordion for mobile */
.sidebar-panel .panel-title.collapsible {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.sidebar-panel .panel-title.collapsible::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-right: 2px;
}

.sidebar-panel .panel-title.collapsible.collapsed::after {
  transform: rotate(-45deg);
  margin-top: 4px;
}

.sidebar-panel .panel-body.collapsed { display: none; }

@media (max-width: 768px) {
  /* hide desktop nav, show burger */
  nav.top-nav { display: none; }
  .burger { display: flex; }
  .header-quote { display: none; }

  .logo-block { padding: 14px 16px; }
  .logo-text .company { font-size: 17px; }

  /* stack layout to single column */
  .layout {
    grid-template-columns: 1fr;
    margin: 12px auto;
    gap: 12px;
    padding: 0 10px;
  }

  /* left sidebar: collapse all panels by default, show collapsible titles */
  .left-sidebar .panel-title,
  .right-sidebar .panel-title { cursor: pointer; }

  /* feature grid: single column */
  .feature-grid { grid-template-columns: 1fr; }

  /* content body padding */
  .content-body { padding: 16px; }

  /* bottom nav: wrap into 2 columns grid */
  .bottom-nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bottom-nav-inner ul { display: contents; }

  .bottom-nav-inner ul li a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 14px;
    font-size: 13px;
  }

  .bottom-nav-inner .nav-top {
    grid-column: 1 / -1;
    margin-left: 0;
    border-left: none;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  footer { margin-top: 0; font-size: 11px; padding: 14px 12px; line-height: 1.8; }

  .content-footer { flex-direction: column; align-items: stretch; gap: 8px; }
  .content-footer a { justify-content: center; }
}

@media (max-width: 480px) {
  .bottom-nav-inner { grid-template-columns: 1fr; }
  .bottom-nav-inner .nav-top { grid-column: auto; }
}


.katalog-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* планшет */
@media (max-width: 1024px){
  .katalog-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* мобилка */
@media (max-width: 600px){
  .katalog-grid{
    grid-template-columns: 1fr;
  }
}

.katalog-item{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  padding: 12px;
  transition: .2s;
}

.katalog-thumb img{
  width: 100%;
  height: auto;
  display: block;
}

.katalog-terms-block{
  margin-bottom: 25px;
}

.katalog-terms-title{
  font-weight: 600;
  margin-bottom: 10px;
}

.katalog-terms-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.katalog-term-item{
  display: block;
  border: 1px solid #eee;
  padding: 10px;
  text-decoration: none;
  background: #fff;
  transition: .2s;
}

.katalog-term-item:hover{
  transform: translateY(-2px);
}

.katalog-term-thumb img{
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.katalog-term-name{
  font-size: 14px;
  color: #222;
}

@media (max-width: 900px){
  .katalog-terms-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .katalog-terms-grid{
    grid-template-columns: 1fr;
  }
}