
/* ===== Brand tokens (from logo accents) ===== */
:root{
  --brand-blue:#0020E0;
  --brand-red:#E00000;

  --ink:#0f172a;
  --muted:#475569;
  --muted-2:#64748b;

  --surface:#ffffff;
  --surface-2:#f8fafc;
  --surface-3:#f1f5f9;

  --border:#e2e8f0;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);

  --radius-lg: 18px;
  --radius-md: 14px;

  --section-pad: 72px;
}

:root{
  --bs-primary: var(--brand-blue);
  --bs-danger: var(--brand-red);
  --bs-body-color: var(--ink);
  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

html{ scroll-behavior:smooth; }

body{
  background: var(--surface);
}

main{ padding-top: 78px; } /* fixed navbar offset */

.section{
  padding: var(--section-pad) 0;
}
@media (max-width: 991.98px){
  :root{ --section-pad: 56px; }
  main{ padding-top: 70px; }
}

/* ===== Navbar ===== */
.navbar{
  backdrop-filter: blur(10px);
}
.navbar-brand img{
  height: 44px;
  width: auto;
}
@media (max-width: 991.98px){
  .navbar-brand img{ height: 40px; }
}

/* ===== Hero ===== */
.hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(0,32,224,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(224,0,0,.08), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    linear-gradient(transparent 24px, rgba(2,6,23,.03) 25px),
    linear-gradient(90deg, transparent 24px, rgba(2,6,23,.03) 25px);
  background-size: 25px 25px;
  opacity:.35;
  pointer-events:none;
  mask-image: radial-gradient(circle at 35% 0%, rgba(0,0,0,.8), transparent 60%);
}
.hero-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.9);
}

.kpi{
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 14px;
  height: 100%;
}
.kpi .kpi-dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--brand-blue);
  box-shadow: 0 0 0 6px rgba(0,32,224,.10);
}
.kpi.kpi-red .kpi-dot{
  background: var(--brand-red);
  box-shadow: 0 0 0 6px rgba(224,0,0,.10);
}

/* ===== Cards ===== */
.card{
  border-color: var(--border);
  border-radius: var(--radius-lg);
}
.card.soft-shadow{
  box-shadow: var(--shadow);
}

.icon-pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .75rem;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size:.95rem;
}
.icon-pill i{ color: var(--brand-blue); }

/* ===== Process steps ===== */
.step{
  position:relative;
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  background: var(--surface);
  height: 100%;
}
.step .step-num{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,32,224,.08);
  color: var(--brand-blue);
  font-weight: 700;
}

/* ===== Examples ===== */
.example-tile{
  border-radius: 16px;
  border:1px solid var(--border);
  background: var(--surface-2);
  overflow:hidden;
}
.example-tile img{
  width:100%; height: 170px; object-fit: cover;
  display:block;
}
.example-caption{
  padding: 12px 14px;
  color: var(--muted);
  font-size: .95rem;
}

/* ===== CTA band ===== */
.cta-band{
  background:
    radial-gradient(900px 500px at 15% 50%, rgba(0,32,224,.10), transparent 60%),
    radial-gradient(900px 500px at 85% 50%, rgba(224,0,0,.08), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

/* ===== Footer ===== */
footer{
  background: var(--surface-2);
  border-top:1px solid var(--border);
}

/* ===== Sticky mobile CTA ===== */
.mobile-cta{
  position: fixed;
  left: 0; right: 0; bottom: 14px;
  display: none;
  z-index: 1030;
  padding: 0 14px;
}
@media (max-width: 991.98px){
  .mobile-cta{ display:block; }
}

/* ===== Utilities ===== */
.text-muted-2{ color: var(--muted-2) !important; }
.bg-surface-2{ background: var(--surface-2) !important; }

.btn-max::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url('/assets/img/max-icon.png'); /* путь к иконке */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    }

    #cookie_note {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    width: 90%;
    max-width: 720px;               /* чуть шире для десктопа */
    min-width: 320px;               /* не даём стать слишком узким */
    padding: 20px 24px;
    
    background: rgba(18, 18, 24, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie_note.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#cookie_note p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie_accept {
    flex-shrink: 0;
    min-width: 140px;
    padding: 12px 28px;
    font-weight: 500;
    font-size: 1rem;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* ────────────────────────────────────────────────
   Адаптив
───────────────────────────────────────────────── */

@media (max-width: 768px) {           /* планшеты и ниже */
    #cookie_note {
        bottom: 16px;
        padding: 18px 20px;
        border-radius: 14px;
        max-width: 92%;
    }
    
    .cookie-content {
        gap: 20px;
    }
    
    #cookie_note p {
        font-size: 0.92rem;
        line-height: 1.48;
    }
    
    .cookie_accept {
        padding: 11px 24px;
        min-width: 130px;
    }
}

