/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0e17;
  --bg-alt: #0f1520;
  --card: #151c2c;
  --border: #1e2a3d;
  --text: #e8edf5;
  --text-muted: #8b9bb4;
  --primary: #3B93FF;
  --primary-hover: #2a7ae0;
  --accent: #6BABFF;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --header-h: 68px;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: .2s; }
a:hover { color: #93c5fd; }
.container { width: min(1120px, 92%); margin: 0 auto; }

.icon {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: .25s; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #1d4ed8); color: #fff;
  box-shadow: 0 4px 20px rgba(59,147,255,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #1e40af);
  transform: translateY(-2px); box-shadow: 0 6px 28px rgba(59,147,255,.45); color: #fff;
}
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--accent); background: rgba(59,147,255,.08); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-social { background: var(--card); border: 1px solid var(--border); color: var(--text); padding: 10px 16px; font-size: 14px; }
.btn-social:hover { border-color: var(--primary); background: rgba(59,147,255,.1); color: var(--accent); }
.btn-wa { background: #25d366; color: #fff; border: none; }
.btn-wa:hover { background: #1da851; color: #fff; }
.btn-viber { background: #7360f2; color: #fff; border: none; }
.btn-viber:hover { background: #5b4bcf; color: #fff; }
.btn-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; border: none; }
.btn-ig:hover { opacity: .9; color: #fff; }
.btn-tt { background: #010101; color: #fff; border: 1px solid #333; }
.btn-tt:hover { background: #111; color: #fff; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  width: 100%; max-width: 100vw; overflow-x: clip;
  background: rgba(10,14,23,.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px; color: var(--text);
  font-weight: 800; font-size: 18px; letter-spacing: .5px;
}
.logo:hover { color: var(--text); }
.logo-icon-svg { width: 28px; height: 28px; color: var(--primary); }
.logo-text span { color: var(--primary); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none; border: none; color: var(--text-muted); font-size: 14px;
  font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 4px;
  font-family: inherit; padding: 0;
}
.nav-dropdown > button:hover { color: var(--text); }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% - 4px); left: 0; margin-top: 0; padding-top: 12px;
  background: transparent; border: none; min-width: 220px; z-index: 100;
}
.nav-dropdown-menu-inner {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 0; box-shadow: var(--shadow);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--text-muted); font-size: 13px;
}
.nav-dropdown-menu a:hover { background: rgba(59,147,255,.1); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.lang-switcher {
  display: flex; background: var(--card); border-radius: 8px; padding: 2px;
  border: 1px solid var(--border); gap: 0;
}
.lang-btn, .lang-switcher a.lang-btn {
  background: transparent; border: none; color: var(--text-muted); font-size: 12px;
  font-weight: 700; padding: 6px 10px; border-radius: 6px; cursor: pointer; transition: .2s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 30px;
}
.lang-btn.active, .lang-btn:hover,
.lang-switcher a.lang-btn.active, .lang-switcher a.lang-btn:hover {
  background: var(--primary); color: #fff;
}
.header-phone-btn { border-radius: 8px; }
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  width: 40px; height: 40px; flex-shrink: 0; z-index: 1001;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s, opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.geo-shape { position: absolute; border-radius: 50%; opacity: .12; }
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -200px; right: -150px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  bottom: -100px; left: -100px;
}
.shape-3 { display: none; }
@keyframes float {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(20px, -30px) rotate(10deg); }
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; width: 100%;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.hero-visual .hero-key {
  position: relative; right: auto; top: auto; transform: none;
  width: min(320px, 100%); height: min(320px, 100%);
  opacity: 1; animation: heroKeyFloat2 10s ease-in-out infinite;
}
@keyframes heroKeyFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(10px, -16px) rotate(3deg); }
}
.btn-icon {
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-icon svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-tg {
  background: #2AABEE; color: #fff; border: none;
}
.btn-tg:hover { background: #229ED9; color: #fff; }

.hero-badge {
  display: inline-block; background: rgba(59,147,255,.15); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px; border: 1px solid rgba(59,147,255,.25);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15;
  margin-bottom: 18px; letter-spacing: -0.5px;
}
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-muted); }

.page-hero {
  padding: calc(var(--header-h) + 48px) 0 48px; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; }
.breadcrumb {
  display: flex; gap: 8px; font-size: 13px; color: var(--text-muted);
  margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: .3s; display: flex; flex-direction: column; color: inherit; text-decoration: none;
}
.service-card:hover {
  border-color: rgba(59,147,255,.4); transform: translateY(-4px); box-shadow: var(--shadow); color: inherit;
}
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(59,147,255,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 14px; flex: 1; }
.service-card .card-link {
  margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 6px;
}

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 24px 16px; }
.step-num { font-size: 2.4rem; font-weight: 800; color: var(--primary); opacity: .35; margin-bottom: 12px; line-height: 1; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

.pricing-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.pricing-table { width: 100%; border-collapse: collapse; background: var(--card); }
.pricing-table th, .pricing-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--border); }
.pricing-table th {
  background: rgba(59,147,255,.08); font-weight: 600; color: var(--accent);
  font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { font-weight: 700; color: var(--primary); white-space: nowrap; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 16px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.review-stars { color: #fbbf24; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.review-card footer { font-size: 13px; color: var(--text-muted); }
.reviews-cta { text-align: center; margin-top: 36px; }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--primary); flex-shrink: 0; transition: transform .35s cubic-bezier(.4,0,.2,1); display: inline-block; }
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-item[open] { border-color: rgba(59,147,255,.35); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.faq-item p {
  padding: 0 22px 18px; color: var(--text-muted); font-size: 14.5px;
  transition: opacity .4s ease, transform .4s ease;
}
.faq-item:not([open]) p { opacity: 0; transform: translateY(-8px); }
.faq-item[open] p { opacity: 1; transform: translateY(0); }
.faq-item {
  transition: border-color .35s ease, box-shadow .35s ease;
}

.contacts-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.master-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: .3s;
}
.master-card:hover { border-color: rgba(59,147,255,.35); }
.master-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.master-role { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.master-phone {
  font-size: 1.35rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.master-phone a { color: var(--text); }
.master-phone a:hover { color: var(--accent); }
.master-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-section { margin-top: 16px; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--card); aspect-ratio: 16/9; min-height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.service-content { max-width: 800px; }
.service-content h2 { font-size: 1.5rem; margin: 36px 0 16px; }
.service-content h3 { font-size: 1.15rem; margin: 24px 0 12px; }
.service-content p { color: var(--text-muted); margin-bottom: 16px; }
.service-content ul { margin: 0 0 20px 20px; color: var(--text-muted); }
.service-content li { margin-bottom: 8px; }
.service-cta-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin: 40px 0; text-align: center;
}
.service-cta-box h3 { margin-bottom: 12px; }
.service-cta-box p { color: var(--text-muted); margin-bottom: 20px; }
.service-cta-box .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.related-services { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-services h2 { font-size: 1.3rem; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-grid a {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; color: var(--text); font-size: 14px; font-weight: 500; transition: .2s;
}
.related-grid a:hover { border-color: var(--primary); color: var(--accent); }

.contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.contact-form h3 { margin-bottom: 24px; font-size: 1.25rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 15px; font-family: inherit; transition: .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,147,255,.15);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 14px; }

.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: auto;
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo-text {
  font-weight: 800; font-size: 18px; display: block; margin-bottom: 8px; color: var(--text);
}
.footer-brand .logo-text span { color: var(--primary); }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 280px; }
.footer-col h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-muted);
}
.footer-credit a { color: var(--text-muted); border-bottom: 1px solid transparent; transition: .2s; }
.footer-credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.floating-cta,
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}
.floating-cta > *,
.sticky-cta > * {
  pointer-events: auto;
}
.sticky-cta .btn {
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  min-width: 140px;
  justify-content: center;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.4); transition: .25s; color: #fff;
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab-wa { background: #25d366; }
.fab-call { background: var(--primary); }

.advantages {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0;
}
.advantage-item {
  display: flex; gap: 12px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px;
}
.advantage-item .icon { color: var(--primary); margin-top: 2px; }
.advantage-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.advantage-item span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h);
    left: 0; right: 0; width: auto; max-width: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 20px 16px; gap: 12px; max-height: calc(100vh - var(--header-h));
    overflow-y: auto; overflow-x: hidden; box-sizing: border-box;
  }
  .nav.open .nav-dropdown-menu {
    position: static; display: none; margin: 8px 0 0; box-shadow: none; border: none;
    background: transparent; padding-left: 12px;
  }
  .nav.open .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .burger { display: flex; }
  .header-phone-btn { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .contacts-page-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .map-wrap { min-height: 260px; aspect-ratio: 4/3; }
  .floating-cta, .sticky-cta { bottom: 16px; right: 16px; }
  .fab { width: 48px; height: 48px; }
}

