.service-section,
.about-section {
  margin: 54px 56px;
}

.service-intro,
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.service-intro {
  align-items: baseline;
  margin-bottom: 26px;
}

.service-intro h2,
.about-section h2 {
  margin: 0;
  font: 400 clamp(31px, 4vw, 45px)/1.12 var(--serif);
  letter-spacing: -.035em;
}

.service-intro p,
.service-item p,
.service-item ul,
.about-copy > p,
.about-entries p {
  color: #4f6274;
}

.service-intro p {
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.service-item {
  padding: 25px 25px 27px;
}

.service-item:first-child {
  padding-left: 0;
}

.service-item + .service-item {
  border-left: 1px solid var(--line);
}

.service-item h3,
.about-entries h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
}

.service-item p,
.service-item ul,
.about-entries p {
  margin: 0 0 14px;
}

.service-item ul {
  padding-left: 18px;
}

.service-item li + li {
  margin-top: 4px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 0;
  font-size: 13px;
  font-weight: 650;
  color: #285b91;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-item .section-link {
  display: flex;
}

.expertise-link {
  display: flex;
  margin-top: 10px;
}

.project-card[id] {
  scroll-margin-top: 12px;
}

.about-page nav [aria-current="page"] {
  color: #285b91;
}

.about-page nav [aria-current="page"]::after {
  width: 100%;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 108px);
  align-items: center;
  margin: 0 28px;
  padding: clamp(24px, 5vw, 68px);
  border: 1px solid #fff;
  border-radius: 17px;
  background: linear-gradient(125deg, #eef3f8, #f8f5ee 70%);
}

.about-copy h1 {
  margin: 12px 0;
  font: 400 clamp(42px, 6vw, 82px)/1.03 var(--serif);
  letter-spacing: -.052em;
}

.about-copy h1 em {
  color: #3b6896;
  font-weight: 400;
}

.about-copy .eyebrow {
  color: #425d76;
}

.about-copy > p {
  max-width: 54ch;
  margin: 0 0 16px;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 450px;
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: 0 15px 45px #223b5720;
}

.about-section {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.about-entries article + article {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 19px;
}

.about-entries p:last-child,
.about-entries h3:last-child {
  margin-bottom: 0;
}

.about-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 840px) {
  .service-section,
  .about-section {
    margin: 40px 30px;
  }

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

  .service-item,
  .service-item:first-child {
    padding: 19px 0;
  }

  .service-item + .service-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .service-section,
  .about-section {
    margin: 32px 20px;
  }

  .service-intro,
  .about-section,
  .about-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .about-hero {
    margin: 0 12px;
    padding: 22px;
    gap: 24px;
  }

  .about-section {
    padding-top: 19px;
  }

  .topbar nav {
    color: #4d647b;
  }

  .topbar nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
}

.section-link > span,
.hero-actions a > span,
.header-contact > span {
  position: relative;
  display: inline-block;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  font-size: 0;
  color: inherit;
}

.section-link > span::before,
.hero-actions a > span::before,
.header-contact > span::before {
  position: absolute;
  inset: 2px 1px auto auto;
  width: 6px;
  height: 6px;
  border-top: 1px solid;
  border-right: 1px solid;
  content: "";
}

.section-link > span::after,
.hero-actions a > span::after,
.header-contact > span::after {
  position: absolute;
  top: 5px;
  right: 0;
  width: 10px;
  border-top: 1px solid;
  transform: rotate(-45deg);
  content: "";
}

.hero-actions .text-link > span {
  transform: rotate(135deg);
}

.guide-toggle {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid #dce7f0;
  border-radius: 50%;
  background: #f6f8faf5;
  box-shadow: 0 4px 16px #25415c20;
}

.guide-toggle .robot-portrait {
  width: 49px;
  height: 59px;
}

.guide-toggle .guide-label {
  right: 72px;
  top: 18px;
}

