/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 86px;
  font-family: Arial, sans-serif;
  color: #1f1f1f;
  background: #fff;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

section {
  padding: 88px 0;
}

h2 {
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 24px;
}

.section-label {
  color: #f2b544;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}


/* =========================================================
   HEADER
========================================================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
   background: rgba(22,22,22,.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #f2b544;
  color: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.36);
}

.header__inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: transform .25s ease;
}

.logo img {
  width: 150px;
  display: block;
  transition:
    transform .25s ease,
    filter .25s ease;
}

.logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(242,181,68,.45));
}

.logo img {
  width: 150px;
}

.header__tagline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.header__tagline span {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.header__tagline small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: #f2b544;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__badge {
  color: #151515;
  background: #f2b544;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone:hover {
  color: #f2b544;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 640px;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.86) 0%,
      rgba(0, 0, 0, 0.68) 42%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    url("images/construction-bg.png") center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 36%, rgba(242, 181, 68, 0.16), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(255, 255, 255, 0.07), transparent 24%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 620px;
}

.hero__label {
  display: inline-block;
  color: #f2b544;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.03;
  margin: 0 0 22px;
}

.hero p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  background: #f2b544;
  color: #151515;
  box-shadow: 0 10px 28px rgba(242, 181, 68, 0.28);
}

.btn--primary:hover {
  background: #ffcc5c;
  box-shadow: 0 14px 36px rgba(242, 181, 68, 0.42);
}

.btn--secondary {
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.btn--secondary:hover {
  background: #fff;
  color: #151515;
  border-color: #fff;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
  background: #fff;
}

.about .container,
.works .container,
.before-after .container,
.steps .container,
.calculator .container,
.contacts .container {
  width: min(980px, calc(100% - 32px));
}

.about p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature {
  min-height: 92px;
  display: flex;
  align-items: center;
  background: #f7f7f7;
  padding: 22px 24px;
  border-left: 4px solid #f2b544;
  border-radius: 0 10px 10px 0;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   WORKS
========================================================= */

.works {
  background: #f6f6f6;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.project-card__image {
  position: relative;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__overlay span {
  background: #f2b544;
  color: #111;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 800;
}

.project-card__title {
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 800;
  color: #151515;
  border-left: 4px solid #f2b544;
}


/* =========================================================
   BEFORE / AFTER
========================================================= */

.before-after {
  background: #fff;
}

.ba-card {
  margin: 32px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  background: #111;
}

.ba-wrapper {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #111;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-img--before {
  object-position: left center;
}

.ba-img--after {
  object-position: right center;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.ba-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #f2b544;
  z-index: 2;
}

.ba-line::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f2b544;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  color: #fff;
  font-weight: 800;
}


/* =========================================================
   STEPS
========================================================= */

.steps {
  background: #f6f6f6;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.step-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid #f2b544;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.step-card span {
  color: #f2b544;
  font-size: 34px;
  font-weight: 900;
}

.step-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.step-card p {
  margin: 0;
  color: #666;
  line-height: 1.55;
}


/* =========================================================
   CALCULATOR
========================================================= */

.calculator {
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 181, 68, 0.12), transparent 28%),
    linear-gradient(135deg, #0c0c0c 0%, #151515 100%);
  color: #fff;
}

.calculator__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 54px;
  align-items: center;
}

.calculator__content {
  max-width: 540px;
}

