/* ============================================================
   Kovovýroba Novák — statický web (bez frameworku)
   Tmavý kovový (metalický) vizuální systém
   ============================================================ */

:root {
  --bg: #0e1114;
  --surface: #171b20;
  --surface-2: #1d2228;
  --rule: #2b323a;
  --rule-strong: #4e5863;
  --ink: #eef1f4;
  --muted: #afb7c0;
  --steel: #88919c;
  --metal: #cdd5dd;
  --accent: #e8481c;
  --accent-soft: #ff7a4d;
  --accent-strong: #ff6534;
  --accent-ink: #ffffff;
  --dark: #07090b;
  --dark-rule: #232930;
  --dark-muted: #98a1ab;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 24px;
  --content-max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 900px) {
  :root {
    --gutter: 48px;
    --header-h: 76px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--metal);
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  padding: 10px 16px;
  border: 1px solid var(--rule-strong);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Typografie ---------- */
.h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  margin-top: 1rem;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--steel);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 10vh, 9rem);
}

.section--dark {
  background: var(--dark);
}

.section-heading {
  max-width: 48rem;
}

.section-heading--tight .lead {
  margin-top: 1rem;
}

.section-heading .h2 {
  margin-top: 1.25rem;
}

.section-heading .lead {
  margin-top: 1.25rem;
}

.marker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1.25rem;
}

.marker::before {
  content: '';
  width: 56px;
  height: 1px;
  flex: none;
  background: linear-gradient(to right, transparent, var(--rule-strong), var(--metal));
}

/* ---------- Mřížky ---------- */
.grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.grid--12 {
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 640px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--12 {
    grid-template-columns: repeat(12, 1fr);
    gap: 64px;
  }
  .col-7 {
    grid-column: span 7;
  }
  .col-5 {
    grid-column: span 5;
  }
}

.narrow {
  max-width: 56rem;
  margin-top: 4rem;
}

.narrow .muted {
  max-width: 42rem;
}

/* ---------- Tlačítka ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(1px);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
}

@media (max-width: 639px) {
  .btn--block-sm {
    width: 100%;
  }
}

/* ---------- Karty ---------- */
.card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(205, 213, 221, 0.08);
  transition:
    transform 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
}

/* ---------- Kótovací linky ---------- */
.dim {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--rule-strong);
}

.dim--mb {
  margin-bottom: 3.5rem;
}

.dim--wide {
  margin-top: 3rem;
  max-width: 26rem;
}

.dim--sm {
  margin-top: 1rem;
  max-width: 20rem;
}

.dim--accent {
  color: var(--accent);
}

.dim__tick {
  flex: none;
  width: 1px;
  height: 10px;
  background: currentColor;
}

.dim__rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    to right,
    color-mix(in srgb, currentColor 25%, transparent),
    currentColor,
    color-mix(in srgb, currentColor 25%, transparent)
  );
}

.dim__label {
  flex: none;
  color: currentColor;
}

/* ---------- Ikony ---------- */
.icon {
  color: currentColor;
}

.icon--48 {
  width: 48px;
  height: 48px;
}

.icon--24 {
  width: 24px;
  height: 24px;
}