@media (max-width: 600px) {
  .topbar nav {
    font-size: 12px;
    gap: 12px;
  }

  .hero-actions .text-link {
    font-size: 11px;
  }

  .guide-toggle {
    width: 48px;
    height: 48px;
  }

  .guide-toggle .robot-portrait {
    width: 36px;
    height: 43px;
  }
}

.visual-gallery-description {
  max-width: 66ch;
  margin: -4px 0 18px;
  color: #4f6274;
}

.gallery-expand svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-top {
  position: relative;
  isolation: isolate;
  min-height: clamp(370px, 32vw, var(--hero-visual-height));
}

@media (min-width: 601px) {
  .hero-top .hero-visual img {
    object-position: center 28%;
  }
}

.hero .expertise {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: start;
  gap: clamp(28px, 5vw, 76px);
  margin: 0;
  padding: clamp(26px, 3.4vw, 48px) clamp(24px, 4.2vw, 58px);
  border: 0;
  border-top: 1px solid #54738e;
  border-radius: 0;
  box-shadow: none;
}

.hero .expertise h2 {
  margin: 0 0 12px;
}

.hero .expertise p {
  max-width: 46ch;
  margin: 0;
  color: #d6e4f1;
  font-size: 14px;
  line-height: 1.65;
}

.hero .expertise-link {
  color: #dceeff;
}

.hero .expertise-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  margin: 3px 0 0;
  padding: 0 0 0 20px;
}

.hero .expertise-process li {
  padding-left: 3px;
  color: #b9cde0;
  font-size: 13px;
  line-height: 1.5;
}

.hero .expertise-process li::marker {
  color: #bbd8ef;
  font-variant-numeric: tabular-nums;
}

.hero .expertise-process strong {
  margin: 0 0 3px;
  color: #f2f7fb;
  font-size: 14px;
  font-weight: 650;
}

.about-entries .about-date {
  margin-bottom: 7px;
  color: #425d76;
  font-size: 12px;
  font-weight: 650;
}

.about-roles {
  display: grid;
  gap: 5px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 2px solid #c9d9e8;
}

.about-roles dt {
  font-weight: 650;
  line-height: 1.4;
}

.about-roles dd {
  margin: 0 0 13px;
  color: #4f6274;
}

.about-roles dd:last-child {
  margin-bottom: 0;
}

.about-council-roles {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 800px) {
  .hero .expertise {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
  }

  .hero .expertise p {
    max-width: 56ch;
  }
}

@media (max-width: 600px) {
  .hero-top {
    min-height: var(--hero-visual-height);
  }

  .hero .expertise-process {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
}
.legacy-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 100px;
}

#kako-radim,
#kontakt-forma {
  scroll-margin-top: 96px;
}

.contact-with-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  text-align: left;
}

.contact-with-form .contact-details {
  justify-content: flex-start;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid #fff;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffffec, #e8f0f8e8);
  box-shadow: 0 16px 40px #233a5212;
}

.inquiry-form h3 {
  margin: 0 0 4px;
  font-size: 22px;
  color: #243b52;
}

.inquiry-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inquiry-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #314a62;
}

.inquiry-form :is(input, select, textarea) {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #aebfd0;
  border-radius: 8px;
  background: #fff;
  color: #243b52;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form .contact-cta {
  justify-self: start;
  margin: 0;
  cursor: pointer;
}

.inquiry-form .contact-cta:disabled {
  cursor: wait;
  opacity: .65;
}

.inquiry-form :is(.inquiry-note, .inquiry-status) {
  margin: 0;
  color: #415872;
  font-size: 13px;
}

.inquiry-status:empty {
  display: none;
}

.inquiry-status a {
  color: #1f4f80;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.business-details {
  margin: 0 clamp(25px, 6vw, 96px) 24px;
  color: #415872;
  font-size: 13px;
}

.business-details summary {
  cursor: pointer;
  font-weight: 600;
}

.business-details dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.business-details dt {
  font-weight: 600;
}

.business-details dd {
  margin: 0;
}

@media (max-width: 850px) {
  .contact-with-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .inquiry-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
