/* ── Variables ── */
:root {
  --orange:   #FF6500;
  --orange-d: #E05800;
  --dark:     #111214;
  --dark2:    #1A1D22;
  --white:    #FFFFFF;
  --bg:       #F5F6F7;
  --text:     #1C1E21;
  --muted:    #6B7280;
  --line:     #E5E7EB;
  --card-bg:  #FFFFFF;
  --pad-x:    clamp(16px, 5.5vw, 88px);
  --max-w:    1240px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; }
ol, ul { padding: 0; margin: 0; list-style: none; }
details { }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow-white { color: rgba(255,255,255,0.55); }

h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
h4 { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 7px; }

.text-orange { color: var(--orange); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-orange {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-orange:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-sub { font-weight: 500; color: var(--muted); }
.site-nav {
  display: flex;
  gap: 6px;
  flex: 1;
}
.site-nav a {
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  transition: all 0.13s;
}
.site-nav a:hover { color: var(--text); background: var(--bg); }
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hdr-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.hdr-phone:hover { color: var(--orange); }
.hdr-cta { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px var(--pad-x) 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mm-link {
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.13s;
}
.mm-link:hover { background: var(--bg); }
.mm-phone {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  padding: 0 14px;
}
.mm-cta { width: 100%; }

/* ── Hero ── */
.hero {
  background: var(--dark);
  color: #fff;
  padding: clamp(64px,9vw,120px) 0;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr minmax(340px, 480px);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,101,0,0.15);
  color: #FF8A3D;
  border: 1px solid rgba(255,101,0,0.3);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 { color: #fff; }
.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual { }
.hero-card-wrap {
  display: grid;
  gap: 16px;
}
.hero-img {
  width: 100%;
  min-height: 360px;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  display: block;
}






/* ── Trust bar ── */
.trust-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ── Sections ── */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-gray { background: var(--bg); }
.section-head { margin-bottom: 48px; }
.section-head.centered { text-align: center; }
.section-head h2 { margin-top: 8px; }
.section-desc {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
}
.section-head.centered .section-desc { margin-left: auto; margin-right: auto; }

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 26px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.svc-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}
.svc-card-white { background: var(--white); }
.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(17,18,20,0.07);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.svc-icon svg { width: 24px; height: 24px; color: var(--dark); }
.svc-icon-orange { background: rgba(255,101,0,0.1); }
.svc-icon-orange svg { color: var(--orange); }
.svc-card h3 { font-size: 17px; margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.svc-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.svc-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* ── Why Us ── */
.why-us {
  background: var(--dark2);
  color: #fff;
  padding: clamp(64px, 8vw, 104px) 0;
}
.why-us-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(380px, 520px);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.why-us h2 { color: #fff; margin-top: 8px; margin-bottom: 20px; }
.why-us > .container > .why-us-inner > .why-us-text > p {
  color: rgba(255,255,255,0.5);
}
.why-us-text p {
  color: rgba(255,255,255,0.5);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.why-us-list {
  display: grid;
  gap: 4px;
}
.why-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 22px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  transition: background 0.15s;
}
.why-item:hover { background: rgba(255,255,255,0.07); }
.why-num {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  padding-top: 3px;
}
.why-item h4 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.why-item p { color: rgba(255,255,255,0.45); font-size: 14px; line-height: 1.6; }

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  position: relative;
  padding: 32px 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--orange);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 20px;
}
.step-line {
  display: none;
}
.step-card h4 { font-size: 17px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Works ── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.work-card {
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.work-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); }
.work-card img { width: 100%; aspect-ratio: 5/4; object-fit: cover;
  object-position: top center; }
.work-body { padding: 12px 14px 16px; }
.work-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.work-card h3 { font-size: 14px; margin-bottom: 4px; }
.work-card p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.works-empty {
  grid-column: 1/-1;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ── Reviews ── */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 28px;
  align-items: start;
}
.reviews-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.reviews-feed { display: grid; gap: 14px; }
.review-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.review-author { font-weight: 700; font-size: 15px; }
.review-stars { color: var(--orange); font-size: 15px; letter-spacing: 1px; }
.review-text { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.review-sub { font-size: 12px; color: #aaa; }

/* Review form */
.review-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.review-form h3 { font-size: 18px; margin-bottom: 2px; }
.review-form-note { font-size: 13px; color: var(--muted); }

/* ── FAQ ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] {
  border-color: var(--orange);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  user-select: none;
  transition: color 0.13s;
}
.faq-item summary:hover { color: var(--orange); }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Forms ── */
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
input, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
input:focus, textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,101,0,0.1);
}
input::placeholder, textarea::placeholder { color: #c0c4cc; }
textarea { resize: vertical; }

.rating-field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rating-picker { display: inline-flex; gap: 2px; }
.rating-picker button {
  width: 38px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #ddd;
  font-size: 26px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: color 0.1s;
}
.rating-picker button.is-active { color: var(--orange); }
.rating-picker button:focus-visible { outline: 2px solid var(--orange); }
.form-msg { font-size: 14px; color: var(--muted); min-height: 20px; }

/* ── Contacts ── */
.contacts {
  background: var(--dark);
  color: #fff;
  padding: clamp(64px, 8vw, 104px) 0;
}
.contacts-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(380px, 500px);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contacts h2 { color: #fff; margin-top: 8px; margin-bottom: 18px; }
.contacts-lead {
  color: rgba(255,255,255,0.5);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.contacts-details { display: grid; gap: 14px; }
.contact-phone {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  transition: color 0.13s;
}
.contact-phone:hover { color: var(--orange); }
.contact-email {
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: color 0.13s;
}
.contact-email:hover { color: #fff; }
.contact-geo, .contact-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255,255,255,0.38);
}
.contact-geo svg, .contact-hours svg { color: rgba(255,255,255,0.35); flex-shrink: 0; }

.contacts-form {
  display: grid;
  gap: 14px;
  padding: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}
.contacts-form h3 { font-size: 20px; color: #fff; margin-bottom: 4px; }
.contacts-form label { color: rgba(255,255,255,0.4); }
.contacts-form input,
.contacts-form textarea {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.contacts-form input::placeholder,
.contacts-form textarea::placeholder { color: rgba(255,255,255,0.22); }
.contacts-form input:focus,
.contacts-form textarea:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(255,101,0,0.15);
}
.contacts-form .form-msg { color: rgba(255,255,255,0.45); }
.form-privacy { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.5; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(48px, 6vw, 72px) 0 0;
  color: rgba(255,255,255,0.45);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: 14px; line-height: 1.6; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.footer-nav a, .footer-contacts a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-contacts a:hover { color: #fff; }
.footer-contacts { display: grid; gap: 10px; align-content: start; }
.footer-contacts span { font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}

/* ── Floating call button ── */
.float-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(255,101,0,0.45);
  z-index: 300;
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-call:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255,101,0,0.55);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img-placeholder { min-height: 260px; }
  .trust-inner { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .why-us-inner { grid-template-columns: 1fr; gap: 48px; }
  .contacts-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .works-grid { grid-template-columns: repeat(2,1fr); }
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-left { gap: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .burger { display: flex; margin-left: auto; }
  .site-nav { display: none; }
  .header-right { display: none; }
  .header-inner { gap: 16px; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { align-items: center; text-align: center; }
  .svc-list { text-align: left; width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contacts-form { padding: 24px 20px; }
  .float-call { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

@media (max-width: 440px) {
  .hero h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

/* Story block */
.story-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}
.story-logo-wrap {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.story-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
}
.story-text h2 { margin-bottom: 20px; }
.story-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.story-text p:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .story-inner { grid-template-columns: 1fr; gap: 24px; }
  .story-logo-wrap { justify-content: flex-start; }
  .story-logo { width: 80px; height: 80px; }
}


/* ── Theme toggle button ── */
.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--orange); border-color: var(--orange); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Dark theme variables ── */
[data-theme="dark"] {
  --bg:    #12151A;
  --white: #1C1F26;
  --text:  #E2E5EA;
  --muted: #8B919A;
  --line:  #272B33;
}

/* ── Dark mode overrides ── */
[data-theme="dark"] body                        { background: var(--bg); }
[data-theme="dark"] .site-header                { background: rgba(18,21,26,0.96); }
[data-theme="dark"] .mobile-menu                { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .logo-text                  { color: var(--text); }
[data-theme="dark"] .site-nav a:hover           { background: rgba(255,255,255,0.05); color: var(--text); }
[data-theme="dark"] .trust-bar                  { background: var(--bg); border-color: var(--line); }
[data-theme="dark"] .trust-item                 { border-color: var(--line); }
[data-theme="dark"] .svc-card                   { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .svc-icon                   { background: rgba(255,255,255,0.07); }
[data-theme="dark"] .svc-icon svg               { color: var(--text); }
[data-theme="dark"] .step-card                  { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .work-card                  { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .works-empty                { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .review-card                { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .review-form                { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .faq-item                   { background: var(--white); border-color: var(--line); }
[data-theme="dark"] .faq-item[open]             { border-color: var(--orange); }
[data-theme="dark"] input,
[data-theme="dark"] textarea                    { background: rgba(255,255,255,0.05); border-color: var(--line); color: var(--text); }
[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus              { background: var(--white); border-color: var(--orange); }
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder       { color: rgba(255,255,255,0.2); }
[data-theme="dark"] .btn-outline                { color: var(--text); border-color: var(--line); }
[data-theme="dark"] .section-gray              { background: rgba(255,255,255,0.02); }

[data-theme="dark"] .site-header .logo img { filter: invert(1); }

/* ── Reviews pagination ── */
.reviews-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.rpag-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.rpag-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.rpag-btn:disabled { opacity: 0.35; cursor: default; }
.rpag-dot {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.rpag-dot:hover { border-color: var(--orange); color: var(--orange); }
.rpag-dot.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ── Lightbox ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
  animation: lb-in 0.2s ease;
}
.lb-overlay.is-open { display: flex; }
@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  cursor: default;
  animation: lb-scale 0.22s ease;
  user-select: none;
}
@keyframes lb-scale {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
  line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.work-card img { cursor: zoom-in; }

.works-pagination { margin-top: 32px; }

/* ── Защита фото ── */
.work-card img,
.lb-img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
.work-card {
  -webkit-touch-callout: none;
}

/* ── Mobile fixes ── */

/* Кнопка темы — показываем в мобильной шапке */
@media (max-width: 680px) {
  .header-right { display: flex; }
  .hdr-cta { display: none; }
  .works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .works-grid { grid-template-columns: 1fr; }
  .hero-img { min-height: 260px; max-height: 340px; }
  .contacts-form { padding: 20px 16px; }
  .review-form { padding: 20px 16px; }
  .svc-card { padding: 24px 18px 20px; }
}

/* Пагинация — переносим точки если не влезают */
.reviews-pagination,
.works-pagination {
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Messenger floating buttons ── */
.messengers {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}
.msg-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 10px;
  height: 38px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  transition: transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.msg-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.msg-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.msg-tg  { background: #229ED9; }
.msg-tg:hover  { background: #1a8fc4; }
.msg-wa  { background: #25D366; }
.msg-wa:hover  { background: #1fb956; }

@media (max-width: 680px) {
  .messengers { bottom: 16px; right: 16px; gap: 8px; }
  .msg-btn { height: 44px; font-size: 13px; padding: 0 14px 0 12px; }
  .msg-btn span { display: none; }
  .msg-btn { padding: 0; width: 44px; justify-content: center; }
}

.msg-max { background: #7B61FF; }
.msg-max:hover { background: #6a51e0; }

/* ── Scroll animations ── */
.anim-ready {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.anim-ready.is-visible {
  opacity: 1;
  transform: none;
}
/* Для элементов что выезжают сбоку */
.anim-left  { transform: translateX(-40px); }
.anim-right { transform: translateX(40px); }
.anim-left.is-visible,
.anim-right.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim-ready,
  .anim-left,
  .anim-right { opacity: 1; transform: none; transition: none; }
}

/* ── Пагинация: анимация карточек через keyframes ── */
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.work-card.page-anim {
  animation: cardSlideIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.review-card.page-anim {
  animation: cardSlideIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .work-card.page-anim,
  .review-card.page-anim { animation: none; }
}

/* ── File upload field ── */
.file-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.4); display: grid; gap: 6px; }
.file-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.file-input-wrap:hover { border-color: var(--orange); }
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
}
.file-placeholder {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
