:root{
      --bg: #f6f7fb;
      --panel: #ffffff;
      --text: #121826;
      --muted: rgba(18,24,38,.68);

      --line: rgba(18,24,38,.10);
      --line2: rgba(18,24,38,.06);

      --accent: #0ea5e9;

      --shadow: 0 8px 20px rgba(17,24,39,.06);
      --radius: 10px;
      --radius2: 12px;

      --max: 1160px;
      --gap: 18px;
      --sidebar: 340px;
      --headerH: 56px;

      --base: 16px;
    }

    *{ box-sizing: border-box; }
    html, body{ height: 100%; overflow-x: hidden;}
    body{
      margin: 0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
      font-size: var(--base);
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      padding-top: var(--headerH);
    }

    a{ color: inherit; text-decoration: none; }
    a:hover{ text-decoration: underline; }
    :focus-visible{ outline: 2px solid rgba(14,165,233,.45); outline-offset: 2px; border-radius: 6px; }

    .container{
      max-width: var(--max);
      margin: 0 auto;
      padding: 20px;
    }

    header.site-header{
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      background: rgba(246,247,251,.92);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(10px);
      box-shadow: 0 6px 16px rgba(17,24,39,.05);
    }

    .header-inner{
      max-width: var(--max);
      margin: 0 auto;
      padding: 6px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: var(--headerH);
      gap: 12px;
    }

    /* Brandmark */
    .brandmark{
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      min-width: 180px;
    }
    .brandmark-dot{
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 8px 18px rgba(14,165,233,.28);
      flex: 0 0 auto;
    }
    .brandmark-text{ display: grid; line-height: 1.1; }
    .brandmark-name{ font-weight: 900; letter-spacing: .2px; }
    .brandmark-tagline{ font-size: 12.5px; color: var(--muted); margin-top: 2px; }

    /* Desktop composite navigation */
    .nav-desktop{ flex: 1 1 auto; min-width: 0; display: none; }
    .nav-desktop-list{
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .nav-item{ position: relative; }
    .nav-link,
    .nav-trigger{
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border-radius: 999px;
      font-weight: 750;
      color: rgba(18,24,38,.86);
      text-decoration: none;
      border: 1px solid transparent;
      background: transparent;
      cursor: pointer;
      transition: background .12s ease, border-color .12s ease;
      white-space: nowrap;
      font-size: 15px;
      line-height: 1.2;
    }
    .nav-trigger{ appearance:none; }
    .nav-link:hover,
    .nav-trigger:hover{
      background: rgba(18,24,38,.02);
      border-color: rgba(18,24,38,.10);
      text-decoration: none;
    }
    .nav-marker{ width: 16px; height: 16px; color: rgba(18,24,38,.55); display: inline-grid; }
    .nav-marker svg{ width: 16px; height: 16px; }

    /* Dropdown */
    .dropdown{
      position: absolute;
      left: 0;
      top: 100%;
      margin-top: 8px;
      min-width: 240px;
      background: #fff;
      border: 1px solid rgba(18,24,38,.10);
      border-radius: 14px;
      box-shadow: 0 14px 30px rgba(17,24,39,.12);
      padding: 10px;
      display: grid;
      gap: 4px;
      opacity: 0;
      transform: translateY(-2px);
      pointer-events: none;
      transition: opacity .14s ease, transform .14s ease;
      z-index: 80;
    }
    .dropdown-link{
      padding: 10px 11px;
      border-radius: 12px;
      border: 1px solid transparent;
      text-decoration: none;
      color: rgba(18,24,38,.86);
    }
    .dropdown-link:hover{
      background: rgba(14,165,233,.06);
      border-color: rgba(14,165,233,.18);
      text-decoration: none;
    }

    /* Split mega menu */
    .mega{
      position: absolute;
      left: 50%;
      top: 100%;
      transform: translateX(-50%) translateY(-2px);
      margin-top: 10px;
      width: min(860px, calc(100vw - 40px));
      background: #fff;
      border: 1px solid rgba(18,24,38,.10);
      border-radius: 16px;
      box-shadow: 0 18px 40px rgba(17,24,39,.14);
      opacity: 0;
      pointer-events: none;
      transition: opacity .14s ease, transform .14s ease;
      z-index: 90;
      overflow: hidden;
    }
    .mega-grid{ display: grid; grid-template-columns: 1fr 1fr; }
    .mega-col{ padding: 14px; }
    .mega-col-links{ border-right: 1px solid rgba(18,24,38,.08); background: rgba(18,24,38,.01); }
    .mega-title{ font-weight: 900; margin-bottom: 10px; }
    .mega-links{ list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
    .mega-link{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 11px;
      border-radius: 12px;
      border: 1px solid transparent;
      text-decoration: none;
      color: rgba(18,24,38,.86);
    }
    .mega-link:hover,
    .mega-link.is-active{
      background: rgba(14,165,233,.06);
      border-color: rgba(14,165,233,.18);
      text-decoration: none;
    }
    .mega-panel{ display: grid; gap: 10px; padding: 2px; }
    .mega-panel-title{ font-weight: 950; font-size: 18px; }
    .mega-panel-desc{ color: var(--muted); }
    .mega-panel-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

    /* Grouped mega (left groups → right lists) */
    .mega-group{
      width: 100%;
      text-align: left;
      background: transparent;
      border: 1px solid transparent;
      cursor: pointer;
      font: inherit;
    }
    .mega-panels{ display: grid; }
    .mega-panels [data-mega-panel]{ display: none; }
    .mega-panels [data-mega-panel].is-active{ display: grid; }
    .mega-panel-links{ display: grid; gap: 6px; padding-top: 2px; }
    .mega-panel-link{
      display: block;
      padding: 10px 11px;
      border-radius: 12px;
      border: 1px solid rgba(18,24,38,.10);
      text-decoration: none;
      color: rgba(18,24,38,.88);
      background: rgba(18,24,38,.01);
    }
    .mega-panel-link:hover{ background: rgba(14,165,233,.06); border-color: rgba(14,165,233,.18); }

    /* Open states (hover/focus or JS) */
    @media (min-width: 981px){
      .nav-desktop{ display: block; }

      .nav-item.has-children:hover > .dropdown,
      .nav-item.has-children:focus-within > .dropdown,
      .nav-item.has-children.is-open > .dropdown{
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
      }

      .nav-item.is-mega:hover > .mega,
      .nav-item.is-mega:focus-within > .mega,
      .nav-item.is-mega.is-open > .mega{
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
      }
    }


    /* (Removed duplicate mega styles) */


    .brand{
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 140px;
    }
    .brand .name{ font-weight: 800; letter-spacing: 0.2px; }
    .brand .tagline{ font-size: 13px; color: var(--muted); }

    .header-actions{ display: flex; gap: 10px; align-items: center; }

    .btn{
      appearance: none;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--text);
      padding: 8px 10px;
      border-radius: 999px;
      cursor: pointer;
      transition: background .12s ease, border-color .12s ease, transform .12s ease;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      user-select: none;
      white-space: nowrap;
      font-size: 15px;
      line-height: 1.2;
    }
    .btn:hover{ background: rgba(18,24,38,.02); border-color: rgba(18,24,38,.14); text-decoration: none; }
    .btn:active{ transform: translateY(1px); }

    .btn.primary{
      border-color: rgba(14,165,233,.30);
      background: rgba(14,165,233,.08);
    }

    .icon{ width: 18px; height: 18px; display: inline-block; }
    .icon svg{ width: 100%; height: 100%; }

    .layout{
      display: grid;
      grid-template-columns: 1fr var(--sidebar);
      gap: var(--gap);
      align-items: start;
      padding-top: 18px;
      padding-bottom: 22px;
    }

    main{ min-width: 0; }

    .content-wrap{
      border: 1px solid var(--line);
      border-radius: var(--radius2);
      background: var(--panel);
      padding: 28px;
    }

    .hero h1{
      font-size: clamp(22px, 2.2vw, 30px);
      letter-spacing: 0.2px;
    }
    .hero p{ color: var(--muted); max-width: 72ch; }

    /* Breadcrumbs */
    .breadcrumbs{
      margin: 0 0 10px 0;
      font-size: 13px;
      color: var(--muted);
    }
    .breadcrumbs ol{
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }
    .breadcrumbs li{
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .breadcrumbs li + li::before{
      content: "›";
      color: rgba(18,24,38,.35);
      margin-right: 6px;
    }
    .breadcrumbs a{
      color: rgba(18,24,38,.78);
      text-decoration: none;
      border-bottom: 1px dashed rgba(18,24,38,.22);
    }
    .breadcrumbs a:hover{
      border-bottom-color: rgba(14,165,233,.45);
      color: rgba(18,24,38,.92);
      text-decoration: none;
    }

    /* Hero improvements */
    .hero{
      padding: 18px;
      border: 1px solid var(--line2);
      border-radius: var(--radius2);
      margin-bottom: 14px;
      /* мягкий градиент в стиле сайта */
      background:
        radial-gradient(900px 380px at 12% 0%, rgba(14,165,233,.18), transparent 55%),
        radial-gradient(700px 320px at 92% 10%, rgba(14,165,233,.08), transparent 55%),
        linear-gradient(180deg, rgba(14,165,233,.06), rgba(255,255,255,1));
    }
    .hero-inner{ display: grid; gap: 10px; }
    .hero h1{ margin: 0; }
    .hero p{ margin: 0; }
    .hero-actions{
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 4px;
    }
    .hero-points{
      list-style: none;
      margin: 2px 0 0 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      color: rgba(18,24,38,.70);
      font-size: 14px;
    }
    .hero-points li{
      padding: 6px 10px;
      border: 1px solid rgba(18,24,38,.08);
      border-radius: 999px;
      background: rgba(255,255,255,.70);
    } 

    .section{
      padding: 14px 0;
      border-bottom: 1px solid var(--line2);
    }
    .section:last-child{ border-bottom: 0; }
    .section h2{
      margin: 0 0 6px 0;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: .5px;
      color: rgba(18,24,38,.80);
    }
    .section p{ margin: 0; color: var(--muted); }

    .grid{
      display: grid;
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: 12px;
      padding: 14px 0;
      border-bottom: 1px solid var(--line2);
    }
    .grid .cell{
      border: 1px solid var(--line2);
      border-radius: var(--radius);
      padding: 14px;
      background: #fff;
    }

    

    /* Prose (md-like content) */
    .prose{
      display: grid;
      gap: 0;
    }
    .prose .h3{
      margin: 0 0 8px 0;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .5px;
      color: rgba(18,24,38,.82);
    }
    .prose ul, .prose ol{
      margin: 10px 0 0 18px;
      color: rgba(18,24,38,.74);
    }
    .prose li{ margin: 6px 0; }
    .prose code{
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 0.92em;
      padding: 2px 6px;
      border: 1px solid rgba(18,24,38,.10);
      background: rgba(18,24,38,.02);
      border-radius: 8px;
      color: rgba(18,24,38,.92);
    }
    .prose mark{
      background: rgba(14,165,233,.14);
      padding: 1px 4px;
      border-radius: 6px;
    }
    .hint{
      margin-top: 12px;
      color: rgba(18,24,38,.70);
    }
    .small{
      margin-top: 10px;
      color: rgba(18,24,38,.62);
      font-size: 14px;
    }

    .cols{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 12px;
    }
    .panel{
      border: 1px solid var(--line2);
      border-radius: var(--radius);
      padding: 14px;
      background: #fff;
    }

    .table-wrap{
      margin-top: 12px;
      border: 1px solid var(--line2);
      border-radius: var(--radius);
      overflow: auto;
      background: #fff;
    }
    .table{
      width: 100%;
      border-collapse: collapse;
      min-width: 520px;
    }
    .table th, .table td{
      padding: 12px 12px;
      border-bottom: 1px solid rgba(18,24,38,.06);
      text-align: left;
      vertical-align: top;
      color: rgba(18,24,38,.78);
      font-size: 15px;
    }
    .table th{
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .6px;
      color: rgba(18,24,38,.62);
      background: rgba(18,24,38,.01);
    }
    .table tbody tr:hover td{
      background: rgba(14,165,233,.04);
    }

    .note, .quote{
      margin: 0 0 14px 0;
      padding: 12px 14px;
      border-left: 3px solid rgba(14,165,233,.45);
      background: rgba(14,165,233,.06);
      border-radius: 10px;
      color: rgba(18,24,38,.78);
    }
    .quote{
      border-left-color: rgba(18,24,38,.20);
      background: rgba(18,24,38,.02);
    }
    .note p, .quote p{ margin: 0; }

    .figure{
      margin: 12px 0 0 0;
      border: 1px solid var(--line2);
      border-radius: var(--radius);
      overflow: hidden;
      background: #fff;
    }
    .figure .img{ background: rgba(14,165,233,.04); }
    .figure svg{ width: 100%; height: auto; display: block; }
    .figure figcaption{
      padding: 10px 12px;
      font-size: 14px;
      color: rgba(18,24,38,.62);
      border-top: 1px solid rgba(18,24,38,.06);
    }

    .faq{
      margin-top: 12px;
      display: grid;
      gap: 8px;
    }
    details{
      border: 1px solid var(--line2);
      border-radius: var(--radius);
      background: #fff;
      overflow: hidden;
    }
    summary{
      cursor: pointer;
      padding: 12px 14px;
      list-style: none;
      font-weight: 650;
      color: rgba(18,24,38,.88);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    summary::-webkit-details-marker{ display: none; }
    summary::after{
      content: "›";
      transform: rotate(90deg);
      color: rgba(18,24,38,.45);
      transition: transform .16s ease;
    }
    details[open] summary::after{
      transform: rotate(-90deg);
    }
    .details-body{
      padding: 0 14px 12px 14px;
      color: rgba(18,24,38,.72);
    }

    .callout{
      margin-top: 12px;
      border: 1px solid rgba(18,24,38,.10);
      border-radius: var(--radius);
      background: rgba(255,255,255,.9);
      padding: 12px 14px;
    }
    .callout-title{
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .6px;
      color: rgba(18,24,38,.62);
      margin-bottom: 6px;
    }
    .callout-body{
      color: rgba(18,24,38,.74);
    }

    .inline-list{
      margin: 10px 0 0 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 8px;
      color: rgba(18,24,38,.72);
    }
    .inline-list li{
      padding: 10px 12px;
      border: 1px solid rgba(18,24,38,.06);
      border-radius: var(--radius);
      background: #fff;
    }

    @media (max-width: 980px){
      .cols{ grid-template-columns: 1fr; }
      .table{ min-width: 420px; }
    }
aside.sidebar{
      position: sticky;
      top: calc(var(--headerH) + 18px);
    }

    .side-panel{
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius2);
      overflow: hidden;
    }

    .side-top{
      padding: 14px 14px 12px 14px;
      border-bottom: 1px solid var(--line2);
    }

    .company{
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .logo-dot{
      width: 10px; height: 10px;
      border-radius: 999px;
      background: var(--accent);
      flex: 0 0 auto;
    }
    .company .title{ font-weight: 850; }
    .company .sub{ font-size: 13px; color: var(--muted); margin-top: 2px; }

    .side-body{
      padding: 12px 14px 14px 14px;
      display: grid;
      gap: 12px;
    }

    .kv{
      display: grid;
      gap: 8px;
      padding: 12px;
      border-radius: var(--radius);
      border: 1px solid var(--line2);
      background: #fff;
    }
    .kv-row{
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: baseline;
      padding-bottom: 8px;
      border-bottom: 1px dashed rgba(18,24,38,.10);
    }
    .kv-row:last-child{ border-bottom: 0; padding-bottom: 0; }

    .kv .k{
      font-size: 12px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .kv .v{
      font-size: 15px;
      font-weight: 700;
      text-align: right;
    }

    .side-actions{
      display: grid;
      gap: 10px;
    }
    .side-actions .btn{
      justify-content: center;
      width: 100%;
      border-radius: var(--radius);
    }

    /* Multi-level nav + ACTIVE state */
    .nav{
      border-radius: var(--radius);
      border: 1px solid var(--line2);
      background: #fff;
      overflow: hidden;
    }
    .nav .nav-title{
      padding: 10px 12px;
      font-size: 12px;
      letter-spacing: 0.6px;
      color: var(--muted);
      text-transform: uppercase;
      border-bottom: 1px solid var(--line2);
      background: rgba(18,24,38,.01);
    }

    .nav-list{
      list-style: none;
      margin: 0;
      padding: 6px;
      display: grid;
      gap: 4px;
    }

    .nav-item{ border-radius: 10px; }
    .nav-row{
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 8px;
      padding: 9px 10px;
      border-radius: 10px;
    }

    .nav-link{
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 650;
      text-decoration: none;
    }
    .nav-link small{ font-weight: 600; color: var(--muted); }

    /* Активная подсветка */
    .nav-link.active{
      color: rgba(18,24,38,.95);
      text-decoration: none;
      background: rgba(14,165,233,.10);
      border-radius: 10px;
      padding: 8px 10px;
      margin: -8px -10px; /* чтобы “подложка” легла красиво в строке */
      box-shadow: inset 0 0 0 1px rgba(14,165,233,.22);
    }
    .nav-item.parent-active > .nav-row{
      background: rgba(14,165,233,.06);
    }

    .nav-toggle{
      appearance: none;
      border: 1px solid var(--line2);
      background: #fff;
      border-radius: 10px;
      width: 36px;
      height: 32px;
      display: inline-grid;
      place-items: center;
      cursor: pointer;
      transition: background .12s ease, transform .12s ease, border-color .12s ease;
    }
    .nav-toggle:hover{ background: rgba(18,24,38,.02); border-color: rgba(18,24,38,.12); }
    .nav-toggle:active{ transform: translateY(1px); }

    .chev{
      width: 16px; height: 16px;
      display: inline-block;
      transition: transform .18s ease;
      color: rgba(18,24,38,.55);
    }
    .chev svg{ width: 100%; height: 100%; }

    /* Плавное подменю */
    .submenu{
      list-style: none;
      margin: 6px 0 0 0;
      border-top: 1px solid var(--line2);
      display: grid;
      gap: 4px;

      max-height: 0;
      opacity: 0;
      transform: translateY(-4px);
      overflow: hidden;
      pointer-events: none;

      padding: 0 6px;
      transition:
        max-height .22s ease,
        opacity .18s ease,
        transform .18s ease,
        padding .18s ease;
    }

    .submenu a{
      display: block;
      padding: 9px 10px;
      border-radius: 10px;
      border: 1px solid transparent;
      text-decoration: none;
      color: rgba(18,24,38,.92);
      background: rgba(18,24,38,.01);
    }
    .submenu a:hover{
      background: rgba(14,165,233,.06);
      border-color: rgba(14,165,233,.18);
    }
    .submenu a.active{
      background: rgba(14,165,233,.10);
      border-color: rgba(14,165,233,.22);
    }

    @media (min-width: 981px){
      .nav-toggle{ display: none; }
      .nav-row:hover{ background: rgba(18,24,38,.02); }

      .nav-item.has-sub:hover > .submenu,
      .nav-item.has-sub:focus-within > .submenu{
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
        padding: 6px;
        pointer-events: auto;
      }

      .nav-item.has-sub:hover .chev,
      .nav-item.has-sub:focus-within .chev{
        transform: rotate(180deg);
      }
    }

    .nav-item[data-open="true"] > .submenu{
      max-height: 520px;
      opacity: 1;
      transform: translateY(0);
      padding: 6px;
      pointer-events: auto;
    }
    .nav-item[data-open="true"] .chev{ transform: rotate(180deg); }

    /* Footer */
    footer.site-footer{
      border-top: 1px solid var(--line);
      background: #fff;
    }


    .footer-grid{
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr;
      gap: 14px;
      padding: 16px 0;
    }

    .footer-list{
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 10px;
      color: var(--muted);
      font-size: 15px;
    }
    .footer-list a{
      color: rgba(18,24,38,.72);
      text-decoration: none;
      border-bottom: 1px dashed rgba(18,24,38,.22);
    }
    .footer-list a:hover{
      color: rgba(18,24,38,.92);
      border-bottom-color: rgba(14,165,233,.55);
    }

    .footer-block{
      border: 1px solid var(--line2);
      border-radius: var(--radius2);
      padding: 12px;
      background: #fff;
    }

    .footer-block h3{
      margin: 0 0 10px 0;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--muted);
    }

    .footer-contacts{
      display: grid;
      gap: 10px;
      color: var(--muted);
      font-size: 15px;
    }
    .footer-contacts b{ color: rgba(18,24,38,.92); font-weight: 750; }

    .footer-bottom{
      padding: 12px 0 16px 0;
      color: rgba(18,24,38,.62);
      font-size: 13px;
      border-top: 1px solid var(--line2);
    }

.footer-bottom-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;        /* ✅ позволяет уйти на следующую строку */
}

.footer-bottom-inner .footer-note{
  flex: 1 1 520px;        /* ✅ текст занимает остаток и может сжиматься */
  min-width: 0;           /* ✅ критично для переноса в flex */
  max-width: 100%;
  white-space: normal;    /* ✅ перенос строк */
}

.footer-links{
  flex: 0 0 auto;         /* ✅ ссылки не сжимаются */
  margin-left: auto;      /* ✅ держим справа */
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}
    .footer-links a{
      color: rgba(18,24,38,.72);
      text-decoration: none;
      border-bottom: 1px dashed rgba(18,24,38,.28);
    }
    .footer-links a:hover{
      color: rgba(18,24,38,.92);
      border-bottom-color: rgba(14,165,233,.55);
    }

    /* Mobile overlay/panel */
    .burger{ display: none; }

    .overlay{
      position: fixed;
      inset: 0;
      background: rgba(17,24,39,.35);
      backdrop-filter: blur(6px);
      z-index: 120;
      display: none;
    }
    .overlay[data-open="true"]{ display: block; }

    .mobile-panel{
      position: fixed;
      inset: 0;
      height: 100dvh;
      z-index: 130;
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease;
      background: rgba(246,247,251,.96);
      backdrop-filter: blur(10px);
      display: grid;
      grid-template-rows: auto 1fr;
    }
    .mobile-panel[data-open="true"]{ opacity: 1; pointer-events: auto; }

    .mnav-top{
      border-bottom: 1px solid var(--line);
      padding: 12px 14px;
      background: rgba(246,247,251,.96);
    }
    .mnav-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .mnav-brand{ display:flex; align-items:center; gap:10px; }
    .mnav-title{ font-weight: 950; }
    .mnav-sub{ font-size: 13px; color: var(--muted); }
    .mnav-contacts{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 10px;
    }
    .mnav-contact{
      display: grid;
      gap: 2px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 14px;
      text-decoration: none;
    }
    .mnav-contact .k{ font-size: 12px; color: var(--muted); letter-spacing: .2px; }
    .mnav-contact .v{ font-weight: 850; }

    /* Drill-down */
    .mnav{ padding: 12px 14px 16px 14px; }
    .mnav-screens{ position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); height: calc(100dvh - 166px); }
    .mnav-screen{
      position: absolute;
      inset: 0;
      display: grid;
      grid-template-rows: auto 1fr auto;
      transform: translateX(100%);
      transition: transform .22s ease;
      will-change: transform;
    }
    .mnav-screen.is-active{ transform: translateX(0); }
    .mnav-screen.is-prev{ transform: translateX(-100%); }

    .mnav-screen-head{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 12px 10px 12px;
      border-bottom: 1px solid var(--line2);
      background: rgba(18,24,38,.01);
    }
    .mnav-screen-title{ font-weight: 950; }
    .mnav-back{
      appearance:none;
      border: 1px solid rgba(18,24,38,.12);
      background: #fff;
      border-radius: 999px;
      padding: 8px 10px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-weight: 750;
    }
    .mnav-back:hover{ background: rgba(18,24,38,.02); }
    .mnav-back-icon{ width: 16px; height: 16px; display:inline-grid; }
    .mnav-back-icon svg{ width:16px;height:16px; }

    .mnav-list{ list-style: none; margin: 0; padding: 8px; overflow: auto; -webkit-overflow-scrolling: touch; }
    .mnav-item{ margin: 0; }
    .mnav-row{
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid transparent;
      text-decoration: none;
      color: rgba(18,24,38,.88);
      background: transparent;
      cursor: pointer;
      font: inherit;
      font-weight: 820;
      font-size: 17px;
      line-height: 1.15;
      text-align: left;
      appearance: none;
      -webkit-appearance: none;
    }
    .mnav-row:hover{ background: rgba(14,165,233,.06); border-color: rgba(14,165,233,.18); text-decoration: none; }
    .mnav-chevron{ width: 18px; height: 18px; color: rgba(18,24,38,.55); display:inline-grid; }
    .mnav-chevron svg{ width: 18px; height: 18px; }

    .mnav-cta{ padding: 10px 12px 12px 12px; display:flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line2); }

    /* Responsive */
    @media (max-width: 980px){
      :root{ --base: 17px; --headerH: 52px; }

      .layout{ grid-template-columns: 1fr; }
      aside.sidebar{ display: none; }
      .burger{ display: inline-flex; }

      .grid{ grid-template-columns: 1fr; }

      /* Контент в край экрана */
      .container.main-container{ padding-left: 0; padding-right: 0; }
      .content-wrap{
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        padding: 18px;
      }

      .hero{
        border-radius: 12px;
        padding: 16px;
      }

      .footer-grid{ grid-template-columns: 1fr; }
      .footer-bottom-inner{ flex-direction: column; align-items: flex-start; padding: 0 20px; gap: 6px; }

      /*
        На desktop внизу футера используется flex-row и у .footer-note задан
        большой flex-basis (чтобы текст корректно переносился рядом со ссылками).
        На mobile flex-direction становится column, и этот flex-basis превращается
        в «высоту», из‑за чего появляется большой пустой отступ между
        .footer-note и .footer-links.

        UX-правильно: в колонке элементы должны идти подряд без искусственной
        «минимальной высоты».
      */
      .footer-bottom-inner .footer-note{ flex: 0 0 auto; width: 100%; }
      .footer-links{ margin-left: 0; }

      .footer-note{ margin: 0; padding: 0; line-height: 1.35; font-size: 13px; }

  /* если внутри HTML есть <p> */
  .footer-note p{
    margin: 0;
  }
      .footer-links{ justify-content: flex-start; }
      .nav-toggle{ display: inline-grid; }

      /* (2) Телефон в шапке на мобиле: только иконка */
      .phone-text{ display: none; }
      .phone-btn{ padding: 10px 12px; }
      .phone-btn .icon{ width: 20px; height: 20px; }

      /* (3) Немного отступа у кнопки меню от края + чуть уже паддинги шапки */
      .header-inner{ padding-left: 12px; padding-right: 12px; }
      .burger{ margin-right: 6px; }

      /* Компактнее: на мобиле в кнопке меню оставляем только иконку */
      .burger > span:not(.icon){ display:none; }
    }

    /* helper */
    .sr-only{
      position:absolute;
      width:1px;height:1px;
      padding:0;margin:-1px;
      overflow:hidden;clip:rect(0,0,0,0);
      white-space:nowrap;border:0;
    }
  

    /* Fixed header: чтобы якоря не прятались под шапкой */
    [id]{
      scroll-margin-top: calc(var(--headerH) + 14px);
    }

