:root {
  --color-orange: #ea580c;
  --color-orange-dark: #c2410c;
  --color-orange-light: #fff7ed;
  --color-gray-950: #111827;
  --color-gray-900: #1f2937;
  --color-gray-700: #374151;
  --color-gray-500: #6b7280;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-gray-50: #f9fafb;
  --font: "Manrope", system-ui, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-gray-900);
  background: var(--color-gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-gray-950);
}

.logo span {
  color: var(--color-orange);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-700);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-orange);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-gray-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.55) 48%, rgba(234, 88, 12, 0.35) 100%),
    linear-gradient(to top, rgba(17, 24, 39, 0.75), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  max-width: 640px;
}

.hero__brand {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__brand span {
  color: #fdba74;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  border: none;
  background: var(--color-orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--color-orange-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-gray-300, #d1d5db);
  color: var(--color-gray-900);
}

.btn-outline:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: var(--color-orange-light);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: #fff;
}

.section__head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-gray-950);
}

.section__lead {
  margin: 0;
  color: var(--color-gray-500);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--color-gray-700);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.85rem;
}

.about-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}

.about-gallery img:nth-child(1) {
  height: 230px;
}

.about-gallery img:nth-child(4) {
  height: 230px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-item {
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--color-orange);
  background: #fff;
}

.section--alt .service-item {
  background: var(--color-gray-50);
}

.service-item h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.service-item p {
  margin: 0;
  color: var(--color-gray-500);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.project-card p {
  margin: 0;
  color: var(--color-gray-500);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-gray-200);
}

.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--color-orange-light);
  color: var(--color-orange);
  flex-shrink: 0;
}

.why-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.why-item p {
  margin: 0;
  color: var(--color-gray-500);
  font-size: 0.98rem;
}

/* Reviews carousel */
.carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
}

.carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  padding: 2.25rem 2rem;
  text-align: center;
}

.carousel__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-orange-light);
}

.carousel__quote {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  color: var(--color-gray-700);
  line-height: 1.65;
}

.carousel__name {
  margin: 0;
  font-weight: 800;
  color: var(--color-gray-950);
}

.carousel__role {
  margin: 0.25rem 0 0;
  color: var(--color-gray-500);
  font-size: 0.95rem;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-200);
  background: #fff;
  color: var(--color-gray-900);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.carousel__btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: var(--color-orange-light);
}

.carousel__dots {
  display: flex;
  gap: 0.45rem;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-gray-200);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__dot.is-active {
  background: var(--color-orange);
  transform: scale(1.15);
}

/* Contacts */
.contacts-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.section#contacts .section__head {
  margin-inline: auto;
  text-align: center;
}

.contact-list {
  display: grid;
  gap: 1rem;
  width: min(420px, 100%);
}

.contact-item {
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
}

.contact-item span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.contact-item a,
.contact-item p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gray-950);
}

.contact-item a:hover {
  color: var(--color-orange);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-gray-200);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--color-gray-900);
  background: var(--color-gray-50);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
  background: #fff;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

.form-success {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--color-orange-light);
  color: var(--color-orange-dark);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--color-gray-950);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 800;
  color: #fff;
}

.footer-brand span {
  color: #fdba74;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 900px) {
  .burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--color-gray-100);
  }

  .about-grid,
  .services-grid,
  .projects-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-gallery img,
  .about-gallery img:nth-child(1),
  .about-gallery img:nth-child(4) {
    height: 160px;
  }

  .hero {
    min-height: 78vh;
  }

  .carousel__slide {
    padding: 1.75rem 1.25rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .about-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .logo {
    font-size: 1.05rem;
  }

  .hero__content {
    padding: 3.5rem 1.25rem 3rem;
  }

  .contact-item a {
    font-size: 1.05rem;
    word-break: break-word;
  }
}
