:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #fffaf7;
  --surface-raised: #ffffff;
  --cream: #1b1917;
  --cream-muted: #706a64;
  --ink: #181716;
  --accent: #ff6246;
  --accent-bright: #ff8456;
  --border: rgba(24, 23, 22, 0.13);
  --font: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--cream);
  font-family: var(--font);
}

button {
  font: inherit;
}

.background-ornaments {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ornament {
  position: absolute;
  display: block;
}

.ornament-coral {
  top: 26%;
  left: -7.5rem;
  width: 17rem;
  height: 17rem;
  border-radius: 3.25rem;
  background: var(--accent);
  transform: rotate(-16deg);
}

.ornament-cream {
  right: -5rem;
  bottom: 9%;
  width: 18rem;
  height: 18rem;
  border: 2px solid var(--accent);
  border-radius: 2.5rem;
  background: #fff3ed;
  opacity: 1;
  transform: rotate(22deg);
}

.ornament-ring {
  top: 45%;
  right: 9%;
  width: 7rem;
  height: 7rem;
  border: 1.2rem solid var(--accent);
  border-radius: 50%;
}

.ornament-grid {
  top: 65%;
  left: 7%;
  width: 10rem;
  height: 10rem;
  border-radius: 1.6rem;
  background-image: radial-gradient(var(--ink) 1.5px, transparent 1.5px);
  background-size: 1rem 1rem;
  opacity: 0.38;
  transform: rotate(-12deg);
}

.ornament-frame {
  top: 12%;
  right: 14%;
  width: 6.5rem;
  height: 6.5rem;
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  transform: rotate(18deg);
}

.ornament-stripes {
  top: 34%;
  left: 15%;
  width: 7rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--ink);
  transform: rotate(-14deg);
}

.ornament-stripes::before,
.ornament-stripes::after {
  position: absolute;
  left: 0;
  width: 5.3rem;
  height: 1rem;
  content: "";
  border-radius: inherit;
  background: var(--accent);
}

.ornament-stripes::before {
  top: 1.7rem;
}

.ornament-stripes::after {
  top: 3.4rem;
  width: 3.5rem;
}

.ornament-cross {
  right: 17%;
  bottom: 24%;
  width: 5rem;
  height: 5rem;
  transform: rotate(14deg);
}

.ornament-cross::before,
.ornament-cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 1rem;
  content: "";
  border-radius: 999px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.ornament-cross::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ornament-dots {
  top: 16%;
  left: 9%;
  width: 6rem;
  height: 5rem;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.5px);
  background-size: 0.85rem 0.85rem;
}

.site-shell {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0;
}

.site-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: clamp(1.3rem, 3vw, 2.25rem);
  animation: enter 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  position: relative;
  display: block;
  width: min(100%, 52rem);
  padding: clamp(0.7rem, 1.4vw, 1.1rem);
  line-height: 0;
  overflow: hidden;
  border-radius: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.98);
  outline: 1px solid rgba(24, 23, 22, 0.15);
  outline-offset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 240, 243, 0.8));
  box-shadow: inset 0 1px rgba(255, 255, 255, 1), inset 0 -2px rgba(108, 112, 118, 0.12);
  backdrop-filter: blur(34px) saturate(175%);
}

.brand::before {
  display: none;
}

.brand-logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(0.7rem, 1.4vw, 1.4rem);
  transition: transform 200ms ease;
}

.brand:hover .brand-logo {
  transform: translateY(-2px);
}

.brand:focus-visible,
.tab-button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 5px;
}

.section-navigation {
  position: sticky;
  z-index: 2;
  top: 0.85rem;
  align-self: center;
  width: min(100%, 43rem);
}

.tab-list {
  --glass-padding: 0.48rem;
  display: flex;
  position: relative;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: var(--glass-padding);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 1.1rem;
  outline: 1px solid rgba(24, 23, 22, 0.15);
  outline-offset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 240, 243, 0.8));
  box-shadow: inset 0 1px rgba(255, 255, 255, 1), inset 0 -2px rgba(108, 112, 118, 0.12);
  backdrop-filter: blur(34px) saturate(175%);
}

