:root {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --ink: #0f172a;
  --ink-soft: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --red: #e1102e;
  --red-deep: #b50d25;
  --paper: #f7f8fa;
  --gray: #e5e7eb;
  --cable: rgba(100, 116, 139, 0.45);
  --max: 1120px;
  --header: 112px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
}

/* Vertikální kabel — izolace jede podle scrollu / sekce */
.page-cable {
  position: fixed;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 30;
  pointer-events: none;
}

.page-cable__core {
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--cable);
}

.page-cable__sheath {
  position: absolute;
  left: 1px;
  top: 0;
  width: 6px;
  height: var(--progress, 0%);
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    #52525b 0%,
    #27272a 45%,
    #3f3f46 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: height 0.18s ease-out;
}

.page-cable__tip {
  position: absolute;
  left: 1px;
  top: var(--progress, 0%);
  width: 6px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 0 1px rgba(225, 16, 46, 0.25);
  transition: top 0.18s ease-out;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}

/* Logo: stacked mark + FLAREON with three-bar E */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.logo-lockup {
  height: 78px;
  width: auto;
  display: block;
}

.logo img.mark,
.logo svg {
  width: 34px;
  height: auto;
}

.logo-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.flareon {
  display: flex;
  align-items: flex-end;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-e {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 0.58em;
  height: 0.72em;
  margin: 0 0.05em 0.07em;
}

.logo-e i {
  display: block;
  height: 2.5px;
  background: currentColor;
}

.logo-e i:first-child {
  background: var(--red);
}

.logo-e i:nth-child(2) {
  width: 100%;
}

.systems {
  margin-top: 4px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.42em;
}

.logo.on-dark,
.logo.on-dark .systems {
  color: #f4f4f2;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 18%,
    #64748b 18%,
    #64748b 82%,
    var(--red) 82%,
    var(--red) 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

nav a:hover,
nav a.is-active {
  color: var(--red);
  font-weight: 700;
}

nav a:hover::after,
nav a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--ink);
  color: #fff;
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
}

.hero {
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  padding: 72px 0 96px;
}

.hero-inner {
  text-align: center;
  max-width: 820px;
}

.hero .logo-lockup {
  height: min(280px, 42vw);
  margin-bottom: 40px;
}

.hero .flareon {
  font-size: 42px;
  letter-spacing: 0.12em;
}

.hero .logo-e {
  width: 0.56em;
  height: 0.7em;
  margin-bottom: 0.1em;
}

.hero .logo-e i {
  height: 6px;
}

.hero .systems {
  font-size: 12px;
  letter-spacing: 0.62em;
  margin-top: 10px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

h1,
h2,
h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

.lede {
  margin: 22px auto 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn.solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn.solid:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn.ghost:hover {
  background: var(--ink);
  color: #fff;
}

.meta-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 56px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.meta-row span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--red);
  margin-right: 10px;
  vertical-align: middle;
}

section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: none;
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 10px,
    var(--cable) 10px,
    var(--cable) calc(100% - 10px),
    var(--red) calc(100% - 10px),
    var(--red) 100%
  );
}

.section-head::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.85;
  z-index: 1;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.services .service:last-child:nth-child(odd) {
  grid-column: auto;
}

a[href*="pourservis"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.photo-copy a:not(.partner-banner),
.split-item a:not(.partner-banner):not(.partner-banner *) {
  color: inherit;
  border-bottom: 1px solid var(--red);
}

.photo-copy a:not(.partner-banner):hover,
.split-item a:not(.partner-banner):hover {
  color: var(--red);
}

.partner-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line) !important;
  background: var(--bg-elev);
  text-decoration: none !important;
  color: inherit !important;
  max-width: 420px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.partner-banner:hover {
  border-color: var(--ink) !important;
  color: inherit !important;
  background: #fff;
}

