/**
 * @file
 * Sdílený systém webu — hlavička, patička, mobilní menu a světlé podstránky.
 *
 * Hero na úvodní stránce je tmavý (css/hero.css). Podstránky jsou světlé,
 * protože se na nich čtou ceníky a delší texty. Hlavička a patička jsou
 * společné a přebarvují se modifikátorem `--dark` / `--light`.
 */

:root {
  --sg-purple: #8363d5;
  --sg-purple-deep: #6b4fb8;
  --sg-purple-soft: #cfbefc;
  --sg-accent: #a98ee8;
  --sg-teal: #0e91ad;

  --sg-paper: #f6f4fb;
  --sg-paper-2: #fff;
  --sg-ink: #151024;
  --sg-muted: rgba(21, 16, 36, 0.64);
  --sg-faint: rgba(21, 16, 36, 0.44);
  --sg-hair: rgba(21, 16, 36, 0.12);

  --sg-dark: #09070f;
  --sg-dark-text: #efedfb;
  --sg-dark-muted: rgba(239, 237, 251, 0.8);
  --sg-dark-hair: rgba(239, 237, 251, 0.1);

  --sg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sg-sans: 'Sen', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sg-pad: clamp(20.0px, 4.6vw, 60.0px);
  --sg-wide: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  margin: 0;
  background: var(--sg-paper);
  color: var(--sg-ink);
  font-family: var(--sg-sans);
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------ hlavička */

.sg-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 82px;
  padding: 0 var(--sg-pad);
}

.sg-head--dark {
  border-bottom: 1px solid var(--sg-dark-hair);
  color: var(--sg-dark-text);
}

