/* brickme – styly značkového webu (úvod, O nás, Jak to funguje, Články, Kontakt). Doplňuje style.css. */

/* ---------- navigace: 6 odkazů → dřív sbalit do rozbalovacího menu ---------- */
.nav-links a.active { background: rgba(22,23,27,.06); color: var(--ink); }
@media (max-width: 1080px) and (min-width: 901px) {
  .nav-bar { padding: 0 6px 0 18px; }
  .nav-links { display: none; position: absolute; left: 16px; right: 16px; top: 74px; flex-direction: column; gap: 2px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
  .nav.menu-open .nav-links { display: flex; animation: drop .3s var(--ease); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: inline-grid; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 1080px) { .nav-links { max-width: calc(var(--wrap) - 32px); margin: 0 auto; } }

/* ---------- plynulé objevování se zpožděním ---------- */
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ---------- úvodní stránka: 4 kroky ---------- */
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps-4 .step:nth-child(4) .step-ico { background: #F3E8FF; color: #7A3FC4; }
.steps-foot { display: flex; justify-content: center; margin-top: 38px; }
@media (max-width: 1060px) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps.steps-4 { grid-template-columns: 1fr; } }

/* ---------- ukázky AI portrétů ---------- */
.showcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.show-card { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #ECE8E1; aspect-ratio: 2 / 3; box-shadow: 0 1px 0 var(--line); transform: translateY(0); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.show-card:nth-child(even) { margin-top: 34px; }
.show-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.show-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.show-card:hover img { transform: scale(1.05); }
.show-card figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.88); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.show-card figcaption span { display: block; font-weight: 600; color: var(--muted); font-size: 11.5px; }
.show-note { margin-top: 26px; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 1060px) {
  .showcase { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 16px 18px; margin: 0 -16px; scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .show-card { flex: 0 0 min(46vw, 240px); scroll-snap-align: start; }
  .show-card:nth-child(even) { margin-top: 0; }
}

/* ---------- dvě cesty (AI / ručně) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { position: relative; padding: 36px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.path .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.path.dark .tag { background: rgba(255,255,255,.1); color: #FF8A6D; }
.path h3 { font-size: 26px; margin: 18px 0 12px; }
.path p { color: var(--muted); max-width: 440px; }
.path.dark p { color: rgba(255,255,255,.66); }
.path ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.path li { display: flex; gap: 10px; align-items: center; }
.path li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.path-art { position: absolute; right: -30px; bottom: -30px; width: 190px; height: 190px; opacity: .08; pointer-events: none; }
.path.dark .path-art { opacity: .1; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path { padding: 28px 22px; } }

/* ---------- proč my ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: background .5s var(--ease), transform .5s var(--ease); }
.why-item:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.why-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,138,109,.14); color: #FF8A6D; margin-bottom: 20px; }
.why-ico svg { width: 24px; height: 24px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { color: rgba(255,255,255,.62); font-size: 15.5px; }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .why { grid-template-columns: 1fr; } }

/* ---------- karty článků ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post-cover img { position: absolute; right: 8%; bottom: -38%; width: 46%; height: auto; border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); transform: rotate(4deg); transition: transform 1s var(--ease); }
.post-card:hover .post-cover img { transform: rotate(0deg) translateY(-8px); }
.post-cover .pc-ico { position: absolute; left: 22px; top: 22px; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.75); display: grid; place-items: center; color: var(--ink); }
.post-cover .pc-ico svg { width: 22px; height: 22px; }
.post-cover .pc-studs { position: absolute; left: 22px; bottom: 20px; display: flex; gap: 6px; }
.post-cover .pc-studs i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.55); }
.cv-1 { background: linear-gradient(135deg, #DCE6FB, #C3D3F6); }
.cv-2 { background: linear-gradient(135deg, #FFE6DD, #FFC9B8); }
.cv-3 { background: linear-gradient(135deg, #D6EEE2, #B5DFCA); }
.cv-4 { background: linear-gradient(135deg, #FFF1C9, #FFE08A); }
.cv-5 { background: linear-gradient(135deg, #F3E8FF, #DCC6F7); }
.cv-6 { background: linear-gradient(135deg, #E6E3DC, #CFC9BD); }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-meta b { color: var(--accent-2); }
.post-card h3 { font-size: 19px; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.post-more svg { transition: transform .4s var(--ease); }
.post-card:hover .post-more svg { transform: translateX(4px); }
.posts-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.posts-featured .post-cover { aspect-ratio: auto; min-height: 320px; }
.posts-featured .post-cover img { width: 34%; bottom: -24%; }
.posts-featured .post-body { padding: 36px; justify-content: center; }
.posts-featured h3 { font-size: clamp(22px, 2.4vw, 30px); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } .posts-featured { grid-template-columns: 1fr; } .posts-featured .post-cover { min-height: 240px; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } .posts-featured .post-body { padding: 24px; } }

/* ---------- hlavička podstránek ---------- */
.page-hero { padding: 64px 0 70px; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); max-width: 860px; margin-top: 4px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lead { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 640px; }
.page-hero .hero-cta { margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; opacity: .5; }
.hero-bricks { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 340px; height: 340px; pointer-events: none; opacity: .9; }
.hero-bricks rect, .hero-bricks circle { animation: float 7s var(--ease) infinite alternate; transform-box: fill-box; transform-origin: center; }
.hero-bricks g:nth-child(2) * { animation-delay: -2s; }
.hero-bricks g:nth-child(3) * { animation-delay: -4s; }
@keyframes float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-14px) rotate(4deg); } }
@media (max-width: 960px) { .hero-bricks { display: none; } .page-hero { padding: 36px 0 50px; } }