.partner-banner img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-banner .meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.partner-banner .meta strong {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.partner-banner .meta span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.partner-banner .meta em {
  font-style: normal;
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.04em;
}

.partners-section {
  padding-top: 24px;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 480px;
}

.partners-grid .partner-banner {
  max-width: none;
  margin-top: 0;
  min-height: 88px;
}

.service {
  background: var(--bg);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.service:hover {
  background: var(--bg-elev);
}

.service .num {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
}

.service p {
  margin: 0;
  color: var(--ink-soft);
  flex: 1;
}

.service .more {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service .more::after {
  content: " →";
}

.service-bullets {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.service-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--red);
}

.service-bullets strong {
  display: block;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.service-bullets.compact {
  gap: 6px;
  margin-top: 4px;
}

.service-bullets.compact strong {
  font-size: 14px;
  margin-bottom: 0;
}

.photo-band {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 520px;
  background: var(--ink);
  color: #f4f4f2;
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  filter: grayscale(0.35) contrast(1.05);
}

.photo-copy {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}

.photo-copy p {
  margin: 0;
  color: rgba(244, 244, 242, 0.72);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step h3 {
  margin: 12px 0 8px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.step .n {
  font-family: "Outfit", sans-serif;
  color: var(--red);
  letter-spacing: 0.16em;
  font-size: 12px;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.person-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.person-card h3 {
  margin: 6px 0 8px;
}

.person-card .role {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.person-card a {
  border-bottom: 1px solid var(--red);
}

.person {
  background: var(--bg);
  padding: 40px;
}

.person h3 {
  margin-bottom: 6px;
}

.role {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.person a {
  display: inline-block;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-bottom-color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--ink-soft);
  font-size: 13px;
}

.form-status {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.form-status.is-ok {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #14532d;
}

.form-status.is-error {
  border-color: var(--red);
  background: #fef2f2;
  color: var(--red-deep);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.cookie-banner > p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner a {
  border-bottom: 1px solid var(--red);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.cookie-panel {
  display: none;
  margin: 0 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cookie-banner.is-open .cookie-panel {
  display: grid;
  gap: 12px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.cookie-option span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.cookie-option input:disabled {
  opacity: 0.7;
}

footer .cookie-link {
  border-bottom: 1px solid rgba(244, 244, 242, 0.35);
  cursor: pointer;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  color: inherit;
  padding: 0;
  font: inherit;
}

@media (max-width: 860px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px;
  }

  .cookie-actions .btn {
    min-width: 100%;
  }
}

footer {
  background: var(--ink);
  color: #f4f4f2;
  padding: 56px 0 28px;
}

footer .logo-lockup {
  height: 88px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: none;
  position: relative;
}

.footer-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 10px,
    rgba(244, 244, 242, 0.28) 10px,
    rgba(244, 244, 242, 0.28) calc(100% - 10px),
    var(--red) calc(100% - 10px),
    var(--red) 100%
  );
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: rgba(244, 244, 242, 0.5);
  font-size: 13px;
}

.page-hero {
  padding: 72px 0 24px;
}

.split-list {
  display: grid;
  gap: 0;
}

.split-item {
  display: grid;
  grid-template-columns: 140px 1fr 1.1fr;
  gap: 24px;
  padding: 40px 0;
  border-top: none;
  position: relative;
}

.split-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 8px,
    var(--cable) 8px,
    var(--cable) calc(100% - 8px),
    var(--red) calc(100% - 8px),
    var(--red) 100%
  );
}

.split-item:last-child {
  border-bottom: none;
}

.split-item:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 8px,
    var(--cable) 8px,
    var(--cable) calc(100% - 8px),
    var(--red) calc(100% - 8px),
    var(--red) 100%
  );
}

.split-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: grayscale(0.4);
}

.split-item p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.legal {
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width: 860px) {
  :root {
    --header: 100px;
  }

  .logo-lockup {
    height: 70px;
  }

  footer .logo-lockup {
    height: 80px;
  }

  .page-cable {
    left: 8px;
    opacity: 0.9;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  nav,
  .nav-cta {
    display: none;
  }

  header.is-open nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }

  header.is-open .nav-cta {
    display: none;
  }

  .menu-btn {
    display: block;
    justify-self: end;
  }

  .section-head,
  .services,
  .photo-band,
  .steps,
  .people,
  .contact-grid,
  .footer-top,
  .split-item {
    grid-template-columns: 1fr;
  }

  .hero .flareon {
    font-size: 28px;
  }

  .meta-row,
  .hero-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .photo-copy {
    padding: 32px 24px;
  }
}
