/* ============================================================
   Секционные стили
   ============================================================ */

/* --- Scroll-progress: тонкая золотая линия сверху --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--c-gold-old), var(--c-gold), var(--c-amber));
  z-index: 100; transition: width 0.1s linear;
}

/* --- Шапка --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--c-hairline);
  box-shadow: 0 6px 24px -18px rgba(26,29,38,0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  color: var(--c-ivory); line-height: 1.1;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
}
.wordmark:hover { color: var(--c-ivory); }
.brand-mark {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--c-gold), 0 4px 14px -6px rgba(26,29,38,0.45);
  transition: transform 0.3s var(--ease);
}
.wordmark:hover .brand-mark { transform: rotate(-3deg) scale(1.04); }
.wordmark-logo { height: 44px; width: auto; display: block; }
.wordmark-desc {
  font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--c-gold); margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--c-warm-grey); font-size: 0.9375rem; }
.nav a:hover { color: var(--c-gold); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .wordmark { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .wordmark-logo { height: 38px; }
}

/* --- HERO --- */
.hero { padding-top: 160px; min-height: 100vh; display: flex; align-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; }
.hero-lead { font-size: var(--fs-lead); margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--c-ash); max-width: 100%;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 130px; min-height: auto; }
}

/* Плейсхолдер маскотов */
.hero-visual { display: flex; justify-content: center; }
.mascot-placeholder {
  position: relative; width: 100%; aspect-ratio: 4 / 5; max-width: 460px;
  border: 1px dashed var(--gold-line-hover); border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 10%, rgba(201,168,76,0.06), transparent 60%),
    var(--c-graphite);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mascot-placeholder .ph-frame {
  position: absolute; inset: 16px; border: 1px solid var(--gold-line); border-radius: 4px;
}
.mascot-placeholder .ph-label {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8125rem; color: var(--c-gold); text-align: center; line-height: 1.6;
}
.mascot-placeholder .ph-label small {
  display: block; color: var(--c-ash); font-size: 0.6875rem; letter-spacing: 0.04em; margin-top: 6px;
}

/* --- Сетка из 4 (шаги) --- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-4 { grid-template-columns: 1fr; } }

.step { position: relative; }
.step-num {
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--c-gold);
  letter-spacing: 0.08em; display: block; margin-bottom: 16px;
}
.step h3 { margin-bottom: 12px; }

/* --- Направления: линейные иконки --- */
.direction .ico { margin-bottom: 20px; }
.ico {
  display: inline-block; width: 40px; height: 40px;
  background-color: var(--c-gold);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
/* общий механизм маски для любого [data-ico] (иконки + точки timeline) */
[data-ico] {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
[data-ico="lens"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3Cpath d='M9 10.5h3'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3Cpath d='M9 10.5h3'/%3E%3C/svg%3E");
}
[data-ico="shield"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}
[data-ico="columns"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9l8-5 8 5'/%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='4' y1='20' x2='20' y2='20'/%3E%3Cline x1='8' y1='9' x2='8' y2='20'/%3E%3Cline x1='12' y1='9' x2='12' y2='20'/%3E%3Cline x1='16' y1='9' x2='16' y2='20'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9l8-5 8 5'/%3E%3Cline x1='4' y1='9' x2='20' y2='9'/%3E%3Cline x1='4' y1='20' x2='20' y2='20'/%3E%3Cline x1='8' y1='9' x2='8' y2='20'/%3E%3Cline x1='12' y1='9' x2='12' y2='20'/%3E%3Cline x1='16' y1='9' x2='16' y2='20'/%3E%3C/svg%3E");
}

/* --- Почему нас --- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.why-grid .section-head { margin-bottom: 0; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.why-list li {
  padding-left: 28px; position: relative; color: var(--c-warm-grey); max-width: 520px;
  padding-bottom: 20px; border-bottom: 1px solid var(--gold-line);
}
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border: 1px solid var(--c-gold); transform: rotate(45deg);
}
.why-list li strong { color: var(--c-ivory); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 36px; } }

/* --- Дело (case-file) --- */
.case-file { max-width: 920px; margin: 0 auto; padding: 48px; }
.case-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.case-no {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8125rem; color: var(--c-gold);
  border: 1px solid var(--gold-line-hover); padding: 5px 12px; border-radius: 4px;
}
.case-tag {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--c-ash);
}
.case-body h3 { margin-bottom: 16px; }
.case-body > p { margin-bottom: 32px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--gold-line); padding-top: 28px; }
.metric-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; display: block; line-height: 1; }
.metric-label { font-size: 0.875rem; color: var(--c-warm-grey); display: block; margin-top: 10px; }
.cases-more { margin-top: 40px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; }
@media (max-width: 620px) { .case-file { padding: 32px 24px; } .case-metrics { grid-template-columns: 1fr; gap: 20px; } }