.logo-img { height: 36px; width: auto; display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--text-muted); font-size: 13px;
  background: var(--card);
}
.nav-dropdown-menu-inner a:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.nav-dropdown-menu-inner a:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.nav-dropdown-menu a:hover { background: rgba(59,147,255,.1); color: var(--text); }
.portfolio-item img { border-radius: 0; }

/* Hero brand key icon */
.hero-key {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(280px, 32vw);
  height: min(280px, 32vw);
  opacity: .9;
  animation: heroKeyFloat 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.hero-key img, .hero-key svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(59,147,255,.35));
}
@keyframes heroKeyFloat {
  0%, 100% { transform: translateY(-50%) translate(0, 0) rotate(-2deg); }
  50% { transform: translateY(-50%) translate(12px, -18px) rotate(3deg); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
}

/* Highlight Anatoly contact on service pages */
.btn-anatoliy {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59,147,255,.15);
}
.master-card.highlight-master {
  border-color: rgba(59,147,255,.45);
  box-shadow: 0 0 0 1px rgba(59,147,255,.2);
}


.portfolio-caption strong { display: block; margin-bottom: 4px; color: var(--text); }
.portfolio-caption span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px;
}
.trust-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px;
}
.trust-card h3 { font-size: 15px; margin-bottom: 8px; color: var(--text); }
.trust-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.step-num {
  display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Service cards with icons */
.service-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: inherit;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  min-height: 200px;
}
.service-card:hover {
  border-color: rgba(59,147,255,.45); transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25); color: inherit;
}
.service-card .svc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(59,147,255,.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service-card .svc-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 14px; flex: 1; margin: 0 0 16px; line-height: 1.5; }
.service-card .card-link {
  font-size: 13px; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.service-card:hover .card-link { gap: 10px; }

/* Trust — less template */
.trust-section { position: relative; }
.trust-lead {
  max-width: 640px; margin: 0 auto 40px; text-align: center;
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.6;
}
.trust-list { display: grid; gap: 0; max-width: 800px; margin: 0 auto; }
.trust-row {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--border); align-items: start;
}
.trust-row:last-child { border-bottom: none; }
.trust-row .trust-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(59,147,255,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-row .trust-ico svg { width: 22px; height: 22px; }
.trust-row h3 { font-size: 1.05rem; margin-bottom: 6px; }
.trust-row p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* Process — unconventional timeline */
.process-track {
  position: relative; max-width: 720px; margin: 0 auto; padding-left: 32px;
}
.process-track::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--primary), transparent);
}
.process-item {
  position: relative; margin-bottom: 32px; padding-left: 24px;
}
.process-item:last-child { margin-bottom: 0; }
.process-item::before {
  content: ''; position: absolute; left: -32px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(59,147,255,.2);
}
.process-item .proc-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary); margin-bottom: 6px;
}
.process-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-item p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* Hours highlight block */
.hours-banner {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch;
  background: linear-gradient(135deg, rgba(59,147,255,.12), rgba(59,147,255,.04));
  border: 1px solid rgba(59,147,255,.3); border-radius: var(--radius);
  padding: 24px 28px; margin-top: 28px;
}
.hours-banner .hours-main { flex: 1; min-width: 200px; }
.hours-banner .hours-main strong {
  display: block; font-size: 1.25rem; color: var(--text); margin-bottom: 6px;
}
.hours-banner .hours-main span { color: var(--text-muted); font-size: 14px; }
.hours-banner .hours-emergency {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; min-width: 180px;
}
.hours-banner .hours-emergency strong {
  display: block; color: var(--primary); font-size: 1.4rem; margin-bottom: 4px;
}
.hours-banner .hours-emergency span { font-size: 13px; color: var(--text-muted); }

