/*
Theme Name: metall016-wp
Author: metall016.ru
Description: Кастомная тема для приёма лома и вторсырья в Республике Татарстан
Version: 1.0.0
Text Domain: metall016-wp
*/

:root {
  --bg: #000000;
  --surface: #111111;
  --surface-elevated: #1d1d1f;
  --border: #2c2c2e;
  --border-hover: #545456;
  --accent: #b8b8bf;
  --accent-hover: #d8d8e0;
  --accent-soft: rgba(184, 184, 191, 0.10);
  --accent-glow: rgba(184, 184, 191, 0.22);
  --steel: #a0a0a8;
  --steel-bright: #f0f0f5;
  --steel-dim: #6e6e73;
  --chrome: linear-gradient(135deg, #e8e8ed, #b8b8c0, #d0d0d8);
  --text: #ffffff;
  --text-secondary: #aeaeb2;
  --text-dim: #8e8e93;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- HEADER ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.logo { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.logo span { 
  color: #e8e8f0; 
  text-shadow: 0 0 12px rgba(200,200,220,0.25);
}
.header-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.header-link { font-size: 0.92rem; font-weight: 500; color: var(--text-secondary); padding: 6px 2px; transition: color var(--transition); white-space: nowrap; }
.header-link:hover { color: var(--text); }
.header-phone {
  font-size: 1rem; font-weight: 500; white-space: nowrap;
  transition: color var(--transition); color: var(--text-secondary);
}
.header-phone:hover { color: var(--text); }

.btn-msg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 980px;
  font-weight: 500; font-size: 0.84rem;
  transition: all var(--transition);
  white-space: nowrap; color: #fff;
  background: var(--steel);
}
.btn-msg:hover { background: var(--steel-bright); color: #000; }
.btn-msg.wa { background: #25D366; }
.btn-msg.wa:hover { background: #2eeb75; }
.btn-msg.tg { background: #0a84ff; }
.btn-msg.tg:hover { background: #409cff; }
.btn-msg.max { background: #5e5ce6; }
.btn-msg.max:hover { background: #7a78d6; }
.btn-msg svg { width: 15px; height: 15px; fill: #fff; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: calc(var(--header-h, 130px) + 40px); padding-bottom: 100px; padding-left: 24px; padding-right: 24px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.82) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 840px; text-align: center; }
.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: row-reverse;
  align-items: center; justify-content: space-between;
  gap: 48px;
  width: 100%; max-width: 1140px; margin: 0 auto;
}
.hero-content { flex: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero h1 .accent { 
  color: #fff;
  text-shadow: 0 0 20px rgba(240,240,250,0.4), 0 0 40px rgba(200,200,220,0.15);
}

/* ---------- HERO TAGS (направления текстом) ---------- */
.hero-tags {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 0 0 24px;
}
.hero-tag {
  margin: 0;
  font-size: clamp(1.05rem, 2.9vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #e8dcc8;
  text-shadow: 0 0 16px rgba(232, 149, 107, 0.30);
  white-space: nowrap;
  animation: m016-tag-glow 2.8s ease-in-out infinite;
}
.hero-tag:nth-child(1) { animation-delay: 0s; }
.hero-tag:nth-child(2) { animation-delay: 0.35s; }
.hero-tag:nth-child(3) { animation-delay: 0.7s; }
.hero-tag:nth-child(4) { animation-delay: 1.05s; }
@keyframes m016-tag-glow {
  0%, 100% {
    color: #e8dcc8;
    text-shadow: 0 0 20px rgba(240, 169, 126, 0.45), 0 0 44px rgba(232, 149, 107, 0.22);
  }
  50%      {
    color: #ffe2ae;
    text-shadow: 0 0 42px rgba(250, 210, 140, 0.95), 0 0 90px rgba(240, 169, 126, 0.60), 0 0 150px rgba(232, 149, 107, 0.40);
  }
}

/* Сильный пульс заголовка hero */
.hero h1 {
  animation: m016-h1-glow 2.6s ease-in-out infinite;
  color: #fff;
  text-shadow: 0 0 30px rgba(240, 169, 126, 0.0);
}
@keyframes m016-h1-glow {
  0%, 100% {
    color: #fff;
    text-shadow: 0 0 28px rgba(240, 200, 130, 0.55), 0 0 60px rgba(232, 149, 107, 0.30), 0 0 100px rgba(200, 120, 60, 0.18);
  }
  50%      {
    color: #ffe9bf;
    text-shadow: 0 0 60px rgba(250, 210, 140, 0.95), 0 0 140px rgba(240, 169, 126, 0.75), 0 0 240px rgba(232, 149, 107, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-tag { animation-duration: 3s !important; }
}

.hero-sub {
  margin: 28px auto 40px;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 400; color: #e0e0e8; max-width: 560px;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-sub b { color: #fff; font-weight: 700; }

/* ---- directions ---- */
.directions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; justify-items: stretch; margin: 0 auto 40px; max-width: 640px;
}
.dir-card {
  flex: unset;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px 22px; text-align: left;
  display: flex; align-items: center; gap: 16px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: border-color var(--transition), background var(--transition);
}
.dir-card:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.10); }
.dir-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent);
}
.dir-icon svg { width: 24px; height: 24px; }
.dir-text b { display: block; font-size: 1rem; margin-bottom: 2px; font-weight: 700; }
.dir-text span { color: var(--text-secondary); font-size: 0.85rem; }

/* ---- hero info card (premium) ---- */
.hero-info {
  position: relative;
  width: 360px; flex-shrink: 0;
  background: linear-gradient(145deg, rgba(28, 28, 30, 0.88), rgba(10, 10, 10, 0.82));
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(232, 149, 107, 0.25);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: m016-price-vibrate 0.35s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes m016-price-vibrate {
  0% { transform: translate(0, 0) scale(1); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 rgba(232,149,107,0); }
  15% { transform: translate(-2px, 1px) scale(1.01); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 30px rgba(232,149,107,0.4); }
  30% { transform: translate(2px, -1px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 40px rgba(232,149,107,0.6); }
  45% { transform: translate(-1px, 2px) scale(1.01); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 35px rgba(232,149,107,0.5); }
  60% { transform: translate(1px, -2px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 45px rgba(232,149,107,0.7); }
  75% { transform: translate(-2px, 0) scale(1.01); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 30px rgba(232,149,107,0.4); }
  100% { transform: translate(0, 0) scale(1); box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 rgba(232,149,107,0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-info { animation: m016-price-vibrate 1.5s ease-in-out infinite; }
}
/* мягкое медное свечение сверху карточки */
.hero-info::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 149, 107, 0.8), transparent);
}
.hero-info-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8956b;
  padding: 6px 14px; border-radius: 980px;
  background: rgba(232, 149, 107, 0.10);
  border: 1px solid rgba(232, 149, 107, 0.30);
  margin-bottom: 18px;
}
.hero-info-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.9);
  animation: m016-pulse 2.5s ease-in-out infinite;
}
.hero-info-text {
  font-size: 1.15rem; font-weight: 400; line-height: 1.5; color: var(--text-secondary); margin: 0 0 12px;
}
.hero-info-text b {
  display: block;
  font-size: 1.75rem; font-weight: 900; line-height: 1.2;
  color: #f0a97e;
  text-shadow: 0 0 30px rgba(232, 149, 107, 0.35);
  margin-top: 8px;
}
@keyframes m016-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }


/* ---- CTA buttons group ---- */
.hero-buttons {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-block; background: linear-gradient(180deg, #f5f5fa, #d4d4dc);
  color: #000;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 700; padding: 17px 40px;
  border: none; border-radius: 980px; cursor: pointer;
  letter-spacing: -0.01em;
  text-shadow: 0 0.5px 0 rgba(255,255,255,0.3);
  box-shadow: 0 1px 3px rgba(255,255,255,0.1), 0 4px 16px rgba(0,0,0,0.4);
  transition: all var(--transition);
}
.btn-cta:hover { background: linear-gradient(180deg, #fff, #e8e8f0); box-shadow: 0 2px 6px rgba(255,255,255,0.15), 0 6px 24px rgba(0,0,0,0.5); }

.btn-pickup {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #d8d8e0;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 700; padding: 16px 40px;
  border: 1.5px solid rgba(200,200,210,0.35); border-radius: 980px; cursor: pointer;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: all var(--transition);
}
.btn-pickup:hover {
  border-color: rgba(240,240,250,0.6);
  background: rgba(255,255,255,0.06);
  animation: shake 0.5s ease;
  color: #fff;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-4px) rotate(-0.5deg); }
  20% { transform: translateX(4px) rotate(0.5deg); }
  30% { transform: translateX(-3px) rotate(-0.3deg); }
  40% { transform: translateX(3px) rotate(0.3deg); }
  50% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  70% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  90% { transform: translateX(0); }
}

/* ---------- SECTIONS ---------- */
section { padding: 100px 24px; }
.container { max-width: 1080px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  font-weight: 900; margin-bottom: 8px;
  letter-spacing: -0.03em; line-height: 1.2;
}
.section-title .accent { color: var(--steel-bright); }
.section-sub {
  text-align: center; color: #aeaeb2;
  font-size: 1rem; margin-bottom: 32px;
  max-width: 600px; margin-left: auto; margin-right: auto;
  line-height: 1.6; font-weight: 400;
}

/* ---------- ADVANTAGES ---------- */
.advantages { background: var(--surface); padding: 60px 24px; }
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.adv-card {
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color var(--transition);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.adv-card:hover { border-color: var(--border-hover); }
.adv-card::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 60%, transparent 100%);
  transition: none; pointer-events: none; z-index: 1; border-radius: inherit;
}
.adv-card:hover::before { animation: shimmer 0.8s ease forwards; }
.adv-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--steel-bright);
}
.adv-icon svg { width: 18px; height: 18px; }
.adv-card h3 { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 2px; white-space: nowrap; }
.adv-card p { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.4; font-weight: 400; white-space: nowrap; }

/* ---------- POINTS ---------- */
.points { background: var(--bg); }
.geo-status {
  text-align: center; margin-bottom: 32px;
  font-size: 0.92rem; color: var(--text-secondary); min-height: 22px;
}
.geo-status b { color: var(--steel-bright); font-weight: 700; }
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.point-card {
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--transition);
  position: relative;
}
.point-card:hover { border-color: var(--border-hover); }
.point-card.nearest {
  border-color: var(--steel-bright);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 4px 24px rgba(161, 161, 166, 0.08);
}
.point-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.point-name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.point-city { font-size: 0.84rem; color: var(--text-secondary); margin-top: 2px; }
.point-dist { font-size: 0.85rem; color: var(--steel-bright); font-weight: 700; white-space: nowrap; }
.badge-near {
  position: absolute; top: -10px; left: 16px;
  background: var(--steel-bright); color: #000;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 980px;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-map {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 18px; border-radius: 980px;
  font-weight: 500; font-size: 0.9rem;
  transition: all var(--transition);
  margin-top: auto;
}
.btn-map:hover { background: var(--steel-bright); color: #000; border-color: var(--steel-bright); }
.btn-map svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- SCROLL CUE ---------- */
.scroll-cue {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 10px 18px;
  border-radius: 980px;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
  transition: color var(--transition), border-color var(--transition);
}
.scroll-cue svg { animation: m016-cue-bounce 2s ease-in-out infinite; }
@keyframes m016-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900; margin-bottom: 16px;
  letter-spacing: -0.03em; line-height: 1.2;
}
.cta-strip p { font-size: 1.1rem; margin-bottom: 32px; color: var(--text-secondary); font-weight: 400; }
.cta-strip .btn-cta { background: var(--steel-bright); color: #000; }
.cta-strip .btn-cta:hover { background: #fff; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  text-align: center; padding: 48px 24px;
  color: var(--text-dim); font-size: 0.88rem;
}
footer .foot-phone {
  display: block; margin-bottom: 14px;
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  transition: color var(--transition);
}
footer .foot-phone:hover { color: var(--steel-bright); }
footer .foot-links { margin-top: 14px; }
footer .foot-links a {
  color: var(--text-dim); font-size: 0.82rem;
  transition: color var(--transition);
}
footer .foot-links a:hover { color: var(--steel-bright); }

/* ---------- MODAL ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.82); z-index: 2000;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  width: 100%; max-width: 420px; position: relative;
  animation: modalIn 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  max-height: 90vh; overflow-y: auto;
}
.modal.wide { max-width: 520px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.modal h3 { font-size: 1.4rem; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.02em; }
.modal > p { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.92rem; line-height: 1.6; }
.modal label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--text); }
.modal input[type=text], .modal input[type=tel] {
  width: 100%; padding: 14px 16px; margin-bottom: 18px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text); font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.modal input:focus { outline: none; border-color: var(--steel-bright); }
.modal .btn-cta { width: 100%; border-radius: 12px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }
.form-error { color: var(--steel-bright); font-size: 0.82rem; margin: -12px 0 14px; display: none; }
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 22px; font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5;
}
.consent input {
  margin-top: 3px; width: 16px; height: 16px;
  accent-color: var(--steel-bright); flex-shrink: 0; cursor: pointer;
}
.consent a { color: var(--steel-bright); font-weight: 500; cursor: pointer; }
.consent a:hover { text-decoration: underline; }
.policy-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.policy-text p { margin-bottom: 12px; }
.policy-text b { color: var(--text); font-weight: 700; }


/* ---------- APPLE SHIMMER EFFECT ---------- */
.btn-cta,
.btn-pickup,
.btn-msg,
.btn-map,
.header-phone,
.footer .foot-phone,
.footer .foot-links a,
.dir-card,
.adv-card {
  position: relative;
  overflow: hidden;
}
.point-card {
  position: relative;
}

.btn-cta::before,
.btn-pickup::before,
.btn-map::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.25) 60%,
    transparent 100%
  );
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.btn-cta:hover::before,
.btn-pickup:hover::before,
.btn-map:hover::before {
  animation: shimmer 0.6s ease forwards;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* Card shimmer - subtler */
.dir-card::before,
.adv-card::before,
.point-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 60%,
    transparent 100%
  );
  transition: none;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.dir-card:hover::before,
.adv-card:hover::before,
.point-card:hover::before {
  animation: shimmer 0.8s ease forwards;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .directions { flex-direction: column; }
}
@media (max-width: 760px) {
  header { padding: 0; }
  .header-inner { padding: 8px 14px; gap: 8px; flex-wrap: nowrap; align-items: center; }
  .header-actions { display: none; }
  .logo { font-size: 1.05rem; width: auto; }
  .burger { order: 2; margin-left: auto; display: flex; }
  .burger svg { width: 20px; height: 20px; }
  .hero { padding-top: calc(var(--header-h, 170px) + 10px); padding-bottom: 36px; padding-left: 18px; padding-right: 18px; }
  .hero-inner { flex-direction: column; gap: 16px; }
  .hero-info { width: 100%; max-width: 480px; margin: 0 auto; padding: 20px 18px; }
    .hero-info-badge { margin-bottom: 10px; font-size: 0.64rem; padding: 5px 11px; }
    .hero-info-text { font-size: 0.95rem; margin-bottom: 6px; }
    .hero-info-text b { font-size: 1.42rem; }
  section { padding: 72px 18px; }
  .points-grid { grid-template-columns: 1fr; }
  .directions { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dir-card { padding: 12px 10px; border-radius: 14px; }
    .dir-text b { font-size: 0.82rem; }
    .dir-text span { font-size: 0.68rem; line-height: 1.25; }
  .dir-card { flex: unset; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .scroll-cue { display: inline-flex; }
  .scroll-cue:active { color: var(--text); }
  .btn-cta, .btn-pickup { width: 100%; justify-content: center; padding-top: 13px; padding-bottom: 13px; }
  .section-sub { margin-bottom: 44px; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .adv-card { white-space: normal; }
}
@media (max-width: 420px) {
  .header-actions { gap: 8px; }
  .btn-msg { padding: 7px 12px; font-size: 0.78rem; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .adv-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .modal { padding: 28px 20px; }
}
/* WP theme additions */
.wrap { min-height:100vh; display:flex; flex-direction:column; }
main { flex:1; padding-top: var(--header-h, 130px); }
.burger { background:none; border:none; color:var(--text); cursor:pointer; }
@media (min-width: 761px) { .burger { display:none; } }
.mobile-nav { display:none; position:absolute; top:100%; left:0; right:0; background:rgba(0,0,0,0.92); backdrop-filter:saturate(180%) blur(20px); border-bottom:1px solid rgba(255,255,255,0.08); padding:16px 24px; flex-direction:column; gap:10px; }
.mobile-nav a { color:var(--text-secondary); font-weight:500; padding:8px 0; }
.mobile-nav.active { display:flex; }

.screen-reader-text { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }


/* ===== PAGE-SPECIFIC STYLES (stati hub + articles + novosti + policy) - carried from static design ===== */
.intro-text { max-width:720px; margin:0 auto 48px; font-size:1.05rem; line-height:1.7; color:#e0e0e8; text-align:center; }
.card-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.card-grid a { display:flex; }
.card { background:var(--surface-elevated); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px 26px; display:flex; flex-direction:column; gap:14px; transition:border-color var(--transition); width:100%; }
.card:hover { border-color:var(--border-hover); }
.card h2 { font-size:1.2rem; font-weight:700; letter-spacing:-.01em; line-height:1.3; }
.card p { color:var(--text-secondary); font-size:.94rem; line-height:1.55; flex:1; }
.btn-link { display:inline-flex; align-items:center; gap:6px; color:var(--steel-bright); font-weight: 700; font-size:.92rem; transition:color var(--transition); margin-top:auto; }
.card:hover .btn-link { color:#fff; }
.cta-box { max-width:720px; margin:60px auto 0; text-align:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:36px 28px; }
.cta-box h2 { font-size:clamp(1.3rem,4vw,1.8rem); font-weight:700; margin-bottom:12px; }
.cta-box p { color:var(--text-secondary); font-size:1rem; margin-bottom:22px; line-height:1.6; }
.policy-text { font-size:.88rem; color:var(--text-secondary); line-height:1.7; }
.policy-text p { margin-bottom:12px; }
.policy-text b { color:var(--text); font-weight: 700; }
.breadcrumbs { max-width:720px; margin:0 auto 24px; font-size:.85rem; color:var(--text-dim); }
.breadcrumbs a { color:var(--steel-bright); transition:color var(--transition); }
.breadcrumbs a:hover { color:var(--text); }
.breadcrumbs span { color:var(--text-secondary); }
.article-page .container { max-width:720px; }
.article-page article { font-size:1.05rem; line-height:1.7; }
.article-page article h1 { font-size:clamp(1.6rem,5vw,2.2rem); font-weight: 900; margin-bottom:20px; letter-spacing:-.03em; line-height:1.2; }
.article-page article h2 { font-size:clamp(1.2rem,3.5vw,1.5rem); font-weight:700; margin-top:36px; margin-bottom:14px; letter-spacing:-.02em; color:#f0f0f5; }
.article-page article p { margin-bottom:18px; color:#e0e0e8; }
.related-articles { margin-top: 48px; }
.related-title { font-size:clamp(1.3rem,3.5vw,1.8rem); font-weight: 900; margin-bottom:20px; letter-spacing:-.02em; }
.card-img { width:100%; height:140px; object-fit:cover; border-radius:10px; margin-bottom:14px; }
.article-cover { margin-bottom: 28px; }
.article-cover .cover-img { width:100%; max-height:420px; object-fit:cover; border-radius:14px; }
.article-page article a { color:#d8e8ff; text-decoration:underline; text-underline-offset:3px; text-decoration-color: rgba(150,180,255,.5); font-weight:500; }
.article-page article a:hover { color:#fff; text-decoration-color:#d8e8ff; }
.card-grid { grid-template-columns:1fr; }
.card { padding:22px 20px; }
.page-header { padding: 48px 0 32px;
  text-align: center; }
.page-header h1 { font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.2;
  margin-bottom: 12px; }
.page-header p { color: var(--text-secondary);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6; }
.news-grid { display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 64px; }
.news-card { display: block;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: border-color var(--transition), background var(--transition); }
.news-card:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.03); }
.news-title { font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 12px; }
.news-meta { display: flex; align-items: center; gap: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap; }
.news-source { color: var(--steel-bright); font-weight: 500; }
.fallback { text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary); }
.fallback h2 { font-size: 1.4rem; color: var(--text); margin-bottom: 14px; font-weight: 700; }
.cta-section { background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px; }
.cta-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-section h2 { font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.03em; }
.cta-section p { color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px; }
.cta-section .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 28px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #d8d8e0;
  font-size: 1rem; font-weight: 700; padding: 16px 32px;
  border: 1.5px solid rgba(200,200,210,0.35); border-radius: 980px; cursor: pointer;
  transition: all var(--transition); }
.btn-outline:hover { border-color: rgba(240,240,250,0.6); background: rgba(255,255,255,0.06); color: #fff; }
.news-grid { grid-template-columns: 1fr; }
.page-header { padding: 36px 0 24px; }
.cta-section { padding: 48px 24px; }
.cta-section .actions { flex-direction: column; align-items: stretch; }
.btn-cta, .btn-outline { width: 100%; justify-content: center; }

@media (max-width:420px){
  .header-actions { gap:8px; }
  .btn-msg { padding:7px 12px; font-size:.78rem; }
  main { padding-top: var(--header-h, 130px); }
  .section-title { font-size:1.5rem; }
  .modal { padding:28px 20px; }
}


@media (max-width: 720px) {
  main { padding-top: var(--header-h, 130px); }
  .news-grid { grid-template-columns: 1fr; }
  .page-header { padding: 36px 0 24px; }
  .cta-section { padding: 48px 24px; }
  .cta-section .actions { flex-direction: column; align-items: stretch; }
  .btn-cta, .btn-outline { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .header-actions { gap: 8px; }
  .btn-msg { padding: 7px 12px; font-size: 0.78rem; }
}

/* ---------- FAB мессенджеры ---------- */
.m016-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab-main {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  background: #0a84ff; color: #fff;
  box-shadow: 0 8px 28px rgba(10, 132, 255, 0.45);
  animation: m016-fab-pulse 2.5s ease-in-out infinite;
  transition: transform 0.25s var(--transition), background 0.25s;
}
@keyframes m016-fab-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(10, 132, 255, 0.45); }
  50% { box-shadow: 0 8px 40px rgba(10, 132, 255, 0.85); }
}
.fab-main:hover { transform: scale(1.06); }
.fab-icon-close { display: none; }
.m016-fab.open .fab-icon-tg { display: none; }
.m016-fab.open .fab-icon-close { display: block; }
.m016-fab.open .fab-main { animation: none; background: #1d1d1f; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

.fab-menu {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.m016-fab.open .fab-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-item {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 980px;
  padding: 10px 16px;
  font-size: 0.85rem; font-weight: 500;
  transform: translateY(14px); opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease, border-color 0.25s;
  order: 3; /* reverse visual: items appear bottom-up */
}
.m016-fab.open .fab-item { transform: translateY(0); opacity: 1; }
.m016-fab.open .fab-item:nth-child(1) { transition-delay: 0.10s; }
.m016-fab.open .fab-item:nth-child(2) { transition-delay: 0.05s; }
.m016-fab.open .fab-item:nth-child(3) { transition-delay: 0s; }
.fab-item:hover { border-color: var(--border-hover); }
.fab-item svg { flex-shrink: 0; }
.fab-item:nth-child(1) svg { color: #0a84ff; }
.fab-item:nth-child(2) svg { color: #a78bfa; }
.fab-item:nth-child(3) svg { color: #34c759; }
.fab-label { white-space: nowrap; }
@media (max-width: 420px) {
  .fab-label { display: none; }
  .fab-item { padding: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55); }
  .m016-fab { right: 14px; bottom: 14px; }
  .m016-fab .fab-menu { gap: 8px; }
}