@media (max-width: 980px){
  .site-header{
    position: fixed;
  }

  .header-inner{
    position: relative;
    justify-content: center; /* бренд по центру */
  }

  .brandmark{
    margin: 0 auto;
    min-width: 0;
  }

  /* бургер слева */
  .burger{
    position: absolute;
    left: 12px;
  }

  /* телефон справа */
  .phone-btn{
    position: absolute;
    right: 12px;
  }
}

/* Hugo default templates */
.page-content{padding:16px 0}
.page-title{margin:0 0 12px}
.page-list{margin:12px 0 0; padding-left:18px}

/* ------------------------------------------------------------
   Markdown content styling (единый стиль для UX/UI)
   Применяется к контенту из .Content (single/list) и к .prose.
------------------------------------------------------------ */

/*
  Важно: контейнер .page-content НЕ ограничиваем по ширине,
  чтобы «широкие» элементы (таблицы, прайс, галерея) заполняли колонку.
  Ограничение длины строки задаём точечно для типографики.
*/
.page-content,
.prose{ max-width: none; }

/* Типографика: держим комфортную длину строки для текста */
.page-content h2,
.page-content h3,
.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content pre,
.page-content div.highlight,
.prose h2,
.prose h3,
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose div.highlight{ max-width: 80ch; }

