* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: #1f2937;
  background: #f9fafb;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  font-weight: 600;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: #111827;
}

.btn {
  background: #1e3a8a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(30, 58, 138, 0.25);
}

.btn--ghost {
  background: transparent;
  color: #1e3a8a;
  border: 1px solid rgba(30, 58, 138, 0.3);
  box-shadow: none;
}

.btn--wide {
  width: 100%;
  display: inline-block;
}

.hero {
  position: relative;
  padding: 120px 0 80px;
  background: radial-gradient(circle at top left, #dbeafe, #f9fafb 60%);
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 40px;
}

.hero__text h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 16px 0;
  line-height: 1.1;
}

.hero__text p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: #374151;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.hero__stats strong {
  font-size: 1.4rem;
  display: block;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__form {
  background: #fff;
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 16px;
}

.hero__form label,
.contacts__form label,
.modal form label,
.calculator__fields label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.hero__form input,
.contacts__form input,
.contacts__form textarea,
.modal form input,
.calculator__fields input,
.calculator__fields select {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}

.hero__glow {
  position: absolute;
  width: 480px;
  height: 480px;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 50%;
  filter: blur(100px);
  right: -120px;
  bottom: -180px;
}

.pill {
  display: inline-block;
  background: rgba(30, 58, 138, 0.1);
  color: #1e3a8a;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.section {
  padding: 90px 0;
  background: #fff;
}

.section--light {
  background: #f9fafb;
}

.section__header {
  max-width: 700px;
  margin-bottom: 40px;
}

.section__header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.grid--portfolio {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--gallery {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid--reviews {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.service-card,
.review-card,
.pricing__item {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.service-card span {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  color: #1e3a8a;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline__item {
  display: flex;
  gap: 18px;
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.timeline__item span {
  font-weight: 700;
  color: #f97316;
  font-size: 1.2rem;
}

.portfolio-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.portfolio-card__image {
  height: 200px;
  background: linear-gradient(120deg, #1e3a8a, #f97316);
}

.portfolio-card figcaption {
  padding: 18px;
  font-weight: 500;
}

.gallery {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.gallery h3 {
  font-size: 1.4rem;
}

.gallery-card {
  border: none;
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(140deg, #cbd5f5, #fde68a);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card span {
  font-weight: 600;
  color: #1f2937;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 90;
  padding: 20px;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #0f172a;
  border-radius: 20px;
  padding: 20px;
}

.lightbox__content img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.lightbox__close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  background: #fff;
  border-radius: 24px;
  padding: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.calculator__result {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.calculator__result strong {
  font-size: 1.6rem;
  color: #1e3a8a;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pricing__note {
  background: rgba(30, 58, 138, 0.08);
  padding: 18px;
  border-radius: 16px;
  grid-column: 1 / -1;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  align-items: center;
}

.about__list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  padding-left: 16px;
}

.about__stats {
  display: grid;
  gap: 14px;
}

.about__stats strong {
  font-size: 1.6rem;
}

.faq details {
  background: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: start;
  margin-bottom: 30px;
}

.contacts__info ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  list-style: none;
}

.contacts__tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts__tags span {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer {
  background: #111827;
  color: #f9fafb;
  padding: 50px 0;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer__contact {
  display: grid;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  z-index: 80;
}

.modal.is-active {
  opacity: 1;
  pointer-events: all;
}

.modal__content {
  background: #fff;
  padding: 36px;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  display: grid;
  gap: 16px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
    flex-direction: column;
    padding: 24px 10%;
    gap: 12px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header__actions .phone {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .btn {
    width: 100%;
  }

  .pricing {
    grid-template-columns: 1fr;
  }
}

