:root {
  --bg: #f5f7fb;
  --dark: #111827;
  --text: #374151;
  --muted: #6b7280;
  --white: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e5e7eb;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--primary);
}

.header__phone {
  font-weight: 700;
  color: var(--dark);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--dark);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
}

/* Hero */

.hero {
  padding: 90px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero__tag,
.section__tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 24px;
}

.hero__text {
  max-width: 620px;
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--secondary {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
}

.hero__card {
  background: var(--white);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__card h3 {
  color: var(--dark);
  font-size: 26px;
  margin-bottom: 12px;
}

.hero__card p {
  color: var(--muted);
  margin-bottom: 20px;
}

.hero__card ul {
  list-style: none;
}

.hero__card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.hero__card li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 10px;
}

/* Sections */

.section {
  padding: 90px 0;
}

.section__top {
  margin-bottom: 36px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: var(--dark);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
}

.service-card h3 {
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 22px;
}

.service-card p {
  color: var(--muted);
}

/* About */

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--dark h2 {
  color: var(--white);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about__content p:last-child {
  color: #d1d5db;
  font-size: 18px;
  margin-top: 20px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about__stats div {
  background: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: var(--radius);
}

.about__stats strong {
  display: block;
  font-size: 34px;
  color: var(--white);
}

.about__stats span {
  color: #d1d5db;
}

/* Works */

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  background: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work-card__image {
  height: 210px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(17, 24, 39, 0.1)),
    #e5e7eb;
  margin-bottom: 18px;
}

.work-card h3 {
  color: var(--dark);
  font-size: 22px;
  margin-bottom: 8px;
}

.work-card p {
  color: var(--muted);
}

/* Contacts */

.contacts__inner {
  background: var(--white);
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contacts__inner p {
  color: var(--muted);
  margin-top: 12px;
}

.contacts__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* Animation */

.animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Adaptive */

@media (max-width: 900px) {
  .header__phone {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .hero__inner,
  .about {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .works {
    grid-template-columns: 1fr;
  }

  .contacts__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 60px 0;
  }

  .section {
    padding: 60px 0;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .hero__card,
  .contacts__inner {
    padding: 26px;
  }

  .btn {
    width: 100%;
  }
}