/* ================================================================
   КРЫМ ПРОМ ТЕХНОЛОГИИ — process.css
   Стили страницы «Как работаем»
================================================================ */

/* ── Header on process page always solid ────────────────────── */
.page-process #header {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.page-process #header .logo-name {
  color: var(--text) !important;
}
.page-process #header .logo-name em {
  color: var(--text-light) !important;
}
.page-process #header .nav-links a {
  color: var(--text-mid) !important;
  background: none !important;
}
.page-process #header .nav-links a:hover {
  color: var(--blue) !important;
  background: rgba(0,82,165,.07) !important;
}
.page-process #header .nav-links a.nav-active {
  color: var(--blue) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  background: none !important;
}
.page-process #header .hdr-tel {
  color: var(--text) !important;
}
.page-process #header .logo-badge {
  background: var(--blue);
  color: var(--white);
}
.page-process #header .burger span {
  background: var(--text) !important;
}

/* ── PROCESS HERO ───────────────────────────────────────────── */
.proc-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 128px 0 80px;
  overflow: hidden;
  background: #001f4a;
}
.prh-bg {
  position: absolute; inset: 0;
  background-image: url('../images/process-hero.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
  animation: prhZoom 12s ease-out forwards;
}
@keyframes prhZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.00); }
}
.prh-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,20,60,.92) 0%,
    rgba(0,35,80,.80) 45%,
    rgba(0,20,60,.30) 100%
  );
}
.prh-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.prh-text {
  max-width: 560px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}
.breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.breadcrumb a:hover { color: #fff; }
.bc-sep { color: rgba(255,255,255,.35); }

.prh-title {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin: 12px 0 18px;
}
.prh-title em {
  color: var(--orange);
  font-style: normal;
}
.prh-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.prh-promise {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.prp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 130px;
  flex: 1;
}
.prp-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,82,165,.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.prp-item div {
  display: flex;
  flex-direction: column;
}
.prp-item strong {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.prp-item span {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* ── Hero right — card stack ─────────────────────────────────── */
.prh-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.prh-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 300px;
}
.prh-card {
  width: 100%;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  will-change: transform;
}
.prh-card strong { display: block; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.prh-card span   { font-size: .76rem; color: rgba(255,255,255,.6); margin-top: 2px; display: block; }

/* независимые анимации для каждой карточки */
.prh-card-1 { animation: cardFloat1 5.0s ease-in-out infinite; }
.prh-card-2 { animation: cardFloat2 5.6s ease-in-out infinite; animation-delay: .6s; }
.prh-card-3 { animation: cardFloat3 4.8s ease-in-out infinite; animation-delay: 1.3s; }

@keyframes cardFloat1 {
  0%,100% { transform: translateY(0px);   }
  50%     { transform: translateY(-7px);  }
}
@keyframes cardFloat2 {
  0%,100% { transform: translateY(0px);   }
  50%     { transform: translateY(-5px);  }
}
@keyframes cardFloat3 {
  0%,100% { transform: translateY(-3px);  }
  50%     { transform: translateY(4px);   }
}

.phc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(0,82,165,.5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.phc-orange { background: rgba(255,140,0,.4); }
.phc-green  { background: rgba(34,197,94,.3); }

/* ── STEPS SECTION ──────────────────────────────────────────── */
.steps-section { padding: 96px 0; }
.steps-header {
  max-width: 500px;
  margin-bottom: 64px;
}
.steps-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* individual step */
.st-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 32px;
  position: relative;
}
.st-node-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.st-node {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 2.5px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}
.st-node-final {
  background: var(--orange);
  border-color: var(--orange);
}
.st-num {
  font-family: 'Open Sans', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 1px;
}
.st-node-final .st-num { color: #fff; }
.st-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,82,165,.2);
  animation: nodePulse 2.5s ease-out infinite;
}
.st-node-final .st-pulse {
  border-color: rgba(255,140,0,.3);
}
@keyframes nodePulse {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.st-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, var(--blue), rgba(0,82,165,.1));
  margin: 4px 0;
}
.st-step-last .st-line { display: none; }

/* step body */
.st-body {
  display: flex;
  gap: 24px;
  padding-bottom: 48px;
  align-items: flex-start;
}
.st-step-last .st-body { padding-bottom: 0; }
.st-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  border: 1.5px solid rgba(0,82,165,.15);
}
.st-icon-final {
  background: rgba(255,140,0,.12);
  color: var(--orange);
  border-color: rgba(255,140,0,.2);
}
.st-content { flex: 1; }
.st-tag {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 6px;
}
.st-tag-final { color: var(--orange); }
.st-content h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.st-content p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}
.st-content p strong { color: var(--blue); }
.st-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.st-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-mid);
}
.st-detail svg { color: var(--blue); flex-shrink: 0; }
.st-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-soft);
  border: 1px solid rgba(0,82,165,.15);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
}
.st-badge-final {
  background: rgba(255,140,0,.1);
  border-color: rgba(255,140,0,.2);
  color: var(--orange);
}
.st-badge-final svg { color: var(--orange); }