/* --- Форма заявки --- */
.form-wrap { max-width: 720px; }
.lead-form { display: flex; flex-direction: column; gap: 20px; padding: 48px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.875rem; color: var(--c-warm-grey); }
.field .opt { color: var(--c-ash); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--c-ink);
  background: var(--c-card); border: 1px solid var(--c-hairline);
  border-radius: var(--radius); padding: 14px 16px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-taupe); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: var(--c-warm-grey); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--c-gold); width: 16px; height: 16px; flex-shrink: 0; }
.form-submit { align-self: flex-start; margin-top: 8px; }
.form-status { font-size: 0.875rem; min-height: 1.2em; }
.form-status.ok { color: var(--c-gold); }
.form-status.err { color: var(--c-ruby); }
@media (max-width: 620px) { .lead-form { padding: 32px 24px; } }

/* --- Футер --- */
.site-footer { padding-block: 56px; border-top: 1px solid var(--gold-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-mark {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--c-gold), 0 4px 14px -6px rgba(26,29,38,0.4);
}
.footer-wordmark { height: 40px; width: auto; display: block; margin-bottom: 4px; }
.footer-brand strong { display: block; font-size: 1.0625rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 2px; }
.footer-meta { text-align: right; font-size: 0.875rem; }
.footer-meta p:first-child { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--c-warm-grey); }
@media (max-width: 620px) { .footer-meta { text-align: left; } }

/* ============================================================
   Доп. иконки (timeline + безопасность)
   ============================================================ */
[data-ico="download"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='M8 11l4 4 4-4'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='M8 11l4 4 4-4'/%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E");
}
[data-ico="route"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2.2'/%3E%3Ccircle cx='18' cy='18' r='2.2'/%3E%3Cpath d='M6 8.2v4.3a3.5 3.5 0 0 0 3.5 3.5H15'/%3E%3Cpath d='M13 14l2 2-2 2' stroke-dasharray='0'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2.2'/%3E%3Ccircle cx='18' cy='18' r='2.2'/%3E%3Cpath d='M6 8.2v4.3a3.5 3.5 0 0 0 3.5 3.5H15'/%3E%3Cpath d='M13 14l2 2-2 2'/%3E%3C/svg%3E");
}
[data-ico="check"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}
[data-ico="lock"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='1.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3Ccircle cx='12' cy='15' r='1'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='1.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3Ccircle cx='12' cy='15' r='1'/%3E%3C/svg%3E");
}
[data-ico="copy"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='11' height='11' rx='1.5'/%3E%3Cpath d='M5 15.5V6a1.5 1.5 0 0 1 1.5-1.5H15'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='11' height='11' rx='1.5'/%3E%3Cpath d='M5 15.5V6a1.5 1.5 0 0 1 1.5-1.5H15'/%3E%3C/svg%3E");
}
[data-ico="timer"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 13V9'/%3E%3Cpath d='M9.5 3.5h5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='13' r='8'/%3E%3Cpath d='M12 13V9'/%3E%3Cpath d='M9.5 3.5h5'/%3E%3C/svg%3E");
}

/* ============================================================
   Timeline (секция «Что делаем»)
   ============================================================ */
.timeline { list-style: none; max-width: 760px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, var(--gold-line-hover), var(--gold-line) 80%, transparent);
}
.tl-step { position: relative; display: flex; gap: 28px; padding-bottom: 44px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--gold-line-hover);
  display: grid; place-items: center; position: relative; z-index: 2;
  background-color: var(--c-graphite);
}
.tl-dot .ico { width: 24px; height: 24px; }
.bg-deep .tl-dot { background-color: var(--c-obsidian); }
.tl-num {
  font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--c-gold); display: block; margin-bottom: 8px;
}
.tl-body h3 { margin-bottom: 10px; }
.tl-body p { max-width: 560px; }
@media (max-width: 560px) {
  .tl-step { gap: 18px; }
  .tl-dot { width: 40px; height: 40px; }
  .tl-dot .ico { width: 20px; height: 20px; }
  .timeline::before { left: 19px; }
}

/* ============================================================
   Безопасность данных — ряд иконок
   ============================================================ */
.trust-row { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.trust-item { display: flex; flex-direction: column; gap: 10px; }
.trust-item .ico { width: 32px; height: 32px; margin-bottom: 6px; }
.trust-item strong { font-size: 1.0625rem; color: var(--c-ivory); }
.trust-item span.text-muted { font-size: 0.9375rem; }
@media (max-width: 900px) { .trust-row { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } }
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; } }
