:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #f97316;
  --primary-dark: #ea580c;
  --accent: #fff7ed;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #f8fafc;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--primary);
  border-radius: 12px;
}

.nav {
  display: flex;
  gap: 24px;
  transition: 0.35s ease;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone {
  font-weight: 700;
  white-space: nowrap;
}

.burger {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: white;
  margin: 0 auto;
  transition: 0.3s ease;
}

/* HERO */
.hero {
  position: relative;
  padding: 96px 0 72px;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.7)),
    url("/assets/images/home/hero.jpg") center/cover no-repeat;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 12ch;
}

.hero__desc {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

.badge,
.section__subtitle {
  display: inline-block;
  background: rgba(249, 115, 22, 0.14);
  color: #fdba74;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--full {
  width: 100%;
}

.hero__stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  border-radius: 16px;
  min-width: 120px;
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
}

.hero__card,
.card,
.about__sidebar,
.about__feature,
.project,
.review-card,
.form,
.calculator__form,
.calculator__result,
.about-page__box,
.about-page__text,
.feature-split__content,
.photo-banner {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero__card {
  padding: 28px;
}

.hero__card h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.hero__card p {
  color: #334155;
}

.mini-form,
.form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  background: white;
  transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.section {
  padding: 86px 0;
}

.section--alt {
  background: #f1f5f9;
}

.section__head {
  margin-bottom: 28px;
}

.section__head h2,
.about h2,
.contact h2,
.calculator h2,
.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}

.text-dark {
  color: #334155;
  margin-bottom: 16px;
  max-width: 760px;
}

/* GRID BLOCKS */
.grid {
  display: grid;
  gap: 20px;
}

.services {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 24px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.about__feature {
  padding: 18px;
}

.about__feature h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.about__feature p {
  color: #475569;
}

.about__sidebar {
  padding: 24px;
}

.about__sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.about__list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.about__list li {
  position: relative;
  padding-left: 24px;
  color: #334155;
}

.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* FEATURE SPLIT */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.feature-split__image {
  min-height: 360px;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.feature-split__image--1 {
  background-image: url("/assets/images/home/roof-team.jpg");
}

.feature-split__content {
  padding: 32px;
}

.feature-split__content h2 {
  margin-bottom: 14px;
}

/* PHOTO GRID */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-grid__item {
  min-height: 280px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.photo-grid__item--1 {
  background-image: url("/assets/images/home/photo-1.png");
}

.photo-grid__item--2 {
  background-image: url("/assets/images/home/photo-2.JPG");
}

.photo-grid__item--3 {
  background-image: url("/assets/images/home/photo-3.jpg");
}

/* PAGE HERO */
.page-hero {
  padding: 72px 0 30px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: white;
}

.page-hero__text {
  color: rgba(255, 255, 255, 0.8);
  max-width: 760px;
  margin-top: 14px;
}

/* CALCULATOR */
.calculator__grid,
.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  margin-top: 26px;
}

.calculator__form,
.calculator__result {
  padding: 24px;
}

.calculator__form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.calculator__result {
  display: grid;
  align-content: start;
  gap: 14px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}

.calculator__label {
  color: #ea580c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.price {
  font-size: 2.8rem;
  font-weight: 800;
  color: #c2410c;
  line-height: 1;
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project {
  overflow: hidden;
}

.project__img {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.project__img--1 {
  background-image: url("/assets/images/projects/project-1.jpg");
}

.project__img--2 {
  background-image: url("/assets/images/projects/project-2.jpg");
}

.project__img--3 {
  background-image: url("/assets/images/projects/project-3.jpg");
}

.project__body {
  padding: 20px;
}

.project__body p {
  color: var(--muted);
  margin-top: 8px;
}

/* REVIEWS */
.slider {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
}

.slider__viewport {
  overflow: hidden;
  width: 100%;
}

.slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slider__track > .review-card {
  min-width: 100%;
  box-sizing: border-box;
}

.slider__btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
  flex: 0 0 auto;
}

.slider__btn:hover {
  background: #1e293b;
}

.review-card {
  padding: 28px;
}

.review-card__top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.review-card__avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.review-card__top h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: #0f172a;
}

.review-card__top span {
  color: #64748b;
  font-size: 0.92rem;
}

.review-card__rating {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 14px;
}

.review-card p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.7;
}

/* CONTACT */
.contact__details {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contact__details a {
  color: var(--primary-dark);
  font-weight: 600;
}

.form--premium {
  padding: 28px;
  border: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 30%),
    #ffffff;
}

.form__header {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form__header h3 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.form__header p {
  color: var(--muted);
}

.form__note {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}

.contact__points {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.contact-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.contact-point span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff7ed;
  color: #ea580c;
  font-weight: 800;
  flex: 0 0 auto;
}

.contact-point p {
  color: #334155;
  margin-top: 3px;
}

/* PHOTO BANNER */
.photo-banner {
  min-height: 340px;
  padding: 32px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.75)),
    url("/assets/images/home/roof-banner.png") center/cover no-repeat;
  color: white;
}

.photo-banner__text {
  max-width: 640px;
}

.photo-banner h2 {
  color: white;
  margin-bottom: 12px;
}

.photo-banner p {
  color: rgba(255, 255, 255, 0.86);
}

/* FOOTER */
.footer {
  background: var(--bg);
  color: rgba(255, 255, 255, 0.8);
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  gap: 18px;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 2000;
}

.modal.active {
  display: grid;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.modal__content {
  position: relative;
  z-index: 1;
  background: white;
  padding: 34px;
  border-radius: 24px;
  width: min(420px, calc(100% - 24px));
  text-align: center;
  box-shadow: var(--shadow);
  animation: pop 0.35s ease;
}

.modal__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  font-weight: 800;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #f3f4f6;
  font-size: 1.4rem;
}

@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }

  .nav.active {
    max-height: 340px;
    padding: 20px 16px;
  }

  .burger {
    display: flex;
  }

  .hero__content,
  .about,
  .calculator__grid,
  .contact,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .services,
  .projects,
  .about__features,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }
}

@media (max-width: 640px) {
  .services,
  .projects,
  .about__features,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
  }

  .slider {
    grid-template-columns: 1fr;
  }

  .slider__btn {
    display: none;
  }
}