:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-tint: #ebf3fc;
  --navy: #0f2544;
  --navy-2: #1c365d;
  --blue: #1565c0;
  --blue-hover: #0d47a1;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff4ed;
  --green: #0f9d58;
  --green-soft: #ecfdf5;
  --text: #1e293b;
  --muted: #5b6b80;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(15, 37, 68, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 37, 68, 0.08);
  --shadow-lg: 0 22px 50px rgba(15, 37, 68, 0.12);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Demo banner */
.demo-bar {
  background: var(--navy);
  color: #e2ecf8;
  font-size: 13px;
  padding: 8px 0;
}

.demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.demo-bar a {
  color: #93c5fd;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #0d47a1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(21, 101, 192, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.phone-link {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--blue);
  text-decoration: none;
}

.phone-hours {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 16px 20px 22px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-menu-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  padding: 6px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.16s, transform 0.12s, box-shadow 0.16s, border-color 0.16s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.24);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
}

.btn-blue {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.22);
}

.btn-blue:hover {
  background: var(--blue-hover);
}

.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--bg-soft);
}

.btn-soft {
  background: var(--bg-tint);
  color: var(--blue);
}

.btn-soft:hover {
  background: #dceafa;
}

.btn-sm {
  padding: 9px 15px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d7e6f9;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.14;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 17px;
  color: var(--muted);
  max-width: 580px;
}

.hero-lead strong {
  color: var(--navy);
}

.trust-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.trust-chip svg {
  flex-shrink: 0;
  color: var(--green);
}

/* Inline hero form */
.hero-form-card {
  background: #ffffff;
  border: 1px solid #d8e5f5;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.hero-form-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
}

.hero-form-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--navy);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

textarea.field {
  height: auto;
  min-height: 86px;
  padding: 12px 14px;
  resize: vertical;
}

.hero-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  cursor: pointer;
  margin-top: 10px;
}