/* Широкие блоки — на всю колонку */
.page-content table,
.page-content .price,
.page-content .gallery,
.prose table,
.prose .price,
.prose .gallery{ max-width: 100%; }

.page-content > *{
  margin: 0;
}
.page-content > * + *,
.prose > * + *{
  margin-top: 12px;
}

/* Headings */
.page-content h2,
.prose h2{
  margin-top: 18px;
  font-size: 20px;
  letter-spacing: 0.1px;
}
.page-content h3,
.prose h3{
  margin-top: 14px;
  font-size: 17px;
  letter-spacing: 0.1px;
  color: rgba(18,24,38,.92);
}

/* Paragraph & inline emphasis */
.page-content p,
.prose p{
  color: rgba(18,24,38,.82);
}
.page-content em,
.prose em{
  color: rgba(18,24,38,.86);
}
.page-content strong,
.prose strong{
  color: rgba(18,24,38,.96);
  font-weight: 750;
}

/* Links (внутри контента делаем более очевидными) */
.page-content a,
.prose a{
  color: rgba(18,24,38,.92);
  text-decoration: none;
  border-bottom: 1px dashed rgba(14,165,233,.45);
}
.page-content a:hover,
.prose a:hover{
  border-bottom-style: solid;
  border-bottom-color: rgba(14,165,233,.75);
  text-decoration: none;
}

