/* Statika Skla – úvodní stránka (návrh 2026) */

:root {
  --navy: #0c2340;
  --navy-deep: #08172c;
  --navy-mid: #163158;
  --accent: #1c7aad;
  --accent-hover: #155e86;
  --accent-soft: #e7f3fa;
  --bg: #f4f7fa;
  --bg-alt: #eef3f7;
  --white: #fff;
  --text: #1b2430;
  --text-muted: #5c6b7a;
  --line: #d5dee7;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 24px rgba(12, 35, 64, 0.07);
  --shadow-hover: 0 12px 28px rgba(12, 35, 64, 0.12);
  --header-h: 4.25rem;
  --focus: 0 0 0 3px rgba(28, 122, 173, 0.35);
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --space: 1.25rem;
  --max: 70rem;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2-variations"),
       url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  background: var(--white);
  color: var(--navy);
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--navy); }
.logo img {
  width: 2.6rem;
  height: 2.6rem;
  object-fit: contain;
}
.logo-mark { letter-spacing: 0.06em; font-weight: 700; font-size: 1.05rem; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle:hover { background: var(--bg); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.15rem;
}
.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.site-nav .nav-cta {
  margin-left: 0.5rem;
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
}
.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
}

body.nav-open { overflow: hidden; }
.nav-backdrop {
  display: none;
}
@media (max-width: 800px) {
  .nav-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    background: rgba(8, 23, 44, 0.45);
    z-index: 99;
  }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
.site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 1rem 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(12, 35, 64, 0.16);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0.9rem; }
  .site-nav .nav-cta {
    margin: 0.4rem 0 0;
    text-align: center;
  }
}

/* Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.45rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 88% 0%, rgba(56, 160, 210, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(20, 70, 120, 0.35), transparent 55%),
    linear-gradient(165deg, #0c2340 0%, #0a1c34 55%, #0e2c4d 100%);
  color: var(--white);
}
.hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 0 4.75rem;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ec8e6;
  margin: 0 0 0.85rem;
}
.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero-lead {
  margin: 0 0 0.9rem;
  font-size: 1.18rem;
  line-height: 1.6;
  color: #e8eef4;
  max-width: 40rem;
}
.hero-note {
  margin: 0;
  color: #c5d2de;
  max-width: 40rem;
}
.hero-note a { color: #d4eef9; }
.hero-note a:hover { color: var(--white); }

.hero-art {
  width: 100%;
  max-width: 26rem;
  justify-self: end;
  height: auto;
}
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3rem 0 3.25rem;
  }
  .hero-art { display: none; }
  .hero-lead { font-size: 1.08rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* Sections
   ------------------------------------------------------------------ */
.section { padding: 4.25rem 0; }
.section-alt { background: var(--bg); }
.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.25;
}
.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 38rem;
}

/* Services
   ------------------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #b9d6e8;
}
.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
}
.service-icon svg { width: 1.35rem; height: 1.35rem; }
.service h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.3;
}
.service h3 a {
  color: inherit;
  text-decoration: none;
}
.service h3 a:hover { color: var(--accent); }
.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  flex-grow: 1;
}
.service-link {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
}

/* Steps
   ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.45rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}
.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.steps p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* About
   ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.profile-photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy);
  box-shadow: 0 0 0 4px var(--white), 0 8px 24px rgba(12, 35, 64, 0.16);
}
.profile-photo img {
  width: 114%;
  height: 114%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
  margin: -7%;
}
.about-grid p { margin: 0 0 1rem; }
.about-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-grid li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.55rem;
}
.about-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.35rem;
  }
}

/* Contact + form
   ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.2fr);
  gap: 2.5rem;
  align-items: start;
}
.contact-details h2 { margin-bottom: 0.75rem; }
.contact-details p { margin: 0 0 1rem; color: var(--text-muted); }
.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.contact-list li { margin: 0 0 0.55rem; font-size: 1.15rem; }
.contact-list a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.contact-list a:hover { color: var(--accent); }
.note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
  max-width: 28rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.45rem;
  box-shadow: var(--shadow);
}
.form-card h3 {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  color: var(--navy);
}
.form-field { margin-bottom: 0.95rem; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:hover,
.form-field textarea:hover { border-color: #b7c4d0; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: var(--focus);
}
.form-card .btn { width: 100%; margin-top: 0.2rem; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.85rem 0 0;
}
.form-note a { color: var(--navy); }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .section { padding: 3.1rem 0; }
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--navy-deep);
  color: #c5d0da;
  padding: 1.6rem 0;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.7;
}
.site-footer a { color: #dce8f0; }
.site-footer a:hover { color: var(--white); }
