:root {
  --black: #000;
  --black-soft: #0a0a0a;
  --black-card: #141414;
  --yellow: #ffd700;
  --yellow-dark: #e6c200;
  --white: #fff;
  --gray: #999;
  --font: 'Montserrat', system-ui, sans-serif;
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.85rem 0;
  transition: background var(--transition);
}

.header--scrolled {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  height: 48px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--yellow-dark);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn--outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn--dark {
  background: var(--black);
  color: var(--yellow);
}

.btn--dark:hover {
  background: #1a1a1a;
}

.btn--lg {
  padding: 0.95rem 1.75rem;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 3rem;
}

.hero__shell {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2.5rem 1rem;
}

.hero__bolt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.hero__bolt-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawBolt 2.2s ease forwards 0.2s;
}

@keyframes drawBolt {
  to { stroke-dashoffset: 0; }
}

.hero__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__kicker,
.hero__title,
.hero__lead,
.hero__actions {
  position: relative;
  z-index: 1;
}

.hero__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  display: block;
  color: var(--yellow);
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  max-width: 460px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bolt-path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Motto */
.motto {
  padding: 0 0 3.5rem;
}

.motto__text {
  background: var(--yellow);
  color: var(--black);
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.motto__text strong {
  font-weight: 900;
}

/* Section title */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Services */
.services {
  padding: 1rem 0 4rem;
}

.services__header {
  margin-bottom: 2.75rem;
}

.services__header .section-title {
  margin-bottom: 0.75rem;
}

.services__intro {
  max-width: 36ch;
  margin-inline: auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

.services__groups {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.service-group__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 1rem;
  padding-left: 0.15rem;
}

.services__grid {
  display: grid;
  gap: 1rem;
}

.services__grid--core {
  grid-template-columns: repeat(2, 1fr);
}

.services__grid--special {
  grid-template-columns: repeat(3, 1fr);
}

.service {
  position: relative;
  background: var(--black-card);
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--yellow);
  opacity: 0;
  transition: opacity var(--transition);
}

.service:hover,
.service:focus-within {
  border-color: rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.service:hover::before,
.service:focus-within::before {
  opacity: 1;
}

.service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  color: var(--yellow);
}

.service__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.service h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.service p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
}

/* CTA band */
.cta-band {
  background: var(--yellow);
  color: var(--black);
  padding: 2.5rem 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.cta-band__phone {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.cta-band__phone:hover {
  opacity: 0.75;
}

.cta-band__mail {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.cta-band__mail:hover {
  opacity: 0.75;
}

/* Contact */
.contact {
  padding: 4rem 0 5rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: block;
  background: var(--black-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.contact-item:hover {
  background: #1c1c1c;
}

.contact-item__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 0.2rem;
}

.contact-item__value {
  font-weight: 700;
  font-size: 1rem;
}

.contact-form {
  background: var(--black-card);
  padding: 1.75rem;
  border-radius: var(--radius);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--black);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.form-row textarea {
  resize: vertical;
  min-height: 96px;
}

.form-row--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.form-status--success {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--yellow);
}

.form-status--error {
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.4);
  color: #f08080;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  text-align: center;
}

.footer__logo {
  height: 64px;
  width: auto;
  margin-inline: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer p {
  font-size: 0.85rem;
  color: var(--gray);
}

.footer__contact {
  margin-top: 0.5rem;
}

.footer__contact a {
  color: var(--yellow);
  font-weight: 600;
}

.footer__contact a:hover {
  color: var(--white);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 99;
  height: 52px;
  min-width: 52px;
  padding: 0 14px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--yellow);
  color: var(--black);
  border-radius: 999px;
  transition: background 0.2s ease, gap 0.25s ease;
}

.floating-cta__number {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: max-width 0.3s ease, opacity 0.2s ease;
}

.floating-cta:hover {
  background: var(--yellow-dark);
  gap: 0.5rem;
}

.floating-cta:hover .floating-cta__number {
  max-width: 12rem;
  opacity: 1;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 900px) {
  .hero__stage {
    min-height: 360px;
    padding: 2rem 0.5rem;
  }

  .hero__bolt {
    width: 170px;
    opacity: 0.35;
  }

  .services__grid--core,
  .services__grid--special,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(260px, 85vw);
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition);
  }

  .nav.open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
