:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --ink: #15130f;
  --muted: #686158;
  --line: #ddd2c1;
  --accent: #d99418;
  --dark: #171512;
  --radius: 6px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #141006;
  font-weight: 950;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-weight: 800;
}

.header-cta {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
}

.header-phone {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  width: min(1280px, calc(100% - 40px));
  min-height: 690px;
  margin: 34px auto 0;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
}

.hero-copy {
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97), rgba(255, 253, 248, 0.9) 43%, rgba(255, 253, 248, 0.18) 78%),
    url("assets/dredger-real.jpg") center right/contain;
  background-repeat: no-repeat;
  background-color: var(--surface);
}

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

.hero h1,
.section-head h2,
.about h2,
.request-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero p:not(.eyebrow),
.section-head p,
.request-copy p {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 950;
}

.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #141006;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-facts {
  display: grid;
  gap: 14px;
}

.hero-facts div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.hero-facts strong {
  font-size: 30px;
  line-height: 1.05;
}

.hero-facts span {
  margin-top: 12px;
  color: var(--muted);
}

.catalog {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

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

.section-head h2,
.about h2,
.request-copy h2 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

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

.service-card {
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 620px;
  display: flex;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(9, 9, 8, 0.9), rgba(9, 9, 8, 0.22) 56%, rgba(9, 9, 8, 0.05)),
    url("assets/dredger-real.jpg") center center/cover;
}

.card-media {
  height: 190px;
  background-position: center;
  background-size: cover;
}

.service-excavator .card-media {
  background-image: url("assets/excavator-card.jpg");
}

.service-earth .card-media {
  background-image: url("assets/earthworks-card.jpg");
}

.service-road .card-media {
  background-image: url("assets/road-card.jpg");
}

.service-river .card-media {
  background-image: url("assets/river-dredger-card.jpg");
}

.card-content {
  padding: 26px;
}

.featured .card-content {
  padding: 34px;
}

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

.service-card h3 {
  margin: 18px 0 0;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.featured h3 {
  font-size: clamp(42px, 6vw, 74px);
}

.service-card strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.service-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.featured p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.76);
}

.service-card a {
  display: inline-flex;
  margin-top: 22px;
  color: #9c6407;
  font-weight: 950;
}

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

.about {
  display: grid;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 96px;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.about-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-list div {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.about-list div:last-child {
  border-bottom: 0;
}

.about-list strong,
.about-list span {
  display: block;
}

.about-list strong {
  font-size: 24px;
}

.about-list span {
  margin-top: 8px;
  color: var(--muted);
}

.contacts {
  display: grid;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto 96px;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.contacts-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.contacts-copy p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card span,
.contact-card strong,
.contact-card small {
  display: block;
}

.contact-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card strong {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.contact-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.request {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  padding: 96px clamp(20px, 6vw, 80px);
  background: var(--dark);
  color: #fff;
}

.request-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.request-form {
  display: grid;
  gap: 14px;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 850;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: 0;
}

.request-form input,
.request-form select {
  height: 54px;
  padding: 0 16px;
}

.request-form option {
  color: #111;
}

.request-form textarea {
  min-height: 126px;
  padding: 16px;
  resize: vertical;
}

.request-form ::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.file-field input {
  display: none;
}

.file-field span {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 1000px) {
  .nav,
  .header-phone,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 48px;
    height: 48px;
    margin-left: auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
  }

  .menu-toggle span + span {
    margin-top: -14px;
  }

  body.menu-open .nav {
    position: fixed;
    inset: 78px 0 auto;
    display: grid;
    justify-content: stretch;
    padding: 18px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .about,
  .contacts,
  .request {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    min-height: 620px;
    background:
      linear-gradient(0deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.88) 52%, rgba(255, 253, 248, 0.18)),
      url("assets/dredger-real.jpg") center top/contain;
    background-repeat: no-repeat;
    background-color: var(--surface);
  }

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

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

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero,
  .catalog,
  .about,
  .contacts {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .hero-copy {
    padding: 28px;
    min-height: 620px;
    background-position: center bottom, center top;
  }

  .hero-facts,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 540px;
  }

  .hero-actions {
    display: grid;
  }

  .request {
    padding: 72px 20px;
  }
}
