/* ==========================================================
   Метал-Р – основен стил (тъмен, индустриален, премиум)
   ========================================================== */
:root {
  --accent: #f97316;
  --accent-600: #ea580c;
  --accent-300: #fdba74;
  --dark: #0f172a;
  --bg: #111827;
  --bg-deep: #0b1220;
  --text: #ffffff;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, .1);
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(15, 23, 42, .66);
  --radius: 18px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Oswald', 'Inter', 'Arial Narrow', Arial, sans-serif;
}

html[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--body);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--line);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: var(--accent-300);
  --bs-primary: var(--accent);
  --bs-secondary-color: var(--muted);
  --bs-heading-color: var(--text);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { background: var(--bg); color: var(--body); font-family: var(--font-body); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
::selection { background: var(--accent); color: #111; }

h1, h2, h3, h4, .brand-text, .nf-code {
  font-family: var(--font-head);
  color: var(--text);
  letter-spacing: .01em;
  line-height: 1.15;
  font-weight: 600;
}
a { text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, transform .25s var(--ease); }
.text-accent { color: var(--accent) !important; }
.text-secondary { color: var(--muted) !important; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--accent); color: #111; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-300); outline-offset: 2px; }

/* ---------- Бутони ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .65rem 1.3rem; letter-spacing: .01em; position: relative; overflow: hidden; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.02rem; }
.btn-accent {
  --bs-btn-color: #111827; --bs-btn-hover-color: #111827; --bs-btn-active-color: #111827;
  background: linear-gradient(135deg, #fb923c, var(--accent) 55%, var(--accent-600));
  border: 0; color: #111827; box-shadow: 0 10px 30px -10px rgba(249, 115, 22, .65);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(249, 115, 22, .85); color: #111827; }
.btn-accent::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-accent:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--glass); border: 1px solid rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }
.btn-outline-accent { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline-accent:hover { background: var(--accent); color: #111827; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, .3); }

/* ---------- Glass ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- Хедър ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1030; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.site-header.scrolled { background: rgba(15, 23, 42, .78); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line), 0 14px 40px -20px rgba(0, 0, 0, .8); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-text { font-size: 1.45rem; font-weight: 700; letter-spacing: .08em; }
.nav-phone { align-items: center; gap: .5rem; color: #fff; font-weight: 600; padding: .5rem .9rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); white-space: nowrap; }
.nav-phone i { color: var(--accent); }
.nav-phone:hover { color: #fff; border-color: var(--accent); }
.navbar-toggler { border: 1px solid var(--line); border-radius: 12px; color: #fff; font-size: 1.6rem; line-height: 1; padding: .3rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(249, 115, 22, .4); }
.navbar-nav .nav-link { color: #e2e8f0; font-weight: 500; padding: .5rem 1rem; position: relative; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--accent); }
@media (min-width: 1200px) {
  .navbar-nav .nav-link::after { content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .15rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
  .offcanvas-glass { background: transparent !important; border: 0; }
}
.offcanvas-glass { background: rgba(15, 23, 42, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-left: 1px solid var(--line); }
@media (max-width: 1199.98px) {
  .navbar-nav .nav-link { font-family: var(--font-head); font-size: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4.5rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; animation: heroZoom 24s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11, 18, 32, .94) 0%, rgba(15, 23, 42, .72) 52%, rgba(15, 23, 42, .35) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 20% 40%, #000 20%, transparent 70%); }
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero .eyebrow { padding: .45rem .9rem; border-radius: 999px; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .35); }
.section .eyebrow::before, .page-hero .eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.hero-title { font-size: clamp(2.4rem, 6.4vw, 5rem); font-weight: 700; text-transform: uppercase; line-height: 1.04; margin-bottom: 1.2rem; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 40rem; color: #e2e8f0; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.2rem 1.4rem; max-width: 900px; margin-top: 3.5rem; }
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--accent); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.scroll-hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); color: #fff; opacity: .55; font-size: 1.4rem; animation: bob 2s ease-in-out infinite; display: none; }
@media (min-width: 992px) { .scroll-hint { display: block; } }
@keyframes bob { 50% { margin-bottom: -8px; } }

/* ---------- Секции ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-deep), var(--dark)); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.2rem; }
.section-head .eyebrow { justify-content: center; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.prose p { margin-bottom: 1.1rem; color: var(--body); }
.prose { max-width: 62ch; }
.lead-sm { font-size: 1.12rem; color: #e2e8f0; }

.page-hero { padding: calc(var(--header-h) + 3.5rem) 0 3rem; position: relative; background: radial-gradient(900px 340px at 85% 0%, rgba(249, 115, 22, .16), transparent 70%), linear-gradient(180deg, var(--dark), var(--bg)); border-bottom: 1px solid var(--line); margin-bottom: 3.5rem; }
.page-hero::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 140px; height: 3px; background: var(--accent); }
.page-title { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; margin-bottom: .6rem; }
.page-lead { max-width: 46rem; font-size: 1.15rem; color: var(--muted); margin: 0; }
.crumbs { margin-bottom: 1.2rem; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--muted); font-size: .88rem; margin: 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-item.active { color: #e2e8f0; }

/* ---------- За нас ---------- */
.about-visual { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.about-visual::before { content: ''; position: absolute; inset: auto -30px -30px auto; width: 60%; height: 60%; border: 3px solid var(--accent); border-radius: 24px; z-index: 0; opacity: .0; }
.about-visual img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.about-visual:hover img { transform: scale(1.05); }
.about-badge { position: absolute; left: 1.2rem; bottom: 1.2rem; background: rgba(15, 23, 42, .82); backdrop-filter: blur(12px); border: 1px solid rgba(249, 115, 22, .5); border-radius: 16px; padding: .9rem 1.3rem; text-align: center; }
.about-badge strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.about-badge span { font-size: .85rem; color: #e2e8f0; }
.big-stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 4rem); color: var(--accent); line-height: 1; }
.big-stat span { color: var(--muted); }

/* ---------- Карти ---------- */
.feature-card, .service-card {
  display: block; height: 100%; padding: 2rem 1.7rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.feature-card::before, .service-card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), transparent); transition: width .5s var(--ease); }