/* ── GUARANTEES ─────────────────────────────────────────────── */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.g-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.g-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  border-color: rgba(0,82,165,.2);
}
.g-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.g-icon-blue   { background: var(--blue-soft); color: var(--blue); }
.g-icon-orange { background: rgba(255,140,0,.12); color: var(--orange); }
.g-icon-green  { background: rgba(34,197,94,.1); color: #16a34a; }
.g-card h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.g-card p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}
.g-highlight {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: .3px;
}

/* ── FAQ PROCESS ────────────────────────────────────────────── */
.faq-proc-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.faq-proc-left .sec-h2 {
  margin-bottom: 12px;
}
.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.faq-proc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 18px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color .2s;
}
.faq-q:hover { color: var(--blue); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--blue); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-a p {
  padding-bottom: 18px;
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ── TIMELINE ───────────────────────────────────────────────── */
.timeline-section {
  padding: 96px 0;
}
.tl-header {
  text-align: center;
  margin-bottom: 60px;
}
.tl-header .sec-h2 { margin-bottom: 12px; }
.tl-track {
  max-width: 900px;
  margin: 0 auto;
}
.tl-bar {
  height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0;
}
.tl-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  border-radius: 100px;
  transition: width 1.6s cubic-bezier(.4,0,.2,1);
}
.tl-days {
  display: flex;
  justify-content: space-between;
  margin-top: -3px;
  position: relative;
}
.tl-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
}
.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.3);
  transition: background .4s, border-color .4s, transform .4s;
  flex-shrink: 0;
}
.tl-day-active .tl-dot,
.tl-dot.tl-dot-active {
  background: var(--blue);
  border-color: #fff;
  transform: scale(1.2);
}
.tl-dot-finish {
  background: var(--orange) !important;
  border-color: #fff !important;
}
.tl-day.tl-done .tl-dot {
  background: rgba(255,255,255,.8);
  border-color: #fff;
}
.tl-day-label {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tl-day-text {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  line-height: 1.4;
}
.tl-note {
  text-align: center;
  margin-top: 36px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  font-style: italic;
}

/* ── CTA SECTION ────────────────────────────────────────────── */
.proc-cta-section {
  padding: 80px 0;
}
.proc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px 56px;
  box-shadow: var(--sh-sm);
  flex-wrap: wrap;
}
.proc-cta-text .sec-h2 { margin-top: 8px; margin-bottom: 8px; }
.proc-cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.proc-tel-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.proc-tel-link:hover { color: var(--blue); }
.ptl-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.proc-tel-link span {
  display: block;
  font-size: .75rem;
  color: var(--text-light);
}
.proc-tel-link strong {
  font-size: .95rem;
  font-weight: 700;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #0a1628;
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: .83rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-cert {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
}
.footer-col .fc-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  transition: color .2s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--white); }
.footer-btn {
  margin-top: 8px;
  text-align: center;
  display: inline-block;
}
.footer-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
}
.footer-divider { color: rgba(255,255,255,.15); }
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* Logo on dark bg */
.page-process .site-footer .logo-name { color: rgba(255,255,255,.9) !important; }
.page-process .site-footer .logo-name em { color: rgba(255,255,255,.5) !important; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .prh-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .prh-visual { display: none; }
  .guarantees-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-proc-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .proc-hero { min-height: 480px; padding: 110px 0 60px; }
  .prh-promise { flex-direction: column; gap: 10px; }
  .prp-item { min-width: unset; flex: unset; }
  .guarantees-grid { grid-template-columns: 1fr; }
  .st-step { grid-template-columns: 44px 1fr; gap: 0 16px; }
  .st-body { flex-direction: column; gap: 12px; padding-bottom: 36px; }
  .st-icon { width: 44px; height: 44px; }
  .tl-days {
    flex-wrap: wrap;
    gap: 16px 0;
  }
  .tl-day { flex: 0 0 50%; }
  .tl-bar { display: none; }
  .proc-cta { flex-direction: column; text-align: center; padding: 36px 28px; }
  .proc-cta-actions { flex-direction: column; width: 100%; }
  .proc-cta-actions .btn-primary { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .prh-title { font-size: 1.9rem; }
  .st-content h3 { font-size: 1.1rem; }
  .g-card { padding: 22px 18px; }
}
