* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #f4f4f4;
  background: #040404;
  --bg: #020202;
  --surface: #0b0b0b;
  --surface-strong: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #d50b00;
  --accent-soft: rgba(213, 11, 0, 0.14);
  --text-muted: #9a9a9a;
}
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(213, 11, 0, 0.08), transparent 26%),
    linear-gradient(180deg, #040404 0%, #090909 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
  overflow-x: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  gap: 16px;
}

.topbar.scrolled {
  background: linear-gradient(180deg, #040404 0%, #090909 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.brand span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 0.95rem;
  color: #d0d0d0;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}
.burger {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 35;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: center;
  padding: 80px 0 66px;
}
.hero-copy {
  position: relative;
  animation: fadeInUp 0.8s ease both;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(213, 11, 0, 0.12);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero h1 {
  margin: 24px 0 0;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1.02;
  max-width: 720px;
}
.hero p {
  margin: 28px 0 36px;
  max-width: 680px;
  color: #b7b7b7;
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 30px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, #d50b00 0%, #9b0400 100%);
  box-shadow: 0 18px 40px rgba(213, 11, 0, 0.28);
}
.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.hero-quick {
  display: grid;
  gap: 14px;
  margin-top: 46px;
}
.hero-quick div {
  padding: 20px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-quick strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}
.hero-quick a,
.hero-quick span {
  color: #c8c8c8;
  font-size: 0.98rem;
}
.hero-panel {
  position: relative;
  padding: 36px;
  border-radius: 32px;
  background: #060606;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  animation: float 10s ease-in-out infinite;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(213, 11, 0, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 18%);
  pointer-events: none;
}
.panel-title {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d0d0d0;
  font-size: 1rem;
  line-height: 1.8;
}
.panel-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.panel-grid div {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.panel-grid strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}
.panel-grid span {
  color: #bababa;
  font-size: 0.95rem;
}
.section {
  margin-bottom: 72px;
}
.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}
.section-heading span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.2rem);
}
.section-heading p {
  margin-top: 18px;
  color: #a5a5a5;
  max-width: 640px;
}
.services-grid,
.works-grid,
.advantages-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}
.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-card {
  padding: 30px;
  border-radius: 28px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
  animation: fadeInUp 0.8s ease both;
}
.service-card:nth-child(2) {
  animation-delay: 0.05s;
}
.service-card:nth-child(3) {
  animation-delay: 0.1s;
}
.service-card:nth-child(4) {
  animation-delay: 0.15s;
}
.service-card:nth-child(5) {
  animation-delay: 0.2s;
}
.service-card:nth-child(6) {
  animation-delay: 0.25s;
}
.service-card:nth-child(7) {
  animation-delay: 0.3s;
}
.service-card:nth-child(8) {
  animation-delay: 0.35s;
}
.service-card h3 {
  margin-top: 0;
  color: #fff;
}
.service-card p {
  margin: 18px 0 0;
  color: #b8b8b8;
}
.section-works .works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.work-item {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: fadeInUp 0.9s ease both;
}
.work-item:nth-child(2) {
  animation-delay: 0.05s;
}
.work-item:nth-child(3) {
  animation-delay: 0.1s;
}
.work-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(213, 11, 0, 0.12), transparent 42%);
  pointer-events: none;
}
.work-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(213, 11, 0, 0.18);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 24px;
}
.work-slider-wrapper {
  position: relative;
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  border-radius: 28px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}
.work-slider {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  height: 100%;
  will-change: transform;
}
.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease, filter 0.9s ease;
  filter: saturate(1.05) contrast(1.02);
}
.slide:hover img,
.slide.active img {
  transform: scale(1.02);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.slider-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(255,0,0,0.85);
  border-color: #FF0000;
}
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }
@media (max-width: 920px) {
  .work-slider-wrapper { max-height: 360px; }
  .slide img { max-height: 340px; }
}
@media (max-width: 620px) {
  .work-slider-wrapper { max-height: 320px; }
  .slide img { max-height: 280px; }
  .slider-btn { width: 44px; height: 44px; font-size: 1.6rem; }
}
.work-item h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
}
.work-item p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: #b8b8b8;
}
.advantages-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.advantage-card {
  padding: 30px;
  border-radius: 28px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInUp 0.85s ease both;
}
.advantage-card:nth-child(2) {
  animation-delay: 0.05s;
}
.advantage-card:nth-child(3) {
  animation-delay: 0.1s;
}
.advantage-card h3 {
  margin-top: 0;
  color: #fff;
}
.advantage-card p {
  margin-top: 18px;
  color: #bababa;
}
.section-contact .contact-grid {
  grid-template-columns: 420px minmax(0, 1fr);
}
.contact-card {
  padding: 32px;
  border-radius: 30px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-info h3 {
  margin-top: 0;
  color: #fff;
}
.contact-line {
  margin-bottom: 22px;
}
.contact-line strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}
.contact-line a,
.contact-line span {
  color: #b8b8b8;
  font-size: 0.98rem;
  line-height: 1.7;
}
.contact-line a:hover {
  color: var(--accent);
}
.map-card {
  min-height: 460px;
  overflow: hidden;
  padding: 0;
}
#map {
  width: 100%;
  height: 100%;
  min-height: 460px;
  filter: brightness(0.78) contrast(1.05);
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #999;
}
.footer-link {
  color: #d0d0d0;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@media (max-width: 1120px) {
  .hero,
  .services-grid,
  .works-grid,
  .advantages-grid,
  .section-contact .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 48px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
  }
  .hero-panel,
  .contact-card {
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 0 16px 40px;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 0;
  }
  .topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }
  .brand {
    min-width: 0;
    max-width: calc(100% - 64px);
  }
  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 18px;
    padding: 20px 20px 24px;
    background: rgba(4, 4, 4, 0.96);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .hero h1 {
    font-size: 2.7rem;
  }
  .section-contact .contact-grid {
        grid-template-columns: 1fr;
  }
}

