/* DataOstrov homepage – experiment 1: klidnější lokální technický partner. */
/*
 * Homepage je záměrně přes celou šířku. Místo 100vw triku rozšíříme
 * pouze její obsahovou větev inPage; svislý posuvník se tak už nepřipočítá
 * k šířce stránky a nevzniká vodorovné přetečení.
 */
body#index > .container:has(#datost-home) {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

body#index #content:has(#datost-home) {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

body#index #content:has(#datost-home) > main {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  float: none;
}

#datost-home {
  --dh-ink: #17272b;
  --dh-muted: #5c6a6e;
  --dh-line: #d9dedb;
  --dh-soft: #f3f2ed;
  --dh-blue: #1e6571;
  --dh-blue-dark: #134b55;
  --dh-red: #d73542;
  --dh-night: #14272c;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--dh-ink);
  background: #fbfbf8;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

#datost-home,
#datost-home * { box-sizing: border-box; }

#datost-home a { color: inherit; }

#datost-home #sluzby,
#datost-home #kontakt { scroll-margin-top: 70px; }

#datost-home .dh-eyebrow {
  margin: 0 0 12px;
  color: var(--dh-blue-dark);
  font-size: 12.48px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#datost-home .dh-hero {
  display: grid;
  width: min(1320px, 100%);
  min-height: 660px;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) clamp(19.2px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  background: radial-gradient(circle at 72% 12%, rgba(30, 101, 113, 0.08), transparent 34%);
}

#datost-home .dh-hero__content {
  position: relative;
  z-index: 2;
  max-width: 610px;
  text-align: left;
}

#datost-home .dh-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--dh-ink);
  font-family: inherit;
  font-size: clamp(44.8px, 5vw, 78.4px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-align: left;
}

#datost-home .dh-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 20px 0 0;
  background: var(--dh-red);
}

#datost-home .dh-lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--dh-muted);
  font-size: clamp(16.8px, 1.35vw, 18.88px);
  line-height: 1.7;
}

#datost-home .dh-actions {
  display: flex;
  margin-top: 32px;
  gap: 12.8px;
  flex-wrap: wrap;
}

#datost-home .dh-button {
  display: inline-flex;
  min-height: 49px;
  padding: 12.48px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15.04px;
  font-weight: 740;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

#datost-home .dh-button:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

#datost-home .dh-button--primary {
  color: #fff;
  background: var(--dh-blue);
  box-shadow: 0 10px 24px rgba(19, 75, 85, 0.18);
}

#datost-home .dh-button--primary:hover {
  color: #fff;
  background: var(--dh-blue-dark);
}

#datost-home .dh-button--secondary {
  border-color: var(--dh-line);
  background: rgba(255, 255, 255, 0.62);
}

#datost-home .dh-button--secondary:hover { border-color: #8eb2b6; background: #fff; }

#datost-home .dh-trust {
  display: flex;
  margin: 33.6px 0 0;
  padding: 0;
  gap: 16px 25.6px;
  flex-wrap: wrap;
  list-style: none;
}

#datost-home .dh-trust li {
  position: relative;
  padding-left: 17.6px;
  color: #4d5e62;
  font-size: 13.76px;
  font-weight: 650;
}

#datost-home .dh-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8.96px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--dh-red);
}

#datost-home .dh-hero__visual {
  position: relative;
  min-height: 540px;
}

#datost-home .dh-hero__visual::before {
  content: "";
  position: absolute;
  inset: -1.80px -4.80px -1.80px 34%;
  z-index: -1;
  border-radius: 28px 0 0 28px;
  background: #e8e6df;
}

#datost-home .dh-hero__visual img {
  display: block;
  width: 100%;
  height: 540px;
  margin: 0;
  object-fit: cover;
  object-position: 63% center;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 62px rgba(20, 39, 44, 0.15);
}

#datost-home .dh-hero__visual > p {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(330px, 85%);
  margin: 0;
  padding: 18.4px 20.8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(20, 39, 44, 0.92);
  box-shadow: 0 16px 34px rgba(10, 25, 29, 0.22);
  backdrop-filter: blur(8px);
}

#datost-home .dh-hero__visual strong,
#datost-home .dh-hero__visual span { display: block; }
#datost-home .dh-hero__visual strong { font-size: 15.36px; }
#datost-home .dh-hero__visual span { margin-top: 4.8px; color: #d6e0de; font-size: 13.12px; line-height: 1.5; }

