:root {
  --bg-dark: #111318;
  --bg-dark-2: #1a1d24;
  --bg-blue: #2d8cff;
  --text-dark: #101316;
  --text-light: #ffffff;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(59, 130, 246, .15);
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f1f3f9;
  --border-light: #e5e8f0;
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-height: 124px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08), 0 24px 48px rgba(0,0,0,.12);
  --shadow-glow: 0 0 20px var(--accent-glow), 0 8px 32px rgba(59,130,246,.12);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text-dark); background: var(--bg-dark); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; overflow-x: hidden; overscroll-behavior-x: none; }
body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 12px; background: #fff; color: #101316; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 2001; font-weight: 600; }
.skip-link:focus { left: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

main { background: var(--surface); }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(17,19,24,.82);
  color: var(--text-light);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
body { padding-top: var(--header-height); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; height: 80px; }
.brand { font-weight: 800; letter-spacing: .3px; font-size: clamp(20px, 2.4vw, 24px); }
.nav { display: flex; justify-content: center; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; color: var(--text-light); opacity: .85;
  font-size: clamp(13px, 1.6vw, 15px); font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), opacity var(--transition), color var(--transition);
}
.nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav a.active { opacity: 1; background: rgba(255,255,255,.12); font-weight: 600; }
.header-tg {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(42,171,238,.15);
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.header-tg svg { width: 16px; height: 16px; fill: #2aabee; }
.header-tg:hover { background: rgba(42,171,238,.25); transform: scale(1.05); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #fff;
  position: relative; z-index: 40; font-size: 22px; padding: 0;
  cursor: pointer; transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }

/* ─── Sections ─── */
.section { padding: 80px 0; background: var(--surface); position: relative; }
.section { scroll-margin-top: calc(var(--header-height) + 20px); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-blue {
  background: linear-gradient(135deg, #1e6fd9 0%, #6d3cd8 50%, #8b5cf6 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.section-blue::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,.2) 0%, transparent 50%);
  pointer-events: none;
}

/* ─── Typography ─── */
h1 { margin: 0 0 20px; font-size: clamp(30px, 3.6vw, 44px); text-align: center; letter-spacing: -.02em; font-weight: 800; line-height: 1.15; }
h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); text-align: center; letter-spacing: -.01em; font-weight: 700; line-height: 1.2; }
h3 { margin: 24px 0 12px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; }
.lead { max-width: 840px; margin: 0 auto 8px; text-align: center; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.75; color: var(--muted); letter-spacing: .01em; }
.section-dark .lead { color: #b0b8c8; }
.section-blue .lead { color: rgba(255,255,255,.88); }
.cta-wrap { margin-top: 28px; }

/* ─── About List ─── */
.about-list { list-style: none; margin: 16px auto 0; padding: 0; max-width: 840px; }
.about-list li { position: relative; padding-left: 28px; margin: 10px 0; text-align: left; line-height: 1.6; }
.about-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--accent); font-weight: 700; }

/* ─── Hero Image ─── */
.wide-image {
  width: calc(100% - 48px); max-width: var(--container); height: 420px;
  margin: 32px auto 0; border-radius: var(--radius);
  background: linear-gradient(135deg, #1a1d24 0%, #2a2d34 100%);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59,130,246,.08);
  overflow: hidden;
}
.wide-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 30%; }

/* ─── Service Cards ─── */
.services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.service {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity var(--transition);
}
.service:hover::before { opacity: 1; }
.section-dark .service { background: var(--bg-dark-2); border-color: rgba(255,255,255,.08); }
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(59,130,246,.2);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(59,130,246,.25);
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.service h3 { margin: 0 0 10px; }
.service p { color: var(--muted); line-height: 1.7; margin: 0; }
.section-dark .service p { color: #9ca3af; }
.service ul { list-style: none; margin: 14px 0 0; padding: 0; color: var(--muted); }
.service ul li { padding-left: 22px; position: relative; margin: 8px 0; }
.service ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600; }
.service .btn-outline {
  margin-top: 16px; background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); box-shadow: none;
  transition: all var(--transition);
}
.service .btn-outline:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.3); }

