:root {
  --accent:#fc9928;
  --muted:#777;
  --line:#eee;
  --card-bg:#fff;
}

/* Сброс и базовая типографика */
*,*::before,*::after { box-sizing:border-box; }
html,body { margin:0; padding:0; }
body { color:#111; background:#fff; line-height:1.6; }
a { color:inherit; text-decoration:none; }
img { border:0; }

/* HEADER (как на других страницах) */
.header {
  display:flex; align-items:center; justify-content:space-between;
  padding:2px 64px; background:#fff; border-bottom:1px solid var(--line);
}
.logo img { height:120px; width:auto; display:block; }
.main-nav ul { display:flex; gap:32px; }
.main-nav a { font-size:16px; font-weight:500; color:#333; transition:color .3s; }
.main-nav a:hover{ color:var(--accent); }
.cta-header { display:flex; gap:12px; align-items:center; }
.lang-select {
  height:44px; padding:0 12px; border:1px solid #ddd; border-radius:8px; background:#fff;
  font-weight:700; cursor:pointer;
}
.btn-contact {
  height:44px; padding:0 18px; border:0; border-radius:8px; background:var(--accent); color:#fff;
  font-weight:700; cursor:pointer;
}
@media (max-width:768px){
  .header{ flex-direction:column; align-items:flex-start; padding:16px 20px; gap:12px; }
}

/* Контейнер */
.container { max-width:1200px; margin:0 auto; padding:20px 64px; }
@media (max-width:768px){ .container { padding:0 20px; } }

/* Хлебные крошки */
.srv-breadcrumbs { margin:16px 0 6px; font-size:14px; color:var(--muted); }
.srv-breadcrumbs a { color:inherit; text-decoration:underline; }

/* Заголовок */
.srv-header h1 { margin:8px 0 18px; font-size:36px; line-height:1.25; font-weight:800; }

/* Тело услуги — вставленный Word HTML */
.srv-body { margin-bottom:40px; }
.doc-html { font-size:18px; line-height:1.75; color:#111; }

/* Изображения и видео из Word — адаптивно и по центру */
.doc-html img,
.doc-html video,
.doc-html iframe {
  max-width:100%;
  height:auto;
  display:block;
  margin: 18px auto;
  border-radius:8px;
}

/* Таблицы */
.doc-html table { width:100%; border-collapse:collapse; margin:18px 0; }
.doc-html th, .doc-html td { border:1px solid #ddd; padding:8px; }
.doc-html th { background:#fafafa; }

/* Списки/абзацы */
.doc-html p { margin:8px 0; }
.doc-html ul, .doc-html ol { padding-left:22px; margin:8px 0; }

/* Элементы figure/figcaption, если Word их создаёт */
.doc-html figure { margin:18px auto; max-width:100%; }
.doc-html figcaption { font-size:14px; color:#666; text-align:center; }

/* FOOTER (как на других страницах) */
.footer {
  background:#111; color:#fff; padding:64px;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:32px;
}
.footer__section { flex:1 1 260px; }
.footer__title { font-size:18px; font-weight:700; margin-bottom:8px; }
.footer__name, .footer__contacts { font-size:16px; line-height:1.6; }

.footer-bottom {
  background:#f8f8f8; color:#444; font-size:14px; text-align:center;
  padding:32px 16px; border-top:1px solid #ddd;
}
.footer-bottom__links { display:flex; flex-wrap:wrap; justify-content:center; gap:24px; margin-bottom:20px; }
.footer-bottom__links a { color:#444; }
.footer-bottom__links a:hover { color:var(--accent); }
.footer-bottom__info { margin-bottom:16px; }
.footer-bottom__socials { display:flex; justify-content:center; gap:28px; }
.footer-bottom__socials img { width:24px; height:24px; filter:grayscale(60%); transition:filter .3s; }
.footer-bottom__socials img:hover { filter:none; }

/* MODAL */
.modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.45); z-index:10000; padding:24px; }
.modal.is-open { display:flex; }
.modal__dialog {
  position:relative; width:min(560px,100%); background:#fff; border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.2); padding:24px 24px 20px;
}
.modal__close { position:absolute; top:10px; right:12px; width:36px; height:36px; border:0; border-radius:50%; background:#f2f2f2; font-size:22px; cursor:pointer; }
.modal__title { margin:0 36px 8px 0; font-size:22px; line-height:1.25; }
.modal__phones { margin:8px 0 12px; padding-left:18px; }
.modal__extra { color:#666; }
body.modal-open { overflow:hidden; }
/* Локальные штрихи. Шрифт/хедер/футер мы НЕ переопределяем — берём из /Pages/Technologies/style.css */

/* Хлебные крошки (используем общий класс tech-breadcrumbs, но можно и свои) */
.tech-breadcrumbs{ margin:10px 0 16px; }

/* Контент услуги (вставленный Word-HTML) */
.srv-header h1{
  margin:8px 0 14px;
  font-size:38px;
  line-height:1.15;
  font-weight:800;
}

.srv-body{ font-size:16px; line-height:1.75; }

/* Картинки из Word — строчные, чтобы миниатюры шли в ряд (аналог .tech-body img) */
.srv-body img,
.doc-html img{
  max-width:100%;
  height:auto;
  display:inline;
  vertical-align:middle;
  margin:0 8px 8px 0;
  border-radius:8px;
}

/* Если Word оборачивает в <figure> */
.srv-body figure,
.doc-html figure{ display:inline-block; margin:0 8px 8px 0; }
.srv-body figure img,
.doc-html figure img{ display:block; margin:0; }

/* Таблицы/видео */
.srv-body table{ max-width:100%; border-collapse:collapse; }
.srv-body td, .srv-body th{ padding:6px 8px; border:1px solid #eee; }
.srv-body iframe, .srv-body video{ max-width:100%; border:0; display:block; margin:10px 0; }

/* На мобильных чуть уменьшим заголовок */
@media (max-width:768px){
  .srv-header h1{ font-size:30px; }
}
/* ===== BURGER ===== */
.nav-toggle{
  display:none; position:relative; width:40px; height:32px;
  border:0; background:transparent; padding:0; cursor:pointer; color:#333;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:3px; border-radius:2px;
  background: currentColor; transition: transform .25s, top .25s, opacity .2s;
}
.nav-toggle span:nth-child(1){ top:6px; }
.nav-toggle span:nth-child(2){ top:14px; }
.nav-toggle span:nth-child(3){ top:22px; }
.nav-toggle.is-open span:nth-child(1){ top:14px; transform:rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ top:14px; transform:rotate(-45deg); }

/* ===== MOBILE HEADER: якоря — слева/центр/справа ===== */
@media (max-width:1024px){
  header, header .topbar, header .header, header .header-inner{
    position: relative !important; display:block !important;
    min-height:56px; padding:8px 0;
  }
  /* слева бургер */
  header .nav-toggle{
    display:block !important; position:absolute; left:12px; top:50%;
    transform:translateY(-50%); z-index:1001;
  }
  /* по центру логотип */
  header .logo{
    position:absolute; left:50%; top:50%; transform:translate(-50%, -50%);
    margin:0 !important; z-index:1000;
  }
  /* справа переключатель языка */
  #langSwitch{
    position:absolute; right:12px; top:50%; transform:translateY(-50%);
    z-index:1001;
  }
  /* десктоп-меню прячем */
  header .main-nav{ display:none !important; }
  /* большую шапочную кнопку прячем на мобилках — она будет в оверлее */
  #langSwitch .btn-contact{ display:none !important; }
}

/* при открытом меню: прячем бургер и переключатель языка */
body.menu-open .nav-toggle{ visibility:hidden; }
body.menu-open #langSwitch{ display:none !important; }

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu[hidden]{ display:none; }
.mobile-menu{ position:fixed; inset:0; z-index:1000; }
.mobile-menu__backdrop{
  position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(6px);
  opacity:0; transition:opacity .25s;
}
.mobile-menu.is-open .mobile-menu__backdrop{ opacity:1; }
.mobile-menu__panel{ position:absolute; inset:0; display:flex; flex-direction:column; padding:16px 22px; color:#fff; }
.mobile-menu__top{ position:relative; display:flex; justify-content:center; align-items:center; padding-bottom:10px; margin-bottom:16px; border-bottom:1px solid rgba(255,255,255,.15); }
.mobile-menu__logo{ color:#ffd26a; font-weight:700; text-decoration:none; font-size:20px; }
.mobile-menu__close{ position:absolute; right:8px; top:0; font-size:28px; line-height:1; border:0; background:transparent; color:#fff; cursor:pointer; }
.mobile-menu__nav{ display:flex; flex:1 1 auto; }
.mobile-menu__list{ display:flex; flex-direction:column; gap:18px; margin:0 auto; padding:24px 0; list-style:none; width:100%; max-width:420px; text-align:center; }
.mobile-menu__list a{ color:#fff; text-decoration:none; font-size:22px; font-weight:500; }

/* CTA в мобильном меню */
.mobile-menu__cta{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:12px 24px; font-size:18px; font-weight:700;
  background:#f39c12; color:#fff; border-radius:10px; margin-top:10px;
}
.mobile-menu__cta:active{ opacity:.9; }

/* блокировка скролла под оверлеем */
.body--lock{ overflow:hidden; }
/* ДЕСКТОП: бургер не показываем ни при каких условиях */
@media (min-width: 1025px){
  .nav-toggle{
    display: none !important;
    visibility: hidden !important;
  }
}
/* ЛОГО на телефонах — чуть крупнее и по центру */
@media (max-width: 1024px){
  /* чтобы логотип комфортно помещался по высоте шапки */
  header, header .topbar, header .header, header .header-inner{
    min-height: 64px; /* было ~56px; можно 60–66px */
  }

  /* размер логотипа: выбери один из вариантов ниже */
  /* ВАРИАНТ 1: фиксированный (рекомендую 40px) */
  header .logo > a > img{
    height: 74px !important;
    width: auto !important;
  }

  /* ВАРИАНТ 2: адаптивный (сам подстраивается под ширину экрана)
  header .logo > a > img{
    height: clamp(34px, 5.2vw, 44px) !important;
    width: auto !important;
  } */
}
