/* ==========================================================================
   VES DESIGN CZ
   Barvy i geometrie odpovídají originálnímu návrhu (COREL_VES_WEB_037).
   Návrhová šířka obsahu = 1302 px, proto je na širokých displejích
   obsah omezen právě na tuto míru a vycentrován.
   ========================================================================== */

:root {
  /* plochy pozadí — hodnoty odečtené z návrhu */
  --blue: #ddebf0;
  --sage: #ccd6d1;
  --sand: #f7ecdc;

  /* varianty použité ve značce (o odstín světlejší) */
  --blue-mark: #eaf3f7;
  --sage-mark: #c9d6cf;
  --sand-mark: #f9ecd9;

  /* typografie */
  --ink:    #2c2e35;   /* název značky */
  --rule:   #595b61;   /* linky ve značce */
  --text:   #85878b;   /* běžný text */
  --muted:  #9a9b9f;   /* popisky, navigace, kontakt */
  --line:   #dfe5e2;   /* dělící linka */
  --circle: #a5b5ad;   /* obrys prázdných koleček */

  --content: 1302px;   /* šířka obsahu v návrhu */
  --pad: clamp(18px, 4.6vw, 61px);

  --font: "Adelle Sans Devanagari", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 15.6px;
  line-height: 1.353;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; outline: 2px solid var(--rule); }

/* ==========================================================================
   Hlavička
   ========================================================================== */

.site-header { padding-top: 58px; position: relative; z-index: 2; }

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 13px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  margin-top: 3.5px;
  shape-rendering: crispEdges;
}

.brand-text {
  display: block;
  /* písmo má vysoký ascent — vyrovnání účaří na hodnoty z návrhu */
  margin-top: -7px;
}

.brand-name,
.brand-sub {
  display: block;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.5;
}

.brand-name {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.204em;
}

.brand-sub {
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.233em;
}

/* ==========================================================================
   Hero — trojúhelníky, kresba, značka, kontakt
   Vše je umístěno v procentech vůči poměru stran původního návrhu,
   takže kompozice zůstává při zmenšení naprosto shodná.
   ========================================================================== */

/* hero je v návrhu zarovnán k hornímu okraji stránky — proto zasahuje pod hlavičku */
.hero-wrap { margin-top: -43px; position: relative; z-index: 1; }

.hero {
  position: relative;
  container-type: inline-size;
}

.hero-geo {
  pointer-events: none;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tri-blue { fill: var(--blue); }
.tri-sage { fill: var(--sage); }
.tri-sand { fill: var(--sand); }

.hero-art {
  position: absolute;
  left: -1.494%;
  top: 6.891%;
  width: 50.05%;
  height: auto;
  mix-blend-mode: multiply;   /* bílé pozadí kresby nezakrývá plochy */
}

.hero-badge {
  position: absolute;
  left: 78.15%;
  top: 2.40%;
  width: 15.98%;
  height: auto;
}

.hero-contact {
  position: absolute;
  left: 64.12%;
  bottom: 1.8%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-style: normal;
  color: var(--muted);
  font-size: clamp(11px, 1.33cqw, 17.3px);
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: auto;
  z-index: 2;
}

.hero-contact .c-name {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  text-align: center;
}

.hero-contact .c-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}

.hero-contact .c-sep {
  color: var(--rule);
  opacity: 0.45;
  user-select: none;
}

.hero-contact .c-item {
  transition: color .18s ease;
}
.hero-contact .c-item:hover,
.hero-contact .c-item:focus-visible { color: var(--rule); }

/* ==========================================================================
   Úvodní text
   ========================================================================== */

.intro { margin-top: 27px; }

.intro p {
  margin: 0;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
}

.intro .lead { margin-bottom: 13px; }
.intro .outro { margin-top: 24px; text-align: left; }

/* ==========================================================================
   Dělící linka
   ========================================================================== */

.rule {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--pad));
  margin: 37px auto 0;
  padding-inline: var(--pad);
  border: 0;
  height: 5px;
  background:
    linear-gradient(var(--line), var(--line)) content-box;
}

/* ==========================================================================
   Tvorba — štítky a kolečka
   ========================================================================== */

.work { margin-top: 34px; padding-bottom: 120px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 26px;
  margin: 0 0 46px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.11em;
  line-height: 1.2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 5.18%;      /* rozteč sloupců podle návrhu */
  row-gap: 46px;
  width: 95.75%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.cell { min-width: 0; }

.disc {
  display: block;
  text-align: center;
  margin: 0;
}

.disc-art {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
}

/* --w vyrovnává bílý okraj jednotlivých kreseb tak, aby tahy štětce
   vyplnily kolečko přesně jako v návrhu */
.disc-art img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w, 100%);
  height: auto;
  transform: translate(calc(-50% + var(--dx, 0%)), calc(-50% + var(--dy, 0%)));
  transition: scale .45s cubic-bezier(.2, .7, .3, 1);
}

