/* Výraznější veřejný vzhled. Pohyb se vypne pravidlem prefers-reduced-motion ve style.css. */

body {
  animation: pageIn .55s ease both;
}
body.is-leaving {
  animation: pageOut .32s ease both;
}

.site-header {
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw .9s .15s cubic-bezier(.2, .7, .2, 1) forwards;
}
.site-header.scrolled {
  background: #121718f2;
  backdrop-filter: blur(10px);
}

.hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(100deg, #000 0%, transparent 72%);
  animation: drift 22s linear infinite;
}
.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  pointer-events: none;
  border-color: #f36155;
  border-style: solid;
  opacity: .85;
}
.hero-content::before {
  top: 8%;
  left: 0;
  border-width: 2px 0 0 2px;
  animation: tick .7s .2s ease both;
}
.hero-content::after {
  right: 8%;
  bottom: 118px;
  border-width: 0 2px 2px 0;
  animation: tick .7s .45s ease both;
}
.hero h1 span {
  display: inline-block;
  background: linear-gradient(180deg, transparent 62%, #dc403540 62%);
}

.intro {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) both;
}
.hero .intro:nth-child(1) { animation-delay: .05s; }
.hero .intro:nth-child(2) { animation-delay: .16s; }
.hero .intro:nth-child(3) { animation-delay: .28s; }
.hero .intro:nth-child(4) { animation-delay: .4s; }
.hero-caption { animation: rise .8s .52s cubic-bezier(.2, .7, .2, 1) both; }

.discipline-strip {
  position: relative;
  overflow: hidden;
}
.discipline-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, #ffffff2e, transparent);
  animation: sheen 3.8s ease-in-out infinite;
}
.discipline-strip span {
  position: relative;
}

.motion-ready .reveal {
  filter: blur(6px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s ease;
}
.motion-ready .reveal.is-visible {
  filter: none;
}
.services-grid .service-card:nth-child(2) { transition-delay: .08s; }
.services-grid .service-card:nth-child(3) { transition-delay: .16s; }
.services-grid .service-card:nth-child(4) { transition-delay: .08s; }
.services-grid .service-card:nth-child(5) { transition-delay: .16s; }
.services-grid .service-card:nth-child(6) { transition-delay: .24s; }
.service-card {
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 0 3px;
  background-position: 0 0;
  transition: background-size .35s ease, background-color .3s ease, transform .35s ease;
}
.service-card:hover,
.motion-ready .service-card.is-visible:hover {
  background-color: var(--soft);
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 0;
  transform: translateY(-4px);
}
.service-number {
  font-variant-numeric: tabular-nums;
}

.featured-project {
  outline: 1px solid transparent;
}
.motion-ready .featured-project img {
  clip-path: inset(12% 8% 12% 8%);
  transform: scale(1.08);
  transition: clip-path .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
}
.motion-ready .featured-project.is-visible img,
.featured-project:hover img {
  clip-path: inset(0);
  transform: scale(1);
}
.motion-ready .featured-project:not(.is-visible) .project-overlay {
  opacity: 0;
  transform: translateY(16px);
}
.project-overlay {
  transition: opacity .5s ease .15s, transform .5s ease .15s;
}

.about-visual { overflow: visible; }
.photo-note {
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(300px, 86%);
  padding: 22px 26px 20px;
  animation: rise .7s .2s cubic-bezier(.2, .7, .2, 1) both;
}
.photo-note span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .16em;
}
.photo-note span::after {
  content: "";
  width: 28px;
  height: 2px;
  background: #fff;
}
.photo-note strong {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-top: 12px;
}
/* Souvislý roh: 2px linka sdílí pravý okraj karty a o 2px do ní zajíždí, bez mezery. */
.photo-note::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 0;
  bottom: calc(100% - 2px);
  height: 56px;
  border: 2px solid var(--red);
  border-bottom: 0;
  pointer-events: none;
}

.team-grid .team-card:nth-child(2) { transition-delay: .1s; }
.team-grid .team-card:nth-child(3) { transition-delay: .2s; }
.team-initials {
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.team-card:hover .team-initials {
  background: var(--ink);
  color: #fff;
  transform: rotate(-6deg);
}

.tool-grid .tool-card:nth-child(2) { transition-delay: .06s; }
.tool-grid .tool-card:nth-child(3) { transition-delay: .12s; }
.tool-grid .tool-card:nth-child(4) { transition-delay: .04s; }
.tool-grid .tool-card:nth-child(5) { transition-delay: .1s; }
.tool-grid .tool-card:nth-child(6) { transition-delay: .16s; }
.photo-grid .gallery-item:nth-child(2) { transition-delay: .1s; }
.photo-grid .gallery-item:nth-child(3) { transition-delay: .16s; }
.photo-grid .gallery-item:nth-child(4) { transition-delay: .22s; }
.motion-ready .gallery-item img {
  transform: scale(1.06);
  transition: transform .7s ease, opacity .7s ease;
}
.motion-ready .gallery-item.is-visible img {
  transform: none;
}

.page-intro h1 {
  position: relative;
}
.page-intro h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 22px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw .7s .35s cubic-bezier(.2, .7, .2, 1) forwards;
}

