.digital-page {
  overflow-x: clip;
}

.digital-page #top,
.digital-page #moznosti,
.digital-page #architektura,
.digital-page #postup,
.digital-page #pripravenost,
.digital-page #faq {
  scroll-margin-top: 96px;
}

.digital-hero {
  overflow: hidden;
  padding: 82px 0 76px;
  background: linear-gradient(104deg, #f8faf7 0, #f8faf7 55%, #edf4ef 55%);
}

.digital-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  align-items: center;
  gap: clamp(48px, 7vw, 90px);
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  margin: 0 0 30px;
  color: #526159;
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--green);
  font-weight: 750;
}

.digital-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.digital-hero h1 em {
  color: var(--green);
  font-style: normal;
}

.digital-hero .lead {
  max-width: 680px;
}

.digital-scope {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 650px;
  margin: 24px 0 0;
  color: #47564f;
  font-size: 14px;
}

.digital-scope > span {
  display: grid;
  flex: 0 0 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #dff0e3;
  color: var(--green);
  font-weight: 900;
}

.digital-hero-map {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(23, 107, 77, .13);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 48%, rgba(223, 243, 201, .9), transparent 30%),
    linear-gradient(rgba(23, 107, 77, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 77, .055) 1px, transparent 1px),
    rgba(255, 255, 255, .72);
  background-size: auto, 32px 32px, 32px 32px, auto;
  box-shadow: 0 28px 80px rgba(25, 53, 41, .12);
}

.map-core,
.map-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8d9d0;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 53, 41, .11);
}

.map-core {
  inset: 50% auto auto 50%;
  width: 190px;
  height: 132px;
  flex-direction: column;
  border-radius: 24px;
  background: var(--green-dark);
  color: #fff;
  transform: translate(-50%, -50%);
}

.map-core small {
  color: #b9dacb;
}

.map-core strong {
  margin-top: 3px;
  font-size: 22px;
}

.map-chip {
  min-width: 112px;
  min-height: 54px;
  padding: 10px 18px;
  border-radius: 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.chip-web { top: 56px; left: 34px; }
.chip-booking { top: 57px; right: 29px; }
.chip-payment { bottom: 58px; left: 32px; }
.chip-data { right: 33px; bottom: 57px; }

.map-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--green), var(--green) 6px, transparent 6px, transparent 12px);
  opacity: .5;
  transform-origin: left center;
}

.line-a { transform: rotate(-138deg); }
.line-b { transform: rotate(-42deg); }
.line-c { transform: rotate(42deg); }
.line-d { transform: rotate(138deg); }

.digital-value-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}

.digital-value-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.digital-value-strip p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.digital-value-strip p:first-child {
  border-left: 1px solid var(--line);
}

.digital-value-strip strong {
  font-size: 15px;
}

.digital-value-strip span {
  color: #53615a;
  font-size: 14px;
}

.digital-use-cases {
  background: var(--cream);
}

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

.digital-cards article {
  grid-column: span 2;
  min-height: 245px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.digital-cards article:nth-child(4),
.digital-cards article:nth-child(5) {
  grid-column: span 3;
}

.digital-cards article:hover {
  border-color: #b9cec2;
  box-shadow: 0 15px 38px rgba(25, 53, 41, .08);
  transform: translateY(-3px);
}

.digital-cards article > span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 50%;
  background: #e1eee4;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.digital-cards h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.digital-cards p {
  margin: 0;
  color: #53615a;
  font-size: 15px;
  line-height: 1.62;
}

.architecture-section {
  background: #fff;
}

.architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, .6fr);
  align-items: stretch;
  gap: 22px;
}

.architecture-canvas {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(rgba(23, 107, 77, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 77, .045) 1px, transparent 1px),
    #f8faf8;
  background-size: 28px 28px;
}

.architecture-svg {
  display: block;
  width: 100%;
  height: auto;
}

.architecture-connections path {
  fill: none;
  stroke: #84a595;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
  stroke-width: 2.5;
  marker-end: url("#arrow");
}

