:root {
  --bg: #0d1218;
  --surface: #141c25;
  --surface-soft: #1a232e;
  --text: #f1f4fa;
  --muted: #a9b4c6;
  --primary: #f5a623;
  --primary-dark: #dc8f18;
  --accent: #ffca66;
  --whatsapp: #25d366;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: #0b1015;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid #263142;
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(13, 18, 24, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__links a {
  text-decoration: none;
  color: #dae1f0;
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("https://podklyuch23.ru/wp-content/uploads/2021/06/worker-tools-measures-plans.jpeg");
  background-size: cover;
  background-position: 78% center;
  filter: brightness(0.82) contrast(1.08);
  transform: scale(1);
  animation: heroZoom 28s ease-in-out infinite alternate;
}
@media (max-width: 768px) {
  .hero__bg {
    background-position: 40% center;
  }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.24)
  );
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(255, 202, 102, 0.7);
}

.hero__title {
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 1.08;
  max-width: 760px;
  text-wrap: balance;
}

.hero__subtitle {
  margin: 0 0 40px;
  color: rgba(230, 238, 250, 0.82);
  max-width: 560px;
  font-size: clamp(1rem, 2.8vw, 1.22rem);
}

.hero__checklist {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 11px;
  max-width: 560px;
}

.hero__checklist li {
  position: relative;
  padding-left: 28px;
  display: flex;
  align-items: center;
  color: rgba(236, 242, 251, 0.92);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
}

.hero__checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #0d1218;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__list {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 16px;
  color: #ffffff;
  font-weight: 600;
  max-width: 500px;
}

.hero__list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  letter-spacing: 0.01em;
}

.hero__list li span {
  color: var(--primary);
  font-weight: 700;
  min-width: 28px;
  font-size: 0.9rem;
}

.hero__microcopy {
  margin-top: 58px;
  margin-bottom: 12px;
  color: #d8f8e3;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-step {
  opacity: 0;
  transform: translateY(16px);
  animation: heroStepIn 0.6s ease forwards;
  animation-delay: var(--step-delay, 0s);
}

.section-head {
  margin-bottom: 28px;
}

.section-head__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.service-row:hover {
  transform: translateX(8px);
}

.service-row__index {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  padding-top: 6px;
}

.service-row__content h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin-bottom: 8px;
  font-weight: 700;
}

.service-row__content p {
  color: var(--muted);
  max-width: 740px;
  font-size: 1rem;
}

/* Why choose us in clean inline style */
.why-us__stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.stat-item h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 7px;
  color: #fff;
}

.stat-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease,
    border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: #18130a;
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
}

.btn--hero-whatsapp {
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 0 rgba(37, 211, 102, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--hero-whatsapp:hover {
  transform: scale(1.03);
  background: #22c55e;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.55);
}

.btn__icon {
  width: 19px;
  height: 19px;
}

.btn--hero-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  padding: 13px 24px;

}

.btn--hero-secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--telegram {
  background: transparent;
  color: #d8e8ff;
  border-color: var(--line);
}

.btn--telegram:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.contact__btn {
  width: 100%;
  text-align: center;
}

/* Contact */
.contact__layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 0.9fr 1.2fr;
}

.contact__quick {
  padding-top: 8px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact__note {
  color: var(--muted);
  max-width: 320px;
}

.contact-form {
  padding: 4px 0 0;
}

.contact-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  color: #d9e3f4;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 10px 2px;
  font: inherit;
  outline: none;
  color: #fff;
  background: transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  transform: translateX(2px);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 12px;
  min-height: 24px;
  color: #f2c69b;
  font-weight: 600;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  animation: pulse 2.2s infinite;
  text-decoration: none;
}

.wh-icon {
  width: 28px;
  height: 28px;
  fill: white;
  display: block;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

@keyframes heroStepIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal effect */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive rules */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .why-us__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact__layout {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 70px 1fr;
  }
}

@media (max-width: 700px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: static;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav__right {
    position: absolute;
    top: 78px;
    left: 4%;
    right: 4%;
    padding: 14px;
    border-radius: var(--radius);
    background: #121a23f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav__right.open {
    display: flex;
  }

  .section {
    padding: 75px 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero__content {
    padding-top: 96px;
    max-width: 620px;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .hero__subtitle {
    margin-bottom: 32px;
  }

  .hero__checklist {
    margin-bottom: 32px;
    gap: 10px;
  }

  .hero__list {
    gap: 14px;
  }

  .hero__microcopy {
    margin-top: 50px;
  }

  .hero__cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn--hero-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }

  .btn--hero-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .why-us__stats {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