/* ---------- časová osa (Jak to funguje) ---------- */
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.timeline .tl-fill { position: absolute; left: 31px; top: 10px; width: 2px; height: 0; background: var(--accent); transition: height .2s linear; }
.tl-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 28px; padding-bottom: 54px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--head); font-size: 17px; transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
.tl-step.on .tl-dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.tl-step h3 { font-size: 24px; margin: 6px 0 10px; }
.tl-step p { color: var(--muted); font-size: 16.5px; max-width: 640px; }
.tl-step .tl-meta { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); }
.tl-step .tl-meta svg { width: 16px; height: 16px; color: var(--accent); }
.tl-step ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
@media (max-width: 620px) { .timeline::before, .timeline .tl-fill { left: 23px; } .tl-step { grid-template-columns: 48px 1fr; gap: 18px; } .tl-dot { width: 48px; height: 48px; border-radius: 15px; font-size: 14px; } .tl-step h3 { font-size: 20px; } }

/* ---------- obecné bloky podstránek ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.split p + p { margin-top: 14px; }
.split .muted { font-size: 17px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev > :first-child { order: 0; } }
.photo-stack { position: relative; height: 460px; }
.photo-stack img { position: absolute; width: 50%; border-radius: 22px; box-shadow: var(--shadow-lg); transition: transform .9s var(--ease); }
.photo-stack img:nth-child(1) { left: 0; top: 30px; transform: rotate(-5deg); }
.photo-stack img:nth-child(2) { left: 25%; top: 0; z-index: 2; transform: rotate(1deg); }
.photo-stack img:nth-child(3) { right: 0; top: 50px; transform: rotate(6deg); }
.photo-stack:hover img:nth-child(1) { transform: rotate(-8deg) translateX(-10px); }
.photo-stack:hover img:nth-child(3) { transform: rotate(9deg) translateX(10px); }
@media (max-width: 520px) { .photo-stack { height: 330px; } }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.section-white .info-card { background: var(--bg); }
.info-card .why-ico { background: var(--accent-soft); color: var(--accent-2); }
.info-card h3 { margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 15.5px; }
.info-card .big { font-family: var(--head); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 2px 0 6px; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

.table-list { display: grid; gap: 10px; }
.table-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.table-list div span:last-child { font-weight: 800; white-space: nowrap; }
.table-list small { display: block; font-weight: 500; color: var(--muted); }

.quote-band { padding: 46px; border-radius: 30px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quote-band p { font-family: var(--head); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.02em; max-width: 820px; }
.quote-band p em { font-style: normal; color: #FF8A6D; }
.quote-band span { display: block; margin-top: 18px; color: rgba(255,255,255,.6); font-weight: 600; }
@media (max-width: 620px) { .quote-band { padding: 30px 22px; } }

/* zřetelný zástupný text – údaje, které je potřeba doplnit */
.todo { display: inline-block; padding: 2px 10px; border-radius: 8px; border: 1.5px dashed rgba(200,56,42,.45); background: rgba(255,230,221,.55); color: #9A3020; font-weight: 700; font-size: .92em; }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.contact-card { padding: 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-row:first-of-type { padding-top: 6px; }
.contact-row .why-ico { margin: 0; flex: none; background: var(--accent-soft); color: var(--accent-2); }
.contact-row b { display: block; font-size: 16px; }
.contact-row p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.quick-links { display: grid; gap: 10px; margin-top: 18px; }
.quick-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--bg); text-decoration: none; font-weight: 700; transition: background .3s, transform .4s var(--ease); }
.quick-links a:hover { background: var(--accent-soft); transform: translateX(4px); }
.quick-links svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { padding: 24px 20px; } }