.architecture-connections marker path {
  fill: #84a595;
}

.architecture-node {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.architecture-node rect {
  fill: #fff;
  stroke: #cbd9d2;
  stroke-width: 1.5;
  filter: url("#node-shadow");
  transition: fill .2s ease, stroke .2s ease, stroke-width .2s ease;
}

.architecture-node circle {
  fill: #e1eee4;
  stroke: #b8d0c3;
}

.architecture-node circle::after {
  content: "";
}

.architecture-node .node-label {
  fill: #17231e;
  font-size: 17px;
  font-weight: 800;
}

.architecture-node .node-sub {
  fill: #596861;
  font-size: 12px;
}

.architecture-node:hover rect,
.architecture-node:focus-visible rect,
.architecture-node.is-active rect {
  fill: #eff7f1;
  stroke: var(--green);
  stroke-width: 3;
}

.architecture-node:focus-visible rect {
  stroke: #c77800;
  stroke-width: 4;
}

.architecture-core rect {
  fill: var(--green-dark);
  stroke: var(--green-dark);
}

.architecture-core circle {
  fill: #dff3c9;
  stroke: #dff3c9;
}

.architecture-core .node-label {
  fill: #fff;
}

.architecture-core .node-sub {
  fill: #c7d9d1;
}

.architecture-core:hover rect,
.architecture-core:focus-visible rect,
.architecture-core.is-active rect {
  fill: #176b4d;
}

.architecture-future rect {
  stroke-dasharray: 7 5;
}

.architecture-help {
  margin: 4px 0 0;
  color: #64716b;
  text-align: center;
  font-size: 13px;
}

.architecture-detail {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 24px;
  background: var(--green-dark);
  color: #fff;
}

.architecture-detail .eyebrow {
  color: #aee3c7;
}

.architecture-detail h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.2;
}

.architecture-detail > p:not(.eyebrow) {
  margin: 0 0 24px;
  color: #cadbd3;
  font-size: 15px;
}

.architecture-detail ul,
.scope-grid ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.architecture-detail li,
.scope-grid li {
  position: relative;
  padding-left: 24px;
}

.architecture-detail li::before,
.scope-grid li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #9cdeb9;
  content: "✓";
  font-weight: 900;
}

.implementation {
  background: #f7f8f6;
}

.implementation-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid #cbd7d0;
}

.implementation-steps li {
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 28px 24px;
  border-right: 1px solid #cbd7d0;
}

.implementation-steps li:last-child {
  border-right: 0;
}

.implementation-steps b {
  color: var(--green);
  font-size: 13px;
}

.implementation-steps h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.3;
}

.implementation-steps p {
  margin: 0;
  color: #53615a;
  font-size: 14px;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}

.scope-grid article {
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.scope-grid .scope-positive {
  background: #edf5ef;
}

.scope-grid h3 {
  margin: 0 0 22px;
  font-size: 25px;
}

.scope-grid li {
  color: #405047;
  font-size: 15px;
}

.scope-grid article:not(.scope-positive) li::before {
  color: #788780;
  content: "—";
}

.readiness-section {
  background: var(--green-dark);
  color: #fff;
}

.readiness-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: start;
  gap: clamp(48px, 8vw, 100px);
}

.readiness-intro {
  position: sticky;
  top: 120px;
}

.readiness-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.readiness-intro > p:not(.eyebrow) {
  color: #c6d8d0;
  font-size: 17px;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.privacy-badge > span:first-child {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 243, 201, .15);
  color: #b9efce;
}

.privacy-badge strong,
.privacy-badge small {
  display: block;
}

.privacy-badge small {
  color: #aebfb7;
}

.readiness-form {
  padding: clamp(24px, 4vw, 38px);
  background: #f5f7f4;
  color: var(--ink);
}

.readiness-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 10px;
  background: #dce4df;
}

.readiness-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .25s ease;
}