/* Email links */
.page-content a[href^="mailto:"],
.prose a[href^="mailto:"]{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14,165,233,.22);
  background: rgba(14,165,233,.06);
  font-weight: 650;
}

/* Lists */
.page-content ul,
.page-content ol,
.prose ul,
.prose ol{
  padding-left: 22px;
  color: rgba(18,24,38,.82);
}
.page-content li,
.prose li{
  margin: 6px 0;
}

/* Horizontal rule */
.page-content hr,
.prose hr{
  border: 0;
  border-top: 1px solid var(--line2);
  margin: 18px 0;
}

/* Images */
.page-content img,
.prose img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line2);
  box-shadow: 0 6px 16px rgba(17,24,39,.05);
  display: block;
}

/* Blockquotes */
.page-content blockquote,
.prose blockquote{
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 4px solid rgba(14,165,233,.65);
  background: rgba(14,165,233,.06);
  border-radius: 12px;
  color: rgba(18,24,38,.82);
}
.page-content blockquote p,
.prose blockquote p{
  margin: 0;
}

/* Inline code */
.page-content :not(pre) > code,
.prose :not(pre) > code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  padding: 2px 6px;
  border: 1px solid rgba(18,24,38,.10);
  background: rgba(18,24,38,.02);
  border-radius: 8px;
  color: rgba(18,24,38,.92);
}

