/* rotta.sk – design system (dočasný web 2026) */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-VF.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #1CAF9E;
  --blue: #219ADB;
  --pink: #F6476A;
  --orange: #FD8A3D;
  --green: #67B744;
  --purple: #574DA7;

  --ink: #15171A;
  --ink-2: #3A3D42;
  --muted: #6B6F76;
  --hairline: #E4E6EA;
  --surface: #F6F7F9;
  --bg: #FFFFFF;
  --accent: var(--teal);
  --accent-dark: #148C7E;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: 40px;
  --radius: 4px;
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
.site-main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
small.muted { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ---------- Dots (brand) ---------- */
.dots { display: inline-grid; grid-template-columns: repeat(3, 10px); gap: 5px; vertical-align: middle; }
.dots i, .dots-grid i { display: block; border-radius: 50%; }
.dots i { width: 10px; height: 10px; }
.d-teal { background: var(--teal); }  .d-blue { background: var(--blue); }  .d-pink { background: var(--pink); }
.d-orange { background: var(--orange); } .d-green { background: var(--green); } .d-purple { background: var(--purple); }
.c-teal { fill: var(--teal); } .c-blue { fill: var(--blue); } .c-pink { fill: var(--pink); }
.c-orange { fill: var(--orange); } .c-green { fill: var(--green); } .c-purple { fill: var(--purple); }

/* ---------- Header ---------- */
.site-header { position: relative; background: var(--bg); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); }
.logo__word { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.logo .dots { grid-template-columns: repeat(3, 12px); gap: 6px; }
.logo .dots i { width: 12px; height: 12px; }
.nav { display: flex; gap: 32px; }
.nav__link { font-weight: 600; font-size: 17px; color: var(--ink); padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.nav__link:hover, .nav__link:focus-visible { color: var(--accent-dark); }
.nav__link.is-active { border-bottom-width: 3px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; font: inherit; font-weight: 600; font-size: 17px; padding: 14px 22px; border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn .arrow { font-size: 20px; line-height: 1; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--ink); color: #fff; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.link { color: var(--accent-dark); border-bottom: 1px solid var(--accent); }
.link:hover { color: var(--accent); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); border-bottom: 1px solid var(--accent); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 96px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.hero__title { font-size: clamp(44px, 6.2vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 32px; }
.hero__lead p { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero__lead p + p { margin-top: 20px; }
.hero__contact-label { font-weight: 700; font-size: 17px; margin: 40px 0 8px; }
.hero__email { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 20px; font-size: 30px; font-weight: 400; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 6px; margin-bottom: 36px; letter-spacing: -0.01em; }
.hero__email .arrow { color: var(--accent); font-size: 30px; }
.hero__email:hover { color: var(--accent-dark); border-color: var(--accent); }
.hero__text .btn { display: inline-flex; }
.hero__art { display: flex; justify-content: center; }
.constellation { width: 100%; max-width: 420px; overflow: visible; }
.constellation__lines line { stroke: var(--hairline); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; }
.constellation__dots circle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .constellation__dots circle { animation: float 7s ease-in-out infinite; }
  .constellation__dots circle:nth-child(2) { animation-delay: -1.2s; animation-duration: 8s; }
  .constellation__dots circle:nth-child(3) { animation-delay: -2.4s; }
  .constellation__dots circle:nth-child(4) { animation-delay: -3.1s; animation-duration: 9s; }
  .constellation__dots circle:nth-child(5) { animation-delay: -4.6s; }
  .constellation__dots circle:nth-child(6) { animation-delay: -5.5s; animation-duration: 8.5s; }
  .constellation__lines { animation: breathe 7s ease-in-out infinite; }
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -8px); } }
@keyframes breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--surface); padding: 72px 0; border-top: 1px solid var(--hairline); }
.newsletter__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.newsletter h2 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.newsletter__row { display: flex; gap: 12px; }
.newsletter__row input { flex: 1 1 auto; min-width: 0; }
.newsletter__row .btn { white-space: nowrap; flex: 0 0 auto; }
.newsletter__consent { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 16px; border: 1.5px solid var(--hairline); border-radius: var(--radius); background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28, 175, 158, .18); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 15px; margin-bottom: 16px; }
.form-msg--ok { background: #E6F6F3; color: #0E6B60; }
.form-msg--err { background: #FDE8ED; color: #9E1E38; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.contact-form { max-width: 640px; margin: 64px 0 0; padding-top: 48px; border-top: 1px solid var(--hairline); }
.contact-form h2 { font-size: 28px; }

/* ---------- Contact page ---------- */
.contact { padding: 40px 0 112px; }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 64px; align-items: start; }
.page-title { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 20px; position: relative; padding-bottom: 20px; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--accent); }
.contact__intro p { font-size: 18px; color: var(--ink-2); max-width: 30em; }
.contact__org { margin: 36px 0 24px; }
.contact__org-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.contact__address { color: var(--ink-2); }
.contact__sub { font-size: 15px; font-weight: 700; margin: 40px 0 8px; letter-spacing: .02em; }
.kv { margin: 0; max-width: 560px; }
.kv__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.kv__row:last-child { border-bottom: 1px solid var(--hairline); }
.kv dt { font-weight: 700; font-size: 16px; }
.kv dd { margin: 0; color: var(--ink-2); }
.contact__aside { display: flex; justify-content: center; padding-top: 140px; }
.dots-grid { display: grid; grid-template-columns: repeat(3, 40px); gap: 28px; }
.dots-grid i { width: 40px; height: 40px; }

