:root {
  --ink: #172026;
  --muted: #65727b;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --line: #dde2e4;
  --accent: #0d6b61;
  --accent-dark: #084a45;
  --warm: #c8843f;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px clamp(18px, 5vw, 64px);
  color: #fff;
  background: transparent;
  border-bottom: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    color 0.2s ease;
}

.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-110%);
  pointer-events: none;
}

.site-header.is-scrolled {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 150px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 14px;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: currentColor;
  font-size: 18px;
  font-weight: 750;
}

.site-nav a {
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--warm);
  border-color: var(--warm);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  color: currentColor;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 8px;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(18px, 5vw, 72px) 76px;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-background.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 23, 28, 0.84), rgba(8, 23, 28, 0.44) 56%, rgba(8, 23, 28, 0.14)),
    linear-gradient(0deg, rgba(8, 23, 28, 0.45), transparent 42%);
}

.hero-phone {
  position: absolute;
  z-index: 1;
  top: 22%;
  right: clamp(18px, 5vw, 64px);
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  text-decoration: none;
}

.hero-phone:hover,
.hero-phone:focus-visible {
  color: #ff9800;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

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

.section {
  padding: 86px clamp(18px, 5vw, 72px);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.intro-strip div {
  min-height: 126px;
  padding: 30px;
  background: var(--surface);
}

.intro-strip strong {
  display: block;
  color: var(--accent-dark);
  font-size: 34px;
  line-height: 1;
}

.intro-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.section-copy .about-statement {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.22;
}

.section h2 {
  max-width: 820px;
  font-size: clamp(30px, 4.6vw, 50px);
}

.image-panel,
.video-panel {
  min-height: 460px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel {
  background-position: center;
  background-size: cover;
}

.video-panel {
  overflow: hidden;
  background: #0e1518;
}

.video-panel video {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.office-image {
  background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1200&q=82");
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 34px;
}

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

.card,
.project-card,
blockquote,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 32, 38, 0.06);
}

.card {
  min-height: 250px;
  padding: 28px;
}

.card-number {
  color: var(--accent);
  font-weight: 900;
}

.card h3,
.project-card h3,
.benefit h3 {
  margin: 14px 0 8px;
  font-size: 21px;
}

.card p,
.project-card p,
.benefit p,
blockquote p {
  color: var(--muted);
}

.projects-section,
.reviews-section {
  background: #edf2f0;
}

.project-card {
  overflow: hidden;
}

.project-card div:last-child {
  padding: 22px;
}

.project-image {
  aspect-ratio: 830 / 451;
  min-height: 210px;
  background-position: center;
  background-size: cover;
}

.project-one {
  background-image: url("assets/hero-background.jpg");
}

.project-link {
  display: block;
}

.project-link:hover h3,
.project-link:focus-visible h3 {
  text-decoration: underline;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.portfolio-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.photo-viewer {
  width: min(98vw, 1700px);
  max-width: none;
  padding: 44px 0 0;
  border: 0;
  background: #172026;
  color: white;
}

.photo-viewer[open] {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
}

.photo-viewer::backdrop {
  background: rgb(0 0 0 / 85%);
}

.photo-viewer img {
  width: 100%;
  height: min(90vh, calc(100dvh - 64px));
  object-fit: contain;
}

.photo-viewer button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 2px;
  background: #34414a;
  border: 1px solid #aab5bb;
  border-radius: 50%;
  color: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.photo-viewer button:hover,
.photo-viewer button:focus-visible {
  background: var(--warm);
  color: var(--ink);
}

.photo-viewer [data-close] {
  position: absolute;
  top: 0;
  right: 0;
}

.project-two {
  background-image: url("assets/misto-trav-1.jpg");
}

.project-three {
  background-image: url("assets/sokilnuki-1.jpg");
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.benefit {
  min-height: 170px;
  padding: 30px;
  background: var(--paper);
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

blockquote {
  margin: 0;
  padding: 30px;
}

blockquote p {
  margin-top: 0;
  font-size: 19px;
}

cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--ink);
  color: #fff;
}

.contact-copy p,
.contact-list,
.form-note {
  color: rgba(255, 255, 255, 0.74);
}

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

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.75);
  background: #0e1518;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 82px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    text-shadow: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 15px 10px;
    font-size: 19px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(8, 23, 28, 0.84), rgba(8, 23, 28, 0.34));
  }

  .intro-strip,
  .split,
  .service-grid,
  .project-grid,
  .benefit-list,
  .review-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .image-panel,
  .video-panel {
    min-height: 340px;
  }

  .video-panel video {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand-logo {
    height: 42px;
    max-width: 120px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding: 118px 18px 54px;
  }

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

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 64px 18px;
  }

  .intro-strip {
    padding: 0 18px;
    background: transparent;
  }

  .intro-strip div {
    min-height: auto;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    flex-direction: column;
  }
}