.sg-head--light {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--sg-hair);
  background: rgba(246, 244, 251, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sg-brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.sg-brand img {
  display: block;
  width: clamp(150.0px, 19vw, 211.0px);
  height: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sg-brand:hover img { opacity: 0.82; transform: translateY(-1px); }

.sg-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.sg-nav a {
  position: relative;
  padding: 5px 0;
  font-size: 0.87500rem;
  text-decoration: none;
  opacity: 0.74;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.sg-head--dark .sg-nav a { color: var(--sg-dark-text); }
.sg-head--light .sg-nav a { color: var(--sg-ink); }

.sg-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.sg-head--dark .sg-nav a::after { background: var(--sg-accent); }
.sg-head--light .sg-nav a::after { background: var(--sg-purple-deep); }

.sg-nav a:hover,
.sg-nav a:focus-visible { opacity: 1; }
.sg-head--dark .sg-nav a:hover { color: var(--sg-accent); }
.sg-head--light .sg-nav a:hover { color: var(--sg-purple-deep); }
.sg-nav a:hover::after,
.sg-nav a:focus-visible::after { transform: scaleX(1); }

.sg-nav a.is-active { opacity: 1; }
.sg-nav a.is-active::after { transform: scaleX(1); }

.sg-tel {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--sg-mono);
  font-size: 0.81250rem;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.sg-head--dark .sg-tel { border-color: rgba(239, 237, 251, 0.2); color: var(--sg-dark-text); }
.sg-head--light .sg-tel { border-color: rgba(21, 16, 36, 0.2); color: var(--sg-ink); }

.sg-head--dark .sg-tel:hover,
.sg-head--dark .sg-tel:focus-visible {
  border-color: var(--sg-accent);
  background: rgba(169, 142, 232, 0.08);
  color: var(--sg-accent);
}

.sg-head--light .sg-tel:hover,
.sg-head--light .sg-tel:focus-visible {
  border-color: var(--sg-purple-deep);
  background: rgba(107, 79, 184, 0.07);
  color: var(--sg-purple-deep);
}

.sg-burger {
  display: none;
  margin-left: 2px;
  padding: 8px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.sg-head--dark .sg-burger { color: var(--sg-dark-text); }
.sg-head--light .sg-burger { color: var(--sg-ink); }

/* ------------------------------------------------------------ mobilní menu */

.sg-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  padding: 0 var(--sg-pad) var(--sg-pad);
  background: rgba(9, 7, 15, 0.98);
  color: var(--sg-dark-text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.sg-sheet[data-open='true'] { display: flex; }

.sg-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 82px;
  margin: 0 calc(var(--sg-pad) * -1);
  padding: 0 var(--sg-pad);
  border-bottom: 1px solid var(--sg-dark-hair);
}

.sg-sheet__bar button {
  padding: 8px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.sg-sheet nav {
  display: flex;
  flex-direction: column;
  margin-top: 5vh;
}

.sg-sheet nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--sg-dark-hair);
  color: var(--sg-dark-text);
  font-size: clamp(1.50000rem, 6.6vw, 2.00000rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-decoration: none;
}

.sg-sheet nav a:hover,
.sg-sheet nav a:focus-visible { color: var(--sg-accent); }

/* ------------------------------------------------------------ tlačítka */

.sg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--sg-purple-deep);
  color: #fff;
  font-family: inherit;
  font-size: 0.81250rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sg-btn:hover,
.sg-btn:focus-visible {
  background: #5b41a3;
  box-shadow: 0 14px 32px rgba(107, 79, 184, 0.34);
  transform: translateY(-2px);
}

.sg-btn svg { transition: transform 0.18s ease; }
.sg-btn:hover svg { transform: translateX(3px); }

.sg-btn--ghost {
  padding: 15px 26px;
  border: 1px solid var(--sg-hair);
  background: transparent;
  color: var(--sg-ink);
}

.sg-btn--ghost:hover,
.sg-btn--ghost:focus-visible {
  border-color: var(--sg-purple-deep);
  background: rgba(107, 79, 184, 0.06);
  box-shadow: none;
  color: var(--sg-purple-deep);
}

/* ------------------------------------------------------------ podstránka */

.sg-page__banner {
  position: relative;
  overflow: hidden;
  padding: clamp(46.0px, 8vh, 88.0px) var(--sg-pad) clamp(34.0px, 5vh, 54.0px);
  border-bottom: 1px solid var(--sg-hair);
  background:
    radial-gradient(90% 130% at 88% 0%, rgba(131, 99, 213, 0.16), transparent 62%),
    radial-gradient(70% 120% at 8% 100%, rgba(92, 230, 250, 0.1), transparent 60%);
}

/* Značkový znak vpravo — vyplní plochu, kterou nadpis nechává prázdnou. */
.sg-page__banner::after {
  content: '';
  position: absolute;
  top: 50%;
  right: clamp(-90.0px, -4vw, -30.0px);
  width: clamp(220.0px, 26vw, 400.0px);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-8deg);
  background: url("../images/plus.svg") center / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

@media (max-width: 780px) {
  .sg-page__banner::after { display: none; }
}

.sg-page__inner {
  max-width: var(--sg-wide);
  margin: 0 auto;
}

.sg-page__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--sg-purple);
  font-size: 0.68750rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sg-page__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--sg-purple);
  opacity: 0.8;
}

.sg-page__title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.00000rem, 4.6vw, 3.75000rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sg-page__title .sg-dot { color: var(--sg-purple); font-style: normal; }

.sg-page__lede {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--sg-muted);
  font-size: clamp(0.93750rem, 1.3vw, 1.06250rem);
  line-height: 1.7;
}

.sg-page__body {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40.0px, 6vh, 72.0px) var(--sg-pad) clamp(56.0px, 8vh, 96.0px);
}

/* Dva sloupce: text vlevo, lepivá karta vpravo. Bez ní zůstávala
   na širokých obrazovkách polovina plochy prázdná. */
.sg-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  align-items: start;
  gap: clamp(30.0px, 4vw, 58.0px);
}

/* Textový obsah z Drupalu. */
.sg-prose { max-width: 68ch; }

/* ------------------------------------------------------------ boční karta */

.sg-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sg-aside__card {
  padding: 24px;
  border: 1px solid var(--sg-hair);
  border-radius: 16px;
  background: var(--sg-paper-2);
  box-shadow: 0 12px 34px rgba(45, 30, 80, 0.07);
}