.disc:hover .disc-art img { scale: 1.045; }

.disc figcaption,
.disc .disc-cap {
  display: block;
  margin-top: 15px;
  min-height: 2.4em;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.16;
  letter-spacing: 0.28em;
  text-indent: 0.28em;    /* vyrovnání mezery za posledním písmenem */
}

.disc-empty .disc-art {
  border: 2px solid var(--circle);
  transition: border-color .25s ease, background-color .25s ease;
}

.disc-cta:hover .disc-art,
.disc-cta:focus-visible .disc-art {
  border-color: var(--rule);
  background: var(--sand);
}

.disc-cta:hover .disc-cap,
.disc-cta:focus-visible .disc-cap { color: var(--rule); }

/* ==========================================================================
   Patička
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
}

.foot-brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.152em;
}

.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
}

.foot-name {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.foot-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}

.foot-details a { transition: color .18s ease; }
.foot-details a:hover { color: var(--rule); }

/* ==========================================================================
   Detail realizací (Accordion v mřížce)
   ========================================================================== */

.reference-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.reference-trigger:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 6px;
  border-radius: 50%;
}

.reference-detail {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  list-style: none;
  grid-template-rows: 0fr;
  opacity: 0;
  margin: 0;
  transition: grid-template-rows .42s cubic-bezier(.2,.7,.3,1),
              opacity .25s ease;
  pointer-events: none;
}

.reference-detail.is-open {
  grid-template-rows: 1fr;
  margin: 0;
  opacity: 1;
  pointer-events: auto;
}

.reference-detail-inner {
  min-height: 0;
  overflow: hidden;
}

.reference-detail-content {
  padding: 30px 34px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafbfb;
  border-radius: 4px;
}

.reference-detail h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
}

.reference-detail p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.reference-detail-close {
  margin-top: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: .16em;
  cursor: pointer;
  text-transform: uppercase;
  transition: color .18s ease;
}

.reference-detail-close:hover,
.reference-detail-close:focus-visible {
  color: var(--rule);
}

/* ==========================================================================
   Responzivita
   ========================================================================== */

@media (max-width: 1180px) {
  .tags { font-size: 16px; gap: 10px 20px; }
}

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); column-gap: 6%; row-gap: 42px; width: 100%; }
  .tags { justify-content: flex-start; gap: 10px 24px; }
  .site-header { padding-top: 40px; }
  .hero-wrap { margin-top: -25px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }

  .site-header { padding-top: 28px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name, .brand-sub { font-size: 13px; white-space: normal; }
  .brand-sub { letter-spacing: 0.14em; }
  .brand-text { margin-top: -6px; }

  .hero-wrap { margin-top: 16px; }
  .site-header { z-index: auto; }

  /* Hero prvky proporčně zachovány */
  .hero-art {
    position: absolute;
    left: -1.494%;
    top: 6.891%;
    width: 50.05%;
    height: auto;
    margin: 0;
    mix-blend-mode: multiply;
  }

  .hero-badge {
    position: absolute;
    left: 78.15%;
    top: 2.40%;
    width: 15.98%;
    height: auto;
  }

  /* Kontakt vycentrován v dolním trojúhelníku i na mobilu */
  .hero-contact {
    position: absolute;
    left: 64.12%;
    bottom: 1.8%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: clamp(8px, 2.5cqw, 12.5px);
    line-height: 1.3;
    white-space: nowrap;
    width: auto;
  }

  .hero-contact .c-name {
    margin-bottom: 2px;
    text-align: center;
  }

  .hero-contact .c-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    white-space: nowrap;
  }

  .hero-contact .c-sep {
    display: inline-block;
  }

  .intro { margin-top: 30px; }
  .intro p { text-align: left; }

  .rule { margin-top: 30px; height: 4px; }

  .work { margin-top: 30px; padding-bottom: 70px; }
  .tags { font-size: 14px; gap: 8px 18px; margin-bottom: 34px; }

  .grid { grid-template-columns: repeat(3, 1fr); column-gap: 6%; row-gap: 30px; }
  /* na mobilu zkracujeme řadu prázdných míst, aby stránka nebyla zbytečně dlouhá */
  .cell.soon:nth-child(n+13) { display: none; }
  .disc figcaption, .disc .disc-cap { margin-top: 12px; font-size: 10px; letter-spacing: 0.2em; text-indent: 0.2em; }
}

@media (max-width: 600px) {
  .reference-detail-content { padding: 22px 18px 24px; }
  .reference-detail h3 { font-size: 15px; }
  .reference-detail p { font-size: 14px; text-align: left; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: repeat(2, 1fr); column-gap: 8%; row-gap: 26px; }
  .cell.soon:nth-child(n+11) { display: none; }
  .tags { font-size: 13px; letter-spacing: 0.08em; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .disc:hover .disc-art img { transform: none; }
}