.feature-card:hover, .service-card:hover { transform: translateY(-8px); border-color: rgba(249, 115, 22, .5); box-shadow: 0 30px 60px -30px rgba(249, 115, 22, .35); }
.feature-card:hover::before, .service-card:hover::before { width: 100%; }
.feature-icon, .service-icon { width: 58px; height: 58px; display: inline-grid; place-items: center; border-radius: 16px; font-size: 1.6rem; color: var(--accent); background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .3); margin-bottom: 1.2rem; transition: transform .4s var(--ease), background .3s, color .3s; }
.feature-card:hover .feature-icon, .service-card:hover .service-icon { background: var(--accent); color: #111827; transform: rotate(-6deg) scale(1.08); }
.feature-card h3, .service-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.feature-card .check { color: var(--accent); font-size: .95rem; margin-right: .2rem; }
.feature-card p, .service-card p { color: var(--muted); margin-bottom: 1rem; }
.feature-card p:last-child { margin-bottom: 0; }
.service-card { color: inherit; }
.link-arrow { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow i { transition: transform .3s var(--ease); }
a:hover > .link-arrow i, .link-arrow:hover i { transform: translateX(6px); }

/* ---------- Процес ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; position: relative; counter-reset: s; }
@media (min-width: 992px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
  .process::before { content: ''; position: absolute; top: 2.2rem; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 20px); opacity: .45; }
}
.process-step { text-align: center; padding: 0 .6rem; position: relative; }
.process-icon { width: 4.4rem; height: 4.4rem; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 1.7rem; border-radius: 50%; color: var(--accent); background: var(--dark); border: 2px solid var(--accent); position: relative; z-index: 1; box-shadow: 0 0 0 8px rgba(249, 115, 22, .08); transition: transform .35s var(--ease), background .3s, color .3s; }
.process-step:hover .process-icon { background: var(--accent); color: #111827; transform: scale(1.1); }
.process-num { position: absolute; top: -.5rem; left: 50%; margin-left: 1.5rem; z-index: 2; font-family: var(--font-head); font-size: .9rem; background: var(--accent); color: #111827; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.process-step h3 { font-size: 1.25rem; }
.process-step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Проекти ---------- */
.project-card { background: var(--dark); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(249, 115, 22, .5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.project-card-media { position: relative; display: block; aspect-ratio: 10 / 7; overflow: hidden; background: #1e293b; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.08); }
.chip { position: absolute; left: 1rem; top: 1rem; background: rgba(15, 23, 42, .82); backdrop-filter: blur(8px); color: var(--accent); border: 1px solid rgba(249, 115, 22, .45); padding: .25rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.project-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-card-body .meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.project-card-body .meta i { color: var(--accent); margin-right: .35rem; }
.project-card-body h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.project-card-body h3 a { color: #fff; }
.project-card-body h3 a:hover { color: var(--accent); }
.project-card-body p { color: var(--muted); font-size: .95rem; flex: 1; }

/* ---------- Отзиви ---------- */
.testimonial-card { height: 100%; margin: 0; padding: 1.9rem; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s; }
.testimonial-card:hover { transform: translateY(-6px); border-color: rgba(249, 115, 22, .45); }
.stars { color: var(--accent); letter-spacing: .15em; margin-bottom: 1rem; font-size: 1.05rem; }
.testimonial-card blockquote { flex: 1; margin: 0 0 1.4rem; }
.testimonial-card blockquote p { color: #e2e8f0; font-size: 1.02rem; margin: 0; position: relative; }
.testimonial-card figcaption { display: flex; align-items: center; gap: .9rem; }
.testimonial-card figcaption strong { display: block; color: #fff; line-height: 1.2; }
.testimonial-card figcaption small { color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-600)); color: #111827; font-weight: 700; font-family: var(--font-head); font-size: 1.2rem; flex: none; }
.rating-summary { display: flex; align-items: center; justify-content: center; gap: 1.4rem; padding: 1.4rem; max-width: 460px; margin: 0 auto 3rem; }
.rating-summary strong { font-family: var(--font-head); font-size: 3.4rem; color: var(--accent); line-height: 1; }
.rating-summary .stars { margin: 0 0 .2rem; }
.rating-summary span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.accordion-metal { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--line); --bs-accordion-btn-color: #fff; --bs-accordion-active-bg: rgba(249, 115, 22, .08); --bs-accordion-active-color: var(--accent); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(249, 115, 22, .35); --bs-accordion-btn-bg: transparent; }
.accordion-metal .accordion-item { background: var(--glass); border: 1px solid var(--line); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-metal .accordion-button { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; padding: 1.15rem 1.4rem; box-shadow: none; }
.accordion-metal .accordion-button::after { filter: invert(1) brightness(1.4); }
.accordion-metal .accordion-button:not(.collapsed)::after { filter: invert(55%) sepia(80%) saturate(2000%) hue-rotate(350deg); }
.accordion-metal .accordion-body { color: var(--body); padding: .2rem 1.4rem 1.4rem; }

/* ---------- Контакти и форма ---------- */
.section-contact { background: radial-gradient(800px 400px at 0% 100%, rgba(249, 115, 22, .12), transparent 70%), var(--bg-deep); border-top: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact-list li, .contact-tile { display: flex; gap: 1rem; align-items: center; }
.contact-tile { padding: 1.2rem 1.4rem; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, transform .3s var(--ease); }
.contact-tile:hover { border-color: rgba(249, 115, 22, .5); transform: translateX(6px); }
.contact-list i, .contact-tile > i { width: 48px; height: 48px; display: grid; place-items: center; flex: none; border-radius: 14px; background: rgba(249, 115, 22, .12); color: var(--accent); border: 1px solid rgba(249, 115, 22, .3); font-size: 1.15rem; }
.contact-list small, .contact-tile small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list a, .contact-tile a, .contact-list span, .contact-tile span { color: #fff; font-weight: 500; }
.contact-list a:hover, .contact-tile a:hover { color: var(--accent); }
.quote-form { padding: 2rem; }
@media (max-width: 575.98px) { .quote-form { padding: 1.3rem; } }
.form-label { font-size: .88rem; color: #e2e8f0; font-weight: 500; margin-bottom: .35rem; }
.form-control, .form-select { background-color: rgba(15, 23, 42, .75); border: 1px solid rgba(255, 255, 255, .14); color: #fff; border-radius: 12px; padding: .75rem 1rem; }
.form-control::placeholder { color: #64748b; }
.form-control:focus, .form-select:focus { background-color: rgba(15, 23, 42, .95); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 .22rem rgba(249, 115, 22, .25); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #ef4444; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:not(:empty) { margin-bottom: 1rem; }
.alert { border-radius: 12px; border: 1px solid; }
.alert-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.alert-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.alert-warning { background: rgba(250, 204, 21, .1); border-color: rgba(250, 204, 21, .4); color: #fde68a; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; min-height: 280px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- Услуги (подробно) ---------- */
.service-row { display: grid; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.service-row:last-child { border-bottom: 0; }
@media (min-width: 992px) { .service-row { grid-template-columns: 1.1fr .9fr; gap: 4rem; } .service-row.flip .service-row-text { order: 2; } }
.service-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; margin-bottom: .6rem; }
.service-row-media { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); }
.service-row-media img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.service-row-media:hover img { transform: scale(1.06); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .7rem; color: #e2e8f0; }
.check-list i { color: var(--accent); margin-top: .25rem; }
.cta-band { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding: 2.4rem; border-radius: 24px; background: linear-gradient(120deg, rgba(249, 115, 22, .2), rgba(15, 23, 42, .9) 60%); border: 1px solid rgba(249, 115, 22, .35); }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .3rem; text-transform: uppercase; }
.cta-band p { margin: 0; color: #e2e8f0; }

/* ---------- Галерия ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.4rem; }
.filter-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.2rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: #e2e8f0; font-weight: 500; }
.filter-pill span { font-size: .75rem; background: rgba(255, 255, 255, .1); padding: .05rem .5rem; border-radius: 999px; }
.filter-pill:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #111827; font-weight: 600; }
.filter-pill.active span { background: rgba(0, 0, 0, .18); }
#galleryRoot { transition: opacity .25s; min-height: 40vh; }
#galleryRoot.is-loading { opacity: .35; pointer-events: none; }

.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 576px) { .masonry { column-count: 2; } }
@media (min-width: 992px) { .masonry { column-count: 3; } }
@media (min-width: 1400px) { .masonry { column-count: 4; } }
.masonry-item { display: block; position: relative; margin: 0 0 1rem; break-inside: avoid; border-radius: 14px; overflow: hidden; background: linear-gradient(110deg, #1e293b 30%, #273449 50%, #1e293b 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border: 1px solid var(--line); cursor: zoom-in; }
@keyframes shimmer { to { background-position: -200% 0; } }
.masonry-item img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.masonry-item:hover img { transform: scale(1.07); filter: brightness(.65); }
.masonry-cap { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem .9rem; font-size: .9rem; font-weight: 500; color: #fff; background: linear-gradient(0deg, rgba(11, 18, 32, .92), transparent); transform: translateY(100%); transition: transform .4s var(--ease); display: flex; gap: .6rem; align-items: center; }
.masonry-cap i { color: var(--accent); }
.masonry-item:hover .masonry-cap, .masonry-item:focus-visible .masonry-cap { transform: none; }
@media (hover: none) { .masonry-cap { transform: none; } }
.gallery-pager { margin-top: 2.5rem; }
.pagination-metal { gap: .4rem; flex-wrap: wrap; }
.pagination-metal .page-link { background: var(--glass); border: 1px solid var(--line); color: #e2e8f0; border-radius: 12px !important; min-width: 44px; text-align: center; }
.pagination-metal .page-link:hover { border-color: var(--accent); color: var(--accent); background: var(--glass); }
.pagination-metal .active .page-link { background: var(--accent); border-color: var(--accent); color: #111827; font-weight: 700; }
.pagination-metal .disabled .page-link { opacity: .4; background: transparent; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(5, 9, 18, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.lb.open { display: flex; opacity: 1; }
.lb-stage { max-width: 94vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 94vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); object-fit: contain; transition: opacity .2s; touch-action: pan-y; user-select: none; }
.lb-img.is-swapping { opacity: 0; }
.lb-cap { color: #e2e8f0; margin-top: 1rem; text-align: center; font-size: .98rem; max-width: 80ch; }
.lb-count { position: absolute; top: 1.1rem; left: 1.3rem; color: var(--muted); font-size: .9rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.3rem; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.lb-btn:hover { background: var(--accent); color: #111827; }
.lb-close { top: .9rem; right: 1rem; }
.lb-prev { left: .8rem; top: 50%; margin-top: -25px; }
.lb-next { right: .8rem; top: 50%; margin-top: -25px; }
.lb-spinner { position: absolute; width: 38px; height: 38px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.lb-lock { overflow: hidden; }

/* ---------- Страница на проект ---------- */
.project-main { display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; margin-bottom: 1rem; background: #1e293b; aspect-ratio: 3 / 2; }
.project-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.project-main:hover img { transform: scale(1.04); }
.project-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.project-thumbs a { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; display: block; cursor: zoom-in; background: #1e293b; }
.project-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-thumbs a:hover img { transform: scale(1.07); }
.project-facts { padding: 1.7rem; position: sticky; top: calc(var(--header-h) + 20px); }
.project-facts h2 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 1rem; }
.project-facts dl { margin: 0 0 1.4rem; }
.project-facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.project-facts dd { color: #fff; font-weight: 500; margin: 0 0 .9rem; }
.project-text { max-width: none; }

/* ---------- 404 ---------- */
.not-found { padding-top: calc(var(--header-h) + 6rem); min-height: 80vh; }
.nf-code { font-size: clamp(6rem, 22vw, 12rem); background: linear-gradient(135deg, var(--accent), #7c2d12); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; line-height: 1; }

/* ---------- Футър ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 4.5rem 0 1.5rem; position: relative; }
.site-footer::before { content: ''; position: absolute; top: -1px; left: 0; width: 160px; height: 3px; background: var(--accent); }
.footer-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; color: #fff; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-contact li { display: flex; gap: .8rem; margin-bottom: .8rem; color: var(--muted); }
.footer-contact i { color: var(--accent); margin-top: .3rem; }
.footer-contact a { color: #e2e8f0; }
.footer-contact a:hover { color: var(--accent); }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: #fff; font-size: 1.1rem; }
.social a:hover { background: var(--accent); color: #111827; transform: translateY(-3px); }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

.fab-call { position: fixed; left: 1rem; bottom: 1rem; z-index: 1020; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #fb923c, var(--accent-600)); color: #111827; font-size: 1.4rem; box-shadow: 0 12px 30px -8px rgba(249, 115, 22, .8); animation: pulse 2.4s infinite; }
.fab-call:hover { color: #111827; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); } 70% { box-shadow: 0 0 0 18px rgba(249, 115, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } }
.back-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15, 23, 42, .8); backdrop-filter: blur(10px); color: #fff; font-size: 1.2rem; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--accent); color: #111827; }

/* ---------- Анимации при скрол ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .page-hero { margin-bottom: 2.5rem; }
}
