/* ============================================================
   МастерПРО — Redesign v4.0 WOW
   Thumbtack × TaskRabbit × Airbnb · warm local services
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Manrope:wght@600;700;800&display=swap");

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --primary: #e85d3b;
  --primary-hover: #d14a2a;
  --primary-soft: #fde8e1;
  --mint: #2f9e7a;
  --mint-soft: #e6f5ef;
  --text: #1c1917;
  --text-secondary: #6b6560;
  --border: #e8e0d6;
  --gold: #d9a441;
  --danger: #dc2626;
  --warning: #d97706;
  --dark: #1c1917;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card:
    rgba(28, 25, 23, 0.03) 0 0 0 1px,
    rgba(28, 25, 23, 0.04) 0 2px 8px,
    rgba(28, 25, 23, 0.08) 0 8px 24px;
  --shadow-hover:
    rgba(28, 25, 23, 0.04) 0 0 0 1px,
    rgba(28, 25, 23, 0.08) 0 8px 28px,
    rgba(232, 93, 59, 0.12) 0 16px 40px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 68px;
  --cta-h: 64px;
  --max: 1140px;
  --ease: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text);
}
p { margin: 0 0 1em; color: var(--text-secondary); }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--primary); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  transition: transform var(--ease), background var(--ease), box-shadow var(--ease), border-color var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 24px rgba(232, 93, 59, 0.28);
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: transparent;
}
.btn-ghost:hover { background: rgba(28, 25, 23, 0.05); }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: 16px; }
.btn-full { width: 100%; }
.btn-dark {
  background: var(--dark); color: #fff;
}
.btn-dark:hover { background: #000; color: #fff; }

/* ----- Header ----- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(232, 224, 214, 0.7);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-mark { display: inline-flex; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
  letter-spacing: -0.03em; color: var(--text);
}
.nav {
  display: none; align-items: center; gap: 2px; margin-left: auto;
}
.nav a {
  padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: background var(--ease), color var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(28,25,23,0.05); }
.nav .nav-masters { color: var(--primary); font-weight: 600; }
.header-shift { margin-left: auto; flex: 0 0 auto; }
.header-shift button {
  min-height: 42px; padding: 9px 13px; border: 1px solid #d8d1ca;
  border-radius: 999px; background: #fff; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap;
  cursor: pointer; box-shadow: 0 3px 10px rgba(28,25,23,.06);
}
.header-shift button:focus-visible { outline: 3px solid rgba(232,93,59,.28); outline-offset: 2px; }
.header-shift__dot { width: 10px; height: 10px; border-radius: 50%; background: #a8a29e; flex: 0 0 auto; }
.header-shift.is-on-shift button { color: #176b3a; border-color: #9bd5b2; background: #eefbf3; }
.header-shift.is-on-shift .header-shift__dot { background: #22a45d; box-shadow: 0 0 0 4px rgba(34,164,93,.13); }
.header-cta {
  display: none;
  margin-left: 8px;
  padding: 10px 18px; min-height: 42px;
  background: var(--primary); color: #fff !important;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(232, 93, 59, 0.25);
}
.header-cta:hover { background: var(--primary-hover); color: #fff !important; }
.burger {
  margin-left: auto; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 12px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform var(--ease), opacity var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; align-items: center; }
  .burger { display: none; }
}

/* Mobile nav open */
@media (max-width: 899px) {
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover); padding: 12px;
    border: 1px solid var(--border);
  }
  .nav.is-open a { padding: 14px 16px; font-size: 16px; }
}

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 20px;
  background: var(--primary); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(232, 93, 59, 0.4);
}
@media (min-width: 900px) {
  .mobile-cta { display: none !important; }
}

/* Alerts / toast */
.alerts { max-width: var(--max); margin: 0 auto; padding: 12px 20px 0; }
.alert {
  padding: 14px 16px; border-radius: var(--radius);
  margin-bottom: 8px; font-weight: 500; font-size: 14px;
}
.alert-success { background: var(--mint-soft); color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #e0f2fe; color: #075985; }

/* ----- Layout ----- */
.page { min-height: 50vh; }
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 56px 20px;
}
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 800; margin-bottom: 12px;
}
.section-lead { font-size: 1.05rem; margin: 0; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 32px 20px 48px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(232, 93, 59, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(47, 158, 122, 0.1), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; gap: 36px; align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: 48px 20px 64px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  box-shadow: var(--shadow-card); margin-bottom: 18px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(47, 158, 122, 0.2);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 158, 122, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(47, 158, 122, 0.08); }
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px; line-height: 1.08;
}
.hero-title-accent {
  background: linear-gradient(120deg, var(--primary) 0%, #f08a4b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); max-width: 34em; margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
}

/* Hero visual stack */
.hero-visual { position: relative; min-height: 280px; }
.hero-card {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-card);
}
.hero-card--main {
  aspect-ratio: 4/5; max-height: 420px;
  background:
    linear-gradient(160deg, #2a2420 0%, #4a3f38 40%, #e85d3b 140%);
  display: flex; align-items: flex-end; padding: 24px;
  color: #fff; position: relative;
}
.hero-card--main::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,0.15), transparent 40%),
    linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
}
.hero-card--main img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85;
}
.hero-card-copy { position: relative; z-index: 1; }
.hero-card-copy strong { display: block; font-size: 1.25rem; font-family: var(--font-head); margin-bottom: 4px; }
.hero-card-copy span { font-size: 14px; opacity: 0.9; }
.hero-float {
  position: absolute; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float--price { right: 0; top: 12%; }
.hero-float--time { left: -8px; bottom: 18%; animation-delay: -1.5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-float-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.hero-float-value { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text); }

/* Metrics */
.metrics {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 8px 0;
}
@media (min-width: 768px) {
  .metrics-inner { grid-template-columns: repeat(4, 1fr); }
}
.metric {
  padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.metrics-inner .metric:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
  .metrics-inner .metric:nth-child(2n) { border-right: 1px solid var(--border); }
  .metrics-inner .metric:last-child { border-right: 0; }
}
.metric-value {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text);
  letter-spacing: -0.03em;
}
.metric-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-top: 4px; }