.sg-aside__card--accent {
  border-color: transparent;
  background: linear-gradient(158deg, #1b1430, var(--sg-dark));
  color: var(--sg-dark-text);
}

.sg-aside__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--sg-teal);
  font-family: var(--sg-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sg-aside__card--accent .sg-aside__label { color: var(--sg-accent); }

.sg-aside__card h2 {
  margin: 0 0 10px;
  font-size: 1.18750rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.sg-aside__card p {
  margin: 0 0 16px;
  font-size: 0.84375rem;
  line-height: 1.6;
  color: var(--sg-muted);
}

.sg-aside__card--accent p { color: var(--sg-dark-muted); }

.sg-aside__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--sg-purple);
  color: #fff;
  font-size: 0.78125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.sg-aside__btn:hover { background: #9375de; transform: translateY(-2px); }

.sg-aside__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 237, 251, 0.14);
}

.sg-aside__contact a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sg-dark-text);
  font-family: var(--sg-mono);
  font-size: 0.81250rem;
  text-decoration: none;
  opacity: 0.85;
}

.sg-aside__contact a:hover { color: var(--sg-accent); opacity: 1; }
.sg-aside__contact svg { flex: none; opacity: 0.7; }

.sg-aside__links { margin: 0; padding: 0; list-style: none; }

.sg-aside__links li + li { margin-top: 2px; }

.sg-aside__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sg-hair);
  color: var(--sg-ink);
  font-size: 0.87500rem;
  text-decoration: none;
  transition: color 0.16s ease, padding 0.16s ease;
}

.sg-aside__links li:last-child a { border-bottom: 0; }

.sg-aside__links a:hover {
  padding-left: 5px;
  color: var(--sg-purple-deep);
}

.sg-aside__links svg { flex: none; opacity: 0.4; }
.sg-aside__links a:hover svg { opacity: 1; }

@media (max-width: 980px) {
  .sg-page__layout { grid-template-columns: 1fr; }
  .sg-aside { position: static; }
}
.sg-prose h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.37500rem, 2.4vw, 1.87500rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sg-prose h3 { margin: 30px 0 10px; font-size: 1.12500rem; font-weight: 800; }
.sg-prose p { margin: 0 0 16px; color: var(--sg-muted); font-size: 1.00000rem; line-height: 1.75; }
.sg-prose a { color: var(--sg-purple-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sg-prose ul { margin: 0 0 18px; padding-left: 20px; color: var(--sg-muted); line-height: 1.75; }
.sg-prose li { margin-bottom: 7px; }

/* ------------------------------------------------------------ karty */

.sg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.sg-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--sg-hair);
  border-radius: 16px;
  background: var(--sg-paper-2);
  box-shadow: 0 1px 2px rgba(45, 30, 80, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sg-card:hover {
  border-color: rgba(131, 99, 213, 0.4);
  box-shadow: 0 18px 40px rgba(45, 30, 80, 0.1);
  transform: translateY(-3px);
}

.sg-card__label {
  color: var(--sg-teal);
  font-family: var(--sg-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sg-card h3 { margin: 0; font-size: 1.18750rem; font-weight: 800; letter-spacing: -0.015em; }
.sg-card p { margin: 0; color: var(--sg-muted); font-size: 0.87500rem; line-height: 1.62; }

.sg-card__price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--sg-hair);
  font-family: var(--sg-mono);
  font-size: 1.06250rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sg-card__price small { color: var(--sg-faint); font-size: 0.75000rem; font-weight: 400; }

.sg-card ul { margin: 0; padding-left: 18px; color: var(--sg-muted); font-size: 0.84375rem; line-height: 1.7; }

/* ------------------------------------------------------------ patička */

.sg-foot {
  border-top: 1px solid var(--sg-dark-hair);
  background: var(--sg-dark);
  color: var(--sg-dark-text);
}

.sg-foot__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
  max-width: var(--sg-wide);
  margin: 0 auto;
  padding: clamp(40.0px, 6vh, 68.0px) var(--sg-pad);
  border-bottom: 1px solid var(--sg-dark-hair);
}

.sg-foot__cta h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.50000rem, 3vw, 2.25000rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sg-foot__cta .sg-dot { color: var(--sg-accent); font-style: normal; }

.sg-foot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.sg-foot__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--sg-purple);
  color: #fff;
  font-size: 0.81250rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.sg-foot__btn:hover { background: #9375de; transform: translateY(-2px); }

.sg-foot__mail {
  color: var(--sg-dark-text);
  font-family: var(--sg-mono);
  font-size: 0.87500rem;
  text-decoration: none;
  opacity: 0.8;
}

.sg-foot__mail:hover { color: var(--sg-accent); opacity: 1; }

.sg-foot__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(30.0px, 4vw, 46.0px);
  padding-top: clamp(24.0px, 3vw, 34.0px);
  border-top: 1px solid var(--sg-dark-hair);
}

.sg-foot__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-foot__items a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sg-dark-text);
  font-size: 0.87500rem;
  text-decoration: none;
  transition: color 0.16s ease;
}

