:root {
  --bg: #ffffff;
  --text: #17181a;
  --muted: #5f646a;
  --dark: #2e3034;
  --line: #d8dade;
  --accent: #c9a180;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-height);
}

html {
  scroll-padding-top: calc(var(--header-height) + 10px);
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(1030px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #ececef;
}

.site-header .container {
  width: 100%;
  margin-inline: 0;
  padding-inline: 36px;
}

.nav-wrap {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  position: relative;
}

.brand {
  height: var(--header-height);
  display: flex;
  align-items: stretch;
}

.brand img {
  height: 100%;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  height: 100%;
}

.main-nav a {
  color: #000000;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  position: relative;
  padding-inline: 8px;
  transition: color 0.18s ease;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #1f2124;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: auto;
  height: 7px;
  background: #e1946e;
  border-radius: 5px 5px 0 0;
  opacity: 0;
  pointer-events: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #e0926e;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
}

.header-icons {
  display: flex;
  gap: 8px;
}

.header-icons span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f2f3f5;
  border: 1px solid #dedfe3;
}

.hero {
  position: relative;
  aspect-ratio: 1920 / 969;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: center 30% / cover no-repeat url('assets/images/hero.jpg');
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.03) 56%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  width: 100%;
  margin-inline: 0;
  padding-inline: 36px;
  padding-bottom: clamp(16px, 2.8vw, 34px);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .eyebrow {
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  margin-top: 6px;
  margin-bottom: 0;
  color: #ececec;
}

h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.section {
  padding-block: clamp(56px, 8.6vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.57rem;
  color: #a5a9b0;
  font-weight: 700;
  margin-bottom: 7px;
}

.eyebrow::before {
  content: '';
  width: 14px;
  height: 2px;
  background: #c5a992;
  flex: 0 0 14px;
}

.section-head {
  margin-bottom: 24px;
}

.compact-head {
  margin-bottom: 22px;
}

.section-head h2,
.contact-info h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.04;
  font-weight: 900;
}