.calculator__content p:not(.section-label) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.calc-box {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.calc-box label {
  display: block;
  font-weight: 800;
  margin-bottom: 18px;
}

.calc-box input,
.calc-box select {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
}

.calc-result {
  margin: 22px 0;
  padding: 18px;
  border-radius: 10px;
  background: #f2b544;
  color: #111;
}

.calc-result span {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.calc-result strong {
  font-size: 30px;
}


/* =========================================================
   CONTACTS
========================================================= */

.contacts {
  background:
    radial-gradient(circle at 18% 20%, rgba(242, 181, 68, 0.12), transparent 26%),
    linear-gradient(135deg, #0c0c0c 0%, #171717 100%);
  color: #fff;
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}

.contacts__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  align-items: center;
}

.contacts__content {
  max-width: 560px;
}

.contacts__label {
  color: #f2b544;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.contacts h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.contacts__text {
  max-width: 520px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

.contacts__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
}

.contact-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-btn--tg .contact-btn__icon {
  color: #229ed9;
}

.contact-btn--wa .contact-btn__icon {
  color: #25d366;
}

.contact-btn--max .contact-btn__icon {
  color: #f2b544;
}

.contact-btn span:last-child {
  font-size: 16px;
  font-weight: 800;
}


/* =========================================================
   FLOATING SOCIALS
========================================================= */

.floating-socials {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-social {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-social:hover {
  transform: translateY(-4px) scale(1.05);
}

.floating-social--tg {
  background: #229ed9;
}

.floating-social--wa {
  background: #25d366;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: linear-gradient(90deg, #090909, #151515);
  color: #fff;
}

.footer__inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo img {
  width: 160px;
  display: block;
}

.footer__text {
  color: #aaa;
  font-size: 13px;
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  gap: 28px;
}

.footer__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer__nav a:hover {
  color: #f2b544;
}


/* =========================================================
   PROJECT SLIDER
========================================================= */

.project-slider {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.project-slider.active {
  display: flex;
}

.project-slider__content {
  width: min(1100px, 100%);
}

.project-slider__content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
}

.project-slider__info {
  margin-top: 18px;
  color: #fff;
  text-align: center;
}

.project-slider__info h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.project-slider__info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.project-slider__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
}

.project-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #f2b544;
  color: #111;
  font-size: 42px;
  cursor: pointer;
  z-index: 2;
}

.project-slider__arrow--left {
  left: 32px;
}

.project-slider__arrow--right {
  right: 32px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .logo img {
    width: 145px;
  }

  .header__tagline,
  .header__badge {
    display: none;
  }

  .nav {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 68px;
  }

  section {
    padding: 60px 0;
  }

  .container,
  .about .container,
  .works .container,
  .before-after .container,
  .steps .container,
  .calculator .container,
  .contacts .container {
    width: min(100% - 24px, 1180px);
  }

  h2 {
    font-size: 34px;
  }

  .header__inner {
    height: 68px;
    gap: 14px;
  }

  .logo img {
    width: 130px;
  }

  .nav {
    margin-left: auto;
    gap: 14px;
  }

  .nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .header-phone {
    font-size: 13px;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 16px;
  }

  .features,
  .projects,
  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .calculator__wrap,
  .contacts__wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contacts__buttons {
    max-width: 380px;
  }

  .ba-wrapper {
    height: 420px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 64px;
  }

  section {
    padding: 52px 0;
  }

  h2 {
    font-size: 30px;
  }

  .header__inner {
    height: 64px;
  }

  .logo img {
    width: 118px;
  }

  .header-phone {
    display: none;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 11px;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .features,
  .projects,
  .steps__grid {
    grid-template-columns: 1fr;
  }

  .project-card__image img {
    height: 210px;
  }

  .ba-wrapper {
    height: 300px;
  }

  .calc-box {
    padding: 20px;
  }

  .contacts {
    padding: 56px 0;
  }

  .footer {
    padding: 28px 0;
  }

  .footer__inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .footer__nav {
    flex-direction: column;
    gap: 12px;
  }

  .floating-socials {
    right: 14px;
    bottom: 14px;
  }

  .floating-social {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .project-slider {
    padding: 16px;
  }

  .project-slider__content img {
    max-height: 70vh;
  }

  .project-slider__close {
    top: 12px;
    right: 18px;
    font-size: 40px;
  }

  .project-slider__arrow {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .project-slider__arrow--left {
    left: 10px;
  }

  .project-slider__arrow--right {
    right: 10px;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 105px;
  }

  .nav {
    gap: 8px;
  }

  .nav a {
    font-size: 10px;
  }

  .hero p {
    font-size: 15px;
  }

  .ba-wrapper {
    height: 260px;
  }

  .project-card__image img {
    height: 200px;
  }
}
.modal {
  display: none;
}
.contact-btn--phone .contact-btn__icon {
  color: #f2b544;
}
.logo img,
.footer-logo img {
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    opacity 0.25s ease;
}

.logo:hover img,
.footer-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(242, 181, 68, 0.35));
  opacity: 0.95;
}