/* ==================================================
   Conquest Site Polish v2 (staging-only visual tuning)
   ================================================== */

:root {
  --cq-ink: #173556;
  --cq-ink-soft: #2d4f72;
  --cq-primary: #1d6ea8;
  --cq-primary-deep: #145481;
  --cq-bg: #f2f7fc;
  --cq-card: #ffffff;
  --cq-line: #d9e6f2;
  --cq-shadow-sm: 0 8px 24px rgba(14, 46, 83, 0.08);
  --cq-shadow-md: 0 14px 36px rgba(14, 46, 83, 0.14);
}

html,
body {
  background: radial-gradient(circle at 10% -20%, #e6f3ff 0%, #f6f9fc 45%, #f2f7fc 100%);
}

body {
  color: var(--cq-ink-soft);
  letter-spacing: 0.01em;
}

a {
  text-underline-offset: 3px;
}

/* Header / nav */
#site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(23, 53, 86, 0.08);
  box-shadow: 0 6px 22px rgba(15, 50, 90, 0.08);
  backdrop-filter: blur(8px);
}

#site-header-container {
  min-height: 74px;
}

.site-header-logo img {
  filter: drop-shadow(0 2px 10px rgba(11, 39, 73, 0.08));
}

.global-nav-list > li > a {
  border-radius: 999px;
  padding: 8px 14px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.global-nav-list > li > a .global-nav-name {
  color: #234a70;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.global-nav-list > li > a:hover,
.global-nav-list > li.current-menu-item > a,
.global-nav-list > li.current_page_item > a {
  background: rgba(29, 110, 168, 0.1);
  transform: translateY(-1px);
}

/* Inner page title strip */
.page-header {
  background: linear-gradient(135deg, #1a3f66, #2b6da0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header-title {
  color: #fff;
  letter-spacing: 0.04em;
  font-weight: 800;
}

#breadcrumb {
  background: #eef4fa;
  border-bottom: 1px solid var(--cq-line);
}

/* Main layout */
.site-body {
  padding-top: 12px;
}

.site-body .site-body-container {
  max-width: 1220px;
}

.entry {
  border-radius: 18px;
}

/* Hero polishing */
.lightning_swiper,
.ltg-slide,
.swiper-slide,
.swiper-wrapper,
.ltg-slide-item {
  min-height: clamp(420px, 72vh, 760px) !important;
}

.ltg-slide-item-img {
  filter: saturate(0.94) contrast(1.03) brightness(0.97);
}

.ltg-slide .cq-hero-overlay {
  justify-content: center;
  padding: clamp(76px, 12vh, 134px) 4vw clamp(38px, 8vh, 82px);
  gap: 0;
}

.cq-hero-title {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0;
}

.cq-hero-title-text {
  color: #143a78;
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: 0.04em;
  line-height: 1.16;
  padding: 0;
  text-shadow: 0 3px 10px rgba(16, 55, 112, 0.2);
}

.cq-hero-title-text::before {
  display: none !important;
}

.cq-hero-slogan-row {
  margin-top: clamp(16px, 3vh, 32px);
  width: min(920px, 100%);
  gap: clamp(12px, 1.6vw, 18px);
}

.cq-hero-slogan {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0;
  color: #154176;
  font-weight: 700;
  line-height: 1.34;
  font-size: clamp(20px, 1.9vw, 36px);
  padding: 0;
  text-shadow: 0 2px 8px rgba(14, 49, 102, 0.16);
}

/* Section blocks on homepage */
.entry-body > div[data-cq] {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--cq-shadow-sm);
  margin: 24px auto;
}

.entry-body > div[data-cq][style*="background:#fff"],
.entry-body > div[data-cq][style*="background: #fff"],
.entry-body > div[data-cq][style*="background:#f0f5ff"] {
  border: 1px solid var(--cq-line);
}

/* Generic inline-grid card polish (keeps existing structure) */
div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] > div {
  box-shadow: 0 10px 28px rgba(21, 56, 95, 0.08);
  border: 1px solid #e2edf7;
  border-top-width: 3px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 62, 106, 0.16);
}

/* Buttons */
.btn,
.wp-block-button .wp-block-button__link,
a[style*="padding:12px 32px"],
a[style*="padding:12px 36px"] {
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.wp-block-button .wp-block-button__link:hover,
a[style*="padding:12px 32px"]:hover,
a[style*="padding:12px 36px"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 77, 126, 0.25);
}

.btn-primary,
.wp-block-button .wp-block-button__link {
  background: linear-gradient(135deg, var(--cq-primary), var(--cq-primary-deep)) !important;
  border-color: rgba(12, 63, 109, 0.25) !important;
}

/* News cards */
.vk_post {
  background: #fff;
  border: 1px solid #dde9f5;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(11, 48, 88, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vk_post:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 48, 88, 0.14);
}

.vk_post_title a {
  color: #153e69;
  text-decoration: none;
}

