/* ============================================================
   ЖАГАЛМАЙ — слой WordPress поверх базовых стилей (styles.css)
   ============================================================ */

/* ---------- меню WordPress (wp_nav_menu) ---------- */
.nav__links { list-style: none; }
.nav__links li { list-style: none; }
.nav__links li.current-menu-item > a,
.nav__links li.current_page_item > a,
.nav__links li.current-menu-ancestor > a { color: var(--accent); }

.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: contents; }
.mobile-menu li { list-style: none; }

/* логотип через «Настройщик» */
.brand .custom-logo { width: auto; height: 40px; display: block; }
.custom-logo-link { display: inline-flex; align-items: center; }

/* ============================================================
   КАРТА КЫРГЫЗСТАНА (объекты компании)
   ============================================================ */
.kgmap { margin-top: 8px; }
.kgmap__stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 85% -10%, var(--accent-tint) 0%, rgba(255,255,255,0) 55%),
    #fff;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 44px);
  overflow: hidden;
}
.kgmap__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
}
.kgmap__corner {
  position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink-3); opacity: .7;
}
.kgmap__corner--tl { top: 12px; left: 14px; }
.kgmap__corner--tr { top: 12px; right: 14px; }
.kgmap__corner--bl { bottom: 12px; left: 14px; }
.kgmap__corner--br { bottom: 12px; right: 14px; }

.kgmap__holder { position: relative; aspect-ratio: 1000 / 520; width: 100%; }
.kgmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.kgmap__shadow { fill: rgba(27,36,48,.06); }
.kgmap__body { fill: var(--bg-soft); stroke: var(--accent); stroke-width: 1.4; stroke-opacity: .55; }
.kgmap__contour { fill: none; stroke: var(--accent); stroke-width: 1; }
.kgmap__lake { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: .4; }
.kgmap__lakelabel { font-family: var(--mono); font-size: 11px; fill: var(--accent); opacity: .65; }
.kgmap__city { font-family: var(--mono); font-size: 12px; fill: var(--ink-3); opacity: .6; }

/* ---- маркеры ---- */
.kgmap__markers { position: absolute; inset: 0; }
.kgmap__marker {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; padding: 0; cursor: pointer; line-height: 1;
}
.kgmap__mlabel {
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  color: var(--ink-2); background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line);
  white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.kgmap__pin { width: 26px; height: 26px; display: block; transition: transform .2s var(--ease); }
.kgmap__pin svg { width: 100%; height: 100%; }
.kgmap__pin path { fill: var(--accent); stroke: var(--accent-700); stroke-width: 1; }
.kgmap__pin circle { fill: #fff; }
.kgmap__dot {
  position: absolute; left: 50%; bottom: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); transform: translate(-50%, 50%);
}
.kgmap__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: .6; animation: kgpulse 2.4s var(--ease) infinite;
}
@keyframes kgpulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
.kgmap__marker:hover .kgmap__pin,
.kgmap__marker.is-active .kgmap__pin { transform: translateY(-3px) scale(1.12); }
.kgmap__marker:hover .kgmap__mlabel,
.kgmap__marker.is-active .kgmap__mlabel { color: var(--accent); border-color: var(--accent); }
.kgmap__marker.is-active { z-index: 5; }