.sg-foot__items a:hover { color: var(--sg-accent); }

.sg-foot__items img {
  width: auto;
  height: 32px;
}

.sg-foot__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sg-foot__social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--sg-dark-hair);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.sg-foot__social a:hover {
  border-color: var(--sg-accent);
  background: rgba(169, 142, 232, 0.12);
  transform: translateY(-2px);
}

.sg-foot__social img {
  width: 26px;
  height: 26px;
}

.sg-foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px 40px;
  max-width: var(--sg-wide);
  margin: 0 auto;
  padding: clamp(34.0px, 5vh, 54.0px) var(--sg-pad);
}

.sg-foot__col h3 {
  margin: 0 0 14px;
  color: var(--sg-accent);
  font-family: var(--sg-mono);
  font-size: 0.65625rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sg-foot__col ul { margin: 0; padding: 0; list-style: none; }
.sg-foot__col li { margin-bottom: 9px; }

.sg-foot__col a,
.sg-foot__col p {
  margin: 0;
  color: var(--sg-dark-muted);
  font-size: 0.87500rem;
  line-height: 1.6;
  text-decoration: none;
}

.sg-foot__col a:hover { color: var(--sg-dark-text); }
.sg-foot__col b { color: var(--sg-dark-text); font-weight: 700; }

.sg-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: space-between;
  max-width: var(--sg-wide);
  margin: 0 auto;
  padding: 18px var(--sg-pad) 26px;
  border-top: 1px solid var(--sg-dark-hair);
  color: rgba(239, 237, 251, 0.38);
  font-family: var(--sg-mono);
  font-size: 0.68750rem;
  letter-spacing: 0.04em;
}

.sg-foot__bottom a { color: inherit; }
.sg-foot__bottom a:hover { color: var(--sg-accent); }

/* ------------------------------------------------------------ obecné */

a:focus-visible,
button:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--sg-purple);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .sg-nav { display: none; }
  .sg-burger { display: block; }
}

/* Hlavička se na úzkých obrazovkách nesmí roztáhnout přes viewport:
   telefon se scvrkne na ikonu a mezery se stáhnou. */
@media (max-width: 720px) {
  .sg-head { gap: 12px; }
  .sg-brand { font-size: 1.00000rem; gap: 9px; min-width: 0; }
  .sg-brand span { white-space: nowrap; }
  .sg-tel { padding: 9px 12px; }
  .sg-tel em { display: none; }
}

@media (max-width: 400px) {
  .sg-head { gap: 8px; height: 72px; }
  .sg-brand svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-card,
  .sg-btn,
  .sg-foot__btn { transition: none; }
}

/* ------------------------------------------------------------ drobenka */

.sg-page__banner nav[role='navigation'],
.sg-page__banner .breadcrumb {
  margin-bottom: 18px;
}

.sg-page__banner ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sg-mono);
  font-size: 0.68750rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sg-page__banner ol li + li::before {
  margin-right: 8px;
  color: var(--sg-faint);
  content: '·';
}

.sg-page__banner ol a {
  color: var(--sg-faint);
  text-decoration: none;
}

.sg-page__banner ol a:hover { color: var(--sg-purple-deep); }

/* ------------------------------------------------------------ formulář */

.sg-form {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28.0px, 4vw, 56.0px);
  margin-top: clamp(44.0px, 6vh, 72.0px);
  padding-top: clamp(38.0px, 5vh, 60.0px);
  border-top: 1px solid var(--sg-hair);
}

