:root {
  --ink: #171717;
  --muted: #66635d;
  --line: #dedbd4;
  --paper: #fff;
  --paper-deep: #f6f4ef;
  --accent: #b64124;
  --accent-soft: #ef6c47;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { color: #fff; background: var(--accent); }

.container { width: min(calc(100% - 40px), 760px); margin-inline: auto; }
.product-page .container { width: min(calc(100% - 40px), 1100px); }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.app-brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.app-brand > span {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  place-items: center;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}
.primary-navigation { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 26px); }
.primary-navigation a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}
.primary-navigation a[aria-current="page"] { color: var(--ink); }
.primary-navigation a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.045em; }
.app-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lead { max-width: 66ch; margin-bottom: 18px; color: var(--muted); font-size: 1.05rem; }
.meta { margin-bottom: 0; color: var(--muted); font-size: 0.85rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 12px 28px rgba(23, 23, 23, 0.18); }
.button:active, .text-link:active { transform: scale(0.97); }
.text-link { display: inline-flex; gap: 0.25em; align-items: baseline; font-weight: 700; transition: color 160ms ease, transform 140ms var(--ease-out); }
.text-link span { display: inline-block; transition: transform 160ms var(--ease-out); }

.product-hero {
  display: grid;
  min-height: calc(100svh - 69px);
  padding-block: clamp(70px, 10vw, 118px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(54px, 9vw, 108px);
  align-items: center;
}
.product-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.98;
}
.product-copy h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.product-copy .lead { max-width: 590px; font-size: 1.08rem; }
.product-actions { display: flex; margin-top: 34px; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.product-facts { display: flex; padding: 0; margin: 40px 0 0; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.product-facts li { display: flex; align-items: center; gap: 8px; }
.product-facts li::before { width: 6px; aspect-ratio: 1; content: ""; background: var(--accent); border-radius: 50%; }

.product-visual {
  position: relative;
  display: grid;
  min-height: 580px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.34), transparent 18rem),
    linear-gradient(145deg, #f37a55, #bd4325 66%, #8b2f1b);
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(72, 35, 24, 0.22);
  place-items: center;
}
.product-visual::before,
.product-visual::after { position: absolute; content: ""; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.product-visual::before { top: -120px; right: -130px; width: 360px; aspect-ratio: 1; }
.product-visual::after { bottom: -90px; left: -80px; width: 230px; aspect-ratio: 1; }
.product-app-icon {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2;
  display: grid;
  width: 76px;
  aspect-ratio: 1;
  padding: 14px;
  align-content: center;
  color: #fff;
  background: var(--ink);
  border-radius: 19px;
  box-shadow: 0 18px 36px rgba(55, 21, 12, 0.28);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.product-app-icon strong { font-size: 0.88rem; }
.product-phone {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 68px), 326px);
  padding: 17px 21px 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: 0 28px 64px rgba(55, 21, 12, 0.3);
  transform: rotate(2deg);
  transition: transform 220ms var(--ease-out);
}
.phone-top { display: flex; height: 14px; margin-bottom: 16px; justify-content: center; }
.phone-top span { width: 44px; height: 5px; background: #c6c2b9; border-radius: 999px; }
.phone-label { margin-bottom: 13px; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.phone-photo { position: relative; height: 148px; overflow: hidden; background: linear-gradient(145deg, #292927, #7d776e); border-radius: 17px; }
.phone-photo::before { position: absolute; top: 22px; right: 24px; width: 72px; aspect-ratio: 1; content: ""; background: var(--accent-soft); border-radius: 50%; }
.phone-photo::after { position: absolute; right: -18px; bottom: -30px; width: 160px; height: 82px; content: ""; background: var(--paper-deep); border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.product-phone dl { margin: 18px 0; }
.product-phone dl div { display: flex; padding: 8px 0; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 0.78rem; }
.product-phone dt { color: var(--muted); }
.product-phone dd { margin: 0; font-weight: 750; }
.phone-status { display: flex; margin: 20px 0 0; align-items: center; gap: 9px; font-size: 0.8rem; font-weight: 750; }
.phone-status span { display: grid; width: 22px; aspect-ratio: 1; color: #fff; background: var(--accent); border-radius: 50%; place-items: center; }

.principles { padding-block: clamp(86px, 10vw, 130px); color: #fff; background: var(--ink); }
.principles h2 { max-width: 780px; margin-bottom: 54px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); }
.principle-grid article { padding: clamp(26px, 4vw, 42px); background: var(--ink); }
.principle-grid article > span { color: var(--accent-soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.principle-grid h3 { margin: 34px 0 14px; font-size: 1.55rem; }
.principle-grid p { margin: 0; color: #bdbab2; }

.legal-main { padding: 58px 0 84px; }
.language-nav { display: flex; margin-bottom: 34px; align-items: center; gap: 16px; color: var(--muted); font-size: 0.82rem; }
.language-nav span { font-weight: 700; }
.language-nav a { color: var(--accent); font-weight: 700; }
#english, #polski { scroll-margin-top: 100px; }
.legal-hero { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-hero h1, .language h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 7vw, 3.5rem); line-height: 1.08; }
.legal-sections { padding-top: 8px; }
.card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.card h2 { margin-bottom: 8px; font-size: 1.1rem; line-height: 1.4; }
.card-copy, .card-copy p, .legal-hero .lead, .language .lead { max-width: 66ch; }
.card p:last-child { margin-bottom: 0; }
.card a { color: var(--accent); }
.language { margin-top: 72px; padding-top: 48px; border-top: 2px solid var(--ink); }
.support-page .legal-main { min-height: calc(100svh - 137px); }
.support-email { margin-top: 28px; }
.support-email a { color: var(--accent); font-weight: 750; }

.site-footer { padding: 26px 0; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; font-size: 0.82rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.site-footer a { font-size: 0.82rem; }

@media (hover: hover) and (pointer: fine) {
  .primary-navigation a:hover, .site-footer a:hover, .text-link:hover { color: var(--accent); }
  .button-primary:hover { background: var(--accent); box-shadow: 0 16px 34px rgba(182, 65, 36, 0.28); transform: translateY(-2px); }
  .text-link:hover span { transform: translate(3px, -3px); }
  .product-visual:hover .product-phone { transform: rotate(0) translateY(-4px); }
}

@media (max-width: 820px) {
  .product-hero { min-height: auto; grid-template-columns: 1fr; }
  .product-visual { width: min(100%, 560px); min-height: 540px; margin-inline: auto; }
  .principle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container, .product-page .container { width: min(calc(100% - 28px), 1100px); }
  .header-inner { padding-block: 12px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .primary-navigation { width: 100%; padding-bottom: 2px; overflow-x: auto; gap: 18px; white-space: nowrap; }
  .primary-navigation a[aria-current="page"]::after { bottom: -4px; }
  .product-hero { padding-block: 58px 72px; gap: 46px; }
  .product-copy h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .product-visual { min-height: 450px; border-radius: 24px; }
  .product-app-icon { top: 22px; left: 22px; width: 66px; }
  .product-phone { width: min(calc(100% - 42px), 306px); }
  .principles { padding-block: 76px; }
  .principles h2 { margin-bottom: 40px; font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .legal-main { padding: 42px 0 68px; }
  .language-nav { margin-bottom: 28px; }
  .card { padding: 24px 0; }
  .language { margin-top: 56px; padding-top: 40px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-phone, .button, .text-link { transition-property: color, background-color, border-color, opacity, box-shadow; }
  .product-phone, .product-visual:hover .product-phone, .button:active, .text-link:active { transform: none; }
}