/* ---- карточка объекта ---- */
.kgmap__card {
  position: absolute; z-index: 10; width: 268px; max-width: 80%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.kgmap__card.is-show { opacity: 1; transform: none; pointer-events: auto; }
.kgmap__cardclose {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  font-size: 20px; line-height: 1; color: var(--ink-3); cursor: pointer; display: none;
}
.kgmap__cardtag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 4px 9px; border-radius: 6px; margin-bottom: 12px;
}
.kgmap__cardname { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin-bottom: 6px; }
.kgmap__cardname:hover { color: var(--accent); }
.kgmap__cardcoord { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.kgmap__cardmeta { display: flex; gap: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.kgmap__cardmeta .k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.kgmap__cardmeta .v { font-size: 16px; font-weight: 600; }

@media (max-width: 720px) {
  .kgmap__mlabel { display: none; }
  .kgmap__card {
    position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto; width: auto; max-width: none;
    transform: translateY(20px);
  }
  .kgmap__card.is-show { transform: none; }
  .kgmap__cardclose { display: block; }
}

/* ---------- переключатель языков ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
}
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-3);
  border-radius: 6px;
  line-height: 1;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.lang-switch__item:hover { color: var(--ink); background: var(--bg-soft); }
.lang-switch__item.is-active { color: #fff; background: var(--accent); }

@media (max-width: 880px) {
  .lang-switch { margin-left: auto; }
}

/* ---------- hero: фото вместо видео ---------- */
.hero-photo--full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
}

/* ---------- форма: уведомление об ошибке ---------- */
.form__alert {
  background: #fdf3f2;
  border: 1px solid #f0c9c4;
  color: #a5342a;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 0 0 20px;
}

/* ============================================================
   СТАТЬЯ (новость / проект / страница)
   ============================================================ */
.article { max-width: 820px; margin: 0 auto; }
.article__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}
.article__cover img { width: 100%; height: auto; display: block; }
.article__meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--ink-3); margin: 22px 0 6px;
}
.article__meta .cat { color: var(--accent); font-weight: 500; }
.article__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.article__body { font-size: 17.5px; line-height: 1.72; color: var(--ink); }
.article__body > * + * { margin-top: 1.1em; }
.article__body p { margin: 0 0 1.1em; }
.article__body h2 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 1.6em 0 .5em; }
.article__body h3 { font-size: 22px; font-weight: 600; margin: 1.4em 0 .4em; }
.article__body ul, .article__body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article__body li { margin: 0 0 .5em; }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body img { border-radius: var(--radius); margin: .6em 0; height: auto; }
.article__body blockquote {
  margin: 1.4em 0; padding: 20px 26px;
  border-left: 2px solid var(--accent); background: var(--accent-tint);
  border-radius: 0 12px 12px 0; color: var(--ink); font-size: 18px;
}
.article__body figure { margin: 1.2em 0; }
.article__body figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; text-align: center; }
.article__foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }

/* характеристики проекта */
.proekt__facts {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 36px;
}
.proekt__fact { flex: 1; min-width: 150px; padding: 22px 26px; border-right: 1px solid var(--line); }
.proekt__fact:last-child { border-right: none; }
.proekt__fact .k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.proekt__fact .v { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.project__name a:hover { color: var(--accent); }

/* ============================================================
   УСЛУГИ (карточки-ссылки, детальная, процесс)
   ============================================================ */
.service h3 a { transition: color .18s var(--ease); }
.service h3 a:hover { color: var(--accent); }
.service__more { margin-top: 18px; }
.service.service--link { display: block; color: inherit; }
.service.service--link:hover h3 { color: var(--accent); }

.section-cta { margin-top: 48px; text-align: center; }

/* hero-иконка на странице услуги */
.service-hero__icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 22px;
}
.service-hero__icon svg { width: 30px; height: 30px; }

/* несколько кнопок в подвале статьи */
.article__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* блок «Как мы работаем» */
.process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.process__step { background: #fff; padding: 34px 26px 36px; transition: background .25s var(--ease); }
.process__step:hover { background: var(--accent-tint); }
.process__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 22px;
}
.process__step h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.process__step p { margin: 0; font-size: 14px; color: var(--ink-2); }

@media (max-width: 1080px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .process__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ГАЛЕРЕЯ
   ============================================================ */
.gallery-filters { margin-bottom: 36px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.gallery-item.is-hidden { display: none; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(20,30,42,.78) 0%, rgba(20,30,42,0) 55%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__cat {
  align-self: flex-start;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  padding: 4px 9px; border-radius: 6px; margin-bottom: 8px;
}
.gallery-item__cap { color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.gallery-empty { color: var(--ink-2); font-size: 17px; }

/* лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(15,22,31,.92); backdrop-filter: blur(6px);
  padding: 5vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: block; margin: 0 auto;
}
.lightbox__cap { color: #e6ebf1; font-size: 15px; margin-top: 16px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 34px; line-height: 1; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

@media (max-width: 1080px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .proekt__fact { min-width: 50%; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 28px; }
  .lightbox__close { width: 40px; height: 40px; }
}

/* подсветка активного пункта меню добавляется JS-ом (.is-active) — стиль уже в styles.css */
