﻿:root {
  --bg: #f4efe5;
  --surface: rgba(255, 250, 242, 0.78);
  --surface-strong: #fffaf2;
  --surface-dark: #1d3025;
  --text: #1f241d;
  --muted: #5d6659;
  --line: rgba(38, 57, 45, 0.12);
  --primary: #365f3c;
  --primary-strong: #27472d;
  --accent: #c96f3a;
  --accent-soft: #ebd1b6;
  --shadow: 0 24px 60px rgba(42, 58, 35, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(218, 168, 112, 0.26), transparent 30%),
    radial-gradient(circle at right 20%, rgba(99, 131, 92, 0.18), transparent 26%),
    linear-gradient(180deg, #f8f3ea 0%, #f1eadf 46%, #ece4d7 100%);
}

img { display: block; max-width: 100%; } /* CHANGE */
.fit-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}
a { color: inherit; text-decoration: none; }

main {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* --- Nadpisy: Zalamování až na konci kontejneru --- */
h1, h2, h3, .brand { 
  font-family: "Fraunces", serif; 
  margin: 0; 
  max-width: 100%; /* Zrušeno omezení počtu znaků */
}

h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: 0.95; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
h3 { font-size: 1.6rem; margin-bottom: 12px; }

.section-heading { 
  margin-bottom: 28px; 
  width: 100%;
}

/* --- Společné styly sekcí --- */
section { margin-top: 34px; }

.product-section, .variants-section, .sizes-section, .contact-section {
  padding: 34px;
  background: rgba(255, 250, 242, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-radius: calc(var(--radius-xl) + 4px);
  box-shadow: 0 18px 50px rgba(50, 61, 44, 0.08);
  animation: rise 0.8s ease both;
}

/* --- Hero Sekce --- */
.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.92fr);
  gap: 36px;
  align-items: center;
  padding: 44px 0 34px;
}

.hero-lead { max-width: 34rem; margin-top: 22px; font-size: 1.1rem; line-height: 1.8; color: var(--muted); }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.hero-points li { position: relative; padding-left: 22px; color: var(--muted); font-weight: 600; }
.hero-points li::before { 
  content: ""; position: absolute; left: 0; top: 0.55em; 
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent); 
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 0;
  min-height: 0;
  align-items: end;
}

.hero-main-img {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 6px solid rgba(255,250,242,0.95);
  height: auto;
  background: var(--surface-strong);
  padding: 0;
}

.hero-accent-img {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 6px solid rgba(255,250,242,0.95);
  box-shadow: var(--shadow);
  background: var(--surface-strong);
  padding: 0;
}
/* --- Sekce 2: Produkt (Fotka posunutá nahoru) --- */
.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start; /* Zarovná text i fotku k horní hraně */
}

.product-intro { color: var(--muted); font-size: 1.25rem; line-height: 1.7; font-weight: 500; }

.product-showcase { 
  margin-top: 0; /* Fotka začíná přesně na úrovni gridu */
  overflow: hidden; 
  border-radius: var(--radius-xl); 
  max-height: 500px; 
  box-shadow: var(--shadow); 
}

/* --- Varianty a Velikosti --- */
.variant-cards, .size-showcase { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.variant-card, .size-card { 
  overflow: hidden; 
  border-radius: 28px; 
  background: rgba(255, 255, 255, 0.52); 
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.variant-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.variant-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  padding: 0;
  background: #f3eee5;
}
.variant-copy, .size-card-body { padding: 22px; }

.emphasized { 
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.94), rgba(235, 209, 182, 0.42)); 
  border-color: rgba(201, 111, 58, 0.24); 
}

.size-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  padding: 0;
  background: #f3eee5;
}
.size-label { 
  display: inline-block; margin-bottom: 8px; color: var(--primary); 
  font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; 
}

/* --- Sekce Kontakt a Distribuce: Bez zalamování --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr; 
  gap: 20px;
}

.contact-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  border: 1px solid var(--line);
}

.contact-link { display: inline-block; margin-top: 14px; color: var(--primary-strong); font-weight: 800; font-size: 1.2rem; }

.market-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: nowrap; /* Tlačítka zůstanou v jedné řadě na desktopu */
}

.market-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(54, 95, 60, 0.08);
  border: 1px solid rgba(54, 95, 60, 0.14);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.market-link:hover { background: var(--primary); color: white; }

/* --- Animace --- */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responzivita --- */
@media (max-width: 1100px) {
  .market-links { flex-wrap: wrap; }
  .market-link { width: calc(50% - 6px); flex: none; }
  .hero, .product-grid, .variant-cards, .size-showcase, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 24px; }
  .hero-visual { grid-template-columns: 1fr; }
  .product-grid { text-align: center; }
  .product-showcase { max-height: 400px; }
}

@media (max-width: 600px) {
  .product-section, .variants-section, .sizes-section, .contact-section { padding: 20px; }
  .hero h1 { font-size: 3rem; }
  .hero-visual { grid-template-columns: 1fr; gap: 14px; }
  .hero-main-img { grid-column: 1 / 2; grid-row: 1 / 2; }
  .hero-accent-img { grid-column: 1 / 2; grid-row: 2 / 3; max-width: min(260px, 70%); justify-self: end; }
  .market-link { width: 100%; }
}