.tab-indicator {
  position: absolute;
  z-index: 0;
  top: var(--glass-padding);
  bottom: var(--glass-padding);
  left: 0;
  width: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0.8rem;
  background: rgba(255, 111, 79, 0.8);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.52), inset 0 -1px rgba(174, 42, 24, 0.2);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 460ms cubic-bezier(0.34, 1.32, 0.64, 1), width 310ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: var(--cream-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tab-button:hover {
  color: var(--cream);
  background: rgba(24, 23, 22, 0.05);
}

.tab-button.is-active {
  color: var(--ink);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.main-content {
  flex: 1;
  padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(1.5rem, 5vh, 3rem);
}

.content-panel {
  width: 100%;
  outline: none;
  overflow: hidden;
}

.content-panel.is-active {
  animation: panel-change 260ms ease-out both;
}

.panel-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  outline: 1px solid rgba(24, 23, 22, 0.15);
  outline-offset: -2px;
  padding: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(4.5rem, 7vw, 6rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 240, 243, 0.8));
  background-clip: padding-box;
  box-shadow: inset 0 1px rgba(255, 255, 255, 1), inset 0 -2px rgba(108, 112, 118, 0.12);
  backdrop-filter: blur(34px) saturate(175%);
}

.panel-surface::before,
.panel-surface::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.panel-surface::before {
  top: 0;
  right: clamp(1.5rem, 5vw, 4.5rem);
  width: 0.35rem;
  height: 5rem;
  border-radius: 0 0 999px 999px;
  background: var(--accent);
}