/* ---------- Simple / prose pages ---------- */
.simple { padding: 40px 0 112px; }
.simple__inner { max-width: 640px; }
.lead { font-size: 20px; color: var(--ink-2); margin-bottom: 32px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 20px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--hairline); }
.table th { font-weight: 700; color: var(--ink); }
.table td { color: var(--ink-2); }
.table tr:last-child td { border-bottom: 1px solid var(--hairline); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__copy { margin: 0; }
.footer__links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__links a { color: var(--ink); }
.footer__links a:hover { color: var(--accent-dark); }
.footer__links .sep { color: var(--hairline); }

/* ---------- Cookie bar ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--hairline); box-shadow: 0 -8px 30px rgba(21, 23, 26, .08); z-index: 50; padding: 18px 0; }
.cookie-bar[hidden] { display: none; }
.cookie-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-bar p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.cookie-bar__actions { display: flex; gap: 10px; }
.cookie-bar .btn { font-size: 15px; padding: 11px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .contact__inner, .newsletter__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: 2; }
  .constellation { max-width: 320px; }
  .contact__aside { justify-content: flex-start; padding-top: 0; }
  .dots-grid { grid-template-columns: repeat(3, 28px); gap: 18px; }
  .dots-grid i { width: 28px; height: 28px; }
}
@media (max-width: 720px) {
  :root { --gutter: 24px; --header-h: 76px; }
  body { font-size: 16px; }
  .logo__word { font-size: 32px; }
  .logo .dots { grid-template-columns: repeat(3, 10px); gap: 5px; }
  .logo .dots i { width: 10px; height: 10px; }
  .nav { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: #fff; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav__link { display: block; padding: 16px var(--gutter); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--hairline); min-height: 48px; }
  .mobile-nav__link:last-child { border-bottom: 0; }
  .mobile-nav__link--muted { font-weight: 400; color: var(--accent-dark); }
  .hero { padding: 24px 0 64px; }
  .hero__title { font-size: 40px; margin-bottom: 20px; }
  .hero__lead p { font-size: 16px; }
  .hero__contact-label { margin-top: 28px; }
  .hero__email { font-size: 20px; gap: 12px; margin-bottom: 24px; }
  .hero__email .arrow { font-size: 20px; }
  .btn { font-size: 15px; padding: 12px 18px; }
  .page-title { font-size: 36px; }
  .kv__row { grid-template-columns: 1fr; gap: 4px; }
  .newsletter { padding: 48px 0; }
  .newsletter__row { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar .btn { flex: 1 1 auto; justify-content: center; }
  .table { display: block; overflow-x: auto; }
}
