:root {
  --bg: #09121a;
  --bg-soft: #101b25;
  --bg-2: #0e1720;
  --surface: rgba(16, 27, 37, 0.78);
  --surface-strong: #0f1922;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f8fb;
  --muted: #adc0cf;
  --accent: #f0c319;
  --accent-strong: #265fb1;
  --accent-soft: #8bc0ff;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --hero-card-pad-x: 14px;
}

html[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-soft: #eef3f9;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --card-border: rgba(18, 46, 71, 0.08);
  --text: #102030;
  --muted: #5f7286;
  --accent: #f0c319;
  --accent-strong: #255cab;
  --accent-soft: #d9ebff;
  --shadow: 0 18px 55px rgba(12, 37, 66, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top, rgba(240, 195, 25, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  transition: background 0.28s ease, color 0.28s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; background: none; }
input, textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
html[data-theme="light"] input,
html[data-theme="light"] textarea {
  background: rgba(16, 32, 48, 0.03);
}
input:focus, textarea:focus {
  border-color: rgba(37, 92, 171, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 92, 171, 0.12);
}

.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.glass-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  min-height: 86px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand-mark { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-badge {
  width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid rgba(240,195,25,.55); box-shadow: 0 8px 28px rgba(0,0,0,.14);
  background: #fff;
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 1.22rem; font-weight: 800; }
.brand-copy small { color: var(--muted); font-size: .82rem; }

.desktop-nav, .footer-links, .footer-row { display: flex; align-items: center; gap: 20px; }
.nav-actions { display: flex; align-items: center; gap: 28px; }
.desktop-nav a, .footer-links a { color: var(--muted); transition: color .22s ease; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--text); }

.theme-toggle {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; position: relative;
  border: 1px solid var(--card-border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.theme-icon { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .24s ease, transform .24s ease; }
html[data-theme="dark"] .theme-icon-sun,
html[data-theme="light"] .theme-icon-moon { opacity: 0; transform: scale(.6) rotate(-25deg); }
html[data-theme="dark"] .theme-icon-moon,
html[data-theme="light"] .theme-icon-sun { opacity: 1; transform: scale(1) rotate(0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; font-weight: 700;
  color: #081018;
  background: linear-gradient(135deg, var(--accent), #ffd758);
  box-shadow: 0 14px 36px rgba(240, 195, 25, 0.22);
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--text); border-color: var(--card-border); box-shadow: none;
}
.btn-sm { min-height: 42px; padding: 0 16px; }
.btn-block { width: 100%; }
.btn-call { background: linear-gradient(135deg, var(--accent-strong), #3f79d1); color: #fff; box-shadow: 0 14px 36px rgba(38,95,177,.23); }

.mobile-call-capsule {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
}
.mobile-call-capsule .mobile-call-label { position: relative; z-index: 1; }
.mobile-call-pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid rgba(99, 160, 240, 0.55);
  animation: mobile-call-pulse 2.15s ease-out infinite;
  pointer-events: none;
}
@keyframes mobile-call-pulse {
  0% { transform: scale(0.94); opacity: 0.95; }
  55% { transform: scale(1.12); opacity: 0.25; }
  100% { transform: scale(1.22); opacity: 0; }
}

.mobile-tab-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 4px;
  align-items: stretch;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
.tab-bar-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 2px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.tab-bar-link:active { opacity: 0.85; }
.tab-bar-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.tab-bar-link.is-active {
  color: var(--accent-soft);
  background: rgba(38, 95, 177, 0.16);
}
html[data-theme="light"] .tab-bar-link.is-active {
  color: var(--accent-strong);
  background: rgba(37, 92, 171, 0.1);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 18px 0 40px;
}
.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-block {
  padding: 16px calc(var(--hero-card-pad-x) * 2);
  width: 100%;
}
.info-block__title {
  margin: 0 0 16px;
  font-size: clamp(1.1rem, 4.5vw + 0.4rem, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.info-block__tagline {
  margin: 0 0 24px;
  font-size: clamp(1rem, 2vw + 0.5rem, 1.22rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}
.info-block__cta {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.info-block__btn-request {
  margin: 0 0 8px;
  border-radius: 999px;
  text-align: center;
  min-height: 48px;
}
.info-block__micro {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
.info-block__secondary-wrap {
  width: 90%;
  margin: 0 auto 16px;
  align-self: center;
}
.info-block__btn-view {
  width: 100%;
  min-height: 43px;
  padding: 0 18px;
  font-size: 0.9rem;
  border-radius: 999px;
  text-align: center;
  box-sizing: border-box;
}
.info-block__trust {
  list-style: none;
  margin: 0;
  padding: 0 0 0 max(0px, calc(5% - 12px));
  width: 100%;
  align-self: stretch;
}
.info-block__trust-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}
.info-block__trust-row:last-child {
  margin-bottom: 0;
}
.info-block__trust-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.info-block__trust-icon svg {
  display: block;
}
.info-block__trust-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.info-block__rating {
  color: var(--text);
  font-weight: 800;
}
.hero-services-block {
  scroll-margin-top: 100px;
}
.hero-services-kicker {
  margin-bottom: 12px;
}
.hero-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.service-card--hero .service-media {
  aspect-ratio: 1 / 0.78;
}
.service-card--hero .service-body {
  padding: 12px 14px;
}
.service-card--hero .service-body h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.2;
}
.service-card--hero .service-body p {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
  color: var(--muted);
}

.about-grid, .contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 92%, transparent), color-mix(in srgb, var(--bg-2) 92%, transparent)); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.compact-head { margin-bottom: 18px; }
.section-head h2, .about-grid h2, .contact-grid h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.section-head p, .about-grid p, .contact-grid p, .service-body p, .about-item span, .form-note { color: var(--muted); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.service-card {
  overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.service-media { aspect-ratio: 1 / .82; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 20px; }
.service-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.compact-call-card { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.about-panel, .contact-call-box {
  padding: 22px; border-radius: var(--radius-lg);
}
.about-panel { display: grid; gap: 18px; }
.about-item strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.gallery-item {
  overflow: hidden; border-radius: 22px; border: 1px solid var(--card-border); box-shadow: var(--shadow); background: var(--surface);
  aspect-ratio: 1 / 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.contact-call-box { margin-top: 24px; }
.contact-call-label { color: var(--muted); display: block; margin-bottom: 8px; }
.contact-phone { display: inline-block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }

.contact-form, .request-panel {
  background: var(--surface); border: 1px solid var(--card-border); box-shadow: var(--shadow);
}
.contact-form {
  padding: 24px; border-radius: var(--radius-xl); display: grid; gap: 16px;
}
.contact-form label, .quick-request-form label { display: grid; gap: 8px; }
.contact-form label span, .quick-request-form label span { font-weight: 600; }
.file-field:not(.file-field--modern) input { padding: 12px; }

.file-field--modern {
  gap: 10px;
}
.file-field-heading {
  font-weight: 600;
}
.file-upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, var(--card-border));
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
html[data-theme="light"] .file-upload-zone {
  background: rgba(16, 32, 48, 0.04);
}
.file-field--modern:focus-within .file-upload-zone {
  border-color: rgba(37, 92, 171, 0.45);
  background: rgba(37, 92, 171, 0.08);
  box-shadow: 0 0 0 3px rgba(37, 92, 171, 0.1);
}
.file-upload-zone .image-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
  border: none;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}
.file-field--modern .image-input:focus {
  outline: none;
  box-shadow: none;
}
.file-upload-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  pointer-events: none;
}
.file-upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), #3f79d1);
  box-shadow: 0 8px 22px rgba(38, 95, 177, 0.25);
  pointer-events: none;
}
.file-field--modern:hover .file-upload-zone {
  border-color: color-mix(in srgb, var(--accent-strong) 35%, var(--card-border));
}
.preview-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.preview-item {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--card-border); background: rgba(255,255,255,.05);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: rgba(9,18,26,.78);
}
.form-actions { display: flex; gap: 12px; align-items: center; }
.form-actions-stack { flex-direction: column; align-items: stretch; }
.submit-btn.is-loading { pointer-events: none; opacity: .88; }
.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .8s linear infinite; display: none;
}
.submit-btn.is-loading .btn-spinner { display: inline-block; }
.submit-btn.is-loading .btn-text { opacity: .85; }
.form-status.is-success { color: #4bd68c; }
.form-status.is-error { color: #ff7e7e; }
.form-status.is-info { color: var(--muted); }

.floating-request-btn {
  position: fixed; right: 24px; bottom: 40px; z-index: 90;
  width: 66px; height: 66px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--accent-strong), #3f79d1);
  box-shadow: 0 18px 36px rgba(38,95,177,.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-request-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(38, 95, 177, 0.42);
}
.floating-request-icon {
  display: block;
  margin-left: 2px;
  margin-top: 1px;
}
.request-panel-backdrop {
  position: fixed; inset: 0; background: rgba(7, 13, 18, .5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: .22s ease; z-index: 94;
}
.request-panel {
  position: fixed; top: 50%; right: 22px; transform: translateY(-50%) translateX(24px);
  width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 40px); overflow: auto;
  padding: 22px; border-radius: 28px; z-index: 95; opacity: 0; visibility: hidden; transition: .22s ease;
}
.request-panel.is-open, .request-panel-backdrop.is-open { opacity: 1; visibility: visible; }
.request-panel.is-open { transform: translateY(-50%) translateX(0); }
.request-panel-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-close {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  color: var(--text); border: 1px solid var(--card-border); background: rgba(255,255,255,.04);
}
.quick-request-form { display: grid; gap: 16px; }
.panel-phone-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: 16px; background: rgba(240,195,25,.1); border: 1px solid rgba(240,195,25,.25);
}
.panel-phone-box span { color: var(--muted); }
.panel-phone-box a { font-weight: 800; }

.site-footer {
  padding: 24px 0 36px; border-top: 1px solid var(--card-border);
}
.footer-row { justify-content: space-between; flex-wrap: wrap; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .desktop-nav,
  .desktop-cta { display: none; }
  .mobile-call-capsule { display: inline-flex; }
  .mobile-tab-bar { display: flex; }
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  html {
    scroll-padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  .floating-request-btn {
    bottom: calc(28px + 62px + env(safe-area-inset-bottom, 0px));
  }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .brand-copy small { display: none; }
  .hero { padding-top: 18px; }
  .gallery-grid, .services-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-panel {
    top: auto; right: 12px; left: 12px; bottom: 12px; width: auto; max-height: calc(100dvh - 24px);
    transform: translateY(18px);
  }
  .request-panel.is-open { transform: translateY(0); }
  .floating-request-btn {
    right: 18px;
    bottom: calc(24px + 62px + env(safe-area-inset-bottom, 0px));
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 560px) {
  .nav-actions { gap: 18px; }
  .theme-toggle { width: 42px; height: 42px; }
  .inline-actions, .footer-row { flex-direction: column; align-items: stretch; }
  .contact-form, .request-panel, .about-panel, .contact-call-box { padding: 18px; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-call-pulse-ring { animation: none; opacity: 0; }
}
