:root {
  --bg: #0e2230;
  --bg-soft: #132d3f;
  --panel: #173449;
  --panel-soft: #1d425a;
  --text: #eef5fb;
  --muted: #b8c7d5;
  --line: rgba(255,255,255,0.12);
  --accent: #7fb2e5;
  --accent-strong: #dfefff;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, rgba(127, 178, 229, 0.12), transparent 30%), linear-gradient(180deg, #0c1d2a 0%, #0e2230 100%);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(10, 24, 35, 0.76);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #f5f9fd;
  white-space: nowrap;
}

.nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.15rem;
}

.nav nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.nav nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: #fff;
}

.hero {
  padding: 5.2rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 1rem 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  color: var(--accent-strong);
  font-weight: 600;
}

.lead {
  margin: 0 0 1.8rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 63ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #f2f7fb;
  color: #0f2230;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-points li {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--accent-strong);
  font-weight: 600;
}

.hero-visual {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-visual-desktop {
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}

.hero-visual-mobile {
  display: none;
}

.book-cover {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.32));
}

.section {
  padding: 4.75rem 0;
}

.section-accent {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.order-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.order-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
}

.feature-card p,
.contact-copy p,
.author-copy p,
.order-note {
  color: var(--muted);
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 132px;
  justify-content: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

.store-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.author-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
}

.author-photo-wrap {
  max-width: 400px;
  height: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.author-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 22px;
}

.author-copy h2 {
  margin: 0 0 1rem;
}

.author-copy p {
  margin: 0 0 1.15rem;
}

.author-copy p:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.site-footer {
  padding: 1rem 0 1.6rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.legal-page {
  min-height: 100vh;
  padding: 120px 24px 80px;
  background: #07111f;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
}

.legal-content h1 {
  margin-top: 0;
  margin-bottom: 24px;
}

.legal-content p {
  line-height: 1.7;
  margin-bottom: 20px;
}

#kontakt .contact-copy {
  max-width: 760px;
}

.order-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.order-card-compact {
  min-height: 96px;
  padding: 1.1rem 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

.order-card-compact .store-name {
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.order-note {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .author-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .hero-visual-desktop {
    max-width: 460px;
    margin: 0 auto;
  }

  .author-photo-wrap {
    max-width: 520px;
  }

  .order-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    padding: 0.85rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav nav {
    gap: 0.8rem 1rem;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-grid {
    display: block;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual-desktop {
    display: none;
  }

  .hero-visual-mobile {
    display: block;
    width: min(100%, 320px);
    margin: 1.25rem auto 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .btn {
    width: 100%;
  }

.hero-points,
.footer-row,
.footer-links {
  align-items: flex-start;
}

.hero-points {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-points li {
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
  line-height: 1.2;
}

  .order-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .order-card-compact {
    min-height: 82px;
    padding: 0.9rem 0.75rem;
  }

  .order-card-compact .store-name {
    font-size: 0.95rem;
  }

  .section,
  .hero {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 400px) {
  .hero-points li {
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-visual-mobile {
    width: min(100%, 280px);
  }
}