.panel-surface::after {
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 0.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.section-label {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  position: relative;
  z-index: 1;
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.03;
}

.section-copy {
  position: relative;
  z-index: 1;
  max-width: 67ch;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: var(--cream-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  font-weight: 600;
  line-height: 1.8;
}

.about-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  max-width: 67ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.about-copy p {
  margin: 0;
  color: var(--cream-muted);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  font-weight: 600;
  line-height: 1.8;
}

.service-details {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 67ch;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.service-detail h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.service-detail p {
  margin: 1rem 0 0;
  color: var(--cream-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  font-weight: 600;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 700;
  line-height: 1.55;
}

.feature-list li::before {
  display: block;
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.pricing-table-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 1.25rem;
  outline: 1px solid rgba(24, 23, 22, 0.15);
  outline-offset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 240, 243, 0.8));
  box-shadow: inset 0 1px rgba(255, 255, 255, 1), inset 0 -2px rgba(108, 112, 118, 0.12);
  backdrop-filter: blur(34px) saturate(175%);
}

.pricing-table {
  width: 100%;
  min-width: 43rem;
  border-collapse: collapse;
  color: var(--ink);
  text-align: left;
}

.pricing-table th,
.pricing-table td {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid rgba(24, 23, 22, 0.1);
  vertical-align: top;
}

.pricing-table thead th {
  background: rgba(24, 23, 22, 0.05);
  color: var(--cream-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-table tbody th {
  width: 24%;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
}

.pricing-table td {
  color: var(--cream-muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.65;
}

.pricing-table td:nth-child(2) {
  width: 14%;
  white-space: nowrap;
  color: var(--ink);
}

.pricing-table strong {
  color: var(--accent);
  font-weight: 800;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.additional-services {
  position: relative;
  z-index: 1;
  max-width: 51rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.additional-services h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  letter-spacing: -0.045em;
}

.pricing-table--compact {
  min-width: 31rem;
}

.pricing-table--compact tbody th {
  width: auto;
}

.pricing-note {
  margin: 1.15rem 0 0;
  color: var(--cream-muted);
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.7;
}

.post-project-support {
  position: relative;
  z-index: 1;
  max-width: 51rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.98);
  border-left: 0.35rem solid var(--accent);
  border-radius: 0 1rem 1rem 0;
  outline: 1px solid rgba(24, 23, 22, 0.15);
  outline-offset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 231, 225, 0.8));
  box-shadow: inset 0 1px rgba(255, 255, 255, 1), inset 0 -2px rgba(174, 42, 24, 0.1);
  backdrop-filter: blur(34px) saturate(175%);
}

.post-project-support h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.post-project-support p {
  margin: 0.85rem 0 0;
  color: var(--cream-muted);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1rem;
}

.site-footer a,
.back-link {
  color: var(--cream-muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.site-footer a:focus-visible,
.back-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.legal-main {
  padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(1.5rem, 5vh, 3rem);
}

.legal-content {
  max-width: none;
  margin: 0;
}

.legal-content .panel-surface {
  border: 1px solid rgba(255, 255, 255, 0.98);
  outline: 1px solid rgba(24, 23, 22, 0.15);
  outline-offset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 240, 243, 0.8));
  box-shadow: inset 0 1px rgba(255, 255, 255, 1), inset 0 -2px rgba(108, 112, 118, 0.12);
  backdrop-filter: blur(34px) saturate(175%);
}

.back-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.legal-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: 67ch;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.legal-copy section {
  display: grid;
  gap: 0.9rem;
}

.legal-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.legal-copy p,
.legal-copy li {
  margin: 0;
  color: var(--cream-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.03rem);
  font-weight: 600;
  line-height: 1.8;
}

.legal-copy strong {
  color: var(--ink);
}

.legal-copy ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.legal-date {
  position: relative;
  z-index: 1;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  color: var(--cream-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(-0.8rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-change {
  from {
    opacity: 0.7;
    transform: translateY(0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 2rem, 1180px);
    padding-block: 1.25rem;
  }

  .brand {
    width: min(100%, 31rem);
    padding: 0.5rem;
  }

  .tab-list {
    --glass-padding: 0.25rem;
    gap: 0.2rem;
    border-radius: 0.9rem;
  }

  .tab-button {
    min-height: 2.8rem;
    padding-inline: 0.35rem;
    font-size: 0.74rem;
  }

  .main-content {
    padding-top: clamp(3.5rem, 10vh, 5.5rem);
  }

  .panel-surface {
    padding: 2rem 1.5rem 2.5rem;
  }

  .section-title {
    max-width: 16ch;
  }

  .pricing-table-wrapper {
    overflow: hidden;
  }

  .pricing-table {
    display: block;
    min-width: 0;
  }

  .pricing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table th,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tbody tr {
    padding: 1.35rem;
    border-bottom: 1px solid rgba(24, 23, 22, 0.1);
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0;
    border: 0;
  }

  .pricing-table tbody th {
    width: 100%;
    font-size: 1.02rem;
  }

  .pricing-table td:nth-child(2) {
    width: 100%;
    margin-top: 0.65rem;
    white-space: normal;
  }

  .pricing-table td:nth-child(3) {
    margin-top: 0.85rem;
  }

  .pricing-table td::before {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--cream-muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .pricing-table:not(.pricing-table--compact) td:nth-child(2)::before,
  .pricing-table--compact td:nth-child(2)::before {
    content: "Cena";
  }

  .pricing-table:not(.pricing-table--compact) td:nth-child(3)::before {
    content: "Co obejmuje";
  }

  .ornament-coral {
    left: -10rem;
  }

  .ornament-cream {
    right: -10rem;
    bottom: 3%;
  }

  .ornament-ring {
    top: 52%;
    right: 5%;
    transform: scale(0.75);
  }

  .ornament-frame {
    top: 11%;
    right: -1.7rem;
    transform: rotate(18deg) scale(0.8);
  }

  .ornament-stripes {
    top: 42%;
    left: -2rem;
    transform: rotate(-14deg) scale(0.75);
  }

  .ornament-cross {
    right: 4%;
    bottom: 18%;
    transform: rotate(14deg) scale(0.7);
  }

  .ornament-dots {
    top: 20%;
    left: 5%;
    transform: scale(0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