/* Steps */
.steps {
  display: grid; gap: 16px; counter-reset: step;
  list-style: none; padding: 0; margin: 0;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.step {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 28px 24px; box-shadow: var(--shadow-card);
  position: relative; transition: transform var(--ease), box-shadow var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; }

/* Categories */
.section-categories { padding-top: 40px; }
.categories-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.cat-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-xl);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cat-card-img {
  position: relative; aspect-ratio: 16/11;
  background: linear-gradient(145deg, #2c2622, #5a4a42 50%, var(--primary));
  overflow: hidden;
}
.cat-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: soft-light; opacity: 0.95;
}
.cat-card:nth-child(2) .cat-card-img {
  background: linear-gradient(145deg, #1a2f2a, #2f9e7a 70%, #8fd4b8);
}
.cat-card:nth-child(3) .cat-card-img {
  background: linear-gradient(145deg, #2a2218, #c47b2b 65%, #f0c27a);
}
.cat-card-price {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
  color: var(--text);
}
.cat-card-body { padding: 20px 20px 22px; }
.cat-card-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cat-card-body p {
  font-size: 14px; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--primary);
}

/* Why */
.why-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
.why-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: transform var(--ease);
}
.why-card:hover { transform: translateY(-3px); }
.why-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--primary);
  background: var(--primary-soft);
}
.why-icon--mint { background: var(--mint-soft); color: var(--mint); }
.why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { margin: 0; font-size: 14.5px; }

/* Reviews */
.reviews-grid {
  display: grid; gap: 16px;
}
@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
}
.review-stars { display: flex; gap: 2px; }
.review-text {
  margin: 0; font-size: 15px; color: var(--text); line-height: 1.55;
  flex: 1;
}
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  font-family: var(--font-head); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.review-avatar--2 { background: var(--mint-soft); color: var(--mint); }
.review-avatar--3 { background: #fef3c7; color: #b45309; }
.review-author strong { display: block; font-size: 14px; color: var(--text); }
.review-author span { font-size: 12px; color: var(--text-secondary); }

/* CTA band */
.section-cta { padding-top: 24px; padding-bottom: 24px; }
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #f08a4b 55%, #e85d3b 100%);
  border-radius: var(--radius-xl); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  color: #fff; box-shadow: 0 20px 50px rgba(232, 93, 59, 0.3);
}
@media (min-width: 700px) {
  .cta-box {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 40px 44px;
  }
}
.cta-box h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 8px; }
.cta-box p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-box .btn-primary {
  background: #fff; color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.cta-box .btn-primary:hover { background: #fff8f5; color: var(--primary-hover); }

/* Masters */
.masters-box {
  background: var(--dark); color: #fff;
  border-radius: var(--radius-xl); padding: 36px 28px;
  display: grid; gap: 24px;
}
@media (min-width: 800px) {
  .masters-box { grid-template-columns: 1.2fr 0.8fr; padding: 48px 44px; align-items: center; }
}
.masters-box .section-eyebrow { color: #f08a4b; }
.masters-box h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.masters-box p { color: rgba(255,255,255,0.72); }
.masters-list { display: grid; gap: 12px; margin: 18px 0 24px; }
.masters-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: rgba(255,255,255,0.88); font-size: 15px; font-weight: 500;
}
.masters-box .btn-outline {
  border-color: rgba(255,255,255,0.25); color: #fff;
}
.masters-box .btn-outline:hover {
  background: #fff; color: var(--dark); border-color: #fff;
}
.masters-panel {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 24px;
}
.masters-panel-stat {
  font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  color: #fff; letter-spacing: -0.03em;
}
.masters-panel-label { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Footer */
.footer {
  background: #14110f; color: rgba(255,255,255,0.7);
  margin-top: 40px; padding: 48px 20px 28px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.footer-text { font-size: 14px; color: rgba(255,255,255,0.55); margin: 0; max-width: 28em; }
.footer-col h4 {
  color: #fff; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max); margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* Empty */
.empty {
  text-align: center; padding: 40px 20px;
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* ===== ORDER FORM ===== */
.section-order { padding-top: 24px; }
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 20px;
}
.breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 600; }
.order-layout {
  display: grid; gap: 24px;
}
@media (min-width: 900px) {
  .order-layout { grid-template-columns: 1.35fr 0.85fr; align-items: start; }
}
.order-hero {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 20px;
}
.order-hero-img {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #2c2622, var(--primary));
  box-shadow: var(--shadow-card);
}
.order-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.order-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; }
.order-hero-desc { margin: 0; font-size: 14.5px; }
.order-form {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 28px 22px; box-shadow: var(--shadow-card);
}
@media (min-width: 600px) {
  .order-form { padding: 32px 28px; }
}
.order-form-title { font-size: 1.35rem; margin-bottom: 6px; }
.order-form-lead { margin-bottom: 22px; font-size: 14.5px; }
.form-row {
  display: grid; gap: 14px;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field { margin-bottom: 16px; }
.field-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.field-hint { font-size: 12.5px; color: var(--text-secondary); margin: 6px 0 0; }
.input, .textarea, select.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-family: var(--font-body); font-size: 15px;
  color: var(--text); transition: border-color var(--ease), box-shadow var(--ease);
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232, 93, 59, 0.15);
}
.field-error { border-color: var(--danger) !important; }
.errors { margin: 6px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 13px; }
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text-secondary); margin: 8px 0 18px;
  cursor: pointer;
}
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }
.form-actions { margin-top: 8px; }
.form-footnote { text-align: center; font-size: 13px; color: var(--text-secondary); margin: 12px 0 0; }