.icon--20 {
  width: 20px;
  height: 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s var(--ease),
    padding 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  transition: padding 0.2s var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  padding-block: 0.625rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand__name {
  color: var(--metal);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__area {
  display: none;
}

@media (min-width: 640px) {
  .brand__area {
    display: inline;
  }
}

.site-nav {
  display: none;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.site-nav a:hover {
  color: var(--accent-soft);
}

@media (min-width: 1200px) {
  .site-nav {
    display: flex;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}

.menu-toggle:hover {
  border-color: var(--rule-strong);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
}

@media (min-width: 1200px) {
  .menu-toggle {
    display: none;
  }
}

/* ---------- Mobilní menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 360px);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--rule);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.menu-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.5rem;
}

.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
  color: var(--ink);
}

.mobile-menu__nav a:hover {
  color: var(--accent-soft);
}

.mobile-menu__foot {
  padding: 1.5rem;
  border-top: 1px solid var(--rule);
}

.mobile-menu__foot .btn {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-block: 8rem 5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__overlay--base {
  background: rgba(14, 17, 20, 0.75);
}

.hero__overlay--v {
  background: linear-gradient(to top, var(--bg) 0%, rgba(14, 17, 20, 0.7) 55%, rgba(14, 17, 20, 0.3) 100%);
}

.hero__overlay--h {
  background: linear-gradient(to right, var(--bg) 0%, rgba(14, 17, 20, 0.7) 55%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.hero__content .h1 {
  margin-top: 1.5rem;
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__micro {
  margin-top: 1.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

/* ---------- Rozcestník ---------- */
.choice {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.choice__card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.choice__card .h3 {
  margin-top: 1.25rem;
}

.choice__cta {
  margin-top: auto;
  padding-top: 2rem;
}

.choice__divider,
.choice__divider-label {
  display: none;
}

@media (min-width: 900px) {
  .choice {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .choice__card:first-of-type {
    margin-right: 2.5rem;
  }
  .choice__card:last-of-type {
    margin-left: 2.5rem;
  }
  .choice__divider {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    transform: translateX(-50%);
    background: var(--rule);
  }
  .choice__divider-label {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0 0.75rem;
    background: var(--bg);
    color: var(--steel);
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Služby ---------- */
.services {
  margin-top: 3.5rem;
}

.service {
  display: flex;
  flex-direction: column;
  padding-bottom: 4rem;
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service .h3 {
  margin-top: 1.5rem;
}

.service__tag {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  bottom: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  color: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.service:hover .service__tag,
.service:focus-within .service__tag {
  transform: scaleX(1);
}

/* ---------- Opravy ---------- */
.repair-list {
  display: grid;
  gap: 0.75rem 2rem;
  margin: 2.5rem 0;
  padding: 0;
  list-style: none;
}

.repair-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dark-rule);
  font-size: 0.875rem;
}

.repair-list li::before {
  content: '';
  width: 1rem;
  height: 1px;
  flex: none;
  background: var(--accent);
}

@media (min-width: 640px) {
  .repair-list {
    grid-template-columns: 1fr 1fr;
  }
}

.section--dark .muted {
  color: var(--dark-muted);
}

.panel {
  padding: 2rem;
  border: 1px solid var(--dark-rule);
}

.panel__note {
  margin-top: 1.5rem;
  color: var(--dark-muted);
}

.panel__dims {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Postup ---------- */
.process {
  position: relative;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}

.process::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: var(--rule);
}

.process__step {
  position: relative;
  padding: 0 0 3rem 2.5rem;
}

.process__step:last-child {
  padding-bottom: 0;
}

.process__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
}

.process__step > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.process__step .muted {
  margin-top: 0.5rem;
  max-width: 42rem;
}

/* ---------- Portfolio ---------- */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.filter-btn {
  min-height: 44px;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.filter-btn:hover {
  border-color: var(--rule-strong);
  color: var(--ink);
}

.filter-btn[aria-pressed='true'] {
  border-color: var(--metal);
  color: var(--ink);
}

.portfolio__count {
  margin-left: auto;
}

.portfolio {
  margin-top: 2.5rem;
}

.portfolio__item figure {
  margin: 0;
}

.portfolio__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface-2);
}

.portfolio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.26s var(--ease);
}

.portfolio__item:hover .portfolio__media img {
  transform: scale(1.02);
}

.portfolio__item figcaption {
  margin-top: 0.75rem;
}

.portfolio__item[hidden] {
  display: none;
}

/* ---------- Proč si vybrat ---------- */
.why {
  margin-top: 3.5rem;
  gap: 2rem 2.5rem;
}

.why__item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.why__icon {
  color: var(--accent);
}

.why__item .h3 {
  margin-top: 1rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 48rem;
  margin-top: 3rem;
}

.faq__item {
  border-bottom: 1px solid var(--rule);
}

.faq__item summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.375rem 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s var(--ease);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--accent-soft);
}

.faq__item summary .h3 {
  flex: 1;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  line-height: 1;
  color: var(--steel);
  transition: transform 0.2s var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  max-width: 42rem;
  padding: 0 2.5rem 1.5rem 2.5rem;
}

/* ---------- CTA + checklist ---------- */
.cta-block__title {
  max-width: 36rem;
}

.cta-block__action {
  margin-top: 2.25rem;
}

.checklist {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}

/* ---------- Kontakt ---------- */
.contact {
  margin-top: 3.5rem;
}

.contact__list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.contact__row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact__icon {
  margin-top: 2px;
  color: var(--accent-soft);
}

.contact__row dd {
  margin: 0.25rem 0 0;
}

.contact__row a:hover {
  color: var(--accent-soft);
}

.contact__note {
  margin-top: 1.5rem;
}

/* ---------- Formulář ---------- */
.inquiry {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .inquiry {
    padding: 2rem;
  }
}

.inquiry__grid {
  gap: 1.25rem;
}

.inquiry__full {
  margin-top: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.18s var(--ease);
}

.field__control::placeholder {
  color: rgba(175, 183, 192, 0.55);
}

.field__control:hover,
.field__control:focus {
  border-color: var(--metal);
}

.field__control[aria-invalid='true'] {
  border-color: var(--accent);
}

textarea.field__control {
  resize: vertical;
}

.field__error {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
}

.field__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field__check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--accent);
}

.field__check .muted {
  margin: 0;
  font-size: 0.875rem;
}

.inquiry__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.inquiry__status {
  margin-top: 1rem;
}

.inquiry__status a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.inquiry__micro {
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .inquiry__actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-rule);
}