#datost-home .dh-services {
  padding: clamp(64px, 8vw, 112px) clamp(19.2px, 5vw, 88px);
  background: var(--dh-soft);
}

#datost-home .dh-section-heading {
  display: grid;
  width: min(1220px, 100%);
  margin: 0 auto 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: start;
}

#datost-home .dh-section-heading h2,
#datost-home .dh-why h2,
#datost-home .dh-contact h2 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(32px, 4vw, 57.6px);
  font-weight: 740;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

#datost-home .dh-section-heading > p { margin: 0; color: var(--dh-muted); line-height: 1.65; }

#datost-home .dh-service-grid {
  display: grid;
  width: min(1220px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#datost-home .dh-card {
  --dh-card-bg: #fff;
  --dh-card-border: var(--dh-line);
  --dh-card-shadow: 0 12px 34px rgba(20, 39, 44, 0.045);
  --dh-card-number: var(--dh-muted);
  --dh-card-label: var(--dh-blue-dark);
  --dh-card-title: var(--dh-ink);
  --dh-card-copy: var(--dh-muted);
  --dh-card-item: #44575b;
  --dh-card-link: var(--dh-blue-dark);
  display: flex;
  min-height: 455px;
  padding: clamp(24px, 3vw, 35.2px);
  flex-direction: column;
  border: 1px solid var(--dh-card-border);
  border-radius: 18px;
  color: var(--dh-card-title);
  background: var(--dh-card-bg);
  box-shadow: var(--dh-card-shadow);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

#datost-home .dh-card__number { align-self: flex-end; color: var(--dh-card-number); font-size: 12.48px; font-weight: 750; letter-spacing: 0.12em; }
#datost-home .dh-card__label { margin: 26.4px 0 8.8px; color: var(--dh-card-label); font-size: 11.84px; font-weight: 780; letter-spacing: 0.1em; text-transform: uppercase; }

#datost-home .dh-card h3 {
  margin: 0;
  color: var(--dh-card-title);
  font-family: inherit;
  font-size: clamp(23.2px, 2.3vw, 32px);
  font-weight: 740;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

#datost-home .dh-card > p:not(.dh-card__label) { color: var(--dh-card-copy); line-height: 1.58; }

#datost-home .dh-card ul {
  display: grid;
  margin: 9.6px 0 25.6px;
  padding: 0;
  gap: 11.2px;
  list-style: none;
}

#datost-home .dh-card li { position: relative; padding-left: 18.4px; color: var(--dh-card-item); font-size: 14.56px; }
#datost-home .dh-card li::before { content: ""; position: absolute; left: 0; top: 9.76px; width: 6px; height: 2px; background: var(--dh-red); }
#datost-home .dh-card > a { margin-top: auto; color: var(--dh-card-link); font-size: 14.56px; font-weight: 760; text-decoration: none; }
#datost-home .dh-card > a:hover { text-decoration: underline; }
#datost-home .dh-card > a span { margin-left: 4.8px; }

#datost-home .dh-card__number,
#datost-home .dh-card__label,
#datost-home .dh-card h3,
#datost-home .dh-card > p,
#datost-home .dh-card li,
#datost-home .dh-card > a {
  transition: color 180ms ease;
}

#datost-home .dh-card:focus-within {
  --dh-card-bg: var(--dh-night);
  --dh-card-border: var(--dh-night);
  --dh-card-shadow: 0 0 0 3px rgba(215, 53, 66, 0.24), 0 18px 44px rgba(20, 39, 44, 0.16);
  --dh-card-number: #aebfc0;
  --dh-card-label: #9bd0d4;
  --dh-card-title: #fff;
  --dh-card-copy: #d1dcda;
  --dh-card-item: #e1e8e6;
  --dh-card-link: #fff;
  transform: translateY(-3px);
}

@media (hover: hover) and (pointer: fine) {
  #datost-home .dh-card:hover {
    --dh-card-bg: var(--dh-night);
    --dh-card-border: var(--dh-night);
    --dh-card-shadow: 0 18px 44px rgba(20, 39, 44, 0.16);
    --dh-card-number: #aebfc0;
    --dh-card-label: #9bd0d4;
    --dh-card-title: #fff;
    --dh-card-copy: #d1dcda;
    --dh-card-item: #e1e8e6;
    --dh-card-link: #fff;
    transform: translateY(-3px);
  }
}