.sg-form__intro h2 {
  margin: 0 0 12px;
  font-size: clamp(1.50000rem, 2.8vw, 2.12500rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sg-form__intro p {
  margin: 0;
  max-width: 34ch;
  color: var(--sg-muted);
  font-size: 0.93750rem;
  line-height: 1.7;
}

.sg-form__box {
  padding: clamp(22.0px, 3vw, 34.0px);
  border: 1px solid var(--sg-hair);
  border-radius: 18px;
  background: var(--sg-paper-2);
  box-shadow: 0 18px 44px rgba(45, 30, 80, 0.07);
}

/* Prvky formuláře. */
.sg-form__box .js-form-item,
.sg-form__box .form-item {
  margin: 0 0 18px;
}

.sg-form__box label {
  display: block;
  margin-bottom: 7px;
  color: var(--sg-ink);
  font-size: 0.81250rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sg-form__box .form-required::after {
  margin-left: 3px;
  color: var(--sg-purple-deep);
  content: '*';
}

.sg-form__box input[type='text'],
.sg-form__box input[type='email'],
.sg-form__box input[type='tel'],
.sg-form__box input[type='url'],
.sg-form__box textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--sg-hair);
  border-radius: 10px;
  background: var(--sg-paper);
  color: var(--sg-ink);
  font-family: inherit;
  font-size: 0.93750rem;
  line-height: 1.5;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.sg-form__box textarea {
  min-height: 148px;
  resize: vertical;
}

.sg-form__box input:focus,
.sg-form__box textarea:focus {
  border-color: var(--sg-purple);
  background: var(--sg-paper-2);
  box-shadow: 0 0 0 3px rgba(131, 99, 213, 0.16);
  outline: none;
}

.sg-form__box .description {
  margin-top: 6px;
  color: var(--sg-faint);
  font-size: 0.78125rem;
  line-height: 1.5;
}

/* Zaškrtávátko souhlasu. */
.sg-form__box .form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--sg-hair);
  border-radius: 10px;
  background: var(--sg-paper);
}

.sg-form__box .form-type-checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--sg-purple-deep);
}