.split {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.ref-about-grid {
  grid-template-columns: 0.95fr 1.2fr;
  align-items: center;
}

.media-stack {
  position: relative;
  min-height: 270px;
}

.media-card {
  overflow: hidden;
}

.media-card-back {
  position: absolute;
  left: -14px;
  top: 10px;
  width: calc(100% - 16px);
  height: calc(100% - 24px);
  background: #eceef2;
  border: 1px solid #e1e4ea;
}

.media-card-front {
  position: relative;
  width: 100%;
}

.about-copy {
  display: grid;
  gap: 14px;
}

.about-copy p {
  color: #383c42;
  font-size: 0.83rem;
  line-height: 1.66;
}

.btn {
  display: inline-block;
  justify-self: start;
  margin-top: 6px;
  padding: 8px 16px;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid #2f3238;
  background: #2f3238;
  color: #fff;
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.portfolio {
  padding-block: clamp(62px, 8vw, 90px);
}

.portfolio .eyebrow {
  color: #8f949b;
}

.portfolio-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.carousel-arrow {
  border: 0;
  background: transparent;
  color: #b9bdc5;
  font-size: 1.55rem;
  padding: 0 4px;
  line-height: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.project-card img {
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.zoomable-slide {
  cursor: zoom-in;
}

body.is-lightbox-open {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 30px);
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: min(1200px, 96vw);
  max-height: 92vh;
}

.lightbox-image {
  width: 100%;
  max-height: calc(92vh - 44px);
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 10px;
  color: #eceff3;
  font-size: 0.86rem;
  text-align: center;
}

.carousel-dots {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfd3da;
  opacity: 0.65;
}

.carousel-dot.is-active {
  opacity: 1;
  background: #ffffff;
}

.services {
  background: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-grid-compact .service-card {
  position: relative;
  background: transparent;
  border: 0;
  padding: 4px 0 0;
}

.service-num {
  position: absolute;
  left: -15px;
  top: -12px;
  font-family: 'Montserrat', 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  color: #f4f4f4;
  line-height: 1;
  z-index: 0;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  line-height: 1.35;
  margin-top: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.service-card p {
  position: relative;
  z-index: 1;
  color: #5e6369;
  font-size: 0.74rem;
  line-height: 1.64;
  max-width: 30ch;
}

.why-choose {
  background: #ffffff;
  padding-top: 26px;
}

.ref-why-grid {
  grid-template-columns: 0.9fr 1.2fr;
  align-items: center;
}

.why-choose .content-card {
  display: grid;
  gap: 10px;
}

.why-choose h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 0.98;
  font-weight: 900;
}

.why-choose p {
  font-size: 0.8rem;
  line-height: 1.74;
  color: #4f545b;
  max-width: 60ch;
}

.advantages {
  background: #ffffff;
  padding-top: 30px;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.adv-card {
  background: #fff;
  border: 1px solid #eceef2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  padding: 0 0 12px;
}

.adv-card img {
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
  margin-bottom: 10px;
}

.adv-card h3,
.adv-card p {
  padding-inline: 11px;
}

.adv-card h3 {
  font-size: 0.73rem;
  margin-bottom: 6px;
}

.adv-card p {
  font-size: 0.67rem;
  line-height: 1.56;
  color: #5f646a;
}

.contact {
  padding-block: clamp(56px, 8vw, 80px) 42px;
}

.split--contact {
  grid-template-columns: 0.8fr 1.3fr;
  align-items: center;
}

.contact-info .eyebrow {
  color: #8e939a;
}

.contact-intro {
  color: #b8bdc4;
  font-size: 0.76rem;
  line-height: 1.55;
  max-width: 33ch;
  margin: 12px 0 16px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

.contact-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 16px;
}

.contact-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  color: #f0f2f4;
  font-size: 0.94rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-bottom: 7px;
}

.contact-item p {
  color: #7f848b;
  font-size: 0.82rem;
  line-height: 1.2;
}

.site-footer {
  background: #2b2d31;
  color: #8f939a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-footer p {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer .right {
  text-align: right;
}

@media (max-width: 980px) {
  .container {
    width: min(1030px, calc(100% - 34px));
  }

  .site-header .container {
    padding-inline: 17px;
  }

  .main-nav {
    gap: 20px;
    font-size: 0.67rem;
  }

  .hero-content {
    padding-inline: 17px;
  }

  .section {
    padding-block: 48px;
  }

  .service-grid,
  .adv-grid {
    grid-template-columns: 1fr;
  }

  .ref-about-grid,
  .ref-why-grid,
  .split--contact {
    grid-template-columns: 1fr;
  }

  .portfolio-row {
    grid-template-columns: 1fr;
  }

  .carousel-arrow {
    display: none;
  }

  .site-footer .container {
    flex-direction: column;
    justify-content: center;
    min-height: 84px;
  }
}

@media (max-width: 720px) {
  .header-icons {
    display: none;
  }

  .section-head h2,
  .contact-info h2,
  .why-choose h2 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .site-header .container {
    padding-inline: 14px;
  }

  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 14px;
  }

  .brand {
    height: calc(var(--header-height) - 6px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 40;
    display: grid;
    align-items: stretch;
    grid-auto-flow: row;
    align-content: start;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid #ececef;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
    padding: 6px 18px 22px;
    height: calc(100dvh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav a {
    display: flex;
    width: 100%;
    height: auto;
    padding: 12px 0;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #eff1f4;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    display: none;
  }

  body.nav-open .main-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .hero {
    aspect-ratio: auto;
    min-height: 62vh;
  }

  .hero-bg {
    background-position: center center;
  }

  .hero-content {
    padding-inline: 14px;
    padding-bottom: clamp(18px, 6vw, 28px);
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
    line-height: 0.96;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .project-card img {
    aspect-ratio: 1.18 / 1;
  }

  .about-copy p,
  .why-choose p {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .service-card h3 {
    font-size: 0.84rem;
  }

  .service-card p {
    font-size: 0.82rem;
    max-width: none;
  }

  .adv-card h3 {
    font-size: 0.82rem;
  }

  .adv-card p,
  .contact-intro,
  .contact-item p {
    font-size: 0.8rem;
  }

  .site-footer p,
  .site-footer .right {
    text-align: center;
    letter-spacing: 0.07em;
    line-height: 1.5;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1030px, calc(100% - 24px));
  }

  .section {
    padding-block: 42px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .contact-item img {
    width: 30px;
    height: 30px;
  }
}
