:root{
  --navy:#032d60; --navy-darker:#001639;
  --blue:#0176d3; --blue-hover:#0b5cab; --blue-deep:#014486; --cyan:#1b96ff;
  --ink:#080707; --ink-2:#171717; --ink-muted:#444444; --ink-tertiary:#939393;
  --canvas:#ffffff; --surface-1:#eaf5fe; --surface-electric:#e0e5f8; --divider:#c9c9c9;
  --purple:#7526e3; --purple-tint:#f2e8fc; --orange:#d83a00; --orange-tint:#fdeae0; --teal:#03b4a7; --teal-tint:#e0f7f5;
  --r-btn:4px; --r-tile:12px; --r-card:16px; --r-feature:22px; --r-full:9999px;
}
html,body{margin:0;overflow-x:hidden}
body{font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;color:var(--ink-2)}
a{color:var(--blue-deep)}
a:hover{color:var(--blue-hover)}
*{box-sizing:border-box}
::selection{background:var(--blue);color:#fff}

/* Header: hamburger toggle for the collapsible mobile nav panel */
.site-menu-toggle{
  display:none; align-items:center; justify-content:center;
  width:40px; height:40px; flex:none; margin-left:auto;
  border:1px solid var(--divider); border-radius:var(--r-btn); background:#fff; color:var(--navy); cursor:pointer;
}
.site-menu-toggle .icon-close{ display:none }
.site-menu-toggle[aria-expanded="true"] .icon-open{ display:none }
.site-menu-toggle[aria-expanded="true"] .icon-close{ display:inline }

@media (max-width: 860px){
  .site-header-inner{ flex-wrap: wrap !important; row-gap: 14px; }
  .site-menu-toggle{ display:inline-flex; }
  .site-spacer{ display:none !important; }
  /* .site-nav/.site-search/.site-feedback-btn carry inline display:flex/block from the
     original markup, which otherwise beats these class rules — !important is required. */
  .site-nav, .site-search, .site-feedback-btn{ display:none !important; width:100% !important; }
  .site-header-inner.nav-open .site-nav{ display:flex !important; flex-direction:column; gap:14px !important; order:5; padding-top:14px; border-top:1px solid var(--divider); margin-left:0 !important; }
  .site-header-inner.nav-open .site-search{ display:block !important; order:6; }
  .site-header-inner.nav-open .site-feedback-btn{ display:flex !important; justify-content:center; order:7; }
}

details>summary{list-style:none;cursor:pointer}
details>summary::-webkit-details-marker{display:none}
details[open] .faq-plus{transform:rotate(45deg)}

@media (max-width: 640px) {
  .card-slider { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 14px !important; margin: 0 -24px !important; padding: 0 24px 6px !important; }
  .card-slider > * { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Image placeholder — stands in for real photos/logos until assets are provided */
.img-slot{
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(135deg, rgba(3,45,96,0.07) 0 10px, rgba(3,45,96,0.03) 10px 20px);
  border: 1px dashed var(--divider);
  color: var(--ink-tertiary);
  font-size: 11px; font-weight: 700; text-align: center; line-height: 1.3;
  padding: 6px; overflow: hidden;
}
.img-slot svg{ opacity: .55; flex: none }
.img-slot span{ max-width: 22ch }
.img-slot.img-slot-compact{ gap: 0; border-style: solid }
.img-slot.img-slot-compact svg{ width: 16px; height: 16px }

/* Попап обратной связи */
.modal-overlay {
  position: fixed; inset: 0; 
  background: rgba(3, 45, 96, 0.65); 
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0; visibility: hidden; 
  transition: all 0.25s ease;
  overflow-y: auto; /* Включаем вертикальный скролл */
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.is-active { 
  opacity: 1; visibility: visible; 
}

.modal-content {
  background: #fff; 
  border-radius: var(--r-card); 
  padding: 36px 32px;
  width: calc(100% - 40px); /* Отступы по бокам для мобильных */
  max-width: 440px; 
  position: relative;
  /* Центрирование и отступы сверху/снизу для безопасного скролла */
  margin: 60px auto; 
  transform: translateY(20px); 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 48px rgba(3, 45, 96, 0.2);
}
.modal-overlay.is-active .modal-content { 
  transform: translateY(0); 
}

/* Крестик закрытия через псевдоэлементы */
.modal-close {
  position: absolute; top: 16px; right: 16px; 
  width: 32px; height: 32px; border: none; 
  background: var(--surface-1); border-radius: var(--r-btn); 
  cursor: pointer; 
  display: flex; align-items: center; justify-content: center; 
  transition: all 0.15s ease;
}
.modal-close::before, .modal-close::after {
  content: ''; position: absolute;
  width: 14px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: background 0.15s;
}
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }

.modal-close:hover { 
  background: var(--surface-electric); 
}
.modal-close:hover::before, .modal-close:hover::after { 
  background: var(--blue-hover); 
}

/* Стилизация полей CF7 */
.cf7-input, .cf7-textarea {
  width: 100%; border: 1px solid var(--divider); 
  border-radius: var(--r-btn); font-family: inherit; 
  font-size: 14px; padding: 12px 16px; outline: none; 
  background: var(--canvas); color: var(--ink); 
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cf7-input:focus, .cf7-textarea:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.12);
}
.cf7-textarea { 
  min-height: 120px; resize: vertical; line-height: 1.5; 
}

/* Стилизация кнопки отправки (повышена специфичность) */
input[type="submit"].cf7-submit {
  background: var(--blue) !important; 
  color: #fff !important; 
  border: none; 
  border-radius: var(--r-btn); font-family: inherit; 
  font-size: 14.5px; font-weight: 700; padding: 14px 24px; 
  cursor: pointer; width: 100%; 
  transition: background 0.2s, transform 0.1s;
  -webkit-appearance: none;
}
input[type="submit"].cf7-submit:hover { 
  background: var(--blue-hover) !important; 
  color: #fff !important; 
}
input[type="submit"].cf7-submit:active { 
  transform: translateY(1px); 
}

/* Сообщения CF7 */
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0 0; padding: 14px 18px; 
  border-radius: var(--r-btn); font-size: 13.5px; 
  line-height: 1.5; border: 1px solid transparent;
}
.wpcf7 form.sent .wpcf7-response-output { 
  background: var(--teal-tint); color: var(--teal); border-color: rgba(3, 180, 167, 0.2); 
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { 
  background: var(--orange-tint); color: var(--orange); border-color: rgba(216, 58, 0, 0.2); 
}
.wpcf7-not-valid-tip { 
  font-size: 12.5px; color: var(--orange); 
  margin-top: 6px; display: block; font-weight: 500; 
}