.photo-uploads { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .photo-uploads { grid-template-columns: 1fr 1fr; }
}
.photo-upload {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 16px; border-radius: var(--radius);
  border: 1.5px dashed var(--border); background: var(--bg);
  cursor: pointer; transition: border-color var(--ease), background var(--ease);
  min-height: 120px;
}
.photo-upload:hover { border-color: var(--primary); background: var(--primary-soft); }
.photo-upload input[type="file"] { font-size: 12px; max-width: 100%; }
.photo-upload-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--primary);
}
.photo-upload-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.photo-upload-status { font-size: 12px; color: var(--text-secondary); margin-top: auto; }
.photo-upload-status.is-set { color: var(--mint); font-weight: 600; }

.order-side { position: relative; }
.order-summary {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-card);
}
@media (min-width: 900px) {
  .order-summary { position: sticky; top: calc(var(--header-h) + 16px); }
}
.order-summary-head { margin-bottom: 12px; }
.order-summary-head h3 { margin: 0; font-size: 1.2rem; }
.order-summary-price {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.75rem; letter-spacing: -0.03em; margin-bottom: 8px;
}
.order-summary-unit { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-top: 4px; }
.order-summary-foot { font-size: 13px; margin-bottom: 16px; }
.order-summary-list { display: grid; gap: 10px; margin-bottom: 16px; }
.order-summary-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.order-summary-trust {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--radius);
  background: var(--mint-soft);
}
.order-summary-trust p { margin: 0; font-size: 13.5px; color: #166534; font-weight: 500; }
.order-summary-emoji { font-size: 20px; line-height: 1; }

.hp-field {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
  pointer-events: none !important;
}

/* ===== STATUS ===== */
.section-status { padding-top: 20px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; margin-bottom: 18px;
}
.back-link:hover { color: var(--primary); }
.status-head {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 14px; margin-bottom: 24px;
}
.status-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: var(--bg); color: var(--text-secondary);
}
.status-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.status-badge--pending { background: #fef3c7; color: #92400e; }
.status-badge--active { background: #dbeafe; color: #1d4ed8; }
.status-badge--done { background: var(--mint-soft); color: #166534; }
.status-badge--cancel { background: #fee2e2; color: #991b1b; }

.status-layout {
  display: grid; gap: 20px;
}
@media (min-width: 900px) {
  .status-layout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
}
.status-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 24px; box-shadow: var(--shadow-card); margin-bottom: 16px;
}
.status-card-title { font-size: 1.05rem; margin-bottom: 16px; }
.status-card-lead { font-size: 14.5px; margin-bottom: 16px; }
.status-detail-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .status-detail-grid { grid-template-columns: 1fr 1fr; }
}
.status-detail-item--full { grid-column: 1 / -1; }
.status-detail-label {
  display: block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary); margin-bottom: 4px;
}
.status-detail-value { font-size: 15px; font-weight: 600; color: var(--text); }
.status-detail-price { font-family: var(--font-head); font-size: 1.25rem; }
.status-detail-price-ceiling,
.status-detail-price-final {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-top: 2px;
}
.status-detail-foot { font-size: 12.5px; margin: 6px 0 0; }
.status-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px;
}
.status-photo {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg); text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card);
}
.status-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.status-photo-caption, .status-photo figcaption {
  display: block; padding: 8px 10px; font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
}
.status-rating-num { font-weight: 700; margin-left: 6px; }
.status-rating-hint { font-size: 12px; color: var(--text-secondary); font-weight: 500; margin-left: 4px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.timeline-item {
  position: relative; padding: 0 0 18px 22px;
  border-left: 2px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--surface);
}
.timeline-item--done .timeline-dot { background: var(--primary); }
.timeline-item--past .timeline-dot { background: var(--mint); }
.timeline-status { display: block; font-weight: 700; font-size: 14px; color: var(--text); }
.timeline-date { font-size: 12px; color: var(--text-secondary); }