@media (pointer: coarse) {
  #datost-home .dh-card:focus-within { transform: none; }
}

#datost-home .dh-supporting {
  display: grid;
  width: min(1220px, 100%);
  margin: 16px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#datost-home .dh-supporting article { padding: 25.6px 28px; border: 1px solid var(--dh-line); border-top: 3px solid var(--dh-red); border-radius: 14px; background: rgba(255, 255, 255, 0.72); }
#datost-home .dh-supporting span { color: var(--dh-blue-dark); font-size: 11.84px; font-weight: 780; letter-spacing: 0.09em; text-transform: uppercase; }
#datost-home .dh-supporting h3 { margin: 8px 0 4.8px; color: var(--dh-ink); font-family: inherit; font-size: 19.52px; font-weight: 740; }
#datost-home .dh-supporting p { margin: 0; color: var(--dh-muted); font-size: 15.04px; line-height: 1.55; }

#datost-home .dh-why {
  display: grid;
  padding: clamp(64px, 8vw, 112px) max(19.2px, calc((100% - 1220px) / 2));
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 112px);
  background: #fbfbf8;
}

#datost-home .dh-why__grid { display: grid; gap: 0; border-top: 1px solid var(--dh-line); }
#datost-home .dh-why__grid article { display: grid; padding: 24px 0; grid-template-columns: 48px minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; border-bottom: 1px solid var(--dh-line); }
#datost-home .dh-why__grid strong { color: var(--dh-red); font-size: 12.16px; letter-spacing: 0.08em; }
#datost-home .dh-why__grid h3,
#datost-home .dh-why__grid p { margin: 0; }
#datost-home .dh-why__grid h3 { color: var(--dh-ink); font-family: inherit; font-size: 17.28px; font-weight: 740; }
#datost-home .dh-why__grid p { color: var(--dh-muted); font-size: 15.04px; line-height: 1.6; }

#datost-home .dh-contact {
  display: flex;
  padding: clamp(48px, 6vw, 88px) max(19.2px, calc((100% - 1220px) / 2));
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  color: #fff;
  background: var(--dh-night);
}

#datost-home .dh-contact .dh-eyebrow { color: #9bd0d4; }
#datost-home .dh-contact > div:first-child { max-width: 680px; }
#datost-home .dh-contact > div:first-child > p:last-child { max-width: 560px; color: #c5dae2; line-height: 1.6; }
#datost-home .dh-contact__actions { display: grid; justify-items: start; gap: 12.8px; }
#datost-home .dh-button--light { color: var(--dh-blue-dark); background: #fff; }
#datost-home .dh-button--light:hover { color: var(--dh-blue-dark); }
#datost-home .dh-contact__actions span { color: #c7d4d2; font-size: 13.76px; }
#datost-home .dh-contact__actions span a { color: #fff; font-weight: 800; }

#datost-home .dh-button:focus-visible,
#datost-home a:focus-visible { outline: 3px solid var(--dh-red); outline-offset: 3px; }

@media (max-width: 940px) {
  #datost-home .dh-hero { min-height: 0; grid-template-columns: 1fr; }
  #datost-home .dh-hero__visual { min-height: 430px; }
  #datost-home .dh-hero__visual img { height: 430px; }
  #datost-home .dh-service-grid { grid-template-columns: 1fr; }
  #datost-home .dh-card { min-height: 0; }
  #datost-home .dh-why { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  #datost-home .dh-hero { padding-top: 48px; grid-template-columns: minmax(0, 1fr); }
  #datost-home .dh-hero h1 { font-size: clamp(39.2px, 12vw, 58.4px); }
  #datost-home .dh-hero__visual { min-height: 340px; }
  #datost-home .dh-hero__visual img { height: 340px; object-position: 66% center; }
  #datost-home .dh-hero__visual > p { right: 16px; bottom: 16px; left: 16px; width: auto; }
  #datost-home .dh-section-heading,
  #datost-home .dh-supporting { grid-template-columns: 1fr; gap: 19.2px; }
  #datost-home .dh-why__grid article { grid-template-columns: 35px 1fr; }
  #datost-home .dh-why__grid p { grid-column: 2; }
  #datost-home .dh-contact { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  #datost-home,
  #datost-home *,
  #datost-home *::before,
  #datost-home *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  #datost-home .dh-card:hover,
  #datost-home .dh-card:focus-within { transform: none; }
}