.consent-label input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.offer-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--navy-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-head {
  margin-bottom: 32px;
  max-width: 720px;
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sec-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.sec-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.sec-desc {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* Appliance category cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.cat-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.14s;
}

.cat-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cat-card.active {
  border-color: var(--blue);
  background: #f5f9ff;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.cat-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a2332;
  position: relative;
}

.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cat-card:hover .cat-photo img {
  transform: scale(1.05);
}

.cat-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cat-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

.cat-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.cat-price {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

/* Hands.ru style price & symptoms explorer */
.tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tab-btn {
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.price-list-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafd;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.price-list-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.price-badge-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.price-rows {
  divide-y: 1px solid var(--border);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.14s;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: #f9fbff;
}

.price-row-main {
  min-width: 0;
}

.price-symptom {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.price-work {
  font-size: 13px;
  color: var(--muted);
}

.price-row-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-action {
  border: 1px solid #d5e4f7;
  background: var(--bg-tint);
  color: var(--blue);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s;
}

.price-action:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

/* Diagnostics side card */
.diag-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 94px;
}

.diag-card h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.diag-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.diag-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.diag-list strong {
  color: var(--navy);
  white-space: nowrap;
}

.diag-free {
  color: var(--green) !important;
}

.diag-box-note {
  background: #f8fafd;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Quiz */
.quiz-shell {
  background: #ffffff;
  border: 1.5px solid #d5e4f7;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.quiz-step-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quiz-progress {
  width: 100%;
  height: 7px;
  background: #e6eef8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--blue), #2196f3);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quiz-question {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-opt {
  border: 1.5px solid var(--border);
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.14s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quiz-opt:hover {
  border-color: var(--blue);
  background: #f5f9ff;
}

.quiz-opt.selected {
  border-color: var(--blue);
  background: #ebf3fc;
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.quiz-summary-box {
  background: #f4f8fe;
  border: 1px solid #d4e4f7;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.quiz-summary-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Photo diagnostic block */
.photo-diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.photo-info-card {
  background: linear-gradient(135deg, var(--navy) 0%, #193a6b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photo-info-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.photo-info-card p {
  color: #d6e4f7;
  margin: 0 0 18px;
}

.photo-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #eef5ff;
}

.photo-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.messenger-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-msg-max {
  background: #ffffff;
  color: var(--navy);
}

.btn-msg-max:hover {
  background: #eef5ff;
}

.btn-msg-tg {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-msg-tg:hover {
  background: rgba(255, 255, 255, 0.24);
}

.photo-upload-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.dropzone {
  border: 2px dashed #bdd4f2;
  background: #f8fbff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover {
  border-color: var(--blue);
  background: #eef5ff;
}

.dropzone input {
  display: none;
}

.dropzone-preview {
  display: none;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dropzone-preview.show {
  display: flex;
}

.dropzone-preview img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Complex services + exclusions */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.spec-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.spec-card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.spec-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.exclusions-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid #94a3b8;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.exclusions-box h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.exclusions-box p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 820px;
}

/* Brands */
.brands-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-pill {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-2);
  letter-spacing: 0.01em;
}

/* Advantages & About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.adv-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.adv-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.adv-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.gallery-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-cap {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

.payment-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.payment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pay-tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-author {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
}

.review-source {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--bg-tint);
  padding: 3px 9px;
  border-radius: 999px;
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 14px;
}

.review-text {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.review-meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}

/* QR vCard section */
.vcard-box {
  background: linear-gradient(135deg, #f4f8fe 0%, #ffffff 100%);
  border: 1.5px solid #d5e4f7;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.qr-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.qr-panel canvas, .qr-panel svg {
  margin: 0 auto 10px;
  display: block;
}

.qr-hint {
  font-size: 12.5px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 46px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-list a {
  color: #cbd5e1;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom a {
  color: #93c5fd;
}

/* Floating mobile action bar */
.mobile-fab {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 24px rgba(15, 37, 68, 0.1);
}

.mobile-fab-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.75fr 0.75fr;
  gap: 8px;
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.fab-call {
  background: var(--green);
  color: #ffffff;
}

.fab-order {
  background: var(--accent);
  color: #ffffff;
}

.fab-msg {
  background: var(--bg-tint);
  color: var(--blue);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 37, 68, 0.56);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 470px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.modal-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  padding-right: 32px;
}

.modal-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Telegram / MAX notification preview */
.lead-preview-box {
  background: #f0f6ff;
  border: 1px solid #c7defc;
  border-radius: 14px;
  padding: 16px;
  font-size: 13.5px;
  color: var(--navy);
  white-space: pre-line;
  margin: 14px 0;
  font-family: var(--font);
}

/* Legal pages */
.legal-page {
  padding: 44px 0 70px;
  background: var(--bg-soft);
  min-height: calc(100vh - 200px);
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--navy);
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: 19px;
  color: var(--navy);
}

.legal-card p, .legal-card li {
  color: var(--text);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .hero-grid, .catalog-layout, .photo-diag-grid, .about-grid, .vcard-box {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .diag-card {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 68px;
  }
  .header-actions .btn {
    display: none;
  }
  .hero {
    padding: 24px 0 38px;
  }
  .section {
    padding: 44px 0;
  }
  .trust-chips, .form-grid-3, .form-grid-2, .cat-grid, .spec-grid, .adv-grid, .reviews-grid, .gallery-stack, .footer-grid {
    grid-template-columns: 1fr;
  }
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .price-row-right {
    width: 100%;
    justify-content: space-between;
  }
  .quiz-shell, .photo-info-card, .photo-upload-card, .vcard-box {
    padding: 20px;
  }
  .mobile-fab {
    display: block;
  }
}

/* Avito reviews header & auto-sync badges */
.avito-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.avito-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fefce8;
  border: 1px solid #fde047;
  color: #854d0e;
  font-size: 14px;
  font-weight: 800;
}

.btn-avito {
  background: #00aaff;
  color: #ffffff;
  border: 1.5px solid #00aaff;
  box-shadow: 0 8px 18px rgba(0, 170, 255, 0.22);
}

.btn-avito:hover {
  background: #0092dc;
  border-color: #0092dc;
  color: #ffffff;
}

.review-source-avito {
  background: #e0f5ff;
  color: #0277bd;
  font-weight: 700;
  text-decoration: none;
}

.review-source-avito:hover {
  background: #bae6fd;
}

.review-reply {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fd;
  border-left: 3px solid var(--blue);
  font-size: 13px;
  color: var(--navy-2);
}

.reviews-more-wrap {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* =========================================================
   REAL REPAIR WORKS GALLERY & LIGHTBOX
   ========================================================= */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.work-filter-btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.work-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.work-filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.work-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.work-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bfd6f2;
}

.work-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.work-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-item:hover .work-thumb-wrap img {
  transform: scale(1.05);
}

.work-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 37, 68, 0.86);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.work-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-item:hover .work-zoom-hint {
  opacity: 1;
  transform: scale(1.08);
}

.work-meta {
  padding: 13px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.work-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy);
}

.work-desc {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.42;
  color: var(--muted);
}

.work-gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* Lightbox */
.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 17, 32, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 64px;
}

.work-lightbox[hidden] {
  display: none !important;
}

.work-lb-stage {
  max-width: 980px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.work-lb-stage img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: #0b1320;
  object-fit: contain;
}

.work-lb-info {
  width: 100%;
  max-width: 720px;
  background: rgba(15, 37, 68, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 18px;
  color: #f8fafc;
}

.work-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.work-lb-tag {
  display: inline-block;
  background: rgba(234, 88, 12, 0.22);
  color: #fdba74;
  border: 1px solid rgba(253, 186, 116, 0.35);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.work-lb-counter {
  font-size: 12.5px;
  color: #cbd5e1;
  font-weight: 700;
}

.work-lb-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.work-lb-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.work-lb-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 37, 68, 0.8);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.15s ease;
}

.work-lb-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.work-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 37, 68, 0.78);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.15s ease;
}

.work-lb-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.work-lb-prev { left: 16px; }
.work-lb-next { right: 16px; }

@media (max-width: 1024px) {
  .work-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .work-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .work-meta {
    padding: 10px 10px 12px;
  }
  .work-title {
    font-size: 13px;
  }
  .work-desc {
    font-size: 11.8px;
  }
  .work-lightbox {
    padding: 16px 12px;
  }
  .work-lb-nav {
    width: 38px;
    height: 38px;
    font-size: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .work-lb-prev { left: 16px; }
  .work-lb-next { right: 16px; }
  .work-lb-stage img {
    max-height: 58vh;
  }
}


/* =========================================================
   UNIVERSAL RESPONSIVE SYSTEM (ALL DEVICES & VIEWPORTS)
   Desktop 1440+ | Laptop 1024-1240 | Tablet 768 | Mobile 320-640
   ========================================================= */
html, body {
  overflow-x: clip;
}

main, section, .container, .hero-grid > *, .about-grid > *, .catalog-layout > *, .photo-diag-grid > *, .vcard-box > * {
  min-width: 0;
}

/* Smooth anchor scrolling offset for sticky header */
section[id] {
  scroll-margin-top: 84px;
}

/* Prevent iOS auto-zoom on form fields & improve touch comfort */
@media (hover: none) and (pointer: coarse) {
  input, select, textarea, .field {
    font-size: 16px !important;
  }
}

/* Modal scrolling on short landscape / mobile keyboard viewports */
.modal-backdrop {
  padding: 16px;
}

.modal-card {
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Safe-area support for modern iPhones / Android gesture bars */
.mobile-fab {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

/* 1. Compact Laptop / Small Desktop (1121px - 1240px) */
@media (max-width: 1240px) {
  .header-inner {
    gap: 12px;
  }
  .nav {
    gap: 14px;
  }
  .nav a {
    font-size: 13.5px;
    white-space: nowrap;
  }
  .phone-link {
    font-size: 15.5px;
    white-space: nowrap;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand-sub {
    font-size: 11px;
  }
}

/* 2. Switch to burger earlier so 7-link nav never wraps or crowds */
@media (max-width: 1120px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
}

/* 3. Tablet & Landscape Phone (<= 1024px) */
@media (max-width: 1024px) {
  .sec-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .vcard-box {
    text-align: center;
  }
  .vcard-box > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .qr-wrap, .vcard-qr {
    margin-left: auto;
    margin-right: auto;
  }
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 4. Tablet Portrait / Large Mobile (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 40px 0;
  }
  section[id] {
    scroll-margin-top: 70px;
  }
  .hero {
    padding: 20px 0 34px;
  }
  .hero h1 {
    font-size: clamp(24px, 6.2vw, 32px);
  }
  .sec-title {
    font-size: clamp(22px, 5.5vw, 28px);
  }
  /* Horizontal swipeable tabs & gallery filters on mobile */
  .tabs-bar,
  .work-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding-bottom: 4px;
    margin-left: -2px;
    padding-left: 2px;
  }
  .tabs-bar::-webkit-scrollbar,
  .work-filters::-webkit-scrollbar {
    display: none;
  }
  .tabs-bar > *,
  .work-filters > * {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .mobile-menu {
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .legal-card {
    padding: 20px 16px;
    overflow-wrap: anywhere;
  }
}

/* 5. Standard Smartphones (<= 540px) */
@media (max-width: 540px) {
  .header-inner {
    min-height: 62px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 14px;
    white-space: nowrap;
  }
  .brand-sub {
    display: none;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .phone-hours {
    display: none;
  }
  .phone-link {
    font-size: 13.5px;
    white-space: nowrap;
  }
  .hero-stats-bar {
    gap: 8px;
  }
  .hero-stat {
    padding: 10px 8px;
  }
  .hero-stat strong {
    font-size: 16px;
  }
  .hero-stat span {
    font-size: 11px;
  }
  .avito-head-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
  .sec-head-row > .btn {
    width: 100%;
  }
  .avito-rating-badge,
  .avito-head-actions .btn-avito {
    justify-content: center;
    width: 100%;
  }
  .quiz-options {
    grid-template-columns: 1fr;
  }
  .quiz-nav {
    gap: 10px;
  }
  .quiz-nav .btn {
    flex: 1;
    justify-content: center;
  }
  .mobile-fab-grid {
    grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr;
    gap: 6px;
  }
  .mobile-fab a,
  .mobile-fab button {
    font-size: 12.5px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .work-lb-info {
    padding: 12px 14px;
    margin-bottom: 44px;
  }
  .work-lb-title {
    font-size: 15px;
  }
  .work-lb-desc {
    font-size: 12.5px;
  }
}

/* 6. Compact Smartphones (<= 420px: iPhone SE / Android 360px / 320px) */
@media (max-width: 420px) {
  .work-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .work-meta {
    padding: 12px 14px 14px;
  }
  .work-title {
    font-size: 14.5px;
  }
  .work-desc {
    font-size: 12.8px;
  }
  .brand-title {
    font-size: 13px;
  }
  .phone-link {
    font-size: 12.5px;
  }
  .hero-form-card,
  .quiz-shell,
  .photo-info-card,
  .photo-upload-card,
  .vcard-box,
  .modal-card {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .brand-text {
    display: none;
  }
  .phone-link {
    font-size: 14px;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr;
  }
}

/* Brand 4-tile SVG logo in header */
.brand-icon.brand-icon-logo {
  background: transparent;
  box-shadow: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.brand-icon.brand-icon-logo img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 540px) {
  .brand-icon.brand-icon-logo {
    width: 38px;
    height: 38px;
  }
}