.vk_post_title a:hover {
  color: var(--cq-primary);
}

/* News list page: tighten awkward desktop gutter and card edges */
@media (min-width: 992px) {
  body.blog .main-section--col--two,
  body.archive.category .main-section--col--two,
  body.archive.date .main-section--col--two {
    width: 70.8%;
  }

  body.blog .sub-section--col--two,
  body.archive.category .sub-section--col--two,
  body.archive.date .sub-section--col--two {
    width: 27.8%;
  }

  body.blog .main-section .vk_posts-mainSection,
  body.archive.category .main-section .vk_posts-mainSection,
  body.archive.date .main-section .vk_posts-mainSection {
    margin-left: -10px;
    margin-right: -10px;
  }

  body.blog .main-section .vk_posts-mainSection > .vk_post,
  body.archive.category .main-section .vk_posts-mainSection > .vk_post,
  body.archive.date .main-section .vk_posts-mainSection > .vk_post {
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    padding: 18px;
  }

  body.blog .main-section .vk_posts-mainSection > .vk_post .vk_post_btnOuter,
  body.archive.category .main-section .vk_posts-mainSection > .vk_post .vk_post_btnOuter,
  body.archive.date .main-section .vk_posts-mainSection > .vk_post .vk_post_btnOuter {
    margin-top: 12px;
    padding-right: 2px;
  }

  body.blog .sub-section .vk_posts,
  body.archive.category .sub-section .vk_posts,
  body.archive.date .sub-section .vk_posts {
    margin-left: -8px;
    margin-right: -8px;
  }

  body.blog .sub-section .vk_posts > .vk_post,
  body.archive.category .sub-section .vk_posts > .vk_post,
  body.archive.date .sub-section .vk_posts > .vk_post {
    width: calc(100% - 16px);
    margin-left: 8px;
    margin-right: 8px;
    padding: 12px;
  }
}

/* Forms */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
input[type="text"],
input[type="email"],
textarea {
  border-radius: 10px;
  border: 1px solid #c9daeb;
  box-shadow: inset 0 1px 2px rgba(17, 48, 82, 0.04);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: #6ba6d1;
  box-shadow: 0 0 0 4px rgba(68, 142, 196, 0.18);
}

/* Footer */
.site-body-bottom {
  margin-top: 22px;
}