/* Code blocks (Hugo Chroma: div.highlight > pre > code) */
.page-content div.highlight,
.prose div.highlight{
  margin: 12px 0;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: rgba(18,24,38,.02);
  overflow: auto;
}
.page-content div.highlight pre,
.prose div.highlight pre{
  margin: 0;
  padding: 14px;
  overflow: auto;
}
.page-content div.highlight pre code,
.prose div.highlight pre code{
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

/* Fallback for plain <pre><code> */
.page-content pre,
.prose pre{
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: rgba(18,24,38,.02);
  overflow: auto;
}
.page-content pre code,
.prose pre code{
  border: 0;
  background: transparent;
  padding: 0;
}

/* Tables */
.page-content table,
.prose table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line2);
  border-radius: 12px;
  overflow: visible;
  display: table;
  max-width: 100%;
}
.page-content thead,
.prose thead{
  background: rgba(18,24,38,.01);
}
.page-content th,
.page-content td,
.prose th,
.prose td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(18,24,38,.06);
  text-align: left;
  vertical-align: top;
  color: rgba(18,24,38,.80);
  font-size: 15px;
}
.page-content th,
.prose th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(18,24,38,.62);
}
.page-content tbody tr:nth-child(even),
.prose tbody tr:nth-child(even){
  background: rgba(18,24,38,.012);
}