/* ─── Review Cards ─── */
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.card {
  background: var(--surface); color: var(--text-dark);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.section-dark .card { background: var(--bg-dark-2); color: var(--text-light); border-color: rgba(255,255,255,.08); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59,130,246,.15);
}
.card-image { height: 200px; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); background-size: cover; background-position: center; }
.card-title { font-weight: 600; padding: 14px 16px 8px; }
.card-text { padding: 0 16px 16px; opacity: .9; }
.review-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.review-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-name { font-weight: 600; font-size: 15px; }
.review-rating { color: #f59e0b; letter-spacing: 2px; font-size: 15px; }
.review-text { color: var(--muted); line-height: 1.7; font-size: 14px; }
.section-dark .review-text { color: #b0b8c8; }
.review-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-light); font-size: 13px; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--border-light); }
.section-dark .review-footer { color: #6b7280; border-top-color: rgba(255,255,255,.06); }

/* ─── Carousel ─── */
.carousel {
  position: relative; width: calc(100% - 48px); max-width: var(--container);
  margin: 24px auto 0; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; height: 420px; background: #0a0c0f; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.carousel-slide { width: 100%; height: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; cursor: pointer; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.4); backdrop-filter: blur(8px);
  color: #fff; display: grid; place-items: center; font-size: 20px;
  transition: all var(--transition);
}
.carousel-btn:hover { background: rgba(0,0,0,.6); border-color: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.05); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; }
.carousel-dot {
  width: 10px; height: 10px; border-radius: 999px;
  border: none; background: rgba(255,255,255,.25); padding: 0; cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active { background: #fff; width: 28px; }
.carousel-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ─── Lightbox ─── */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 95vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
body.modal-open { overflow: hidden; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.social:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social.tg { background: linear-gradient(135deg,#2aabee,#229ed9); }
.social.wa { background: linear-gradient(135deg,#25d366,#1ebe5d); }
.social.vk { background: linear-gradient(135deg,#4c75a3,#3a5f85); }
.social.avito { background: #ffffff; color: #111; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.iti { width: 100%; }

/* ─── Features ─── */
.features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.feature {
  display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 18px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.section-dark .feature { background: var(--bg-dark-2); border-color: rgba(255,255,255,.06); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature h3 { grid-column: 2; margin: 0 0 6px; }
.feature p { grid-column: 2; color: var(--muted); line-height: 1.6; }
.section-dark .feature p { color: #9ca3af; }
.feature-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 32px;
  box-shadow: 0 4px 16px rgba(59,130,246,.25);
}

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed; bottom: 32px; right: 26px;
  width: 48px; height: 48px;
  --scroll-progress: 0%;
  --back-fill: var(--accent);
  background: conic-gradient(var(--accent-2) var(--scroll-progress), rgba(255,255,255,.12) 0);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform var(--transition);
  z-index: 900; cursor: pointer; border: none; font-size: 22px;
}
.back-to-top::before {
  content: ""; position: absolute; inset: 3px;
  background: var(--back-fill); border-radius: 50%;
}
.back-to-top > * { position: relative; z-index: 1; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); --back-fill: var(--accent-2); }

/* ─── CTA Inline Form ─── */
.cta-inline-form { max-width: 680px; margin: 24px auto 0; }
.cta-form-row {
  display: flex; gap: 10px; align-items: stretch;
}
.cta-form-row input {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.15);
  color: #fff; font-size: 16px; outline: none; transition: border-color .2s;
}
.cta-form-row input::placeholder { color: rgba(255,255,255,.6); }
.cta-form-row input:focus { border-color: #fff; background: rgba(255,255,255,.2); }
.cta-form-row .btn { white-space: nowrap; flex-shrink: 0; }
.cta-phone-alt {
  margin-top: 16px; font-size: 15px; opacity: .85;
}
.cta-phone-link { color: #fff; font-weight: 600; text-decoration: underline; margin-left: 6px; }
#cta-form-msg { margin-top: 10px; }

/* ─── Floating Action Buttons ─── */
.float-buttons {
  position: fixed; bottom: 92px; right: 24px;
  display: flex; flex-direction: column;
  background: rgba(24,28,32,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 28px; border: 1px solid rgba(255,255,255,.08);
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 899;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: background .2s, transform .2s;
}
.float-btn:hover { background: rgba(255,255,255,.1); transform: scale(1.08); }
.float-btn svg { width: 22px; height: 22px; }
.whatsapp-float svg { fill: #25d366; }
.telegram-float svg { fill: #2AABEE; }
.phone-float svg { fill: #f59e0b; }
.float-sep { width: 26px; height: 1px; background: rgba(255,255,255,.08); margin: 0 auto; }

@media (max-width: 768px) {
  .cta-form-row { flex-direction: column; }
  .cta-form-row .btn { width: 100%; }
  .float-buttons { bottom: 72px; right: 16px; padding: 5px; }
  .float-btn { width: 42px; height: 42px; }
  .float-btn svg { width: 20px; height: 20px; }
  .float-sep { width: 22px; }
}

/* ─── Scroll Animations ─── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Accordion ─── */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.accordion-item:hover { border-color: rgba(255,255,255,.15); }
.accordion-item.open { border-color: rgba(59,130,246,.3); box-shadow: 0 0 16px rgba(59,130,246,.08); }
.section:not(.section-dark) .accordion-item { border-color: var(--border-light); }
.section:not(.section-dark) .accordion-item:hover { border-color: #c5cad4; }
.section:not(.section-dark) .accordion-item.open { border-color: rgba(59,130,246,.3); box-shadow: 0 0 16px rgba(59,130,246,.06); }
.accordion-btn {
  width: 100%; background: transparent; border: 0;
  text-align: left; padding: 18px 20px;
  color: inherit; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: background var(--transition);
}
.accordion-btn:hover { background: rgba(59,130,246,.04); }
.section-dark .accordion-btn:hover { background: rgba(255,255,255,.04); }
.accordion-btn::after {
  content: "+"; opacity: .6; font-size: 22px; font-weight: 300;
  transition: transform var(--transition), opacity var(--transition);
  flex-shrink: 0; margin-left: 12px;
}
.accordion-item.open .accordion-btn::after { content: "−"; opacity: .9; }
.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
  padding: 0 20px; color: var(--muted);
}
.section-dark .accordion-content { color: #b0b8c8; }
.accordion-content a { color: var(--accent); }
.accordion-content a:hover { text-decoration: underline; }
.accordion-item.open .accordion-content { max-height: 1000px; padding-bottom: 18px; }

/* ─── Form ─── */
.form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form label { font-weight: 600; font-size: 14px; color: var(--text-dark); }
.form input, .form textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}
.form input:focus, .form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  outline: none;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 20px;
  background: var(--accent); color: #fff; border: 0;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 12px rgba(59,130,246,.2);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,.3); }
.btn:active { transform: translateY(0); }
.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(139,92,246,.3);
}
.btn-cta:hover { box-shadow: 0 10px 32px rgba(139,92,246,.4); }
.btn-telegram { background: linear-gradient(135deg, #0088cc, #0077b5); box-shadow: 0 4px 16px rgba(0,136,204,.25); }
.btn-telegram:hover { background: linear-gradient(135deg, #0077b5, #005fa3); box-shadow: 0 8px 24px rgba(0,136,204,.35); }
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 4px 16px rgba(37,211,102,.25); }
.btn-whatsapp:hover { background: linear-gradient(135deg, #22bf5b, #0f7a6d); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.btn-outline:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.25); }
.section-dark .btn-outline { color: #93c5fd; border-color: #93c5fd; }
.section-dark .btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
@media (max-width: 480px) {
  .form-actions { grid-template-columns: 1fr; }
}
.form-msg { margin-top: 12px; min-height: 18px; font-size: 14px; }

/* ─── Footer ─── */
.site-footer { background: #0a0c0f; color: #6b7280; padding: 56px 0 28px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-text { text-align: center; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #e5e7eb; margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.footer-col a { color: #6b7280; font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: #e5e7eb; }
.footer-brand { font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer-col > p { font-size: 14px; line-height: 1.6; }
/* ─── Telegram channel card (contacts page) ─── */
.tg-channel-card {
  display: flex; align-items: center; gap: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.tg-channel-info { flex: 1; }
.tg-channel-info h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.tg-channel-info h3 svg { width: 20px; height: 20px; fill: #2aabee; }
.tg-channel-name { color: #2aabee; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tg-channel-info p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; line-height: 1.5; }
.tg-channel-info ul { list-style: none; margin-bottom: 18px; padding: 0; }
.tg-channel-info ul li {
  color: var(--text-muted); font-size: 13px; margin-bottom: 5px;
  padding-left: 18px; position: relative;
}
.tg-channel-info ul li::before { content: "\2713"; position: absolute; left: 0; color: #22c55e; font-weight: 700; }
.tg-subscribe-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #2aabee; color: #fff !important;
  padding: 10px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.tg-subscribe-btn svg { width: 16px; height: 16px; fill: #fff; }
.tg-subscribe-btn:hover { background: #229ed9; }
.tg-channel-qr {
  flex-shrink: 0; width: 180px; height: 216px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); overflow: hidden;
}
.tg-channel-qr img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .tg-channel-card { flex-direction: column; text-align: center; padding: 24px; gap: 20px; }
  .tg-channel-info h3 { justify-content: center; }
  .tg-channel-info ul { text-align: left; }
  .tg-channel-qr { width: 170px; height: 203px; }
}

/* ─── Footer Telegram channel ─── */
.footer-tg-channel { margin-top: 10px; }
.footer-tg-channel a {
  display: flex !important; align-items: center; gap: 6px;
  color: #2aabee !important; font-weight: 600; font-size: 13px !important;
  margin-bottom: 2px;
}
.footer-tg-channel a svg { width: 14px; height: 14px; fill: #2aabee; flex-shrink: 0; }
.footer-tg-channel span { font-size: 11px; color: #4b5563; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px; text-align: center; font-size: 13px;
  display: flex; flex-direction: column; gap: 4px; color: #4b5563;
  word-break: break-word;
}

/* ─── Dropdown Navigation ─── */
.nav-dropdown { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: 4px; }
.nav-arrow { font-size: 10px; opacity: .5; transition: transform .2s, opacity .2s; }
.nav-dropdown:hover .nav-arrow { transform: rotate(180deg); opacity: .8; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(17,19,24,.96); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 8px 0; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-6px);
  transition: opacity .2s, visibility .2s, transform .2s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 1px rgba(255,255,255,.1);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 14px; font-weight: 450;
  border-bottom: 1px solid rgba(255,255,255,.04); white-space: nowrap;
  transition: background var(--transition), padding-left var(--transition);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: rgba(59,130,246,.1); padding-left: 24px; }

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  background: var(--surface-2); padding: 14px 0;
  font-size: 14px; color: var(--muted-light);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumbs a { color: var(--accent); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumb-current { color: var(--text-dark); font-weight: 500; }

/* ─── Trust Grid ─── */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item {
  padding: 28px 16px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-number {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-label { font-size: 14px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.section-dark .trust-item { background: var(--bg-dark-2); border-color: rgba(255,255,255,.06); }
.section-dark .trust-label { color: #9ca3af; }

/* ─── Work Steps ─── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.step-card {
  text-align: center; padding: 28px 16px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform var(--transition), background var(--transition);
}
.step-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.06); }
.section:not(.section-dark) .step-card { background: var(--surface-2); border-color: var(--border-light); }
.section:not(.section-dark) .step-card:hover { background: var(--surface-3); }
.step-icon { font-size: 36px; margin-bottom: 14px; }
.step-card h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.step-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.section-dark .step-card p { color: #9ca3af; }

/* ─── Brands Grid ─── */
.brands-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.brand-logo-item {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 28px; background: var(--surface-2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius); font-weight: 700; font-size: 16px;
  color: var(--text-dark);
  transition: all var(--transition);
}
.brand-logo-item:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.section-dark .brand-logo-item { background: var(--bg-dark-2); border-color: rgba(255,255,255,.08); color: #e5e7eb; }
.section-dark .brand-logo-item:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Price Table ─── */
.price-table-wrap { margin: 24px 0; }
.price-table-wrap h3 { margin: 32px 0 16px; font-size: 20px; }
.price-table-wrap:first-child h3 { margin-top: 0; }
.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.section-dark .price-table { box-shadow: 0 4px 16px rgba(0,0,0,.3); border-color: rgba(255,255,255,.06); }
.price-table thead { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.price-table th { padding: 14px 20px; text-align: left; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.price-table td { padding: 14px 20px; border-bottom: 1px solid var(--border-light); font-size: 15px; }
.section-dark .price-table td { border-bottom-color: rgba(255,255,255,.06); }
.price-table tbody tr { background: var(--surface); transition: background var(--transition); }
.section-dark .price-table tbody tr { background: var(--bg-dark-2); }
.price-table tbody tr:hover { background: var(--surface-2); }
.section-dark .price-table tbody tr:hover { background: rgba(255,255,255,.04); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-cell { font-weight: 700; color: var(--accent); white-space: nowrap; }
.section-dark .price-cell { color: #93c5fd; }

/* ─── Error Code Table ─── */
.error-table .error-code {
  font-weight: 700; font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 15px; color: #ef4444; white-space: nowrap; width: 80px;
  background: rgba(239,68,68,.08); padding: 4px 10px; border-radius: 6px;
}
.section-dark .error-table .error-code { color: #f87171; background: rgba(248,113,113,.1); }
.error-brand-section { margin-bottom: 40px; }
.error-brand-section h3 { text-align: left; }
.error-brand-section h3 a { color: var(--accent); }
.error-brand-section h3 a:hover { text-decoration: underline; }

/* ─── CTA Section ─── */
.cta-section { padding: 72px 0; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 12px; }
.btn-outline-white {
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.4);
  color: #fff; box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: rgba(255,255,255,.2); border-color: #fff; box-shadow: none; }

/* ─── Service Card Link ─── */
.service-card-link { text-decoration: none; color: inherit; display: block; }
.service-card-link:hover .service {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(59,130,246,.2);
}
.service-card-link:hover .service::before { opacity: 1; }

/* ─── Service Price Badge ─── */
.service-price {
  display: inline-block; margin-top: 14px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: 20px; font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 8px rgba(59,130,246,.2);
}

/* ─── Brand Info Grid ─── */
.brand-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.brand-info-card {
  padding: 28px; background: var(--surface-2);
  border-radius: var(--radius); border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.brand-info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.brand-info-card h3 { margin: 0 0 10px; font-size: 17px; color: var(--accent); }
.brand-info-card p { color: var(--muted); line-height: 1.65; margin: 0; font-size: 14px; }
.brand-country { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* ─── Requisites ─── */
.requisites { max-width: 500px; margin: 0 auto; text-align: center; }
.requisites p { margin: 4px 0; color: var(--muted); }

/* ─── About Content ─── */
.about-content { margin-top: 36px; }
.about-features { margin-top: 36px; }

/* ─── Hero Section Enhancement ─── */
.hero-section { padding-bottom: 60px; }
.hero-section .page-title {
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-section { padding: 48px 0; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 992px) {
  :root { --header-height: 168px; }
}

@media (max-width: 920px) {
  .header-tg { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 12px; right: 12px;
    background: rgb(17,19,24);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 8px 0; z-index: 30;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1), visibility .25s;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow-x: hidden; overflow-y: auto; max-height: 70vh;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a, .nav .nav-dropdown > a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    width: 100%; border-radius: 0;
  }
  .nav a:last-child { border-bottom: none; }
  .nav a:hover { background: transparent; opacity: .85; }
  .nav a:active { background: rgba(59,130,246,.1); }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu {
    position: static !important;
    transform: none !important; -webkit-transform: none !important;
    left: auto !important; top: auto !important;
    background: rgba(255,255,255,.02);
    border: none; border-radius: 0;
    box-shadow: none; padding: 0; min-width: auto;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .2s ease, visibility .2s;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 600px; opacity: 1; visibility: visible;
    transform: none !important; -webkit-transform: none !important;
  }
  .nav-dropdown > a .nav-arrow {
    transition: transform .25s ease;
  }
  .nav-dropdown.open > a .nav-arrow {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu a {
    padding-left: 44px; font-size: 14px;
    white-space: normal;
    transform: none !important; -webkit-transform: none !important;
  }
  .nav-dropdown-menu a:hover { background: transparent; padding-left: 44px; }
  .services { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .carousel-track { height: 320px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { gap: 16px; height: 72px; }
  .brand { font-size: 20px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  #feedback { padding-bottom: 120px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .lead { font-size: 15px; line-height: 1.65; }
  .wide-image { height: 240px; }
  .services { gap: 16px; }
  .service { padding: 22px; }
  .service-icon { width: 44px; height: 44px; }
  .service-icon svg { width: 22px; height: 22px; }
  .social { width: 40px; height: 40px; }
  .map-wrap iframe { height: 220px; }
  .feature { grid-template-columns: 56px 1fr; padding: 22px; }
  .feature-icon { width: 56px; height: 56px; font-size: 26px; border-radius: 14px; }
  .accordion-btn { padding: 16px 18px; font-size: 16px; }
  .carousel-track { height: 240px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-item { padding: 20px 12px; }
  .trust-number { font-size: 28px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step-card { padding: 20px 14px; }
  .cta-section { padding: 48px 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 360px; }
  .price-table th, .price-table td { padding: 10px 14px; font-size: 14px; }
  .brand-info-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 18px; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  :root { --header-height: 140px; }
  .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 19px; font-size: 18px; }
}

@media (min-width: 1200px) {
  .section { padding: 96px 0; }
  .lead { max-width: 960px; font-size: 19px; line-height: 1.8; }
  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  h3 { font-size: 24px; }
  .nav { gap: 2px; }
  .container { padding: 0 32px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .wide-image { height: 520px; }
  .cards { gap: 28px; }
  .feature { padding: 32px; }
  .service { padding: 32px; }
  .card-text { font-size: 15px; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; }
}

/* ─── Error codes: Level 1 — brand cards ─────────────────────────────── */

.error-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.error-brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.error-brand-card:hover {
  box-shadow: 0 8px 24px rgba(37,99,235,.12);
  transform: translateY(-3px);
  border-color: #2563eb;
}
.error-brand-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.error-brand-card-top h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #1e293b;
}
.error-brand-country {
  font-size: .85rem;
  color: #94a3b8;
}
.error-brand-desc {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.5;
  flex: 1;
  margin: 0 0 16px;
}
.error-count-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  align-self: flex-start;
}

/* ─── Error codes: Level 2 — brand error table ───────────────────────── */

.error-table-linked a {
  color: inherit;
  text-decoration: none;
}
.error-table-linked a:hover {
  color: #2563eb;
}
.error-code-link {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  color: #dc2626 !important;
  font-size: 1rem;
}
.error-desc-link {
  display: block;
  color: #475569 !important;
  line-height: 1.5;
}
.error-desc-link:hover {
  color: #2563eb !important;
}
.severity-cell {
  white-space: nowrap;
}
.severity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}
.severity-critical {
  background: #fef2f2;
  color: #dc2626;
}
.severity-warning {
  background: #fffbeb;
  color: #d97706;
}
.severity-info {
  background: #eff6ff;
  color: #2563eb;
}

/* ─── Error codes: Level 3 — article page ────────────────────────────── */

.error-article {
  padding-top: 2rem;
  padding-bottom: 1rem;
  background: #fff;
  color: #1e293b;
}
.error-article .container {
  max-width: 800px;
}
.error-article-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 1.5rem;
}
.error-code-large {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2.8rem;
  font-weight: 800;
  color: #dc2626;
  background: #fef2f2;
  border-radius: 16px;
  padding: 12px 20px;
  line-height: 1;
  flex-shrink: 0;
}
.error-article-title-wrap {
  flex: 1;
}
.error-article-title-wrap h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #1e293b;
}
.error-article-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.error-section {
  margin-bottom: 2rem;
}
.error-section h2 {
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: .75rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}
.error-causes-list {
  list-style: disc;
  padding-left: 1.5rem;
}
.error-causes-list li {
  padding: 6px 0;
  color: #475569;
  line-height: 1.6;
}
.error-steps-list {
  padding-left: 1.5rem;
}
.error-steps-list li {
  padding: 8px 0;
  color: #475569;
  line-height: 1.6;
}
.error-steps-list li::marker {
  font-weight: 700;
  color: #2563eb;
}

/* Warning box: "when to call a master" */
.error-warning-box {
  display: flex;
  gap: 16px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 2rem 0;
}
.error-warning-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.error-warning-content strong {
  display: block;
  color: #92400e;
  margin-bottom: 6px;
  font-size: 1rem;
}
.error-warning-content p {
  color: #78350f;
  margin: 0;
  line-height: 1.6;
}

/* Price box */
.error-price-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 2rem 0;
  text-align: center;
}
.error-price-label {
  font-size: .9rem;
  color: #64748b;
  margin-bottom: 6px;
}
.error-price-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #16a34a;
}
.error-price-note {
  font-size: .85rem;
  color: #94a3b8;
  margin: 8px 0 0;
}

/* Prev/Next navigation */
.error-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.error-nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: #2563eb;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .2s;
}
.error-nav-link:hover {
  background: #eff6ff;
}
.error-nav-all {
  color: #64748b;
  font-weight: 500;
}

/* ─── Responsive for error pages ─────────────────────────────────────── */

@media (max-width: 768px) {
  .error-brands-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .error-brand-card {
    padding: 18px;
  }
  .error-article-header {
    flex-direction: column;
    gap: 12px;
  }
  .error-code-large {
    font-size: 2rem;
    padding: 10px 16px;
  }
  .error-article-title-wrap h1 {
    font-size: 1.25rem;
  }
  .error-warning-box {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  .error-nav {
    flex-direction: column;
    gap: 8px;
  }
  .error-nav-link {
    text-align: center;
    width: 100%;
  }
}
