:root {
  --bg: #efefef;
  --card: #ffffff;
  --text: #16181d;
  --subtle: #667085;
  --line: #d6d8df;
  --blue: #5c90bf;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #0d0d0d;
  color: var(--text);
  overflow-x: hidden;
}

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

.page-shell {
  /*width: min(100% - 24px, 1200px);*/
  margin: 24px auto;
  background: var(--bg);
  /*border-radius: 16px;*/
  overflow: hidden;
}

.topbar {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 40px;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
}

.menu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a,
.footer-columns a,
.link {
  color: var(--subtle);
  text-decoration: none;
  font-size: 14px;
}

.hero-intro {
  text-align: center;
  padding: 68px 20px 72px;
  background:
    radial-gradient(circle at 20% 30%, #e8efc7 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, #ffe7ef 0%, transparent 38%),
    #f5f5f4;
}

.eyebrow {
  color: #8f8f94;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin: 10px 0 22px;
  line-height: 1.05;
}

.hero-main {
  min-height: 410px;
  background: linear-gradient(140deg, #5a85ac, #364f72 45%, #7199bc);
  position: relative;
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 15s infinite;
  filter: saturate(0.85) brightness(0.6);
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 5s;
}

.hero-slide:nth-child(3) {
  animation-delay: 10s;
}

@keyframes heroFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 24px;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 52px);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  text-align: center;
  min-height: 42px;
}

.btn-dark {
  background: #050505;
  color: #fff;
}

.btn-light {
  background: #fff;
  color: #111;
  border-color: #d5d5d5;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.quick-cards {
  margin: -110px auto 32px;
  width: min(92%, 1080px);
  background: #fff;
  border: 1px solid #dce2ea;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.quick-cards article {
  padding: 30px 18px;
  text-align: center;
  background: #f3f4f6;
  border-right: 1px solid #e6e8ec;
  font-weight: 600;
}

.quick-cards article:nth-child(even) {
  background: #e9ebef;
}

.quick-cards article:last-child {
  border-right: 0;
}

.section {
  padding: 38px 42px;
}

.section h3 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 0 12px;
}

.section p {
  color: #555e6d;
  max-width: 700px;
}

.media-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

.muted {
  background: #f7f7f8;
}

.testimonials {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.testimonials article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}

.clients {
  text-align: center;
}

.clients-block {
  display: inline-block;
  width: min(420px, 100%);
  margin: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  vertical-align: top;
}

.clients-block h4 {
  margin: 0 0 10px;
}

.clients-block ul {
  margin: 0;
  padding-left: 18px;
  color: #3a4250;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ideas-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

details {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 14px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.visit {
  min-height: 280px;
}

.partners {
  background: #f4f4f4;
}

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

.partner-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #253247;
  text-decoration: none;
}

.map-placeholder {
  margin: 20px 42px 34px;
  border-radius: 12px;
  background: #d8d8d8;
  height: 160px;
}

.footer {
  background: linear-gradient(135deg, #3d6f9c, #5296bf 60%, #8ac5d7);
  padding: 46px 42px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-weight: 800;
  flex-shrink: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 22px;
  width: 100%;
}

.footer-columns h5 {
  margin: 0 0 10px;
  font-size: 13px;
}

.footer-columns a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

@media (max-width: 1024px) {
  .topbar,
  .section,
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .map-placeholder {
    margin-left: 28px;
    margin-right: 28px;
  }

  .quick-cards {
    width: min(94%, 1080px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-cards article:nth-child(2n) {
    border-right: 0;
  }

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

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 16px, 1200px);
    margin: 8px auto;
    border-radius: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .menu {
    width: 100%;
    gap: 14px 18px;
    justify-content: flex-start;
  }

  .hero-intro {
    padding: 56px 18px 60px;
  }

  .hero-main {
    min-height: 360px;
  }

  .quick-cards {
    margin-top: -70px;
  }

  .media-grid,
  .testimonials {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .topbar,
  .section,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .map-placeholder {
    margin: 16px 18px 24px;
    height: 130px;
  }

  .hero-main {
    min-height: 320px;
  }

  .hero-main-overlay {
    padding: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .quick-cards {
    width: calc(100% - 36px);
    margin: -48px auto 24px;
    grid-template-columns: 1fr;
  }

  .quick-cards article {
    border-right: 0;
    border-bottom: 1px solid #e6e8ec;
    padding: 22px 16px;
  }

  .quick-cards article:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .clients-block {
    display: block;
    margin: 10px 0;
    width: 100%;
  }

  .partner-links a,
  .visit .btn {
    width: 100%;
    text-align: center;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .menu a,
  .footer-columns a,
  .link,
  .btn {
    font-size: 13px;
  }
}