/* На мобильных таблицы удобно скроллить */
.page-content table,
.prose table{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------
   Gallery (section: /galery/)
------------------------------------------------------------ */

.gallery{
  margin-top: 14px;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-card{
  appearance: none;
  border: 1px solid var(--line2);
  background: #fff;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 20px rgba(17,24,39,.06);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.gallery-card:hover{
  transform: translateY(-2px);
  border-color: rgba(14,165,233,.30);
  box-shadow: 0 12px 26px rgba(17,24,39,.10);
}

.gallery-img{
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.gallery-zoom{
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(18,24,38,.10);
  color: rgba(18,24,38,.72);
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.gallery-hint{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(18,24,38,.62);
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.lightbox[data-open="true"]{ display: block; }

.lightbox-overlay{
  position: absolute;
  inset: 0;
  background: rgba(18,24,38,.65);
  backdrop-filter: blur(8px);
}

.lightbox-panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  background: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(0,0,0,.35);
  overflow: hidden;
}

.lightbox-figure{
  margin: 0;
  display: grid;
}

.lightbox-img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
  background: rgba(18,24,38,.02);
}

.lightbox-caption{
  padding: 10px 14px;
  border-top: 1px solid var(--line2);
  font-size: 13px;
  color: rgba(18,24,38,.70);
}

.lightbox-close{
  position: absolute;
  right: 10px;
  top: 10px;
  appearance: none;
  border: 1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 800;
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: 1px solid rgba(18,24,38,.10);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
  color: rgba(18,24,38,.70);
}
.lightbox-nav.prev{ left: 10px; }
.lightbox-nav.next{ right: 10px; }

@media (max-width: 560px){
  .lightbox-nav{ display: none; }
  .lightbox-img{ max-height: calc(100vh - 110px); }
}

/* Prevent background scroll when lightbox is open (JS also fixes body position) */
body.modal-open{ overflow: hidden; }

/* ========== Price list (Markdown-embeddable) ========== */
.price{ margin: 18px 0 8px; }
.price{ width: 100%; }
.price__title{ margin: 0 0 10px; }
.price__tablewrap{
  width: 100%;
  max-width: 100%;
  display: block;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(18,24,38,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.75);
}
.price__table{
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  table-layout: fixed;
}
.price__table thead th{
  text-align: left;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(18,24,38,.65);
  background: rgba(18,24,38,.03);
  border-bottom: 1px solid rgba(18,24,38,.10);
  padding: 12px 14px;
}
.price__table tbody td{
  padding: 14px;
  border-bottom: 1px solid rgba(18,24,38,.08);
  vertical-align: top;
}
.price__table tbody tr:last-child td{ border-bottom: 0; }
.price__col-price{ width: 220px; }
.price__value{
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
  color: rgba(18,24,38,.92);
}
.price__service{ color: rgba(18,24,38,.90); }
.price__text{ color: rgba(18,24,38,.90); }
.price__link{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
}
.price__link::after{
  content: "→";
  font-weight: 900;
  color: rgba(18,24,38,.55);
  transition: transform .14s ease;
}
.price__link:hover::after{ transform: translateX(2px); }
.price__table tbody tr:hover td{ background: rgba(18,24,38,.02); }

.price__table.is-compact thead th{ padding: 10px 12px; }
.price__table.is-compact tbody td{ padding: 12px; }

.price__note{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(18,24,38,.70);
}

@media (max-width: 560px){
  .price__table{ min-width: 420px; }
  .price__col-price{ width: 170px; }
  .price__value{ font-weight: 900; }
}


/* ===== Brands shortcode cards ===== */
.brands{
  margin-top: 22px;
  margin-bottom: 22px;
}
.brands-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.brands-title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}
.brands-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px){
  .brands-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px){
  .brands-grid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.brand-card{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none !important;
}
.brand-card:hover{
  text-decoration:none !important;
  border-color: rgba(14,165,233,.28);
  transform: translateY(-1px);
}
.brand-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: rgba(18,24,38,.02);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
  overflow:hidden;
}
.brand-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  display:block;
}
.brand-initial{
  font-weight: 900;
  font-size: 18px;
  color: rgba(18,24,38,.72);
}
.brand-name{
  font-weight: 850;
  line-height: 1.2;
}