@media (max-width: 640px) {           /* мобильные ~ телефон */
    #cookie_note {
        bottom: 12px;
        left: 4%;
        right: 4%;
        transform: none;              /* убираем translate, используем отступы по бокам */
        width: auto;
        max-width: none;
        padding: 16px 18px;
        border-radius: 12px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }
    
    #cookie_note p {
        font-size: 0.9rem;
        line-height: 1.45;
    }
    
    .cookie_accept {
        width: 100%;
        padding: 14px 20px;
        min-width: unset;
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {           /* маленькие экраны / старые телефоны */
    #cookie_note {
        padding: 14px 16px;
        bottom: 10px;
    }
    
    #cookie_note p {
        font-size: 0.86rem;
        line-height: 1.42;
    }
    
    .cookie_accept {
        padding: 13px 18px;
    }
}

/* Очень узкие экраны (почти не бывает, но на всякий случай) */
@media (max-width: 360px) {
    #cookie_note p {
        font-size: 0.84rem;
    }
}





.pd-page {
      padding: 80px 20px 120px;
      background: #f8f9fc;
      min-height: 100vh;
    }

    .pd-document {
      max-width: 900px;
      margin: 0 auto;
      background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
      padding: 48px 32px;
    }

    .pd-title {
      font-size: 2.6rem;
      font-weight: 700;
      color: #111827;
      text-align: center;
      margin-bottom: 2.8rem;
    }

    .pd-section {
      margin-bottom: 3.2rem;
    }

    .pd-section-title {
      font-size: 1.9rem;
      font-weight: 600;
      color: #2563eb;
      margin: 3rem 0 1.4rem;
      padding-bottom: 0.7rem;
      border-bottom: 2px solid #e5e7eb;
    }

    .pd-text {
      font-size: 1.07rem;
      margin-bottom: 1.5rem;
      color: #374151;
    }

    .pd-link {
      color: #2563eb;
      text-decoration: underline;
      transition: color 0.22s;
    }

    .pd-link:hover {
      color: #1d4ed8;
    }

    .pd-terms {
      list-style: none;
      padding-left: 0;
      margin: 1.6rem 0 2.4rem;
    }

    .pd-term {
      position: relative;
      padding-left: 2.4rem;
      margin-bottom: 1.2rem;
      font-size: 1.04rem;
    }

    .pd-term::before {
      content: "•";
      position: absolute;
      left: 0.5rem;
      color: #2563eb;
      font-size: 1.8rem;
      line-height: 1;
    }

    .pd-table-wrapper {
      overflow-x: auto;
      margin: 2.2rem 0;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .pd-data-table {
      width: 100%;
      border-collapse: collapse;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      overflow: hidden;
    }

    .pd-data-table th,
    .pd-data-table td {
      padding: 16px 20px;
      text-align: left;
      border-bottom: 1px solid #f3f4f6;
    }

    .pd-data-table th {
      background: #eff6ff;
      color: #1d4ed8;
      font-weight: 600;
    }

    .pd-data-table td {
      color: #374151;
    }

    .pd-back {
      margin-top: 5.5rem;
      text-align: center;
    }

    .pd-btn {
      display: inline-block;
      padding: 14px 44px;
      background: #2563eb;
      color: white;
      font-size: 1.1rem;
      font-weight: 500;
      border-radius: 50px;
      text-decoration: none;
      transition: all 0.28s ease;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
    }

    .pd-btn:hover {
      background: #1d4ed8;
      transform: translateY(-2px);
      box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    }

    /* Адаптив */
    @media (max-width: 820px) {
      .pd-page { padding: 70px 18px 100px; }
      .pd-document { padding: 40px 24px; }
      .pd-title { font-size: 2.3rem; }
      .pd-section-title { font-size: 1.7rem; }
    }

    @media (max-width: 580px) {
      .pd-page { padding: 50px 16px 80px; }
      .pd-document { padding: 32px 20px; }
      .pd-title { font-size: 2rem; }
      .pd-section-title { font-size: 1.55rem; }
      .pd-text, .pd-term { font-size: 1.01rem; }
      .pd-data-table th, .pd-data-table td { padding: 12px 14px; font-size: 0.96rem; }
      .pd-btn { padding: 13px 34px; font-size: 1.02rem; }
    }
    .telegram-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  text-decoration: none;
}

.telegram-menu-link img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

/* Honeypot: ловушка для спам-ботов.
   Поле есть в разметке, но человек его не видит и не может в него попасть.
   Если оно пришло заполненным — заявку отбрасывает server/mail.php. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
