/* DFS Červánek HK – vzhled webu (redesign 2026-11). Pravidla: docs/DESIGN.md */

/* Písmo: Bricolage Grotesque, variabilní (šířka 75–100 %, řez 200–800), licence fonts/OFL.txt */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Barvy – jediný zdroj pravdy, nové barvy nepřidávat bez úpravy docs/DESIGN.md */
  --cervena: #C1121F;       /* krojová červená: hlavní plocha, tlačítka, odkazy */
  --cervena-tmava: #8E0D17; /* hover odkazů a tlačítek */
  --zelena: #1E4D3A;        /* sukňová zelená: kontaktní pás */
  --slama: #F6EFDF;         /* klidné sekce */
  --klas: #F2C94C;          /* odkazy na zeleném a tmavém podkladu */
  --inkoust: #1D1916;       /* text, patička */
  --text-2: #4A433D;        /* doplňkový text */
  --text-3: #6B625A;        /* data, popisky (4.5:1 na bílé) */
  --linka: #E7E2DA;         /* tenké linky */
  --platno: #FFFFFF;

  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --pad: 40px;
  --radius-l: 20px;   /* velké fotky a dlaždice */
  --radius-m: 14px;   /* menší fotky, panely */
  --sekce: 96px;      /* svislá mezera sekcí */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--inkoust);
  background: var(--platno);
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: var(--cervena); text-underline-offset: 3px; }
a:hover { color: var(--cervena-tmava); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--klas); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: 68px; line-height: 0.98; font-stretch: 85%; letter-spacing: -0.02em; }
h2 { font-size: 44px; line-height: 1.05; font-stretch: 85%; }
h3 { font-size: 26px; line-height: 1.15; font-stretch: 88%; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--platno); color: var(--inkoust); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sekce { padding: var(--sekce) 0; }
.sekce--slama { background: var(--slama); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--l { gap: 40px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.text { color: var(--text-2); max-width: 60ch; }
.text p + p { margin-top: 1em; }
.meta { font-size: 15px; color: var(--text-3); }
.hlava { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.odkaz { font-weight: 600; font-size: 17px; }

/* Tlačítka: plné červené, bílé na červeném, obrysové na červeném */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 17px/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn--cervene { background: var(--cervena); color: #fff; }
.btn--cervene:hover { background: var(--cervena-tmava); color: #fff; }
.btn--bile { background: #fff; color: var(--cervena); }
.btn--bile:hover { background: var(--slama); color: var(--cervena-tmava); }
.btn--obrys { color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--obrys:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.1); }
.btn--obrys-tmave { color: var(--inkoust); border-color: #CFC7BD; }
.btn--obrys-tmave:hover { color: var(--inkoust); border-color: var(--inkoust); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hlavička */
.hlavicka { background: var(--platno); border-bottom: 1px solid var(--linka); position: sticky; top: 0; z-index: 50; }
.hlavicka__in { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.znacka { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--inkoust); }
.znacka img { height: 46px; width: auto; }
.znacka span { font-size: 13px; line-height: 1.25; color: #5C544D; border-left: 1px solid #D8D1C7; padding-left: 14px; }
.menu { display: flex; gap: 28px; flex: 1; justify-content: flex-end; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.menu a { color: var(--inkoust); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--linka); color: var(--inkoust); }
.menu a[aria-current="page"] { border-bottom-color: var(--cervena); }
.hlavicka .btn { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #D8D1C7; background: #fff; border-radius: 999px; color: var(--inkoust); cursor: pointer; }
.menu-mobil { display: none; }

/* Úvodní pás: červená plocha + fotka */
.uvod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 640px; }
.uvod__text { background: var(--cervena); color: #fff; padding: 72px 56px 64px max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.uvod__text .lead { color: #fff; max-width: 32ch; }
.uvod__misto { font-size: 16px; font-weight: 500; opacity: 0.9; }
.uvod__foto { position: relative; min-height: 420px; }
.uvod__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }

/* Úvod podstránek */
.stranka-uvod { padding: 80px 0 56px; }
.stranka-uvod h1 { color: var(--inkoust); max-width: 16ch; }
.stranka-uvod .lead { margin-top: 20px; }

/* Výšivka: jediný ozdobný prvek (křížkový steh) */
.vysivka { height: 30px; margin: 14px 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='30'%3E%3Cpath d='M25 1L29 5M29 1L25 5M19 7L23 11M23 7L19 11M31 7L35 11M35 7L31 11M13 13L17 17M17 13L13 17M25 13L29 17M29 13L25 17M37 13L41 17M41 13L37 17M19 19L23 23M23 19L19 23M31 19L35 23M35 19L31 23M25 25L29 29M29 25L25 29M1 13L5 17M5 13L1 17' stroke='%23C1121F' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") repeat-x; }

/* Rozcestník: velké fotky s bílým panelem */
.dvere { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dvere__polozka { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; border-radius: var(--radius-l); overflow: hidden; text-decoration: none; background: var(--inkoust); }
.dvere__polozka > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dvere__polozka:hover > img { transform: scale(1.03); }
.dvere__panel { position: relative; background: #fff; color: var(--inkoust); margin: 16px; padding: 28px; border-radius: var(--radius-m); display: flex; flex-direction: column; gap: 10px; }
.dvere__panel p { font-size: 17px; color: var(--text-2); }
.dvere__panel span { font-weight: 600; color: var(--cervena); margin-top: 6px; }

/* Foto + text */
.dvojice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.dvojice--obracene { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dvojice--obracene > img, .dvojice--obracene > figure { order: 2; }
.foto { width: 100%; object-fit: cover; border-radius: var(--radius-l); }
.foto--na-vysku { aspect-ratio: 4 / 5; }
.foto--na-sirku { aspect-ratio: 3 / 2; }

/* Seznam s červenou linkou nahoře (ne karty) */
.body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.body--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bod { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--cervena); padding-top: 18px; }
.bod h3 { font-size: 22px; font-stretch: 90%; }
.bod p { font-size: 17px; color: var(--text-2); }

/* Aktuality */
.zpravy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.zprava { display: flex; flex-direction: column; gap: 16px; }
.zprava img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.zprava h2, .zprava h3 { font-size: 26px; line-height: 1.15; font-stretch: 88%; }
.zprava h2 a, .zprava h3 a { color: var(--inkoust); text-decoration: none; }
.zprava h2 a:hover, .zprava h3 a:hover { color: var(--cervena); }
.zprava p { font-size: 17px; color: var(--text-2); max-width: 52ch; }
.zprava .meta { color: var(--text-3); }

/* Pás fotek */
.pas { display: grid; grid-template-columns: 3fr 2fr 2fr 3fr; gap: 12px; }
.pas img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius-m); }

/* Galerie */
.filtr { display: flex; gap: 10px; flex-wrap: wrap; }
.filtr button { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid #CFC7BD; background: #fff; color: var(--inkoust); font: 600 16px/1 var(--font); cursor: pointer; }
.filtr button:hover { border-color: var(--inkoust); }
.filtr button.active { background: var(--inkoust); border-color: var(--inkoust); color: #fff; }
.galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.galerie__foto { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.galerie__foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.galerie__foto span { font-size: 15px; color: var(--text-3); }
.lightbox { position: fixed; inset: 0; background: rgba(29, 25, 22, 0.94); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 200; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 6px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 999px; border: 0; background: #fff; color: var(--inkoust); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Kontaktní pás (zelený) */
.kontakt { background: var(--zelena); color: #fff; padding: var(--sekce) 0; }
.kontakt__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.kontakt .lead { color: #D5E3DB; max-width: 40ch; }
.kontakt__velke { display: flex; flex-direction: column; gap: 6px; }
.kontakt__velke a { color: #fff; font-size: 40px; font-weight: 700; font-stretch: 85%; line-height: 1.15; overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.kontakt__velke a[href^="tel"] { text-decoration: none; }
.kontakt__velke a.odkaz-klas { color: var(--klas); font-size: 17px; font-weight: 600; font-stretch: 100%; margin-top: 14px; }

/* Kontaktní údaje (stránka Kontakt) */
.udaje { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.udaj { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--cervena); padding-top: 18px; }
.udaj dt { font-size: 15px; color: var(--text-3); }
.udaj dd { margin: 0; font-size: 26px; font-weight: 700; font-stretch: 88%; line-height: 1.2; overflow-wrap: anywhere; }
.udaj dd a { color: var(--inkoust); }
.udaj dd a:hover { color: var(--cervena); }
.udaj .meta { font-size: 15px; font-weight: 400; font-stretch: 100%; }

/* Patička */
.paticka { background: var(--inkoust); color: #CFC7BD; font-size: 15px; padding-top: 1px; }
.paticka__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; padding-top: 28px; padding-bottom: 40px; }
.paticka img { height: 40px; width: auto; }
.paticka nav { display: flex; gap: 20px; flex-wrap: wrap; }
.paticka a { color: #fff; }
.paticka a:hover { color: var(--klas); }

/* Užší obrazovky: menu se vejde na jeden řádek */
@media (max-width: 1180px) {
  .znacka span { display: none; }
  .hlavicka__in { gap: 24px; }
  .menu { gap: 20px; }
}

/* Mobil a tablet */
@media (max-width: 900px) {
  :root { --pad: 20px; --sekce: 64px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .hlavicka__in { min-height: 68px; gap: 16px; }
  .znacka img { height: 38px; }
  .menu, .hlavicka .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-mobil.open { display: flex; flex-direction: column; padding: 8px var(--pad) 20px; border-top: 1px solid var(--linka); }
  .menu-mobil a { color: var(--inkoust); text-decoration: none; font-size: 20px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--linka); }
  .menu-mobil a[aria-current="page"] { color: var(--cervena); }
  .menu-mobil .btn { margin-top: 16px; color: #fff; border-bottom: 0; }
  .uvod { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .uvod__foto { order: -1; min-height: 300px; }
  .uvod__text { padding: 36px var(--pad) 48px; }
  .stranka-uvod { padding: 48px 0 32px; }
  .dvere, .dvojice, .dvojice--obracene, .body, .body--3, .zpravy, .kontakt__in, .udaje, .galerie { grid-template-columns: minmax(0, 1fr); }
  .dvojice--obracene > img, .dvojice--obracene > figure { order: 0; }
  .dvojice { gap: 36px; }
  .body { gap: 28px; }
  .dvere__polozka { min-height: 420px; }
  .pas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pas img { height: 180px; }
  .kontakt__velke a { font-size: 30px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
