:root {
  --color-ink: #242424;
  --color-muted: #67645f;
  --color-line: #ded9d0;
  --color-bg: #f3efe6;
  --color-paper: #fffaf1;
  --color-stone: #292929;
  --color-charcoal: #181817;
  --color-accent: #a8895b;
  --color-accent-dark: #806640;
  --shadow: 0 18px 50px rgba(36, 36, 36, 0.12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px max(16px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(222, 217, 208, 0.75);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo__image {
  width: 92px;
  height: 46px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.logo__name,
.logo__caption {
  display: block;
}

.logo__name {
  font-weight: 700;
}

.logo__caption {
  color: var(--color-muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--color-muted);
  font-size: 15px;
}

.main-nav a:hover,
.phone-link:hover {
  color: var(--color-accent-dark);
}

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

.phone-link {
  font-weight: 700;
  min-width: max-content;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  color: #fff;
  background: var(--color-accent-dark);
  border: 1px solid var(--color-accent-dark);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: #6e5736;
  border-color: #6e5736;
  transform: translateY(-1px);
}

.button--small {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 14px;
}

.button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.button--secondary {
  color: var(--color-ink);
  background: transparent;
  border-color: var(--color-line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--color-ink);
}

.section {
  position: relative;
  padding: 88px 0;
}

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

.section-muted {
  background: var(--color-bg);
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.9), rgba(18, 18, 17, 0.7), rgba(18, 18, 17, 0.38)),
    url("../assets/works/work-18.jpg") center / cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(280px, 360px);
  align-items: end;
  gap: 44px;
  padding: 120px 0 54px;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-showcase {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.hero-showcase::before {
  content: none;
}

.hero-showcase img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: none;
}

.hero-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.hero-benefits li {
  padding: 14px;
  background: rgba(24, 24, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.hero-benefits strong,
.hero-benefits span {
  display: block;
}

.hero-benefits strong {
  font-size: 24px;
}

.hero-benefits span {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 56px;
}

.text-stack p {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head h2::after {
  content: none;
}

.section-head p:not(.eyebrow) {
  color: var(--color-muted);
}

.section-head--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.cards {
  display: grid;
  gap: 16px;
}

.cards--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.service-card {
  padding: 24px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.service-card .icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--color-stone);
  border-radius: 50%;
  font-weight: 700;
}

.service-card h3,
.product-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.service-card p,
.product-card p {
  color: var(--color-muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  display: block;
  min-height: 0;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(36, 36, 36, 0.05);
}

.product-card:first-child {
  grid-row: auto;
  min-height: 0;
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.product-card:hover img {
  transform: scale(1.035);
}

.product-card div {
  padding: 20px;
  color: var(--color-ink);
  background: transparent;
}

.product-card p {
  color: var(--color-muted);
}

.product-card a {
  color: var(--color-accent-dark);
}

.benefits .section-head {
  max-width: 820px;
}

.benefits .eyebrow,
.contacts .eyebrow {
  color: #d9bd91;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.benefit-grid div {
  padding: 24px;
  background: var(--color-stone);
}

.benefit-grid strong,
.benefit-grid span {
  display: block;
}

.benefit-grid strong {
  font-size: 20px;
}

.benefit-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 0;
}

.timeline li {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.timeline span {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.timeline p {
  margin: 16px 0 0;
}

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

.gallery-item {
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 40px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list dt {
  color: rgba(255, 255, 255, 0.58);
}

.contact-list dd {
  margin: 0;
}

.messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.messengers a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.map-placeholder {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.map-caption {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding: 12px 14px;
  color: var(--color-ink);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-caption strong,
.map-caption span {
  display: block;
}

.map-caption span {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 14px;
}

.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.site-footer {
  padding: 26px 0;
  background: #1e1e1d;
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.quick-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--color-accent-dark);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.lightbox,
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 20, 0.82);
}

.lightbox.is-open,
.modal.is-open {
  display: flex;
}

.lightbox img {
  max-height: 76vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox p {
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: 24px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.lightbox button,
.modal__panel button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal__panel {
  position: relative;
  max-width: 620px;
  padding: 32px;
  background: var(--color-paper);
  border-radius: var(--radius);
}

.modal__panel button {
  color: var(--color-ink);
  background: var(--color-bg);
  border-color: var(--color-line);
}

.cookie {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 430px;
  padding: 14px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cookie.is-hidden {
  display: none;
}

.cookie p {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.is-open .main-nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }

  .site-header.is-open .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero__content,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-top: 100px;
  }

  .hero-showcase {
    max-width: 440px;
  }

  .hero-showcase img {
    height: 420px;
  }

  .cards--services,
  .catalog-grid,
  .benefit-grid,
  .timeline,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section {
    padding: 62px 0;
  }

  .site-header {
    gap: 14px;
  }

  .logo__caption {
    display: none;
  }

  .logo__image {
    width: 78px;
    height: 40px;
  }

  .hero__content {
    padding: 84px 0 64px;
  }

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

  .lead {
    font-size: 18px;
  }

  .hero-showcase {
    display: none;
  }

  .hero__actions,
  .section-head--row,
  .footer-grid,
  .cookie {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button--secondary {
    width: 100%;
  }

  .cards--services,
  .catalog-grid,
  .benefit-grid,
  .timeline,
  .gallery {
    grid-template-columns: 1fr;
  }

  .timeline li {
    min-height: auto;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .quick-call {
    display: grid;
  }

  .cookie {
    left: 12px;
    right: 12px;
    bottom: 84px;
  }
}