.status-side-card {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 22px; box-shadow: var(--shadow-card); margin-bottom: 14px;
}
.status-side-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.status-side-card p { font-size: 14px; margin-bottom: 16px; }
.status-side-card--primary {
  background: linear-gradient(160deg, #1c1917 0%, #3d2e28 100%);
  color: #fff;
}
.status-side-card--primary h3 { color: #fff; }
.status-side-card--primary p { color: rgba(255,255,255,0.75); }
.status-side-card .btn + .btn { margin-top: 10px; }
.status-cancel-btn { color: var(--danger) !important; }

.star-input { display: flex; gap: 4px; }
.star-label { cursor: pointer; font-size: 28px; line-height: 1; }
.star-label input { position: absolute; opacity: 0; pointer-events: none; }
.star-label span { color: #ece4d9; transition: color 0.15s; }

/* Toast container (app.js) */
.toast-container {
  position: fixed; top: 16px; right: 16px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-hover);
  font-size: 14px; font-weight: 500; animation: toastIn 0.25s ease;
}
.toast-out { opacity: 0; transform: translateX(12px); transition: 0.3s; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.toast-success { border-left: 4px solid var(--mint); }
.toast-danger { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid #3b82f6; }

/* Admin/master/operator inherit safely */
.container, .container-narrow { max-width: var(--max); margin: 0 auto; padding: 20px; }
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-card);
}
.small, .caption, .text-secondary, .text-muted { color: var(--text-secondary); font-size: 13px; }

/* ============================================================
   Mobile viewport hardening
   Keep grid/flex children shrinkable on real 390 px viewports and
   neutralise intrinsic widths inherited from the legacy stylesheet.
   ============================================================ */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.page,
.header-inner,
.hero-inner,
.hero-content,
.hero-visual,
.hero-card,
.section,
.order-layout,
.order-main,
.order-side,
.order-form,
.order-summary,
.status-layout,
.status-main,
.status-side,
.categories-grid,
.cat-card,
.cat-card-body,
.steps,
.step,
.why-grid,
.why-card,
.reviews-grid,
.review-card,
.cta-box,
.masters-box,
.masters-panel {
  min-width: 0;
}

.hero-title,
.hero-subtitle,
.order-hero-desc,
.status-detail-value,
.footer-col,
.footer-col a,
.footer-col li {
  overflow-wrap: anywhere;
}

.hero-actions .btn,
.cta-box .btn,
.masters-box .btn,
.mobile-cta {
  max-width: 100%;
}

.hero-float {
  max-width: calc(100% - 8px);
}

.hero-float--price { right: 0; }

.order-summary-price {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* app.js inserts this prompt into .page. Without explicit styles it becomes
   a raw, full-width row and can force the mobile page wider than the viewport. */
.install-banner {
  width: calc(100% - 40px);
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-secondary);
  font-size: 13px;
}
.install-banner > span { min-width: 0; overflow-wrap: anywhere; }
.install-banner .install-btn,
.install-banner .close-install {
  min-height: 40px;
  border-radius: 10px;
  font-weight: 700;
}
.install-banner .install-btn {
  padding: 8px 12px;
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.install-banner .close-install {
  width: 40px;
  color: var(--text-secondary);
}

.client-cabinet { max-width: 920px; }
.client-cabinet-head { margin-bottom: 22px; }
.client-current-order,
.client-channel-card { margin-bottom: 18px; }
.client-order-list { display: grid; gap: 10px; }
.client-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.client-order-row:last-child { border-bottom: 0; }
.client-order-row > span:first-child { min-width: 0; display: grid; gap: 4px; }
.client-order-row small { color: var(--muted); overflow-wrap: anywhere; }
.master-telegram-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

@media (max-width: 899px) {
  .header-inner {
    width: 100%;
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
  }

  .brand { min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .burger { flex: 0 0 44px; margin-left: auto; }

  .nav.is-open {
    width: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open a {
    min-height: 48px;
    display: flex;
    align-items: center;
    white-space: normal;
  }

  .order-main,
  .status-main,
  .status-side { width: 100%; }

  .order-form,
  .order-summary,
  .status-card,
  .status-side-card { max-width: 100%; }
}

/* Tablet has enough header space for the primary CTA, so the fixed mobile
   pill no longer covers metrics/cards at 768 × 1024. */
@media (min-width: 640px) and (max-width: 899px) {
  body { padding-bottom: 0; }
  .header-cta {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }
  .burger { margin-left: 0; }
  .mobile-cta { display: none !important; }
}

@media (max-width: 639px) {
  :root { --cta-h: 72px; }

  .section { padding: 42px 16px; }
  .hero { padding: 28px 16px 42px; }
  .hero-inner { gap: 30px; }
  .hero-title {
    font-size: clamp(1.82rem, 8.2vw, 2.15rem);
    line-height: 1.1;
  }
  .hero-subtitle { margin-bottom: 22px; }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
  }
  .hero-actions .btn-ghost { min-height: 48px; }

  .hero-trust { gap: 10px 14px; }
  .hero-visual { min-height: 270px; }
  .hero-card--main { width: 100%; padding: 20px; }
  .hero-float { padding: 12px 14px; }
  .hero-float--time { left: -4px; }
  .hero-float-value { font-size: 1.05rem; }

  .mobile-cta {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    min-height: 54px;
  }

  /* Edge/Chromium can reveal the fixed CTA only after the hero CTA has
     scrolled away. Fallback browsers keep the regular fixed CTA. */
  @supports (animation-timeline: scroll()) {
    body:has(.hero) .mobile-cta {
      animation: mobile-cta-reveal linear both;
      animation-timeline: scroll(root block);
      animation-range: 340px 500px;
    }
    @keyframes mobile-cta-reveal {
      from { opacity: 0; visibility: hidden; pointer-events: none; }
      to { opacity: 1; visibility: visible; pointer-events: auto; }
    }
  }

  .metrics-inner { width: 100%; }
  .metric { min-width: 0; padding: 20px 10px; }

  .step,
  .why-card,
  .review-card,
  .cat-card-body,
  .status-card,
  .status-side-card { padding: 20px; }

  .cat-card-img { aspect-ratio: 16 / 10; }
  .cat-card-price {
    left: 12px;
    right: auto;
    max-width: calc(100% - 24px);
    white-space: normal;
  }

  .cta-box,
  .masters-box { padding: 28px 20px; }
  .cta-box .btn,
  .masters-box .btn { width: 100%; white-space: normal; }

  .section-order,
  .section-status { padding-top: 18px; }
  .section-status { padding-inline: 16px; }
  .order-hero { align-items: flex-start; gap: 14px; }
  .order-hero > div:last-child { min-width: 0; }
  .order-hero-img { width: 66px; height: 66px; }
  .order-form { padding: 24px 20px; }
  .photo-upload input[type="file"] { width: 100%; min-width: 0; }
  .checkbox-row span { min-width: 0; }
  .order-summary { padding: 20px; }
  .order-summary-price { font-size: clamp(1.45rem, 7vw, 1.75rem); }

  .status-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .status-head::before { grid-column: 1; margin-bottom: 0; }
  .status-head > div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .status-head .section-eyebrow { margin: 0; }
  .status-head h1 { font-size: 1.75rem; }
  .status-badge { justify-self: start; max-width: 100%; white-space: normal; }
  .status-layout { display: flex; flex-direction: column; gap: 14px; }
  .status-side { order: -1; }
  .status-card,
  .status-side-card { padding: 18px; border-radius: 18px; margin-bottom: 12px; }
  .status-side-card .btn { white-space: normal; }
  .status-detail-grid,
  .status-photos { min-width: 0; }
  .status-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .status-photo-caption,
  .status-photo figcaption { padding: 7px 8px; }
  .client-cabinet { padding-inline: 16px; }
  .client-cabinet-head { display: flex; align-items: flex-start; }
  .client-order-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .client-order-row .status-badge { align-self: flex-start; }
  .master-telegram-link { align-items: stretch; flex-direction: column; }
  .master-telegram-link .btn { width: 100%; }

  .install-banner {
    width: calc(100% - 32px);
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .install-banner > div { margin-left: auto; }
}

@media (max-width: 374px) {
  .brand-name { font-size: 16px; }
  .hero-title { font-size: 1.75rem; }
  .hero-badge { max-width: 100%; white-space: normal; }
  .metric-value { font-size: 1.3rem; }
}

/* ============================================================
   МастерПРО — local-service public landing, v5
   A city-first service face with reusable components for new cities.
   ============================================================ */
.local-hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #1a262b;
  color: #f7f1e9;
  padding: clamp(32px, 6vw, 88px) 20px;
}
.local-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 58% 90% at 100% 0%, rgba(204, 113, 60, .48), transparent 68%),
              radial-gradient(ellipse 65% 70% at 14% 100%, rgba(82, 143, 126, .25), transparent 65%),
              linear-gradient(135deg, #18262a, #273d3c 54%, #172327);
}
.local-hero-glow { position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; right: -260px; bottom: -330px; z-index: -1; }
.local-hero-glow::before, .local-hero-glow::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; inset: 54px; }
.local-hero-glow::after { inset: 112px; }
.local-hero-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 36px; align-items: center; }
.local-hero-copy { min-width: 0; }
.city-chip { display: inline-flex; align-items: center; gap: 8px; color: rgba(247,241,233,.82); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 20px; }
.city-chip span { width: 8px; height: 8px; border-radius: 50%; background: #e7a25f; box-shadow: 0 0 0 5px rgba(231,162,95,.16); }
.local-hero h1 { color: #fffaf5; font-size: clamp(2.45rem, 5.1vw, 4.75rem); line-height: 1.02; max-width: 10.8em; margin-bottom: 22px; text-wrap: balance; }
.local-hero h1 em { font-style: normal; color: #e9ab6c; }
.local-hero-lead { max-width: 35em; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.62; color: rgba(247,241,233,.76); margin-bottom: 28px; }
.local-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.local-btn-main { background: #e88c4c; color: #19262a; min-height: 56px; border: 0; border-radius: 8px; padding: 15px 22px; font-weight: 800; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.local-btn-main:hover { color: #19262a; background: #f3b077; transform: translateY(-2px); }
.local-text-link { color: #f7f1e9; text-decoration: none; font-weight: 700; padding: 14px 2px; }
.local-text-link:hover { color: #e9ab6c; }
.local-hero-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 30px; font-size: 13px; color: rgba(247,241,233,.65); max-width: 430px; }
.local-note-mark { color: #a7d1be; font-weight: 800; }
.local-dispatch-card { max-width: 470px; margin: 0 auto; width: 100%; overflow: hidden; background: #fbf7f0; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; color: #253235; box-shadow: 0 32px 60px rgba(0,0,0,.25); transform: rotate(1.3deg); }
.dispatch-photo { position: relative; min-height: 180px; background: #33514e; overflow: hidden; }
.dispatch-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,31,31,.75), transparent 60%); }
.dispatch-photo img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; opacity: .86; mix-blend-mode: luminosity; }
.dispatch-photo-label { position: absolute; z-index: 1; left: 18px; bottom: 15px; color: #fffaf5; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.dispatch-route { padding: 21px 20px 22px; }
.dispatch-kicker { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; color: #bf7041; margin: 0 0 14px; }
.dispatch-step { display: grid; grid-template-columns: 28px 1fr 15px; gap: 12px; align-items: start; }
.dispatch-step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #dfe9e3; color: #42695d; font-size: 12px; }
.dispatch-step strong { display: block; font-size: 14px; line-height: 1.25; color: #263235; }
.dispatch-step small { display: block; color: #7c817d; font-size: 12px; margin-top: 3px; line-height: 1.35; }
.dispatch-step i { width: 12px; height: 12px; border: 2px solid #c7d0ca; border-radius: 50%; margin-top: 5px; font-style: normal; font-size: 8px; display: grid; place-items: center; color: #fff; }
.dispatch-step--done b, .dispatch-step--done i { background: #477b6c; color: #fff; border-color: #477b6c; }
.dispatch-step--active b { background: #f4d7bd; color: #b75d2d; }
.dispatch-step--active i { background: #df8446; border-color: #df8446; box-shadow: 0 0 0 5px rgba(223,132,70,.16); }
.dispatch-step--muted { opacity: .58; }
.dispatch-line { height: 13px; width: 2px; background: #c8d7cf; margin: 0 0 0 12px; }
.dispatch-line--muted { background: #e0e4e0; }

.local-proof, .local-services, .local-standard, .local-final-cta { max-width: 1160px; margin: 0 auto; padding: clamp(58px, 8vw, 108px) 20px; }
.local-section-heading { max-width: 680px; }
.local-eyebrow { margin: 0 0 12px; color: #b86339; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.local-section-heading h2, .local-city h2, .local-standard h2, .local-master-band h2, .local-final-cta h2 { color: #202b2c; font-size: clamp(2rem, 3.9vw, 3.2rem); line-height: 1.08; margin-bottom: 16px; text-wrap: balance; }
.local-section-heading > p:last-child { font-size: 17px; line-height: 1.58; max-width: 39em; }
.local-proof-steps { margin: 38px 0 0; padding: 0; display: grid; gap: 1px; background: #dfe5df; border: 1px solid #dfe5df; }
.local-proof-steps li { position: relative; list-style: none; background: #f6f2eb; padding: 28px 24px 26px; min-height: 250px; }
.local-proof-steps li::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 4px; background: #d9824d; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.local-proof-steps li:hover::after { transform: scaleX(1); }
.local-proof-steps span { display: block; margin-bottom: 54px; font: 800 12px/1 var(--font-head); letter-spacing: .1em; color: #b8643a; }
.local-proof-steps h3 { color: #263536; font-size: 1.28rem; margin-bottom: 9px; }
.local-proof-steps p { font-size: 14.5px; line-height: 1.55; margin: 0; }

.local-services { padding-top: 20px; }
.local-section-heading--row { display: grid; gap: 14px; align-items: end; max-width: none; margin-bottom: 32px; }
.local-section-heading--row > p { max-width: 370px; margin: 0; font-size: 14px; }
.local-services-grid { display: grid; gap: 16px; }
.local-service-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; background: #f2eee7; color: #253235; text-decoration: none; min-width: 0; transition: transform .25s ease, box-shadow .25s ease; }
.local-service-card:hover { color: #253235; transform: translateY(-5px); box-shadow: 0 20px 35px rgba(35,49,47,.14); }
.local-service-image { position: relative; min-height: 200px; overflow: hidden; background: #263d3d; }
.local-service-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(13,28,29,.1), rgba(13,28,29,.57)); }
.local-service-image--2 { background: #315d58; }.local-service-image--3 { background: #6e4b35; }
.local-service-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; mix-blend-mode: luminosity; opacity: .9; transform: scale(1.04); transition: transform .4s ease; }
.local-service-card:hover .local-service-image img { transform: scale(1.1); }
.local-service-image span { position: absolute; z-index: 1; bottom: 14px; left: 14px; padding: 7px 9px; background: #fffaf3; color: #273332; font: 800 13px var(--font-head); }
.local-service-body { position: relative; padding: 23px 20px 22px; }
.local-service-number { margin: 0 0 25px; font-size: 11px; letter-spacing: .12em; color: #a15f3b; font-weight: 800; }
.local-service-body h3 { font-size: 1.4rem; margin-bottom: 8px; }.local-service-body p:not(.local-service-number) { min-height: 44px; font-size: 14px; margin-bottom: 24px; }
.local-service-body strong { font-size: 13px; color: #b76035; }.local-service-body strong i { font-style: normal; margin-left: 5px; }
.local-empty { padding: 30px; background: #f4efe8; }

.local-city { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 34px; background: #e3a16a; padding: clamp(54px, 7vw, 96px) 20px; }
.local-city::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(130deg, #cb7344, #e8aa74 53%, #f3c193); }
.local-city-map { position: absolute; inset: 0; z-index: -1; opacity: .7; background-image: linear-gradient(rgba(78,53,42,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(78,53,42,.13) 1px, transparent 1px); background-size: 54px 54px; transform: skewY(-6deg) scale(1.1); }
.city-dot { position: absolute; width: 14px; height: 14px; border: 4px solid #fff4e7; background: #456c61; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,244,231,.14); }.city-dot--one { top: 26%; left: 14%; }.city-dot--two { top: 58%; left: 68%; }.city-dot--three { top: 72%; left: 35%; }
.city-ring { position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255,246,235,.42); border-radius: 50%; }.city-ring--one { right: -48px; top: -82px; }.city-ring--two { right: 17%; bottom: -160px; width: 360px; height: 360px; }
.local-city-copy { max-width: 670px; margin: 0 auto; }.local-city .local-eyebrow { color: #31594f; }.local-city h2 { color: #233433; }.local-city p { color: rgba(35,52,51,.82); font-size: 17px; line-height: 1.6; }
.local-city-list { display: grid; gap: 12px; margin-top: 28px; }.local-city-list li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: center; color: #263838; font-size: 14px; font-weight: 600; }.local-city-list span { display: grid; place-items: center; height: 25px; border: 1px solid rgba(43,67,62,.45); color: #31594f; font-size: 10px; font-weight: 800; }

.local-standard { padding-bottom: clamp(68px, 9vw, 120px); }.local-standard-head { max-width: 750px; }.local-standard-items { display: grid; gap: 18px; margin-top: 40px; }.local-standard-items article { padding: 24px 4px 20px; border-top: 1px solid #d4dcd5; }.standard-icon { display: block; color: #c87043; font: 500 36px/1 Georgia, serif; margin-bottom: 26px; }.local-standard-items h3 { font-size: 1.18rem; margin-bottom: 8px; }.local-standard-items p { margin: 0; max-width: 29em; font-size: 14.5px; }
.local-master-band { max-width: 1160px; margin: 0 auto; padding: 42px 24px; background: #223534; color: #f8f3eb; display: grid; gap: 24px; align-items: end; }.local-master-band .local-eyebrow { color: #e6a36d; }.local-master-band h2 { color: #fffaf3; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 10px; }.local-master-band p:not(.local-eyebrow) { color: rgba(255,250,243,.68); max-width: 560px; margin: 0; }.local-master-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 54px; padding: 14px 18px; background: #e89d65; color: #1e302f; font-weight: 800; text-decoration: none; }.local-master-link:hover { color: #1e302f; background: #f1ba8d; }
.local-final-cta { text-align: center; padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); }.local-final-cta .local-eyebrow { color: #b6633b; }.local-final-cta h2 { margin-inline: auto; }.local-final-cta > p:not(.local-eyebrow) { max-width: 440px; margin: 0 auto 24px; font-size: 16px; }.local-final-cta .local-btn-main { display: inline-flex; }

/* Persistent public actions and operator callback. */
.floating-actions { position: fixed; right: 22px; bottom: 22px; z-index: 1100; display: grid; gap: 10px; width: min(280px, calc(100vw - 32px)); filter: drop-shadow(0 16px 28px rgba(25, 38, 35, .2)); }
.floating-action { min-height: 52px; border: 1px solid transparent; border-radius: 16px; padding: 0 20px; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 14px; font-weight: 850; line-height: 1.15; text-align: center; cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.floating-action:hover { transform: translateY(-2px); }
.floating-action--order { color: #fff; background: #e85d3b; box-shadow: 0 10px 22px rgba(232, 93, 59, .28); }
.floating-action--operator { color: #233c38; background: #fffdf9; border-color: #d8d4ca; box-shadow: 0 8px 18px rgba(31, 45, 42, .12); }
.callback-modal[hidden] { display: none !important; }
.callback-modal { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; }
.callback-modal__backdrop { position: absolute; inset: 0; background: rgba(18, 27, 26, .64); backdrop-filter: blur(3px); }
.callback-modal__panel { position: relative; width: min(470px, 100%); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 30px; background: #fffdf9; border-radius: 24px; box-shadow: 0 28px 70px rgba(10, 20, 18, .35); }
.callback-modal__panel h2 { margin: 8px 40px 8px 0; color: #263534; font-size: clamp(1.65rem, 5vw, 2.1rem); line-height: 1.08; }
.callback-modal__panel > p { margin: 0 0 22px; line-height: 1.55; }
.callback-modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 1px solid #ded9cf; border-radius: 50%; background: #f7f2e9; color: #263534; font-size: 27px; line-height: 1; cursor: pointer; }
.callback-form { display: grid; gap: 10px; }
.callback-form > label:not(.callback-consent) { margin-top: 4px; color: #344440; font-size: 13px; font-weight: 800; }
.callback-form > label span { color: #7b827e; font-size: 11px; font-weight: 600; }
.callback-consent { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; margin: 4px 0 8px; color: #66706c; font-size: 12px; line-height: 1.4; cursor: pointer; }
.callback-consent input { margin-top: 2px; }
.callback-form__status { min-height: 18px; margin: 0; font-size: 13px; font-weight: 750; text-align: center; }
.callback-form__status.is-success { color: #267046; }
.callback-form__status.is-error { color: #a3322a; }
.callback-is-open { overflow: hidden; }

/* Online-first catalogue: concrete work -> order form. */
.order-hero-chooser { width: 100%; max-width: 470px; margin: 0 auto; padding: 24px; background: #fbf7f0; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; box-shadow: 0 32px 60px rgba(0,0,0,.24); }
.order-hero-chooser h2 { color: #233433; font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 18px; }
.quick-service-list { display: grid; gap: 10px; }
.quick-service { display: grid; grid-template-columns: 52px 1fr 18px; gap: 13px; align-items: center; min-height: 72px; padding: 10px 12px; background: #fff; border: 1px solid #e3ddd3; color: #243332; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.quick-service:hover { color: #243332; border-color: #d47c47; transform: translateY(-2px); box-shadow: 0 9px 20px rgba(34,53,52,.1); }
.quick-service img { width: 52px; height: 52px; object-fit: cover; background: #e8eee9; }
.quick-service strong, .quick-service small { display: block; }
.quick-service strong { font-size: 15px; }
.quick-service small { margin-top: 3px; color: #787b75; font-size: 12px; }
.quick-service i { color: #bd683b; font-style: normal; font-weight: 800; }
.chooser-note { margin: 15px 0 0; color: #6e746f; font-size: 12.5px; line-height: 1.45; }

.work-catalog { max-width: 1160px; margin: 0 auto; padding: clamp(58px, 8vw, 108px) 20px; }
.work-groups { display: grid; gap: 18px; }
.work-group { scroll-margin-top: 92px; overflow: hidden; background: #fff; border: 1px solid #dedfd9; box-shadow: 0 12px 28px rgba(35,49,47,.07); }
.work-group-head { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 20px; background: #edf1ec; border-bottom: 1px solid #dedfd9; }
.work-group-head img { width: 72px; height: 72px; object-fit: cover; background: #dce6df; }
.work-group-head h3 { margin: 0 0 4px; font-size: 1.3rem; }
.work-group-head p { margin: 0; font-size: 13px; line-height: 1.4; }
.work-list { display: grid; }
.work-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 18px; align-items: center; min-height: 64px; padding: 14px 18px; color: #283635; text-decoration: none; border-bottom: 1px solid #ece9e2; transition: background .18s ease, color .18s ease; }
.work-row:last-child { border-bottom: 0; }
.work-row:hover { background: #fff6ed; color: #283635; }
.work-row > span { font-weight: 650; }
.work-row strong { color: #9d5935; font-size: 14px; white-space: nowrap; }
.work-row i { color: #b65f34; font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; }
.work-row--other { background: #f9f6f0; }
.work-row--other strong { color: #68716d; }

/* Public order flow: same local trust language as the landing. */
.online-order-form { display: grid; gap: 0; }
.order-step-block { padding: 26px 0; border-top: 1px solid #e6e0d7; }
.order-step-block:first-of-type { margin-top: 8px; }
.order-step-head { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; margin-bottom: 20px; }
.order-step-head > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #233c38; color: #fff; font-weight: 800; font-size: 13px; }
.order-step-head h3 { margin: 1px 0 3px; font-size: 1.18rem; color: #263534; }
.order-step-head p { margin: 0; font-size: 13px; line-height: 1.4; }
.photo-intro { margin-bottom: 12px; }
.photo-compression-status { min-height: 18px; margin: 8px 0 0; color: #66716d; font-size: 12px; font-weight: 750; text-align: center; }
.photo-compression-status.is-working { color: #9a5a31; }
.photo-compression-status.is-ready { color: #267046; }
.photo-compression-status.is-error { color: #a3322a; }
.selected-work { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 22px; align-items: center; margin: 18px 0; padding: 18px; background: #e8f1eb; border: 1px solid #cdded3; }
.selected-work span, .selected-work strong { display: block; }
.selected-work span { margin-bottom: 4px; color: #65736c; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.selected-work strong { color: #203431; font-size: 18px; }
.selected-work p { grid-row: 1; grid-column: 2; margin: 0; color: #53625c; font-size: 13px; text-align: right; }
.selected-work p b { display: block; color: #9c5735; font-size: 17px; }
.selected-work a { grid-column: 1 / -1; width: fit-content; color: #a45b37; font-size: 12px; font-weight: 700; }
.local-order-route { display: grid; gap: 7px; margin: 18px 0 24px; padding: 15px 17px; border-left: 3px solid #d97b48; background: #f6f0e8; }
.local-order-route span { color: #af6038; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.local-order-route p { margin: 0; color: #485351; font-size: 14px; line-height: 1.48; }.local-order-route strong { color: #253434; }
.section-status .status-head::before { content: "Калининград · городской сервис"; display: block; color: #af6038; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }

@media (min-width: 640px) {
  .local-proof-steps { grid-template-columns: repeat(3, 1fr); }.local-services-grid { grid-template-columns: repeat(2, 1fr); }.local-standard-items { grid-template-columns: repeat(3, 1fr); gap: 30px; }.local-standard-items article { padding-right: 14px; }.local-city { padding-inline: 8vw; }.local-master-band { grid-template-columns: 1fr auto; padding: 56px 54px; }.local-master-link { min-width: 175px; }
}
@media (min-width: 900px) {
  .local-hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(370px, .72fr); gap: 80px; }.local-dispatch-card, .order-hero-chooser { margin-right: 0; }.work-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }.local-services-grid { grid-template-columns: repeat(3, 1fr); }.local-section-heading--row { grid-template-columns: 1fr .5fr; }.local-city { grid-template-columns: minmax(0,.88fr) minmax(420px,.85fr); gap: 9vw; min-height: 600px; align-items: center; }.local-city-copy { grid-column: 2; margin: 0; }.local-city-map { grid-column: 1; }.local-standard-items article:not(:first-child) { border-left: 1px solid #d4dcd5; padding-left: 28px; }.local-master-band { margin-inline: 20px; }
}
@media (max-width: 639px) {
  .local-hero { padding-inline: 16px; }.local-hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }.local-hero-actions { display: grid; grid-template-columns: 1fr; }.local-hero-actions .local-btn-main { width: 100%; }.local-text-link { text-align: center; }.local-dispatch-card { transform: none; }.order-hero-chooser { padding: 18px 14px; }.local-proof, .local-services, .local-standard, .local-final-cta, .work-catalog { padding-inline: 16px; }.work-group-head { grid-template-columns: 58px 1fr; padding: 16px; }.work-group-head img { width: 58px; height: 58px; }.work-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 14px 15px; }.work-row i { display: none; }.selected-work { grid-template-columns: 1fr; }.selected-work p { grid-row: auto; grid-column: auto; text-align: left; }.local-proof-steps li { min-height: auto; }.local-proof-steps span { margin-bottom: 34px; }.local-city { padding-inline: 16px; }.local-master-band { margin-inline: 16px; }.local-master-link { width: 100%; }.local-final-cta h2 { font-size: 2rem; }
  .has-floating-actions .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .floating-actions { left: 0; right: 0; bottom: 0; width: auto; grid-template-columns: 1.12fr .88fr; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,253,249,.96); border-top: 1px solid #ded9cf; filter: none; box-shadow: 0 -10px 30px rgba(24,38,35,.14); backdrop-filter: blur(12px); }
  .floating-action { min-height: 54px; padding: 0 10px; border-radius: 13px; font-size: 12px; }
  .callback-modal { align-items: end; padding: 0; }
  .callback-modal__panel { width: 100%; max-height: min(82vh, 720px); padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
}

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.checkbox-card { display: flex; align-items: center; gap: 11px; min-height: 50px; padding: 12px 14px; border: 1px solid #d8dedb; border-radius: 12px; background: #fff; color: #283635; font-weight: 700; cursor: pointer; }
.checkbox-card:hover { border-color: #d97b48; background: #fff8f2; }
.checkbox-card:has(input:checked) { border-color: #b65f34; background: #fff1e7; box-shadow: 0 0 0 1px #b65f34; }
.checkbox-card input { width: 20px; height: 20px; margin: 0; accent-color: #b65f34; flex: 0 0 auto; }

/* Large inputs for mobile: prevents iOS zoom (font-size >= 16px)
   and ensures comfortable tap targets. */
.input-lg { min-height: 56px !important; font-size: 17px !important; padding: 14px 16px !important; border-radius: 14px !important; }
.input-code { text-align: center; letter-spacing: 8px; font-size: 24px !important; font-weight: 700; max-width: 200px; margin: 0 auto; }

/* Inline consent checkboxes on registration form */
.checkbox-card--inline { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.checkbox-card--inline span { flex: 1; }
.checkbox-card--inline a { color: var(--primary); text-decoration: underline; }

/* Registration steps + spinner */
.reg-step { animation: fade-in 0.25s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spinner { width: 40px; height: 40px; border: 4px solid #f0e6e0; border-top-color: var(--primary, #e85d3b); border-radius: 50%; margin: 0 auto; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
