/* ============================================================
   tk82 shared.css — ЕДИНЫЙ источник правды для общих компонентов:
   шапка, навигация, бургер, мобильное меню, кнопки, подвал, reveal.
   Файл грузится ПОСЛЕДНИМ на всех страницах и перекрывает
   расхождения home.css / site.css. Правки общих элементов — ЗДЕСЬ.
   Эталон — дизайн главной (home.css, 16.07.2026).
   ============================================================ */

    .site-header {
      position: sticky;
      top: 0;
      z-index: 80;
      backdrop-filter: blur(14px);
      background: rgba(250, 248, 245, 0.86);
      border-bottom: 1px solid rgba(20, 20, 20, 0.06);
    }

    .site-header .container {
      min-height: 84px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
    }

    .logo-image {
      display: block;
      width: auto;
      height: 54px;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 22px;
    }

    .nav a {
      color: #39352f;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
      transition: color 0.18s ease;
    }

    .nav a:hover {
      color: var(--accent);
    }

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

    .header-actions .btn {
      min-height: 50px;
      padding: 0 22px;
      font-size: 14px;
    }

    .header-phone {
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .nav-toggle {
      min-height: 44px;
      min-width: 44px;
      padding: 0;
      border-radius: 12px;
      border: 1px solid var(--line);
      display: none;
      align-items: center;
      justify-content: center;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease;
    }

    .nav-toggle:hover {
      border-color: var(--line-strong);
      background: rgba(255, 255, 255, 0.6);
    }

    .nav-toggle-box {
      position: relative;
      width: 22px;
      height: 14px;
      display: inline-block;
    }

    .nav-toggle-box span {
      position: absolute;
      left: 0;
      width: 100%;
      height: 1.5px;
      border-radius: 999px;
      background: currentColor;
      transition: top 0.25s ease 0.1s, transform 0.25s ease, opacity 0.18s ease;
    }

    .nav-toggle-box span:nth-child(1) { top: 0; }
    .nav-toggle-box span:nth-child(2) { top: calc(50% - 0.75px); }
    .nav-toggle-box span:nth-child(3) { top: calc(100% - 1.5px); }

    .nav-toggle[aria-expanded="true"] .nav-toggle-box span {
      transition: top 0.2s ease, transform 0.25s ease 0.18s, opacity 0.15s ease;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
      top: calc(50% - 0.75px);
      transform: rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
      top: calc(50% - 0.75px);
      transform: rotate(-45deg);
    }

    .mobile-menu {
      border-top: 1px solid rgba(20, 20, 20, 0.06);
      background: rgba(250, 248, 245, 0.96);
      backdrop-filter: blur(14px);
    }

    .mobile-menu[hidden] {
      display: none;
    }

    .mobile-menu .container {
      display: block;
      padding: 4px 0 22px;
    }

    .mobile-menu .mobile-nav {
      display: flex;
      flex-direction: column;
    }

    .mobile-menu .mobile-nav a {
      background: transparent;
      border: 0;
      border-radius: 0;
      min-height: 0;
      display: flex;
      align-items: center;
      padding: 16px 4px;
      border-bottom: 1px solid rgba(20, 20, 20, 0.06);
      color: var(--ink);
      font-size: 17px;
      font-weight: 600;
      letter-spacing: -0.01em;
      transition: color 0.18s ease;
    }

    .mobile-menu .mobile-nav a:hover,
    .mobile-menu .mobile-nav a:focus {
      color: var(--accent);
    }

    .mobile-menu .mobile-cta {
      position: static;
      transform: none;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
      border-radius: 0;
      padding: 0;
      grid-template-columns: 1fr;
      margin-top: 18px;
      display: grid;
      gap: 10px;
    }

    .mobile-menu .mobile-cta .btn {
      width: 100%;
    }

    .btn {
      min-height: 50px;
      padding: 0 22px;
      border-radius: 14px;
      border: 1px solid transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      font-family: "IBM Plex Sans", sans-serif;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
      transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

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

    .btn-primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 16px 32px rgba(199, 52, 47, 0.18);
    }

    .btn-primary:hover { background: var(--accent-dark); }

    .btn-secondary {
      background: transparent;
      color: var(--ink);
      border-color: var(--line);
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.72);
      border-color: var(--line-strong);
    }


    .site-footer {
      padding: 56px 0 32px;
      border-top: 1px solid rgba(20, 20, 20, 0.08);
      background: var(--surface-soft);
      color: var(--muted);
    }

    .site-footer .footer-grid {
      border-top: 0;
      padding-top: 0;
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
      gap: 36px;
      padding-bottom: 36px;
      border-bottom: 1px solid var(--line);
    }

    .site-footer .footer-col h4 {
      margin: 0 0 16px;
      color: var(--ink);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .site-footer .footer-col ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 10px;
    }

    .site-footer .footer-col a {
      color: var(--muted);
      font-size: 14px;
      transition: color 0.18s ease;
    }

    .site-footer .footer-col a:hover {
      color: var(--accent);
    }

    .site-footer .footer-brand {
      display: grid;
      gap: 16px;
      align-content: start;
    }

    .site-footer .footer-brand .logo-image {
      height: 48px;
    }

    .site-footer .footer-tag {
      max-width: 320px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
    }

    .site-footer .footer-social {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .site-footer .footer-social a {
      min-height: 38px;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--surface);
      display: inline-flex;
      align-items: center;
      font-size: 13px;
      font-weight: 700;
      color: #39352f;
    }

    .site-footer .footer-social a:hover {
      border-color: var(--line-strong);
      color: var(--accent);
    }

    .site-footer .footer-contact {
      display: grid;
      gap: 8px;
      font-size: 14px;
      line-height: 1.7;
    }

    .site-footer .footer-contact strong {
      display: block;
      color: var(--ink);
      font-size: 18px;
      font-weight: 800;
    }

    .site-footer .footer-bottom {
      border-top: 0;
      padding: 22px 0 0;
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      font-size: 12px;
      line-height: 1.7;
      color: #8a857d;
    }

    .site-footer .footer-bottom a {
      color: #8a857d;
    }

    .site-footer .footer-bottom a:hover { color: var(--accent); }

    .reveal {
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    html.js .reveal {
      opacity: 0;
      transform: translateY(16px);
      animation: revealFallback 0s 1.8s forwards;
    }

    @keyframes revealFallback {
      to { opacity: 1; transform: translateY(0); }
    }

    html.js .reveal.show {
      opacity: 1;
      transform: translateY(0);
    }
    @media (max-width: 980px) {
      .nav { display: none; }
      .nav-toggle { display: inline-flex; }
      .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 720px) {
      .site-header .container { min-height: 76px; }
      .logo-image { height: 44px; }
      .header-phone { display: none; }
      .header-actions { gap: 8px; }
      .header-actions .btn { min-height: 42px; padding: 0 14px; font-size: 13px; }
      .nav-toggle { min-height: 42px; min-width: 42px; }
      .site-footer .footer-grid { grid-template-columns: 1fr; }
      .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
    }

/* Финальный CTA-блок: на мобильных кнопка во всю ширину (фидбек 16.07) */
@media (max-width: 720px) {
  .final-box { flex-direction: column; align-items: stretch; }
  .final-box .hero-actions .btn { width: 100%; }
}