/* === Brands UI/UX fixes: no overflow, neat typography === */
.brand-card{
  align-items: center;
  min-width: 0;          /* важно для обрезки текста во flex */
}

.brand-name{
  min-width: 0;          /* важно: иначе текст не будет сжиматься */
  flex: 1 1 auto;
  overflow: hidden;      /* скрываем выход за пределы */
  text-overflow: ellipsis;
  white-space: nowrap;   /* в одну строку + троеточие */
}

/* На широких экранах можно разрешить 2 строки вместо 1 */
@media (min-width: 980px){
  .brand-name{
    white-space: normal;        /* разрешаем перенос */
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* максимум 2 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Даем карточке достаточную ширину на ПК: 4 колонки вместо 5 */
@media (min-width: 980px){
  .brands-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Гарантируем, что карточка действительно flex (иногда .prose/тема перебивает) */
.brands .brand-card{
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Показываем название полностью, разрешаем перенос и не даём вылезать */
.brands .brand-name{
  min-width: 0;
  flex: 1 1 auto;

  white-space: normal !important;   /* снимаем nowrap */
  overflow: hidden;                  /* чтобы не вылезало */
  text-overflow: clip;               /* без троеточий */
  line-height: 1.2;

  word-break: break-word;            /* перенос длинных слов */
  hyphens: auto;                     /* переносы (если язык/браузер поддерживают) */
}

/* Если хочешь, чтобы все карточки были одинаковой высоты и ровной сеткой */
@media (min-width: 980px){
  .brands .brand-card{
    min-height: 72px;
  }
}

/* Price list: category header rows (type="header") */
.price__group td,
.price__groupcell{
  padding: 12px 14px;
  font-weight: 900;
  color: rgba(18,24,38,.82);
  background: rgba(18,24,38,.04);
  border-bottom: 1px solid rgba(18,24,38,.10);
}
.price__group:hover td{ background: rgba(18,24,38,.04) !important; }

/* Стиль ссылки 404.html*/
.not-found-text a {
  color: #1e6bd6;               /* чистый синий */
  text-decoration: underline;
  font-weight: 500;
}

.not-found-text a:hover {
  color: #0f4fbf;
  text-decoration-thickness: 2px;
}

/* FIX: на мобиле не даём широким таблицам раздувать страницу */
@media (max-width: 980px){

  /* 1) убираем минимальную ширину, из-за которой всё вылезает вправо */
  .price__table,
  .table{
    min-width: 0 !important;
    width: 100%;
    table-layout: auto;
  }

  /* 2) даём тексту переноситься, а не растягивать колонку */
  .price__table th,
  .price__table td,
  .table th,
  .table td{
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* 3) колонка с ценой не должна быть слишком широкой */
  .price__col-price{ width: 120px !important; }
  .price__value{ white-space: normal; }
}