.site-footer__inner {
  padding-block: 4rem;
}

.site-footer__title {
  margin-bottom: 2rem;
}

.title-block {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--dark-rule);
}

@media (min-width: 640px) {
  .title-block {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .title-block {
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  }
}

.title-block__cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--dark-rule);
}

@media (min-width: 640px) {
  .title-block__cell {
    border-right: 1px solid var(--dark-rule);
  }
}

.title-block__cell a {
  color: var(--dark-muted);
}

.title-block__cell a:hover {
  color: #fff;
}

.title-block__name {
  color: var(--ink);
  font-family: var(--font-display);
}

.title-block__muted {
  color: var(--dark-muted);
  font-size: 0.875rem;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Výkresový rám ---------- */
.sheet-frame {
  position: fixed;
  inset: 14px;
  z-index: 30;
  pointer-events: none;
  border: 1px solid var(--rule);
}

.sheet-frame__corner {
  position: absolute;
  width: 10px;
  height: 10px;
}

.sheet-frame__corner--tl {
  left: 0;
  top: 0;
  border-left: 1px solid var(--rule-strong);
  border-top: 1px solid var(--rule-strong);
}

.sheet-frame__corner--tr {
  right: 0;
  top: 0;
  border-right: 1px solid var(--rule-strong);
  border-top: 1px solid var(--rule-strong);
}

.sheet-frame__corner--bl {
  left: 0;
  bottom: 0;
  border-left: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.sheet-frame__corner--br {
  right: 0;
  bottom: 0;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

@media (max-width: 1199px) {
  .sheet-frame {
    inset: auto 0 0 0;
    height: 0;
    border: 0;
    border-bottom: 1px solid var(--rule);
  }
  .sheet-frame__corner {
    display: none;
  }
}

/* ---------- Animace ---------- */
.rise-in {
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.72s var(--ease) forwards;
  animation-delay: var(--rise-delay, 0ms);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.36s var(--ease),
    transform 0.36s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 120ms !important;
    animation-duration: 0.001ms !important;
  }
}
