/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --color-accent: #ffae00;
  --color-text: #000000;
  --color-text-muted: #828282;
  --color-white: #ffffff;
  --color-border: #e6e6e6;
  --color-hero-bg: #f5f4f2;

  --font-family: 'Inter', sans-serif;

  --navbar-height: 76px;
  --container-max: 1260px;
  --container-px: 90px;

  --radius-sm: 12px;
  --radius-md: 28px;
  --radius-lg: 30px;
  --radius-xl: 33px;
  --radius-2xl: 35px;

  --transition: 0.2s ease;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

address {
  font-style: normal;
}

/* ================================================================
   LAYOUT UTILITY
   ================================================================ */
.container {
  max-width: calc(var(--container-max) + var(--container-px) * 2);
  padding-left: var(--container-px);
  padding-right: var(--container-px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ================================================================
   TYPOGRAPHY UTILITIES
   ================================================================ */
.heading-section {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.06rem;
  line-height: 1.2;
  color: var(--color-text);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 300;
  border-radius: 12px;
  transition: background-color var(--transition), opacity var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-cta:hover {
  opacity: 0.88;
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navig {
  padding: 20px 0px;
  background-image: 
  linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
  url("/texture-concrete.jpg");
  }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--navbar-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background-color var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand (left side of navbar) */
.navbar__brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-family);
  line-height: 1;
}

.navbar__brand-ks {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.navbar__brand-grupp {
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-text);
}

/* Nav links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-text);
  transition: color var(--transition);
  position: relative;
  padding: 6px 20px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover:not(.active) {
  color: var(--color-accent);
}

.nav-link:hover:not(.active)::after {
  width: 100%;
}

/* Active nav link — amber button style */
.nav-link.active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  background-color: var(--color-accent);
  color: var(--color-text);
  border-radius: 8px;
  position: static;
}

.nav-link.active::after {
  display: none;
}

.nav-link.active:hover {
  opacity: 0.88;
  color: var(--color-text);
}

/* Burger (mobile) */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.navbar__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__burger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding-top: var(--navbar-height);
  display: flex;
  align-items: stretch;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.hero__logo {
  width: min(403px, 100%);
  height: auto;
}

.hero__tagline {
  font-family: var(--font-family);
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 560px;
}

.hero__media {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 20px;
}

.hero__image {
  width: 100%;
  max-width: 612px;
  height: 702px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ================================================================
   TEXTURE DIVIDER
   ================================================================ */
.texture-divider {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.texture-divider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--color-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}

.about__media {
  flex-shrink: 0;
}

.about__image {
  width: 100%;
  max-width: 632px;
  height: 542px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

.about__heading {
  font-family: var(--font-family);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.about__body {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
}

.about__body strong {
  font-weight: 700;
}

.about__banner {
  background-color: var(--color-accent);
  border-radius: 20px;
  padding: 32px 48px;
  text-align: center;
}

.about__banner-text {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.04rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ================================================================
   SERVICES
   ================================================================ */
.services {
  position: relative;
}

.services__bg {
  background-image: 
  linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
  url('/texture-concrete.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 64px;
  padding-bottom: 80px;
}

.services__title {
  font-family: var(--font-family);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 48px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}

.service-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-img {
  width: 100%;
  aspect-ratio: 393 / 378;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}

.service-img:hover {
  transform: scale(1.02);
}

.service-img--second {
  margin-top: 24px;
}

.service-title {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.service-text {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-muted);
}

/* ================================================================
   PROCESS
   ================================================================ */
.process {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--color-white);
}

.process__title {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04rem;
  color: var(--color-text);
  margin-bottom: 64px;
  max-width: 900px;
}

.process__row {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.process__row--top {
  grid-template-columns: repeat(3, 1fr);
}

.process__row--bottom {
  grid-template-columns: repeat(2, 1fr);
  padding-left: calc(100% / 6);
  margin-bottom: 0;
}

.process__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  font-family: var(--font-family);
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
  user-select: none;
}

.step-content {
  padding-top: 16px;
}

.step-title {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 8px;
}

.step-desc {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ================================================================
   WHY US
   ================================================================ */
.why-us__bg {
  background-image: 
  linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
  url('/texture-concrete.jpg');
  background-size: cover;
  background-position: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.why-us__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why-item__title {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.why-item__desc {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.why-us__media {
  display: flex;
  justify-content: flex-end;
}

.why-us__image {
  width: 100%;
  max-width: 746px;
  height: 552px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: transform 0.4s ease;
}

.why-us__image:hover {
  transform: scale(1.02);
}

/* ================================================================
   CASES
   ================================================================ */
.cases {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--color-white);
}

.cases__title {
  font-family: var(--font-family);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.06rem;
  color: var(--color-text);
  margin-bottom: 10px;
}

hr {
  background-color: #ffae00;
  height: 3px;
  border: none;
}

.cases__gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 40px;
  margin-bottom: 20px;
}

.cases__img {
  object-fit: cover;
  border-radius: var(--radius-md);
  width: 100%;
  transition: transform 0.35s ease;
}

.cases__img:hover {
  transform: scale(1.02);
}

.cases__img--main {
  height: 470px;
}

.cases__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cases__img--sm {
  height: 250px;
}

.cases__img--xs {
  height: 200px;
}

.cases__quote {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 40px 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.quote-text {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.quote-author {
  font-family: var(--font-family);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

.quote-position {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: -32px;
}

/* ================================================================
   CONTACTS / FOOTER
   ================================================================ */
.contacts {
  position: relative;
}

.contacts__bg {
    background-image:
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
    url('/bg-contacts.jpg');
  background-size: cover;
  background-position: center top;
  min-height: 900px;
  display: flex;
  align-items: flex-start;
}

.contacts__inner {
  padding-top: 64px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.contacts__heading {
  font-family: var(--font-family);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.06rem;
  color: var(--color-text);
}

.contacts__logo {
  width: min(403px, 100%);
  height: auto;
}

.contacts__address {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 200;
  line-height: 1.875rem;
  color: var(--color-text);
  margin-top: 300px;
}

.contacts__address a {
  color: var(--color-text);
  transition: color var(--transition);
}

.contacts__address a:hover {
  color: var(--color-accent);
}

/* ================================================================
   SCROLL FADE-IN ANIMATION
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE — TABLET (≤1100px)
   ================================================================ */
@media (max-width: 1100px) {
  :root {
    --container-px: 48px;
  }

  .hero__image {
    height: 500px;
  }

  .about__image {
    height: 420px;
  }

  .about__body {
    font-size: 1.5rem;
  }

  .about__banner-text {
    font-size: 1.5rem;
  }

  .services__grid {
    gap: 32px;
  }

  .step-number {
    font-size: 5rem;
    min-width: 60px;
  }

  .process__row--bottom {
    padding-left: calc(100% / 6);
  }

  .why-us__image {
    height: 420px;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤768px)
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --container-px: 20px;
    --navbar-height: 64px;
  }

  /* ----- Navbar ----- */
  .navbar__burger {
    display: flex;
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 32px;
    gap: 0;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 99;
    animation: slideDown 0.2s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .navbar__nav.open {
    display: flex;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    margin-top: 16px;
    padding: 14px 0;
    text-align: center;
    border-radius: 4px;
    width: 100%;
    border-bottom: none;
    position: static;
  }

  /* ----- Hero ----- */
  .hero {
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero__content {
    gap: 28px;
    align-items: flex-start;
    order: 1;
  }

  .hero__logo {
    width: min(260px, 100%);
  }

  .hero__tagline {
    font-size: 1.375rem;
  }

  .btn-cta {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .hero__media {
    order: 2;
    justify-content: center;
    padding-top: 0;
  }

  .hero__image {
    height: 280px;
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  /* ----- Texture divider ----- */
  .texture-divider {
    height: 80px;
  }

  /* ----- About ----- */
  .about {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .about__image {
    height: 280px;
    border-radius: var(--radius-md);
  }

  .about__heading {
    font-size: 2rem;
  }

  .about__body {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .about__banner {
    padding: 24px 20px;
    border-radius: 8px;
  }

  .about__banner-text {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  /* ----- Services ----- */
  .services__bg {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .services__title {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-img {
    aspect-ratio: 4 / 3;
  }

  .service-title {
    font-size: 1.25rem;
  }

  .service-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* ----- Process ----- */
  .process {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .process__title {
    font-size: 1.375rem;
    margin-bottom: 40px;
  }

  .process__row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .process__row--bottom {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .step-number {
    font-size: 3.5rem;
    min-width: 48px;
  }

  .step-title {
    font-size: 1.125rem;
  }

  .step-desc {
    font-size: 1rem;
  }

  /* ----- Why Us ----- */
  .why-us__bg {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .why-us__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-item__title {
    font-size: 1.25rem;
  }

  .why-item__desc {
    font-size: 1rem;
  }

  .why-us__media {
    justify-content: center;
  }

  .why-us__image {
    height: 280px;
    border-radius: var(--radius-md);
  }

  /* ----- Cases ----- */
  .cases {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cases__title {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  .cases__gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .cases__img--main {
    height: 240px;
  }

  .cases__side {
    flex-direction: row;
    gap: 12px;
  }

  .cases__img--sm,
  .cases__img--xs {
    flex: 1;
    height: 110px;
  }

  .cases__quote {
    padding: 24px 20px;
    gap: 24px;
    max-width: 100%;
  }

  .quote-text {
    font-size: 1.125rem;
  }

  .quote-author {
    font-size: 1rem;
  }

  /* ----- Contacts ----- */
  .contacts__bg {
    min-height: auto;
    background-position: center;
  }

  .contacts__inner {
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 24px;
  }

  .contacts__heading {
    font-size: 2rem;
  }

  .contacts__logo {
    width: min(260px, 100%);
  }

  .contacts__address {
    font-size: 1rem;
    margin-top: 40px;
    line-height: 1.6;
  }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (≤400px)
   ================================================================ */
@media (max-width: 420px) {
  .hero__tagline {
    font-size: 1.25rem;
  }

  .about__body {
    font-size: 1rem;
  }

  .step-number {
    font-size: 2.75rem;
    min-width: 40px;
  }

  .cases__side {
    flex-direction: column;
  }

  .cases__img--sm,
  .cases__img--xs {
    height: 160px;
  }
}