.address-block {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 20px; padding: 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.address-block .addr-text { flex: 1; min-width: 200px; }
.address-block .addr-text strong { display: block; margin-bottom: 4px; }
.address-block .addr-text span { color: var(--text-muted); font-size: 14px; }

.map-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Reviews marquee */
.reviews-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reviews-marquee {
  display: flex; gap: 20px; width: max-content;
  animation: reviewsScroll 45s linear infinite;
  cursor: grab;
  padding: 8px 0 16px;
}
.reviews-marquee:hover, .reviews-marquee.is-dragging {
  animation-play-state: paused;
}
.reviews-marquee .review-card {
  flex: 0 0 340px;
  max-width: 340px; min-width: 280px;
  margin: 0;
}
@keyframes reviewsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .reviews-marquee .review-card {
    flex: 0 0 min(85vw, 340px);
    max-width: min(85vw, 340px);
  }
}
.reviews-marquee-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
.reviews-marquee-wrap::-webkit-scrollbar { display: none; height: 0; }



.btn-phone-card {
  display: inline-flex; align-items: center; gap: 10px;
  text-align: left; line-height: 1.25;
}
.btn-phone-card .btn-phone-meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.btn-phone-card .btn-phone-name { font-size: 12px; opacity: .85; font-weight: 500; }
.btn-phone-card .btn-phone-num { font-size: 14px; font-weight: 700; }
.btn-phone-card svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero aligned to container */
.hero > .container.hero-inner,
.hero .hero-inner.container {
  width: min(1120px, 92%);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
.hero-content {
  width: 100%;
  max-width: 560px;
  justify-self: start;
}
@media (min-width: 901px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* overflow safety */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
.header .container {
  width: min(1120px, 92%);
  max-width: 100%;
  box-sizing: border-box;
}
.header-inner {
  max-width: 100%;
  box-sizing: border-box;
}
.floating-cta {
  max-width: calc(100vw - 32px);
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
}
.map-wrap {
  max-width: 100%;
  overflow: hidden;
}
.master-actions {
  max-width: 100%;
}
.contacts-page-grid {
  max-width: 100%;
}
.btn-phone-card {
  max-width: 100%;
}



/* Contacts page: content overflow only — header same as homepage */
body.page-contacts {
  overflow-x: hidden;
  max-width: 100%;
}
body.page-contacts main,
body.page-contacts .map-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

/* 404 error page */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  text-align: center;
  min-height: 60vh;
}
.error-page-inner {
  max-width: 520px;
}
.error-code {
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.error-page h1 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.error-page p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  line-height: 1.55;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
body.page-contacts iframe {
  max-width: 100%;
}