footer.site-footer {
  background: linear-gradient(160deg, #0f355a 0%, #0b2945 100%);
  color: #d8e8f8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-content {
  padding-top: 54px;
  padding-bottom: 30px;
}

.site-footer h4,
.site-footer .wp-block-heading {
  color: #ffffff;
  font-size: 1.08rem;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer .widget {
  color: #d8e8f8;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .wp-block-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.site-footer .wp-block-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8d0e8;
}

/* Privacy page: centered bilingual reading layout */
body.privacy-policy .site-body-container {
  max-width: 1160px;
}

body.privacy-policy .main-section--col--one {
  width: 100%;
}

body.privacy-policy .entry-body {
  max-width: 980px;
  margin: 0 auto;
}

body.privacy-policy .cq-privacy-wrap {
  background: #fff;
  border: 1px solid #dce7f2;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(17, 53, 88, 0.08);
  padding: 28px 30px;
}

body.privacy-policy .cq-privacy-wrap h3 {
  margin-top: 1.35em;
  margin-bottom: 0.75em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #dbe7f3;
  color: #1a3f66;
}

body.privacy-policy .cq-privacy-wrap p,
body.privacy-policy .cq-privacy-wrap li {
  line-height: 1.9;
  color: #334f69;
}

/* Mobile */
@media (max-width: 991px) {
  #site-header-container {
    min-height: 64px;
  }

  .global-nav-list > li > a {
    padding: 8px 10px;
  }

  .global-nav-list > li > a .global-nav-name {
    font-size: 0.9rem;
  }

  .entry-body > div[data-cq] {
    margin: 14px auto;
    border-radius: 12px;
  }

  .site-footer-content {
    padding-top: 34px;
  }
}

@media (max-width: 768px) {
  .lightning_swiper,
  .ltg-slide,
  .swiper-slide,
  .swiper-wrapper,
  .ltg-slide-item {
    min-height: clamp(320px, 54vh, 420px) !important;
  }

  .ltg-slide .cq-hero-overlay {
    padding: 78px 14px 26px;
    justify-content: flex-start;
  }

  .cq-hero-title {
    width: min(100%, 640px);
  }

  .cq-hero-title-text {
    font-size: clamp(30px, 8vw, 44px);
    text-align: center;
    padding: 0.28em 0.42em;
  }

  .cq-hero-title-text::before {
    display: none;
  }

  .cq-hero-slogan-row {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cq-hero-slogan {
    font-size: clamp(17px, 4.9vw, 22px);
    padding: 9px 10px;
  }

  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  body.privacy-policy .cq-privacy-wrap {
    padding: 18px 14px;
    border-radius: 10px;
  }
}

/* Phone-first refinement (final pass) */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }

  #cq-lang-bar {
    padding: 4px 0 !important;
  }

  #cq-lang-bar > div {
    padding: 0 10px !important;
    text-align: center !important;
  }

  #cq-lang-bar .cq-lb {
    min-width: 96px;
    padding: 5px 10px !important;
    font-size: 12px !important;
    line-height: 1.2;
    margin: 0 4px !important;
  }

  #site-header-container {
    min-height: 56px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .site-header-logo {
    margin: 0 !important;
    padding: 6px 0 !important;
    text-align: center !important;
  }

  .site-header-logo img {
    max-height: 34px !important;
    width: auto;
  }

  .lightning_swiper,
  .ltg-slide,
  .swiper-slide,
  .swiper-wrapper,
  .ltg-slide-item {
    min-height: 300px !important;
  }

  .ltg-slide .cq-hero-overlay {
    padding: 64px 12px 20px !important;
    justify-content: flex-start;
  }

  .cq-hero-title-text {
    font-size: clamp(24px, 8.4vw, 34px) !important;
    line-height: 1.24;
    text-shadow: 0 2px 6px rgba(14, 49, 102, 0.16);
  }

  .cq-hero-slogan-row--single {
    margin-top: 10px !important;
  }

  .cq-hero-slogan--single {
    font-size: clamp(14px, 4.2vw, 17px) !important;
    line-height: 1.5;
    padding: 8px 10px !important;
  }

  .page-header-title {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.2;
  }

  .site-body .site-body-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .entry {
    border-radius: 12px;
  }

  .entry-body > div[data-cq] {
    margin: 10px auto !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 16px rgba(14, 46, 83, 0.08);
  }

  /* Normalize many inline max-width wrappers on mobile */
  [data-cq] div[style*="max-width:960px"],
  [data-cq] div[style*="max-width:880px"],
  [data-cq] div[style*="max-width:800px"],
  [data-cq] div[style*="max-width:720px"],
  [data-cq] div[style*="max-width:680px"] {
    max-width: 100% !important;
  }

  [data-cq] div[style*="padding:80px 20px"],
  [data-cq] div[style*="padding:60px 20px"],
  [data-cq] div[style*="padding:48px 20px"],
  [data-cq] div[style*="padding:40px 20px"] {
    padding: 36px 14px !important;
  }

  [data-cq] div[style*="padding:28px 20px 0"] {
    padding: 18px 12px 0 !important;
  }

  [data-cq] div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
  [data-cq] div[style*="display:grid"][style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  [data-cq] div[style*="padding:28px 26px 32px"] {
    padding: 18px 14px 18px !important;
  }

  [data-cq] div[style*="position:relative;height:260px;"] {
    height: 190px !important;
    min-height: 190px !important;
  }

  .entry-body h2[style],
  .entry-body h3[style] {
    line-height: 1.34 !important;
  }

  .entry-body p[style] {
    font-size: 14px !important;
    line-height: 1.74 !important;
  }

  .wpcf7 form {
    padding: 0 2px;
  }

  .wpcf7 form p {
    margin-bottom: 14px;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 select,
  .wpcf7 textarea {
    width: 100%;
    font-size: 16px !important;
    padding: 11px 12px !important;
    border-radius: 10px !important;
  }

  .wpcf7 textarea {
    min-height: 150px;
  }

  .wpcf7 .wpcf7-submit,
  input.wpcf7-submit {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px !important;
  }

  .site-footer-content {
    padding: 26px 10px 16px !important;
  }

  .site-footer .row > div {
    margin-bottom: 14px;
  }

  .site-footer h4,
  .site-footer .wp-block-heading {
    font-size: 1rem;
  }

  .site-footer p,
  .site-footer li,
  .site-footer a {
    font-size: 13px;
    line-height: 1.7;
  }

  .site-footer-copyright p {
    font-size: 11px;
    line-height: 1.6;
  }

  /* Mobile: hide floating menu button to avoid visual interference */
  #vk-mobile-nav-menu-btn,
  .vk-mobile-nav-menu-btn {
    display: none !important;
  }

  /* Company overview page: prevent table overflow on phone */
  body.page-id-6 .entry-body table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  body.page-id-6 .entry-body th,
  body.page-id-6 .entry-body td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    padding: 12px 10px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  body.page-id-6 .entry-body th {
    width: 34% !important;
  }
}

@media (max-width: 420px) {
  .cq-hero-title-text {
    font-size: clamp(22px, 8vw, 30px) !important;
  }

  .cq-hero-slogan--single {
    font-size: 13.5px !important;
    line-height: 1.48;
  }

  [data-cq] div[style*="padding:80px 20px"],
  [data-cq] div[style*="padding:60px 20px"] {
    padding: 30px 12px !important;
  }
}
