/* ГеоПрофи — собственные стили сайта.
   Подключается ДО assets/tailwind.css (утилиты Tailwind должны перекрывать эти правила). */
html { background: #05070d; }
body { background: #05070d; color: #d3d9e4; }
::selection { background: rgba(220,183,106,.35); color: #fff; }
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- Подложка ---------- */
#bg-contours { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.page { position: relative; z-index: 1; }

/* ---------- Типографика ---------- */
.gold-text { background: linear-gradient(100deg,#b8893a 0%,#f6e3b0 30%,#dcb76a 50%,#fff3d1 65%,#b8893a 100%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
.laser-text { background: linear-gradient(90deg,#8eefff,#43e3ff 50%,#c6f6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shine { to { background-position: 220% center; } }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: #dcb76a; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, #dcb76a); }
.h-sec { font-weight: 800; letter-spacing: -.025em; color: #fff; font-size: clamp(1.75rem, 3.3vw, 2.9rem); line-height: 1.08; }
.lead { color: rgba(203,212,226,.82); font-size: clamp(.95rem, 1.2vw, 1.06rem); line-height: 1.75; }

/* ---------- Чипы и кнопки ---------- */
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: #ead9ae; background: rgba(220,183,106,.07); border: 1px solid rgba(220,183,106,.22); backdrop-filter: blur(8px); white-space: nowrap; }
.chip-laser { color: #c6f6ff; background: rgba(67,227,255,.08); border-color: rgba(67,227,255,.32); }
.ping { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #43e3ff; flex: none; }
.ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #43e3ff; animation: ping 1.9s cubic-bezier(0,0,.2,1) infinite; }
.ping.gold { background: #dcb76a; } .ping.gold::after { border-color: #dcb76a; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.3); opacity: 0; } }

.btn-gold { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.55rem; border-radius: 14px;
  font-weight: 800; font-size: 14.5px; color: #1b1307; background: linear-gradient(135deg,#f8e8bd 0%,#dcb76a 45%,#b4853a 100%);
  box-shadow: 0 14px 34px -14px rgba(220,183,106,.75), inset 0 1px 0 rgba(255,255,255,.55); overflow: hidden; transition: box-shadow .3s, filter .3s; }
.btn-gold::after { content: ""; position: absolute; top: 0; left: -60%; width: 38%; height: 100%; background: linear-gradient(100deg,transparent,rgba(255,255,255,.6),transparent);
  transform: skewX(-20deg); animation: sheen 5s ease-in-out infinite; }
.btn-gold:hover { filter: brightness(1.06); box-shadow: 0 20px 44px -14px rgba(220,183,106,.95), inset 0 1px 0 rgba(255,255,255,.6); }
@keyframes sheen { 0%, 62% { left: -60%; } 100% { left: 135%; } }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.45rem; border-radius: 14px; font-weight: 700; font-size: 14.5px;
  color: #fff; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); transition: background .3s, border-color .3s, color .3s; }
.btn-ghost:hover { background: rgba(255,255,255,.085); border-color: rgba(220,183,106,.5); }
.btn-laser { border-color: rgba(67,227,255,.4); color: #c6f6ff; }
.btn-laser:hover { border-color: rgba(67,227,255,.8); background: rgba(67,227,255,.08); }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.4rem; border-radius: 14px; font-weight: 700; font-size: 14px;
  color: #eafff2; background: linear-gradient(135deg, rgba(43,224,122,.22), rgba(15,169,88,.18)); border: 1px solid rgba(43,224,122,.4); transition: background .3s, border-color .3s; }
.btn-wa:hover { background: linear-gradient(135deg, rgba(43,224,122,.32), rgba(15,169,88,.26)); border-color: rgba(43,224,122,.75); }
.btn-sm { padding: .62rem 1rem; font-size: 12.5px; border-radius: 11px; }
.magnetic { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .3s, filter .3s, background .3s, border-color .3s; will-change: transform; }

/* ---------- Поверхности ---------- */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018)); border: 1px solid rgba(255,255,255,.085);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.panel { background: linear-gradient(180deg, rgba(15,23,39,.78), rgba(7,11,20,.78)); border: 1px solid rgba(255,255,255,.075); backdrop-filter: blur(10px); }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(220,183,106,.5), rgba(67,227,255,.35), transparent); }

.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(520px circle at var(--mx,50%) var(--my,0%), rgba(220,183,106,.14), transparent 42%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(280px circle at var(--mx,50%) var(--my,0%), rgba(243,220,166,.9), rgba(67,227,255,.28) 38%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.tilt { transform-style: preserve-3d; transition: transform .6s cubic-bezier(.16,1,.3,1); will-change: transform; }
.tilt.is-tilting { transition: transform .12s linear; }
.lift { transform: translateZ(30px); }

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ring { position: relative; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ang), rgba(220,183,106,.16) 0deg, rgba(220,183,106,.16) 210deg, #f3dca6 265deg, #43e3ff 300deg, rgba(220,183,106,.16) 345deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }

/* ---------- Появление при прокрутке ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1), filter 1s ease; transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Шапка ---------- */
.logo-mark { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #1b1307;
  background: linear-gradient(135deg,#f8e8bd,#dcb76a 52%,#a87a2e); box-shadow: 0 10px 26px -10px rgba(220,183,106,.85), inset 0 1px 0 rgba(255,255,255,.6); }
.logo-mark::after { content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 1px solid rgba(220,183,106,.28); }
.nav-link { position: relative; padding: .55rem .75rem; border-radius: 10px; transition: color .25s; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 1px; background: linear-gradient(90deg,#dcb76a,#43e3ff);
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.new-pill { font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 999px; margin-left: 5px; vertical-align: 2px;
  background: linear-gradient(135deg,#8eefff,#12c6ea); color: #02141c; animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 16px rgba(67,227,255,.85); } }
#site-header .hdr-bg { transition: background .4s, border-color .4s; }
#site-header.scrolled .hdr-bg { background: rgba(4,6,11,.88); border-color: rgba(220,183,106,.16); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg,#a87a2e,#f3dca6,#43e3ff); box-shadow: 0 0 12px rgba(67,227,255,.6); }

/* ---------- Hero ---------- */
.hero-veil { background:
    radial-gradient(1200px 600px at 75% 10%, rgba(67,227,255,.08), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(220,183,106,.10), transparent 60%),
    linear-gradient(90deg, rgba(4,6,11,.88) 0%, rgba(4,6,11,.55) 40%, rgba(4,6,11,.08) 70%, rgba(4,6,11,.3) 100%),
    linear-gradient(180deg, rgba(4,6,11,.6) 0%, transparent 34%, transparent 82%, rgba(5,7,13,1) 100%); }
#hero .glass { backdrop-filter: blur(9px) saturate(140%); -webkit-backdrop-filter: blur(9px) saturate(140%); background: linear-gradient(180deg, rgba(10,16,28,.62), rgba(6,10,18,.55)); }
@media (max-width: 1023px) { .hero-veil { background: linear-gradient(180deg, rgba(4,6,11,.88) 0%, rgba(4,6,11,.75) 55%, rgba(4,6,11,.35) 80%, rgba(5,7,13,1) 100%); } }
.stat-num { font-weight: 800; font-size: clamp(1.55rem, 2.5vw, 2.15rem); letter-spacing: -.02em; line-height: 1.1; }
.hud { font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.7; color: #c6f6ff; background: rgba(4,8,16,.6);
  border: 1px solid rgba(67,227,255,.25); border-radius: 14px; padding: 11px 15px; backdrop-filter: blur(10px); box-shadow: 0 0 40px -10px rgba(67,227,255,.35); }
.hud .k { color: #64809a; } .hud .g { color: #f3dca6; }
.scroll-cue { width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.28); position: relative; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: #dcb76a; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marq 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-50% - 1.5rem)); } }
.mq-item { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; font-weight: 700; font-size: 15px; color: rgba(214,221,233,.55); transition: color .3s; }
.mq-item:hover { color: #f3dca6; }
.mq-item::after { content: "◆"; font-size: 8px; color: rgba(220,183,106,.45); }

/* ---------- Карточки услуг ---------- */
.card { border-radius: 22px; background: linear-gradient(180deg, rgba(17,26,44,.72), rgba(8,12,22,.78)); border: 1px solid rgba(255,255,255,.075); }
.card-num { font-family: 'Playfair Display', serif; font-style: italic; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(220,183,106,.28); }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #f3dca6;
  background: linear-gradient(135deg, rgba(220,183,106,.18), rgba(220,183,106,.04)); border: 1px solid rgba(220,183,106,.28); }
.icon-box.laser { color: #8eefff; background: linear-gradient(135deg, rgba(67,227,255,.16), rgba(67,227,255,.03)); border-color: rgba(67,227,255,.3); }
.code-tag { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: .3rem .55rem; border-radius: 7px;
  color: #ead9ae; background: rgba(220,183,106,.08); border: 1px solid rgba(220,183,106,.2); }

/* ---------- Вкладки ---------- */
.tab-btn { padding: .7rem 1.1rem; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #a9b4c7; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); transition: all .35s cubic-bezier(.16,1,.3,1); }
.tab-btn:hover { color: #fff; border-color: rgba(220,183,106,.4); }
.tab-btn[aria-selected="true"] { color: #1b1307; background: linear-gradient(135deg,#f8e8bd,#dcb76a 55%,#b4853a); border-color: transparent; box-shadow: 0 10px 26px -12px rgba(220,183,106,.8); }
.fade-swap { animation: swap .6s cubic-bezier(.16,1,.3,1); }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Конвертер ---------- */
[hidden] { display: none !important; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: rgba(4,8,16,.55); border: 1px solid rgba(255,255,255,.08); }
.seg button { position: relative; z-index: 1; padding: .62rem .4rem; font-size: 12.5px; font-weight: 700; color: #9aa6ba; border-radius: 10px; transition: color .35s; line-height: 1.2; }
.seg button[aria-selected="true"] { color: #1b1307; }
.seg .ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px;
  background: linear-gradient(135deg,#f8e8bd,#dcb76a 55%,#b4853a); box-shadow: 0 8px 20px -10px rgba(220,183,106,.9); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.label { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8d9ab0; margin-bottom: .45rem; }
.field { width: 100%; border-radius: 12px; background: rgba(4,8,16,.62); border: 1px solid rgba(255,255,255,.11); padding: .78rem .95rem; color: #fff; font-size: 14px;
  transition: border-color .25s, box-shadow .25s; }
.field::placeholder { color: #5d6b82; }
.field:focus { outline: none; border-color: rgba(220,183,106,.75); box-shadow: 0 0 0 4px rgba(220,183,106,.12); }
.field.mono { font-family: 'JetBrains Mono', monospace; font-size: 13.5px; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dcb76a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; }
select.field option { background: #0b1220; color: #fff; }
.out { border-radius: 16px; padding: 15px 16px; background: rgba(4,8,16,.6); border: 1px solid rgba(255,255,255,.08); }
.out .v { font-family: 'JetBrains Mono', monospace; font-size: 14.5px; color: #fff; letter-spacing: -.01em; }
.out .k { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #71809a; }
.flash { animation: flash 1s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 1px rgba(67,227,255,.85), 0 0 34px rgba(67,227,255,.35); } to { box-shadow: 0 0 0 1px transparent, 0 0 0 transparent; } }
.copy-btn { font-size: 11px; font-weight: 700; color: #dcb76a; padding: .25rem .5rem; border-radius: 7px; border: 1px solid rgba(220,183,106,.25); transition: background .25s; }
.copy-btn:hover { background: rgba(220,183,106,.12); }
.ex-chip { font-size: 12px; font-weight: 700; color: #c9d2e0; padding: .38rem .75rem; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: all .25s; }
.ex-chip:hover { color: #1b1307; background: #dcb76a; border-color: #dcb76a; }

/* ---------- Схема зон ---------- */
.zmap { width: 100%; height: auto; display: block; touch-action: manipulation; cursor: crosshair; }
.zmap .strip { fill: rgba(255,255,255,.012); stroke: rgba(255,255,255,.07); transition: fill .35s; }
.zmap .strip.alt { fill: rgba(220,183,106,.03); }
.zmap .strip.on { fill: rgba(67,227,255,.1); }
.zmap .grat { stroke: rgba(255,255,255,.055); stroke-dasharray: 2 5; }
.zmap .cm { stroke: rgba(220,183,106,.4); stroke-dasharray: 5 5; }
.zmap .t-mono { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: #75839b; }
.zmap .t-zone { font-family: Manrope, sans-serif; font-size: 12px; font-weight: 800; fill: #ead9ae; }
.zmap .city-dot { fill: #dcb76a; }
.zmap .city-halo { fill: none; stroke: #dcb76a; opacity: .5; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-out infinite; }
.zmap .city-label { font-family: Manrope, sans-serif; font-size: 11.5px; font-weight: 700; fill: #c9d2e0; paint-order: stroke; stroke: #070b14; stroke-width: 3px; }
.zmap .city.base .city-dot { fill: #43e3ff; }
.zmap .city.base .city-label { fill: #8eefff; }
.zmap .city.base .city-halo { stroke: #43e3ff; }
@keyframes halo { from { transform: scale(1); opacity: .65; } to { transform: scale(3.2); opacity: 0; } }
.zmap .xh { stroke: rgba(67,227,255,.55); stroke-width: 1; }
.zmap .tip rect { fill: rgba(4,8,16,.9); stroke: rgba(67,227,255,.45); }
.zmap .tip text { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; fill: #c6f6ff; }
.zmap .mk-core { fill: #f3dca6; }
.zmap .mk-ring { fill: none; stroke: #f3dca6; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: halo 1.8s ease-out infinite; }

/* ---------- Таблица зон ---------- */
.ztable th { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8d9ab0; text-align: left; padding: .8rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.ztable td { padding: .72rem .9rem; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; color: #c9d2e0; }
.ztable tr { transition: background .25s; }
.ztable tbody tr:hover, .ztable tbody tr.on { background: rgba(67,227,255,.06); }
.ztable td.mono { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #fff; }

/* ---------- FAQ ---------- */
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { transition: transform .45s cubic-bezier(.16,1,.3,1); }
.faq[open] .pm { transform: rotate(45deg); }
.faq[open] .faq-a { animation: swap .55s cubic-bezier(.16,1,.3,1); }
.faq[open] { border-color: rgba(220,183,106,.35); }

/* ---------- Прочее ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg,#2be07a,#0fa958); box-shadow: 0 14px 34px -10px rgba(16,185,90,.8); transition: transform .3s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #2be07a; animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .35s cubic-bezier(.16,1,.3,1);
  background: rgba(10,16,28,.95); border: 1px solid rgba(220,183,106,.4); color: #f3dca6; font-size: 13px; font-weight: 700; padding: .7rem 1.1rem; border-radius: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#case-modal .modal-card { transform: translateY(16px) scale(.97); opacity: 0; transition: all .45s cubic-bezier(.16,1,.3,1); }
#case-modal.open .modal-card { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; filter: none; }
}
