/* =========================================================
   Dashboard-like UI (close to screenshot)
   Only styles, no markup changes
   ========================================================= */

/* ---------- Design tokens ---------- */
@font-face {
    font-family: 'IkraSlab';
    src: url('fonts/IkraSlab.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root{
  --header-h: 64px;

  /* Light dashboard */
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel2: #fbfcff;
  --text: #0f172a;
  --muted: #667085;
  --line: #e6eaf2;

  /* Accent */
  --brand: #2f6fec;
  --brand-2: #1f4fb8;

  /* Status */
  --ok: #22c55e;
  --warn: #f59e0b;

  /* Geometry */
  --radius: 10px;      /* reduced from 18 */
  --radius-sm: 8px;
  --radius-lg: 12px;

  /* Shadow (subtle) */
  --shadow: 0 6px 20px rgba(15,23,42,.06);

  --container: 1450px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ padding-top: var(--header-h); }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  overflow-x:hidden;
  display: flex;
  flex-direction: column;
}

main{ flex: 1; }

a{ color: inherit; text-decoration:none; }
.container{ max-width: var(--container); margin:0 auto; padding: 0 18px; }

/* ---------- Typo helpers (keep your existing classes) ---------- */
.kicker{ font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h1{ font-size: clamp(26px, 3.3vw, 44px); line-height:1.12; margin: .4rem 0 1rem; }
.h2{ font-size: clamp(18px, 2vw, 28px); margin: 0 0 12px; }
.p{ color: var(--muted); line-height: 1.65; margin: 0; }
.muted{ color: var(--muted); }

/* ---------- Buttons / chips ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm); /* reduced */
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}

.btn:hover{
  background: var(--panel2);
  border-color: #d8deea;
}

.btn:active{ transform: translateY(1px); }

.btn.secondary{
  background: #f2f5fb;
  border-color: #dde3ef;
}

.btn.primary{
  background: black;
  border-color: white;
  color: #fff;
}
.btn.primary:hover{
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2f5fb;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap: 14px; }

.card{
  border-radius: var(--radius);     /* reduced */
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .inner{ padding: 14px; }

/* ---------- Header (close to screenshot) ---------- */
header{
  position: fixed;
  top:0; left:0; right:0;
  z-index:1000;
  height: var(--header-h);

  /* dark slim bar */
  background: #241F2C;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
}

.nav{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  flex-wrap: nowrap;
}

/* brand block */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}


 .logo{
  width: 220px;
  height: 40px;

  display:grid;
  place-items:center;


  box-shadow: none;
  overflow:hidden;
}
.logo img {
  max-width: min(200px, 75%);
  height: auto;

}

/* .logo svg{ width: 110px; height: 22px; opacity: .95; }  */

@media (max-width: 768px) { /* Для планшетов и телефонов */
  .logo img {
    max-width: min(150px, 70%);
  }
  .promo-content h3 { font-size: 28px; }
  .promo-content p { font-size: 18px; }
  .fab-up { width: auto; }
}

@media (max-width: 480px) { /* Для маленьких телефонов */
  .logo img {
    max-width: min(140px, 65%);
  }
  footer .foot-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer-logo-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

.brand strong{ font-size: 13px; letter-spacing:.01em; }
.brand span{ display:block; font-size: 12px; color: rgba(255,255,255,.65); margin-top:2px; }

/* nav links */
nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}

nav a{
    white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: .15s ease;
}

.WeTransport_button{
    white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #E9A854;
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px solid #E9A854;
  transition: .15s ease;
}

nav a:hover{
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
}

/* right side actions (lang / dark etc.) */
.nav-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 5%;
  justify-content: flex-end;
}

.lang-toggle{
  display:flex;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; /* reduced */
  overflow:hidden;
  background: rgba(255,255,255,.06);
}
.lang-toggle button{
  border:0;
  background: transparent;
  color: rgba(255,255,255,.75);
  padding: 8px 10px;
  cursor:pointer;
  font-size: 12.5px;
}
.lang-toggle button.active{
  color:#fff;
  background: rgba(255,255,255,.12);
}

/* burger */
.burger{
  display:none;
  width: 40px;
  height: 40px;
  border-radius: 8px; /* reduced */
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.90);
  margin: 5px auto;
  border-radius: 999px;
}

/* ---------- Mobile menu ---------- */
.mobile-menu{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(8px);
  z-index: 1200;
  display:none;
}
.mobile-menu.open{ display:block; }