.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -90px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 7s ease-in-out infinite;
}
.contact-info, .contact-form {
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.contact-form { animation-delay: .12s; }

.dialog {
  animation: rise .28s ease both;
}
.dialog::backdrop {
  animation: pageIn .28s ease both;
}
.mobile-nav {
  animation: rise .25s ease both;
}

.button.primary {
  position: relative;
  overflow: hidden;
}
.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, #ffffff55 48%, transparent 62%);
  transform: translateX(-120%);
}
.button.primary:hover::after {
  animation: sheen .7s ease;
}

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw { to { transform: scaleX(1); } }
@keyframes tick { from { opacity: 0; transform: scale(.6); } to { opacity: .85; transform: none; } }
@keyframes drift { to { background-position: 84px 84px; } }
@keyframes sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(320%); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .55; } }

.section { padding-block: clamp(36px, 4.5vw, 64px); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, .75fr);
  gap: 20px 36px;
  align-items: end;
  margin-bottom: 22px;
}
.heading-copy { max-width: none; margin: 0; }
h1 { font-size: clamp(40px, 5vw, 68px); }
h2 { font-size: clamp(28px, 3.2vw, 44px); }
.hero {
  min-height: 0;
  height: auto;
  max-height: none;
}
.hero-content {
  padding-top: 28px;
  padding-bottom: 72px;
  justify-content: flex-end;
}
.hero .eyebrow { margin-bottom: 16px; }
.hero p { margin-top: 16px; }
.hero-buttons { margin-top: 22px; }
.hero-caption { bottom: 18px; padding-top: 14px; }
.hero-content::after { bottom: 78px; }
.discipline-strip .container { padding-block: 14px; }
.service-card { min-height: 0; padding: 20px 22px; }
.service-card-top { margin-bottom: 16px; }
.service-card p { margin-bottom: 16px; }
.about-section { gap: 36px; }
.about-visual,
.about-visual > img { min-height: 0; height: 480px; }
.photo-note { width: min(300px, 86%); }
.featured-project { aspect-ratio: 2.35; }
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.featured-projects-grid .featured-project { aspect-ratio: 1.45; }
.featured-projects-grid .project-overlay h3 { font-size: clamp(22px, 2.4vw, 32px); }
.project-detail + .project-detail { margin-top: 10px; border-top: 1px solid #d4dcd8; padding-top: 48px; }
.project-overlay { padding: 28px; }
.project-footnote { margin-top: 12px; }
@media (max-width: 700px) {
  .featured-projects-grid { grid-template-columns: 1fr; gap: 14px; }
  .featured-projects-grid .featured-project { aspect-ratio: .95; }
  .project-detail + .project-detail { padding-top: 28px; }
}
.rental-preview-foot { margin-top: 22px; }
.team-card-head { margin-bottom: 16px; }
.partners-block { margin-top: 36px; padding-top: 22px; }
.contact-section { padding-block: 48px; }
.contact-info > p { margin-top: 14px; }
.contact-phone { margin-top: 18px; }
.contact-detail-grid { margin-top: 24px; }
.page-intro { padding-block: 18px 28px; }
.breadcrumbs { margin-bottom: 22px; }
.page-intro-bottom { margin-top: 16px; }
.project-description { padding-block: 32px; gap: 28px; }
.project-detail { padding-bottom: 36px; }
.project-cta { padding-block: 36px; }
.rental-intro { padding-bottom: 28px; }
.rental-intro-grid { gap: 28px; }
.rental-intro-image { min-height: 240px; padding: 28px; }
.rental-info-strip { padding-block: 16px; }
.catalog-controls { margin-bottom: 14px; }
.process-grid { margin-top: 28px; gap: 28px; }
.discount-note { margin-top: 28px; }
.tool-card-photo { height: 168px; padding: 20px; }
.tool-card-body { padding: 16px 18px; }
.tool-description { margin-bottom: 12px; }
.tool-card .button { margin-top: 12px; }

.discipline-strip .container { flex-wrap: wrap; row-gap: 8px; }
.discipline-strip a { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.discipline-strip a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .7fr); gap: 28px; align-items: start; }
.service-layout h2 { margin-bottom: 16px; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scope-item { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.scope-item span { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.service-aside { display: grid; gap: 12px; align-content: start; }
.service-aside img { width: 100%; height: 240px; object-fit: cover; }
.service-aside .button { justify-self: start; }
.service-aside .contact-phone { color: var(--ink); font-size: 22px; margin: 0; }
.service-aside .text-link { color: var(--red); font-weight: 700; }
.related-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-services a { display: grid; gap: 4px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.related-services a span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.related-services a:hover { border-color: var(--ink); }

@media (max-width: 800px) {
  .service-layout, .scope-grid, .related-services { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero-content::after { display: none; }
  .hero-content::before { width: 36px; height: 36px; }
  .photo-note::before { display: none; }
  .contact-section::before { width: 160px; height: 160px; }
}