.sg-form__box .form-type-checkbox label {
  margin: 0;
  font-size: 0.84375rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Odesílací tlačítko. */
.sg-form__box .form-actions {
  margin-top: 22px;
}

.sg-form__box input[type='submit'],
.sg-form__box button[type='submit'] {
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--sg-purple-deep);
  color: #fff;
  font-family: inherit;
  font-size: 0.81250rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sg-form__box input[type='submit']:hover,
.sg-form__box button[type='submit']:hover {
  background: #5b41a3;
  box-shadow: 0 14px 32px rgba(107, 79, 184, 0.3);
  transform: translateY(-2px);
}

/* Chybové stavy. */
.sg-form__box input.error,
.sg-form__box textarea.error {
  border-color: #c0392b;
  background: #fff5f4;
}

/* Honeypot musí zůstat skrytý i pro čtečky — vyplňují ho jen roboti. */
.sg-form__box .honeypot-textfield,
.sg-form__box [class*='homepage-url'] {
  position: absolute !important;
  left: -9999px !important;
}

@media (max-width: 900px) {
  .sg-form { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ patička na mobilu */

/* Na úzkých displejích působí obsah přiražený doleva nevyváženě —
   výzva k akci i sloupce patičky se centrují. */
@media (max-width: 700px) {
  .sg-foot__cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .sg-foot__cta h2 { max-width: 22ch; }

  .sg-foot__actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .sg-foot__btn {
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }

  .sg-foot__contact {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .sg-foot__items {
    justify-content: center;
    gap: 12px 24px;
  }

  .sg-foot__grid {
    gap: 26px;
    text-align: center;
  }

  .sg-foot__col h3 { margin-bottom: 10px; }
  .sg-foot__col p { margin-inline: auto; max-width: 30ch; }

  .sg-foot__bottom {
    justify-content: center;
    gap: 6px 18px;
    text-align: center;
  }
}

/* ------------------------------------------------------------ přehlídka realizací */

/* Posouvání řeší scroll-snap, ne knihovna. Nulová velikost, funguje bez JS. */
.sg-showcase {
  margin-top: clamp(44.0px, 6vh, 76.0px);
  padding-top: clamp(38.0px, 5vh, 60.0px);
  border-top: 1px solid var(--sg-hair);
}

.sg-showcase + .sg-showcase {
  margin-top: clamp(28.0px, 4vh, 48.0px);
  padding-top: clamp(26.0px, 3.5vh, 40.0px);
}

.sg-showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.sg-showcase__label {
  margin: 0 0 8px;
  color: var(--sg-purple);
  font-family: var(--sg-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sg-showcase__head h2 {
  margin: 0;
  font-size: clamp(1.37500rem, 2.6vw, 2.00000rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sg-showcase__nav { display: flex; gap: 8px; }

.sg-showcase__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--sg-hair);
  border-radius: 50%;
  background: var(--sg-paper-2);
  color: var(--sg-ink);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sg-showcase__btn:hover {
  border-color: var(--sg-purple-deep);
  color: var(--sg-purple-deep);
  transform: translateY(-2px);
}

.sg-showcase__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(380px, 680px);
  gap: 22px;
  overflow-x: auto;
  margin: 0;
  padding: 4px 0 16px;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.sg-showcase__item { scroll-snap-align: start; }

.sg-showcase__item a,
.sg-showcase__item .sg-showcase__static {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--sg-hair);
  border-radius: 14px;
  background: var(--sg-paper);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sg-showcase__item a:hover {
  border-color: rgba(131, 99, 213, 0.45);
  box-shadow: 0 16px 36px rgba(45, 30, 80, 0.13);
  transform: translateY(-3px);
}

.sg-showcase__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-showcase__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 34px 15px 14px;
  background: linear-gradient(to top, rgba(9, 7, 15, 0.86), rgba(9, 7, 15, 0));
  color: var(--sg-dark-text);
}

.sg-showcase__name { font-size: 0.93750rem; font-weight: 700; letter-spacing: -0.01em; }

.sg-showcase__host {
  color: rgba(239, 237, 251, 0.72);
  font-family: var(--sg-mono);
  font-size: 0.71875rem;
}

@media (max-width: 700px) {
  .sg-showcase__nav { display: none; }
  .sg-showcase__track {
    grid-auto-columns: minmax(220px, 72vw);
    gap: 14px;
    scroll-snap-type: x proximity;
  }
}

/* ==========================================================================
   Ceník — záložky (Tvorba webu / E-shop / Redesign / Loga / Hosting)
   Struktura vychází ze starého webu studiografix.cz/cenik.
   ========================================================================== */

.sg-tabs {
  margin: 34px 0 8px;
}

.sg-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--sg-hair);
  padding-bottom: 0;
}

.sg-tabs__btn {
  appearance: none;
  border: 1px solid var(--sg-hair);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: var(--sg-paper-2);
  color: var(--sg-muted);
  font-family: var(--sg-sans);
  font-size: 0.93750rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 11px 20px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.sg-tabs__btn:hover {
  color: var(--sg-purple-deep);
  border-color: rgba(131, 99, 213, 0.45);
}

.sg-tabs__btn.is-active {
  color: var(--sg-purple-deep);
  border-color: rgba(131, 99, 213, 0.55);
  background: var(--sg-paper-2);
  box-shadow: 0 -3px 0 var(--sg-purple) inset;
}

.sg-tabs__btn:focus-visible {
  outline: 2px solid var(--sg-purple);
  outline-offset: 2px;
}

.sg-tabs__panel {
  display: none;
}

.sg-tabs__panel.is-active {
  display: block;
  animation: sg-tabs-in 0.22s ease;
}

@keyframes sg-tabs-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sg-tabs__panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.37500rem, 2.4vw, 1.87500rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sg-tabs__panel > p {
  margin: 0 0 24px;
  color: var(--sg-muted);
  max-width: 62ch;
}

.sg-tabs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.sg-tabs__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sg-hair);
  border-radius: 16px;
  background: var(--sg-paper-2);
  padding: 22px 22px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sg-tabs__card:hover {
  border-color: rgba(131, 99, 213, 0.45);
  box-shadow: 0 14px 30px rgba(45, 30, 80, 0.1);
  transform: translateY(-3px);
}

.sg-tabs__card h3 {
  margin: 0 0 12px;
  font-size: 1.06250rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sg-tabs__card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--sg-muted);
  font-size: 0.87500rem;
  line-height: 1.65;
}

.sg-tabs__card ul li + li {
  margin-top: 5px;
}

.sg-tabs__price {
  margin: auto 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sg-hair);
  color: var(--sg-muted);
  font-size: 0.84375rem;
}

.sg-tabs__price strong {
  color: var(--sg-ink);
  font-size: 1.18750rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sg-prose .sg-tabs__card ul {
  flex: 1 0 auto;
  margin: 0 0 16px;
  padding-left: 18px;
}

.sg-prose .sg-tabs__price {
  margin: auto 0 14px;
}

.sg-prose a.sg-tabs__cta,
.sg-tabs__cta {
  display: block;
  text-align: center;
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--sg-purple);
  color: #fff;
  font-size: 0.87500rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.sg-tabs__cta:hover {
  background: var(--sg-purple-deep);
  transform: translateY(-1px);
}

.sg-tabs__note {
  margin-top: 22px;
  color: var(--sg-faint);
  font-size: 0.81250rem;
}

@media (max-width: 700px) {
  .sg-tabs__nav {
    gap: 5px;
    margin-bottom: 20px;
  }

  .sg-tabs__btn {
    flex: 1 1 auto;
    border-radius: 10px;
    border-bottom: 1px solid var(--sg-hair);
    padding: 9px 10px;
    font-size: 0.84375rem;
  }

  .sg-tabs__btn.is-active {
    box-shadow: 0 0 0 2px var(--sg-purple-soft) inset;
  }

  .sg-tabs__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Naše hodnoty (sg-values) — převzato ze starého webu (foto-paralax)
   ========================================================================== */

.sg-values {
  position: relative;
  margin: 0 auto;
  padding: clamp(72.0px, 10vh, 116.0px) var(--sg-pad) clamp(40.0px, 6vw, 64.0px);
  max-width: var(--sg-wide);
}

.sg-values__kanka {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: clamp(200.0px, 17vw, 300.0px);
  height: auto;
  opacity: 0.75;
  transform: translate(46%, -50%);
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.55));
  animation: sg-kanka2 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.4s both;
}

@keyframes sg-kanka2 {
  from { opacity: 0; transform: translate(46%, -42%); }
  to { opacity: 0.75; transform: translate(46%, -50%); }
}

@media (max-width: 820px) {
  .sg-values__kanka { display: none; }
}

.sg-values__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.sg-values__eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sg-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sg-values__title {
  margin: 0 0 clamp(28.0px, 4vw, 44.0px);
  color: #fff;
  font-size: clamp(1.62500rem, 3.4vw, 2.50000rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sg-values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sg-values__card {
  padding: 26px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #8363d5 0%, #6b4fb8 60%, #5a3fa8 100%);
  box-shadow: 0 14px 30px rgba(45, 30, 80, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sg-values__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(45, 30, 80, 0.45);
}

.sg-values__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--sg-purple-deep);
  font-family: var(--sg-mono);
  font-size: 1.00000rem;
  font-weight: 700;
}

.sg-values__card h3 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 1.12500rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sg-values__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .sg-values__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sg-values__card {
    padding: 20px 20px 18px;
  }
}

/* ==========================================================================
   Klienti (sg-clients) — převzato ze starého webu (hp-blok-purple)
   ========================================================================== */

.sg-clients {
  max-width: var(--sg-wide);
  margin: 0 auto;
  padding: clamp(36.0px, 5vw, 60.0px) var(--sg-pad) clamp(72.0px, 10vh, 116.0px);
}

.sg-clients__title {
  max-width: 26ch;
  margin: 0 auto clamp(28.0px, 3.6vw, 40.0px);
  text-align: center;
  color: var(--sg-dark-text);
  font-size: clamp(1.25000rem, 2.6vw, 1.87500rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sg-clients__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18.0px, 3vw, 40.0px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-clients__list li {
  display: grid;
  place-items: center;
  width: clamp(84.0px, 10vw, 120.0px);
  height: clamp(84.0px, 10vw, 120.0px);
  border-radius: 50%;
  background: var(--sg-paper);
  overflow: hidden;
}

.sg-clients__list img {
  display: block;
  width: 64%;
  height: auto;
  filter: grayscale(0.2);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.sg-clients__list li:hover img {
  filter: grayscale(0);
  transform: scale(1.06);
}

/* ==========================================================================
   Tmavý pás Naše hodnoty + Klienti (pokračování hero)
   ========================================================================== */

.sg-front-dark {
  position: relative;
  overflow: hidden;
  background: var(--sg-dark);
}

.sg-front-dark::before,
.sg-front-dark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}

.sg-front-dark::before {
  top: -12%;
  right: -8%;
  width: min(760px, 90vw);
  height: 400px;
  background: radial-gradient(closest-side, rgba(131, 99, 213, 0.5), transparent 72%);
}

.sg-front-dark::after {
  bottom: -18%;
  left: -10%;
  width: min(560px, 70vw);
  height: 320px;
  background: radial-gradient(closest-side, rgba(169, 142, 232, 0.28), transparent 72%);
}

/* ==========================================================================
   Boxové prvky (sg-feats) — převzato ze starého webu (content-hp-01)
   ========================================================================== */

.sg-feats {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0 36px;
  border: 1px solid var(--sg-hair);
  border-radius: 18px;
  overflow: hidden;
  background: var(--sg-paper-2);
}

.sg-feats__box {
  position: relative;
  width: 50%;
  padding: 30px 26px 28px;
  box-sizing: border-box;
  text-align: center;
  transition: all 1s;
}

.sg-feats__box::before,
.sg-feats__box::after {
  content: " ";
  width: 12px;
  height: 12px;
  position: absolute;
  border: 0px solid #fff;
  opacity: 0;
  transition: all 1s;
  pointer-events: none;
}

.sg-feats__box::after {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--sg-purple-soft);
  border-left: 3px solid var(--sg-purple-soft);
}

.sg-feats__box::before {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid var(--sg-purple-soft);
  border-right: 3px solid var(--sg-purple-soft);
}

.sg-feats__box:hover::before,
.sg-feats__box:hover::after {
  opacity: 1;
  width: 100%;
  height: 100%;
}

.sg-feats__box:nth-child(odd) {
  border-right: 1px solid var(--sg-hair);
}

.sg-feats__box:nth-child(-n+2) {
  border-bottom: 1px solid var(--sg-hair);
}

.sg-feats__ico {
  display: block;
  width: auto;
  height: 88px;
  margin: 0 auto 16px;
}

.sg-feats__box h3 {
  margin: 0 0 8px;
  color: var(--sg-ink);
  font-size: 1.06250rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sg-feats__box p {
  max-width: 36ch;
  margin: 0 auto;
  color: var(--sg-muted);
  font-size: 0.84375rem;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .sg-feats__box {
    width: 100%;
    padding: 24px 20px 22px;
  }

  .sg-feats__box:nth-child(odd) {
    border-right: 0;
  }

  .sg-feats__box:nth-child(-n+2) {
    border-bottom: 0;
  }

  .sg-feats__box:not(:last-child) {
    border-bottom: 1px solid var(--sg-hair);
  }
}

/* ------------------------------------------------------------ blog (sg-blog-list) */

.sg-blog-list {
  display: grid;
  gap: 18px;
  margin: 10px 0 0;
}

.sg-blog-item {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--sg-hair);
  border-radius: 14px;
  background: var(--sg-paper-2);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sg-blog-item:hover,
.sg-blog-item:focus-visible {
  border-color: var(--sg-purple-deep);
  box-shadow: 0 12px 26px rgba(107, 79, 184, 0.14);
  transform: translateY(-2px);
}

.sg-blog-item__tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--sg-purple);
  font-family: var(--sg-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sg-blog-item h3 {
  margin: 0 0 8px;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sg-ink);
}

.sg-blog-item p {
  margin: 0;
  color: var(--sg-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 700px) {
  .sg-blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
