:root {
  --ink: #0d1b2a;
  --blue: #1b63ff;
  --mint: #31d0aa;
  --orange: #ff9f1c;
  --paper: #f5f8fb;
  --muted: #657284;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

.market-hero {
  min-height: 820px;
  padding: 30px clamp(18px, 5vw, 78px) 88px;
  background:
    radial-gradient(circle at 82% 26%, rgba(49, 208, 170, 0.28), transparent 30%),
    linear-gradient(135deg, #ffffff, #e8f1ff);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 380px;
  gap: 66px;
  align-items: center;
  padding-top: 104px;
}

.tag {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 26px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero p:last-child,
.tiles p,
.hub p,
.service-list p,
footer p,
address span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero p:last-child {
  max-width: 790px;
  font-size: 21px;
}

.smart-basket {
  min-height: 450px;
  padding: 34px;
  border-radius: 34px;
  color: white;
  background:
    linear-gradient(135deg, rgba(13, 27, 42, 0.92), rgba(27, 99, 255, 0.8)),
    var(--ink);
  box-shadow: 0 28px 80px rgba(27, 99, 255, 0.22);
}

.smart-basket span {
  color: var(--mint);
  font-weight: 900;
  text-transform: uppercase;
}

.smart-basket b {
  display: block;
  margin: 70px 0 24px;
  font-size: 52px;
  line-height: 0.95;
}

.catalog-wall, .hub, .info-service, footer {
  padding: 94px clamp(18px, 5vw, 78px);
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.catalog-wall {
  background: white;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.tiles article {
  min-height: 330px;
  padding: 28px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid #dce6f2;
}

.tiles article:nth-child(2) {
  background: #e8fff8;
}

.tiles article:nth-child(3) {
  background: #eef3ff;
}

.tiles article:nth-child(4) {
  background: #fff4e3;
}

.tiles span {
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  color: white;
  background: var(--ink);
}

.hub p {
  color: #c7d4e6;
}

.hub-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-content: center;
}

.hub-flow span {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 16px;
  border-radius: 24px;
  color: var(--ink);
  background: var(--mint);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.hub-flow span:nth-child(even) {
  background: var(--orange);
}

.info-service {
  background: #edf4ff;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.service-list p {
  min-height: 260px;
  padding: 28px;
  border-radius: 26px;
  background: white;
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.08);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  background: white;
}

address {
  display: grid;
  gap: 12px;
  min-width: min(100%, 430px);
  padding: 30px;
  border-radius: 30px;
  color: white;
  background: var(--ink);
  font-style: normal;
}

address a {
  color: var(--mint);
  font-size: 24px;
  font-weight: 900;
}

address span { color: #c7d4e6; }

@media (max-width: 1000px) {
  .hero, .tiles, .hub, .hub-flow, .service-list, footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  nav { flex-wrap: wrap; }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}