.mobile-panel{
  position:absolute;
  right:0; top:0; bottom:0;
  width: min(420px, 92vw);
  background: #101427;
  border-left: 1px solid rgba(255,255,255,.10);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.mobile-panel a{
  padding: 12px 12px;
  border-radius: 10px; /* reduced */
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.mobile-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.close{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.08);
  cursor:pointer;
  font-size: 20px;
  color: rgba(255,255,255,.92);
}

/* ---------- Page sections ---------- */
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-head .p{ max-width: 62ch; }

/* ---------- Footer ---------- */
footer{
  padding: 22px 0 28px;
  border-top: 1px solid #9A9FB2;
  background: #F4F6FB;
}
footer .foot-grid{
  display:grid;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  grid-auto-columns: auto;
  justify-content: space-between;
  row-gap: 10px;
  align-items: baseline;
}
footer small{ color:#000000; }
footer a{ color:#000000; text-decoration:underline; text-underline-offset:3px; }

/* footer columns — flatten into grid */
.footer-logo-wrap{ display:contents; }
.footer-logo{ width:197px; height:36px; }
.footer-copy{ font-size:15px; font-weight:500; letter-spacing:-0.01em; }
.footer-links{ display:contents; }
.footer-col{ display:contents; }
.footer-col a{ font-size:12px; font-weight:500; color:#000000; text-decoration:none; letter-spacing:-0.01em; }
.footer-col a:hover{ text-decoration:underline; text-underline-offset:3px; }
.footer-info{ display:contents; }
.footer-info a{ font-size:12px; letter-spacing:-0.01em; }
.footer-info small{ font-size:12px; font-weight:500; letter-spacing:-0.01em; }

@media (max-width: 980px){
  footer .foot-grid{
    grid-template-rows: auto;
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-logo-wrap{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; grid-column: 1 / -1; }
}
.disabled-link{ pointer-events:none; opacity:0.6; text-decoration:none !important; }

/* ---------- Inline-style replacements ---------- */
.promo-bg--slide2{}
.promo-bg--slide4{}
.inner--stat-bg{ background-image:url('img_mform3pl/Mask group_main1.png'); background-size:cover; background-position:center; }
.inner--stat-flex{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.service-content{ display:none; }
.bcard-illu-offset img{ margin-top:17px; }
.bcard-h--offset{ margin-top:32px; }
.chip-sep{ opacity:.6; }
.hero-tags{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.map iframe{ border:0; }

/* ---------- Mobile menu note ---------- */
.mobile-menu-note{ margin-top:auto; font-size:12px; line-height:1.5; }

/* ---------- Utility: spacers ---------- */
.spacer-md{ height:18px; }
.spacer-sm{ height:14px; }

/* ---------- Utility: grid sidebar ---------- */
.grid-sidebar{ grid-template-columns:1.1fr .9fr; }

.sidebar-box {
  border: 2px solid #F4F6FB;
  border-radius: 10px;
  padding: 22px;
}

.sidebar-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 115%;
  color: #000000;
  opacity: 0.8;
}

.sidebar-subtext {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #2F2937;
}

/* ---------- Slider (reduced radius, dashboard look) ---------- */
.promo-slider{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  /*border-radius: var(--radius); */ /* reduced */
  /*bborder: 1px solid var(--line); */
  background: var(--panel);
  box-shadow: var(--shadow);
}

.promo-slide{
  position:absolute;
  inset:0;
  transform: translateX(100%);
  transition: transform .65s ease;
  z-index:1;
  visibility: hidden;
}
.promo-slide.active{ transform: translateX(0); z-index:2; visibility: visible; }
.promo-slide.prev{ transform: translateX(-100%); z-index:1; visibility: visible; }

.promo-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
}
.promo-bg video{
  width:100%;
  height:100%;
  object-fit: cover;
}
.promo-bg::after{
  content:"";
  position:absolute;
  inset:0;
  /* subtle overlay like admin banners */
  background: linear-gradient(180deg, rgba(15,23,42,.12), rgba(15,23,42,.55));
}

.promo-slide {
  position: absolute;
}

.promo-content {
  position: absolute;
  left: 8%;          /* отодвигаем от левого края */
  bottom: 14%;       /* поднимаем надписи над низом */
  z-index: 2;

  max-width: 700px;

  padding: 0;        /* убираем лишний внутренний отступ */
  color: #fff;
}
.promo-content h3{
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 38px;
  line-height: 115%;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 10px;
}
.promo-content p{
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 100%;
  color: #9A9FB2;
  margin: 0 0 14px;
}
.promo-content .btn{
  border-radius: 16px;
  border: 2px solid #E9A854;
  background: rgba(233, 236, 245, 0.25);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  text-align: center;
  color: #fff;
}
.promo-content .btn:hover{
  background: rgba(233, 236, 245, 0.35);
}

/* slider arrows - compact, like dashboard controls */
.promo-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index:5;
  width: 47px;
  height: 47px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(47, 41, 55, 0.46);
  color:#fff;
  font-size: 22px;
  line-height: 1;
  cursor:pointer;
  display:grid;
  place-items:center;
  user-select:none;
}
.promo-arrow:hover{ background: rgba(15,23,42,.48); }
.promo-prev{ left: 12px; right: auto; }
.promo-next{ right: 12px; left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .aside .card{ position:relative; top:auto; }
  .routes .grid{ grid-template-columns: 1fr; }
  .stats .grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .contacts-grid{ grid-template-columns: 1fr; }

  /*<!-- Модалки  -->*/
  /* .pdf-modal-content {max-width: 95%; height: 80vh; } */
  /*<!-- End Модалки  -->*/

  nav ul{ display:none; }
  .burger{ display:inline-grid; place-items:center; }
  .brand{ min-width:auto; }
  .lang-select{ font-size: 16px; }
}

/* Optional: reduce overall roundness everywhere */
img, iframe { border-radius: var(--radius-sm); }

/* ===== IFRAME MODAL ===== */

.iframe-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.iframe-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.iframe-window{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 960px);
  height: min(90vh, 720px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}

.iframe-window iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* close button */
.iframe-close{
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

  /* Floating buttons */
.fab-panel {
  color: #1b1830;
  position: fixed;
  right: 24px;
  bottom: 125px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  transition: bottom .2s ease;
}

/* Base FAB */
.fab {
  padding: 12px 16px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, opacity .2s ease;
}

.fab:hover {
  transform: translateY(-2px);
}

/* Scroll to top */
.fab-up {
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  width: 270px;
  height: 60px;
  border-radius: 16px;
  border: 2px solid #E9A854
}

.fab-up.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Client button */
.fab-client {
  background: #000;
}

.fab-client2 {
  background: #1E1A17;
  border: 2px solid #E9A854;
  border-radius: 10px;
  font-family: Montserrat;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .fab-panel {
    right: 16px;
    bottom: 16px;
  }

  .fab {
    min-height: 48px;
    min-width: 48px;
    padding: 0 14px;
  }
}


.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.modal.open {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.modal-content {
  position: relative;
  max-width: 900px;
  margin: 5vh auto;
  background: #fff;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}


.modal-scroll {
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  background: none;
  border: 0;
  cursor: pointer;
}


/* styles ONLY inside services modal */
#servicesModal .modal-scroll li { display:list-item; unicode-bidi:isolate; }
#servicesModal .modal-scroll ul { list-style-type: disc; }

#servicesModal .modal-scroll .title {
  font-family: Montserrat !important;
  line-height: 24px !important;
  text-transform: uppercase !important;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

#servicesModal .modal-scroll .sub-title {
  letter-spacing: .04em !important;
  margin-top: 24px !important;
  font-size: 16px;
  font-weight: bold !important;
  text-align: center !important;
}

#servicesModal .modal-scroll ul li { font-style: italic !important; letter-spacing: .02em; }
#servicesModal .modal-scroll .modal .wrapper .text,
#servicesModal .modal-scroll .modal .wrapper ul li {
  font-family: Montserrat !important;
  font-size: 14px;
  line-height: 24px;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


.our_doc_button{
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #2F2937;
    background: #FFFFFF;
    border: 2px solid #E9A854;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    min-height: 58px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.our_doc_button:hover{
    background: #1E1A17;
    color: #FFFFFF;
    border-color: #1E1A17;
}

.btn-dark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  background: #1E1A17;
  color: #FFFFFF;
  border: 2px solid #1E1A17;
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  text-decoration: none;
}

.btn-dark:hover {
  background: #2F2937;
}

.translation { display: none; }

/* показываем только нужный язык */
html[data-lang="en"] .translation-en { display: block; }
html[data-lang="ru"] .translation-ru { display: block; }

/* задел под будущее */
html[data-lang="zh"] .translation-zh { display: block; }
html[data-lang="ar"] .translation-ar { display: block; }

.lang-select-wrap{
  display:flex;
  align-items:center;
  border: 1px solid #9A9FB2;
  border-radius: 8px;
  background: rgba(154, 159, 178, 0.12);
}

.lang-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.90);
  padding: 8px 34px 8px 10px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

/* маленькая стрелка */
.lang-select-wrap{
  position: relative;
}
.lang-select-wrap::after{
  content:"▾";
  position:absolute;
  right:10px;
  top:50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.75);
  pointer-events:none;
  font-size: 12px;
}
/* Language select (fix white-on-white in options list) */
.lang-select{
  color: rgba(255,255,255,.92);
}

.lang-select option{
  color: #111;
  background: #fff;
}

/* =========================
   RTL: keep header layout stable
   ========================= */

/* Не даём RTL переворачивать шапку (логотип слева, язык справа как было) */
html[dir="rtl"] header,
html[dir="rtl"] header .nav,
html[dir="rtl"] header .container {
  direction: ltr;
}

/* Но сам текст (арабский) внутри переключателя можно сделать RTL, чтобы читалось нормально */
html[dir="rtl"] header .lang-select {
  direction: rtl;
  text-align: right;
}

/* (опционально) если в нав-ссылках будет арабский — пусть текст будет RTL, но позиционирование не сломается */
html[dir="rtl"] header nav a {
  direction: rtl;
  unicode-bidi: plaintext;
}

  /* Фон для карточек - вариант под всем гридом */
/* #performance {
    position: relative;
}

.performance-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#performance .container {
    position: relative;
    z-index: 1;
} */

/* ---------- RTL (Arabic) fixes ---------- */
[dir="rtl"] .stile-name{
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
[dir="rtl"] .stile{
  min-height: 190px;
  overflow: visible;
}
[dir="rtl"] .services-tiles-grid{
  grid-template-columns: repeat(6, minmax(min-content, 1fr));
}
[dir="rtl"] .stats-grid{
  direction: ltr;
}
[dir="rtl"] .stats-grid .inner{
  direction: rtl;
}