/* particles background */
.particles {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.particles .p {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(213,11,0,0.14);
  box-shadow: 0 0 18px rgba(213,11,0,0.14);
  animation: floatParticle 8s linear infinite;
}
.particles .p1 { left: 8%; top: 20%; animation-duration: 9s; }
.particles .p2 { left: 22%; top: 10%; width: 10px; height:10px; animation-duration: 7s; }
.particles .p3 { left: 50%; top: 8%; width: 16px; height:16px; animation-duration: 11s; }
.particles .p4 { left: 78%; top: 18%; width: 9px; height:9px; animation-duration: 6s; }
.particles .p5 { left: 40%; top: 36%; width: 14px; height:14px; animation-duration: 12s; }

@keyframes floatParticle {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.9 }
  50% { transform: translateY(-180px) translateX(40px) scale(1.2); opacity: 0.6 }
  100% { transform: translateY(-360px) translateX(-20px) scale(1); opacity: 0 }
}

/* Modal styles */
.accent-spot {
  pointer-events: none;
  position: fixed;
  right: 8%;
  top: 24%;
  width: 420px;
  height: 420px;
  z-index: 1;
  background: radial-gradient(closest-side, rgba(255,0,0,0.12), rgba(255,0,0,0.06) 40%, transparent 60%);
  filter: blur(40px);
  transform: translateZ(0);
}

.modal { display: none; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); pointer-events: auto; }
.modal[aria-hidden="true"] .modal-backdrop { pointer-events: none; }
.modal-body { position: relative; width: 100%; max-width: 540px; background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(10,10,10,0.95)); padding: 28px; border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,0.7); color: #fff; transform: translateY(18px) scale(0.98); opacity: 0; transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease; border: 1px solid rgba(255,255,255,0.04); }
.modal[aria-hidden="false"] .modal-body { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; right: 14px; top: 12px; background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.modal-body h3 { margin: 0 0 8px 0; }
.modal-body label { display: block; margin: 12px 0; }
.modal-body input, .modal-body select, .modal-body textarea { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); color: #fff; transition: box-shadow 180ms ease, border-color 180ms ease; }
.modal-body select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-position: right 12px center; background-repeat: no-repeat; padding-right: 44px; }
/* custom arrow (red) */
.modal-body select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23FF0000' d='M7 10l5 5 5-5z'/></svg>"); }
.modal-body textarea { resize: vertical; min-height: 110px; }
.service-note { display: none; margin-top: 12px; }
.service-note.active { display: block; }
.modal-body select:focus, .modal-body textarea:focus { border-color: #FF0000; box-shadow: 0 6px 28px rgba(255,0,0,0.12), 0 0 0 4px rgba(255,0,0,0.04); }
.modal-body option { background: #0b0b0b; color: #fff; }
select::-ms-expand { display: none; }
.modal-actions { display:flex; gap:12px; margin-top:18px; }
.form-message { margin-top:14px; color: #c8c8c8; }

/* inputs and buttons focused/hover state with red outline */
.modal-body input:focus, .modal-body select:focus, .modal-body input:hover, .modal-body select:hover {
  outline: none;
  border-color: #FF0000;
  box-shadow: 0 6px 28px rgba(255,0,0,0.12), 0 0 0 4px rgba(255,0,0,0.04);
}
.btn:hover, .btn:focus { box-shadow: 0 22px 50px rgba(255,0,0,0.12); border-color: #FF0000; }
.btn { border: 1px solid transparent; }
.btn:focus { outline: none; }

/* success overlay inside modal */
.success-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 20px;
  text-align: center;
}

.success-box h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 28px;
}

.success-box p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
}

.success-check {
  width: 72px;
  height: 72px;
}

@keyframes pop {
  0% { transform: scale(.9); opacity: 0 }
  60% { transform: scale(1.03); opacity: 1 }
  100% { transform: scale(1); opacity: 1 }
}
.success-box { animation: pop 360ms cubic-bezier(.2,.9,.2,1); }


/* Hover interactions */
.service-card:hover, .work-item:hover, .advantage-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 26px 60px rgba(0,0,0,0.45); }
.service-card, .work-item, .advantage-card { transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s; }

/* scroll reveal helpers */
.is-hidden { opacity: 0; transform: translateY(20px); will-change: transform, opacity; }
.inview { animation: fadeInUp 0.7s cubic-bezier(.2,.9,.2,1) both; }