.readiness-progress span[data-progress="1"] { width: 20%; }
.readiness-progress span[data-progress="2"] { width: 40%; }
.readiness-progress span[data-progress="3"] { width: 60%; }
.readiness-progress span[data-progress="4"] { width: 80%; }
.readiness-progress span[data-progress="5"] { width: 100%; }

.question-count {
  margin: 8px 0 28px;
  color: #596861;
  font-size: 13px;
}

.readiness-form fieldset {
  margin: 0;
  padding: 25px 0;
  border: 0;
  border-top: 1px solid #ced9d3;
}

.readiness-form legend {
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
}

.readiness-form label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 8px 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #435149;
  cursor: pointer;
  font-size: 14px;
}

.readiness-form label:hover {
  border-color: #b7ccc0;
}

.readiness-form label:has(input:checked) {
  border-color: var(--green);
  background: #edf5ef;
  color: var(--ink);
}

.readiness-form input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.readiness-form input:focus-visible {
  outline: 3px solid #f0b45b;
  outline-offset: 3px;
}

.readiness-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
}

.readiness-error {
  min-height: 24px;
  margin: 8px 0 0;
  color: #a52a2a;
  font-size: 14px;
  font-weight: 750;
}

.readiness-result {
  display: none;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 22px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #b9cec2;
  border-radius: 14px;
  background: #fff;
}

.readiness-result.is-visible {
  display: grid;
}

.readiness-result > span:not(.result-score) strong,
.readiness-result > span:not(.result-score) small {
  display: block;
}

.readiness-result > span:not(.result-score) small {
  margin-top: 5px;
  color: #53615a;
  line-height: 1.5;
}

.result-score {
  display: grid;
  min-width: 96px;
  height: 96px;
  place-content: center;
  border-radius: 50%;
  background: #e1eee4;
  color: var(--green);
  text-align: center;
}

.result-score strong {
  font-size: 31px;
  line-height: 1;
}

.result-score small {
  margin-top: 5px;
  color: #405047;
  font-size: 11px;
}

.readiness-result .button {
  grid-column: 1 / -1;
}

.future-section {
  background: #fff;
}

.future-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(45px, 8vw, 100px);
  padding: clamp(32px, 6vw, 70px);
  border: 1px solid #d2ddd7;
  border-radius: 24px;
  background: #f8faf7;
}

.future-card h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.16;
  letter-spacing: -.03em;
}

.future-card p {
  margin-top: 0;
  color: #495850;
}

.future-card .future-note {
  padding: 17px;
  border-left: 3px solid var(--green);
  background: #fff;
  font-size: 14px;
}

.future-card a {
  color: var(--green);
  font-weight: 800;
}

.faq-layout {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  align-items: start;
  gap: clamp(45px, 8vw, 100px);
}

.faq-layout > div:first-child {
  position: sticky;
  top: 120px;
}

.faq-layout h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.14;
}

.faq-layout > div:first-child > p:not(.eyebrow) {
  color: #53615a;
}

.faq-list {
  border-top: 1px solid #ccd7d0;
}

.faq-list details {
  border-bottom: 1px solid #ccd7d0;
}

.faq-list summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
}

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 3px;
  color: var(--green);
  content: "+";
  font-size: 26px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid #f0b45b;
  outline-offset: 3px;
}

.faq-list p {
  max-width: 720px;
  margin: -5px 0 22px;
  color: #53615a;
}

.digital-cta {
  padding: 72px 0;
  background: var(--green);
  color: #fff;
}

.digital-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.digital-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(31px, 4vw, 45px);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.digital-cta p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: #d6e5de;
}

.digital-cta .button {
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .digital-hero-grid {
    grid-template-columns: 1fr .8fr;
    gap: 38px;
  }

  .digital-hero-map {
    min-height: 390px;
  }

  .map-core {
    width: 160px;
  }

  .map-chip {
    min-width: 100px;
    font-size: 13px;
  }

  .architecture-layout {
    grid-template-columns: 1fr;
  }

  .architecture-detail {
    min-height: 300px;
  }

  .implementation-steps {
    grid-template-columns: 1fr 1fr;
  }

  .implementation-steps li:nth-child(2) {
    border-right: 0;
  }

  .implementation-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid #cbd7d0;
  }

  .readiness-layout {
    grid-template-columns: .78fr 1.22fr;
    gap: 45px;
  }
}

