*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --rose: #E03479;
  --navy: #1a2744;
  --sky: #4a90d9;
  --blush: #fdf0f5;
  --text: #1a2744;
  --text-soft: #2D3748;
  --border: #e8ecf0;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --dur-fast: 150ms;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body { font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--navy);
  line-height: 1.2; white-space: nowrap;
}
.nav-logo .tagline {
  display: block; font-family: var(--font-body);
  font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--rose); font-weight: 400;
}
.nav-links { display: flex; align-items: center; gap: 2rem; flex: 1; justify-content: center; list-style: none; }
.nav-links a { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-soft); transition: color var(--dur-fast); }
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--rose); color: #fff; border: none; border-radius: 50px;
  padding: 10px 22px; font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: opacity 0.2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-arrow { display: inline-block; width: 10px; height: 6px; position: relative; top: 1px; flex-shrink: 0; }
.nav-dropdown-arrow::after {
  content: ''; display: block; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-fast);
}
.nav-dropdown.open > a .nav-dropdown-arrow::after { transform: rotate(-135deg) translateY(-2px); }
.nav-dropdown-panel {
  display: none; position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%); background: #fff; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13); padding: 24px 28px;
  min-width: 600px; z-index: 1000; border: 1px solid var(--border);
}
.nav-dropdown.open .nav-dropdown-panel { display: flex; gap: 32px; }
.nav-dropdown-col h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.nav-dropdown-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.nav-dropdown-col ul li a { font-size: 0.8125rem; font-weight: 500; color: var(--text-soft); white-space: nowrap; transition: color var(--dur-fast); }
.nav-dropdown-col ul li a:hover { color: var(--rose); }

/* HERO */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4080 100%);
  color: #fff; padding: var(--space-2xl) 1.5rem; text-align: center;
}
.page-hero .container { max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(224,52,121,0.25);
  border: 1px solid rgba(224,52,121,0.4); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: 50px; padding: 6px 16px; margin-bottom: 1.5rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 1.25rem;
}
.page-hero h1 em { font-style: italic; color: #f9a8d4; font-weight: 400; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 580px; margin: 0 auto 2.5rem; }
.hero-img { margin: 2.5rem auto 0; max-width: 560px; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.3); }
.hero-img img { width: 100%; height: 340px; object-fit: cover; }
.hero-img-placeholder { width: 100%; height: 340px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

/* LAYOUT */
.container { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-2xl) 1.5rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 0.75rem;
}
.section-title em { font-style: italic; color: var(--rose); font-weight: 400; }
.section-sub { font-size: 1rem; color: var(--text-soft); max-width: 540px; margin-bottom: 2rem; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.feature-item { background: var(--blush); border-radius: 14px; padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--rose); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.feature-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feature-item p { font-size: 0.85rem; color: var(--text-soft); line-height: 1.55; }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4080 100%);
  color: #fff; border-radius: 24px; padding: var(--space-xl) var(--space-lg);
  text-align: center; max-width: 860px; margin: 0 auto var(--space-2xl);
}
.cta-box h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.75rem; }
.cta-box p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* BUTTONS */
.btn-rose {
  display: inline-block; background: var(--rose); color: #fff;
  border-radius: 50px; padding: 16px 40px; font-weight: 700; font-size: 1rem;
  font-family: var(--font-body); border: none; cursor: pointer;
  transition: opacity 0.2s; text-decoration: none;
}
.btn-rose:hover { opacity: 0.88; }

/* FOOTER */
footer {
  background: var(--navy); color: rgba(255,255,255,0.6);
  padding: 2rem 1.5rem; text-align: center; font-size: 0.8rem;
}
footer a { color: rgba(255,255,255,0.6); }
footer a:hover { color: #fff; }

/* BOOK PAGE */
.book-hero-layout { display: flex; gap: 3rem; align-items: flex-start; padding: var(--space-2xl) 1.5rem; max-width: 860px; margin: 0 auto; }
.book-cover-large { width: 220px; min-width: 220px; height: 308px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.2); flex-shrink: 0; }
.book-cover-large img { width: 100%; height: 100%; object-fit: cover; }
.book-info h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.book-info h1 em { font-style: italic; color: var(--rose); font-weight: 400; }
.book-info p { color: var(--text-soft); margin-bottom: 1.5rem; font-size: 1rem; }
.book-price { font-size: 2rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
.book-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-soft); margin-left: 6px; }

/* VADBA PAGE */
.vadba-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.detail-box { border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; }
.detail-box h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.75rem; }
.detail-box ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.detail-box ul li { font-size: 0.875rem; color: var(--text-soft); padding-left: 1.2rem; position: relative; }
.detail-box ul li::before { content: '✓'; position: absolute; left: 0; color: var(--rose); font-weight: 700; }

/* BREZPLACNO */
.free-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.free-card { border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; transition: box-shadow 0.2s; }
.free-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.free-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.free-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.free-card p { font-size: 0.875rem; color: var(--text-soft); margin-bottom: 1.25rem; line-height: 1.55; }
.btn-outline {
  display: inline-block; border: 2px solid var(--rose); color: var(--rose);
  border-radius: 50px; padding: 10px 24px; font-weight: 600; font-size: 0.875rem;
  font-family: var(--font-body); transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--rose); color: #fff; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  width: 40px;
  height: 40px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav.nav-open { position: fixed; width: 100%; }
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    gap: 4px;
    z-index: 99;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
  .nav.nav-open .nav-links > li { width: 100%; }
  .nav.nav-open .nav-links > li > a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
  }
  .nav.nav-open .nav-dropdown-panel {
    position: static;
    transform: none;
    min-width: unset;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 12px;
    flex-direction: column;
    gap: 0;
    border-radius: 0;
    background: var(--blush);
    border-radius: 8px;
    margin-top: 8px;
  }
  .nav.nav-open .nav-dropdown.open .nav-dropdown-panel { display: flex; }
  .nav.nav-open .nav-dropdown-col { min-width: unset; }
  .nav.nav-open .nav-dropdown-col h4 { margin-top: 10px; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .free-grid { grid-template-columns: 1fr; }
  .vadba-details { grid-template-columns: 1fr; }
  .book-hero-layout { flex-direction: column; align-items: center; text-align: center; }
  .book-cover-large { height: auto; max-height: 260px; width: auto; }
  .cta-box { border-radius: 16px; padding: var(--space-lg) var(--space-md); }
  .cta-box h2 { font-size: 1.5rem; }
  .hero-img img { height: 220px; }
  .section { padding: 3rem 1.5rem; }
  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .mini-form-row { flex-direction: column; }
  .mini-form-row input, .mini-form-row button { width: 100%; }
}

@media (min-width: 861px) { html { font-size: 20px; } }