/* ---------- článek ---------- */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.article-hero { padding: 54px 0 0; }
.article-hero .wrap { max-width: 860px; }
.article-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.article-hero .lead { margin-top: 20px; font-size: 19.5px; color: var(--ink-2); line-height: 1.55; }
.article-hero .post-meta { margin-bottom: 18px; }
.article-cover { max-width: 1060px; margin: 44px auto 0; padding: 0 24px; animation: rise 1s var(--ease) both .1s; }
.article-hero .wrap, .page-hero .wrap { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .article-cover, .article-hero .wrap, .page-hero .wrap { animation: none; } }
.article-cover .post-cover { aspect-ratio: 21 / 9; border-radius: 30px; }
.article-cover .post-cover img { width: 24%; bottom: -26%; right: 10%; }
@media (max-width: 720px) { .article-cover { padding: 0 16px; } .article-cover .post-cover { aspect-ratio: 16 / 10; border-radius: 22px; } .article-cover .post-cover img { width: 36%; } }
.prose { max-width: 720px; margin: 0 auto; padding: 56px 24px 30px; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(23px, 2.4vw, 29px); margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 20px; margin-top: 1.6em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); font-weight: 800; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-2); text-underline-offset: 3px; }
.prose .tip { padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); font-size: 16.5px; }
.prose .tip b { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--head); font-weight: 600; font-size: 15px; }
.prose .do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prose .do-dont > div { padding: 20px 22px; border-radius: 18px; font-size: 16px; }
.prose .do-dont .do { background: var(--mint); }
.prose .do-dont .dont { background: #FBE3DF; }
.prose .do-dont b { display: block; margin-bottom: 6px; color: var(--ink); }
.prose .do-dont ul { margin: 0; padding-left: 1.1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); font-weight: 800; color: var(--ink); }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) { .prose { font-size: 17px; padding: 40px 16px 20px; } .prose .do-dont { grid-template-columns: 1fr; } .prose table { font-size: 14.5px; } .prose th, .prose td { padding: 10px 12px; } }
.article-cta { max-width: 720px; margin: 20px auto 0; padding: 0 24px; }
.article-cta .cta-box { padding: 36px; border-radius: 26px; }
.article-cta .cta-box h2 { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 720px) { .article-cta { padding: 0 16px; } }
.share-row { max-width: 720px; margin: 28px auto 0; padding: 0 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--muted); }
.share-row button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; height: 38px; padding: 0 16px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.share-row button:hover { background: var(--ink); color: #fff; }

/* ---------- patička se 4 sloupci ---------- */
.foot-grid.foot-4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .foot-grid.foot-4 { grid-template-columns: 1fr 1fr; } .foot-grid.foot-4 > :first-child { grid-column: 1 / -1; } }
.foot-cta { display: inline-flex; margin-top: 22px; }
.foot-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: rgba(255,255,255,.7); }

/* galerie na úzkém mobilu: jen šipka místo slova Upravit */
@media (max-width: 420px) { .g-meta span { font-size: 0; } .g-meta span svg { width: 15px; height: 15px; } }