@media (max-width: 900px) {
  .digital-page #navigation {
    top: 84px;
  }

  .digital-hero {
    padding-top: 58px;
    background: #f8faf7;
  }

  .digital-hero-grid {
    grid-template-columns: 1fr;
  }

  .digital-hero-map {
    min-height: 390px;
  }

  .digital-cards article,
  .digital-cards article:nth-child(4),
  .digital-cards article:nth-child(5) {
    grid-column: span 3;
  }

  .readiness-layout,
  .future-card,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .readiness-intro,
  .faq-layout > div:first-child {
    position: static;
  }

  .digital-cta .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .digital-page #top,
  .digital-page #moznosti,
  .digital-page #architektura,
  .digital-page #postup,
  .digital-page #pripravenost,
  .digital-page #faq {
    scroll-margin-top: 84px;
  }

  .digital-page #navigation {
    top: 70px;
  }

  .digital-hero {
    padding: 38px 0 52px;
  }

  .breadcrumbs {
    margin-bottom: 22px;
  }

  .digital-hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .digital-hero-map {
    min-height: 310px;
    border-radius: 22px;
    background-size: auto, 24px 24px, 24px 24px, auto;
  }

  .map-core {
    width: 145px;
    height: 104px;
  }

  .map-core strong {
    font-size: 18px;
  }

  .map-chip {
    min-width: 88px;
    min-height: 44px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .chip-web { top: 29px; left: 18px; }
  .chip-booking { top: 30px; right: 15px; }
  .chip-payment { bottom: 30px; left: 17px; }
  .chip-data { right: 18px; bottom: 29px; }

  .digital-value-strip .wrap {
    grid-template-columns: 1fr;
  }

  .digital-value-strip p,
  .digital-value-strip p:first-child {
    padding: 18px 4px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .digital-value-strip p:last-child {
    border-bottom: 0;
  }

  .digital-cards {
    grid-template-columns: 1fr;
  }

  .digital-cards article,
  .digital-cards article:nth-child(4),
  .digital-cards article:nth-child(5) {
    grid-column: auto;
    min-height: 0;
    padding: 24px;
  }

  .digital-cards article > span {
    margin-bottom: 22px;
  }

  .architecture-canvas {
    margin-inline: -4px;
    padding: 8px;
    overflow-x: auto;
  }

  .architecture-svg {
    width: 720px;
    max-width: none;
  }

  .architecture-help {
    position: sticky;
    left: 0;
    width: calc(100vw - 52px);
    padding-inline: 8px;
  }

  .architecture-detail {
    min-height: 0;
    padding: 28px 24px;
  }

  .implementation-steps {
    grid-template-columns: 1fr;
  }

  .implementation-steps li,
  .implementation-steps li:nth-child(2),
  .implementation-steps li:nth-child(-n + 2) {
    padding: 23px 7px;
    border-right: 0;
    border-bottom: 1px solid #cbd7d0;
  }

  .implementation-steps li:last-child {
    border-bottom: 0;
  }

  .scope-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .readiness-layout {
    gap: 32px;
  }

  .readiness-form {
    margin-inline: -2px;
    padding: 22px 16px;
  }

  .readiness-form fieldset {
    padding-block: 22px;
  }

  .readiness-form label {
    min-height: 48px;
  }

  .readiness-result,
  .readiness-result.is-visible {
    grid-template-columns: 1fr;
  }

  .result-score {
    width: 90px;
  }

  .future-card {
    padding: 26px 22px;
  }

  .faq-layout {
    gap: 30px;
  }

  .digital-cta {
    padding: 58px 0;
  }

  .digital-cta .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .digital-hero-map {
    min-height: 290px;
  }

  .map-chip {
    min-width: 78px;
    padding-inline: 9px;
  }

  .chip-booking {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .readiness-progress span {
    transition: none;
  }
}
