/* =========================================================
   NUVREN - Components
   Version: 1.0.0
   Автор: nuvren.com
   Описание: UI компоненты (buttons, cards, reveal, searchform, social, links, lang switcher).
   ========================================================= */

/* Buttons */
.nv-btn{
  display:inline-block;
  padding:14px 28px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  transition:.25s;
  letter-spacing:.02em;
}

.nv-btn--outline{
  color:#fff;
  border:1px solid var(--blue);
}
.nv-btn--outline:hover{
  background:linear-gradient(90deg,var(--blue),var(--violet));
  box-shadow:var(--glow1),var(--glow2);
  transform:translateY(-1px);
}

.nv-btn--ghost{
  border:1px solid rgba(255,255,255,.18);
  background:transparent;
  color:#fff;
  padding:12px 22px;
  border-radius:10px;
  cursor:pointer;
  transition:border-color .2s, box-shadow .2s, transform .08s;
}
.nv-btn--ghost:hover,
.nv-btn--ghost:focus-visible{
  border-color:rgba(42,163,255,.45);
  box-shadow:0 0 24px rgba(42,163,255,.22);
}
.nv-btn--ghost:active{ transform:translateY(1px) }

/* Cards */
.nv-cards{ padding:56px 0; position:relative; overflow:hidden }
.nv-cards__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px }

.nv-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:26px 20px;
  min-height:150px;
  transition:.25s;
}
.nv-card h3{ margin:0 0 6px; font-size:18px; letter-spacing:.06em }
.nv-card p{ margin:0; color:#c9cfda }
.nv-card:hover{
  transform:translateY(-4px);
  border-color:rgba(42,163,255,.45);
  box-shadow:var(--glow1);
}

/* About block */
.nv-about{ padding:64px 0 }
.nv-about__inner{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:36px;
  align-items:center;
}
.nv-about__text .nv-h2{
  margin:0 0 10px;
  font-size:28px;
  font-weight:800;
}
.nv-about__text p{
  margin:0;
  color:#d6d9e0;
  max-width:760px;
}

/* Social icons */
.nv-social{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  transition:transform .25s ease, background-color .25s ease, box-shadow .25s ease;
  outline:none;
}
.nv-social:focus-visible{
  box-shadow:0 0 0 2px rgba(42,163,255,.6);
}
.nv-social svg{
  fill:#b8beca;
  width:18px;
  height:18px;
  transition:fill .3s, transform .3s, filter .3s;
}
.nv-social:hover svg{ transform:scale(1.12) }

.nv-social.nv-ig:hover svg{ fill:#E4405F; filter:drop-shadow(0 0 6px #E4405F) }
.nv-social.nv-tg:hover svg{ fill:#2AABEE; filter:drop-shadow(0 0 6px #2AABEE) }
.nv-social.nv-yt:hover svg{ fill:#FF0000; filter:drop-shadow(0 0 6px #FF0000) }
.nv-social.nv-tw:hover svg{ fill:#1DA1F2; filter:drop-shadow(0 0 6px #1DA1F2) }

/* Reveal */
.reveal{
  opacity:0;
  transform:translateY(12px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal.is-in{ opacity:1; transform:none }

/* Search form */
.nv-searchform{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  max-width:480px;
  margin:0 auto;
}
.nv-searchform__field{
  position:relative;
  width:100%;
  display:flex;
  align-items:center;
}
.nv-searchform .search-field{
  flex:1;
  width:100%;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  border-radius:12px;
  padding:12px 44px 12px 14px;
  font-size:15px;
  outline:none;
  transition:border-color .25s, box-shadow .25s;
}
.nv-searchform .search-field::placeholder{ color:#9aa3b2 }
.nv-searchform .search-field:focus{
  border-color:rgba(42,163,255,.45);
  box-shadow:0 0 32px rgba(42,163,255,.22);
}
.nv-searchform .search-submit{
  position:absolute;
  right:10px;
  background:none;
  border:1px solid transparent;
  padding:8px;
  cursor:pointer;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:color .2s, border-color .2s, box-shadow .2s, transform .12s ease-out;
  color:#e8ecf4;
}
.nv-searchform .search-submit:hover,
.nv-searchform .search-submit:focus-visible{
  color:#fff;
  border-color:rgba(255,255,255,.18);
  box-shadow:0 0 0 2px rgba(42,163,255,.25);
}
.nv-searchform svg{ pointer-events:none; transition:transform .18s }
.nv-searchform .search-submit:hover svg,
.nv-searchform .search-submit:focus-visible svg{ transform:scale(1.08) }

/* Links inside page content */
.nv-page__content a{
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  transition: color .2s ease;
}
.nv-page__content a:hover{
  color:var(--blue);
  text-decoration:underline;
}
.nv-page__content a[href^="mailto:"]{
  color:var(--text);
  text-decoration:none;
  font-weight:600;
}
.nv-page__content a[href^="mailto:"]:hover{
  color:var(--blue);
  text-decoration:underline;
}

/* Unified language switcher cleanup */
.lang-switcher,
.lang-select,
.wpml-ls,
.widget_polylang,
[class*="pll"],
select[name*="lang"],
#lang_sel,
#lang_sel_list,
.lang-item,
#lang_sel_footer{
  display:none !important;
  visibility:hidden !important;
}

/* Custom lang switcher */
.nv-lang-switcher{
  display:flex;
  align-items:center;
  position:relative;
  margin-left:auto;
  gap:10px;
  z-index:500;
}
.nv-lang-trigger{
  display:flex;
  align-items:center;
  gap:6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 14px;
  color:#fff;
  cursor:pointer;
  transition: all .25s ease;
}
.nv-lang-trigger:hover{
  background: rgba(255,255,255,.15);
  border-color: rgba(42,163,255,.4);
}
.nv-lang-arrow{
  font-size:10px;
  opacity:.8;
  transition: transform .25s ease;
}
.nv-lang-menu{
  position:absolute;
  right:0;
  top:120%;
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,.15);
  border-radius:10px;
  padding:6px 0;
  list-style:none;
  min-width:120px;
  box-shadow:0 12px 34px rgba(0,0,0,.45);
  opacity:0;
  visibility:hidden;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.nv-lang-menu.active{
  opacity:1;
  visibility:visible;
  transform: translateY(0);
  transition-delay:0s;
}
.nv-lang-option{
  display:block;
  padding:8px 16px;
  color:#fff;
  text-decoration:none;
  opacity:.85;
  transition: background .25s, opacity .25s;
}
.nv-lang-option:hover,
.nv-lang-option.active{
  opacity:1;
  background: rgba(255,255,255,.08);
}

/* Responsive components */
@media (max-width:1024px){
  .nv-cards__grid{ grid-template-columns:repeat(2,1fr) }
  .nv-about__inner{ grid-template-columns:120px 1fr }
}

@media (max-width:768px){
  .nv-about{ padding:52px 0 }
  .nv-about__inner{ grid-template-columns:1fr; row-gap:18px }
  .nv-cards{ padding:46px 0 }
  .nv-cards__grid{ grid-template-columns:1fr }
  .nv-card{ padding:22px 18px; min-height:120px }
  .nv-card h3{ font-size:16px }

  .nv-lang-switcher{
    position:absolute;
    top:16px;
    right:58px;
  }
  .nv-lang-trigger{
    font-size:13px;
    padding:4px 8px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .nv-card,
  .nv-btn,
  .nv-btn--ghost,
  .nv-searchform .search-field,
  .nv-searchform .search-submit{
    transition:none !important;
  }
}
