/* Modern web & hosting landing – shared styles */
:root {
  --bg: #0a0e14;
  --bg-elevated: #121820;
  --surface: #161d28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --muted: #8b98a8;
  --accent: #3d9cf0;
  --accent-soft: rgba(61, 156, 240, 0.15);
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(22, 29, 40, 0.6);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  z-index: 60;
  transition: background 0.15s, border-color 0.15s;
}

.nav-toggle:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.2s ease;
  transform-origin: center;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav .btn-nav {
  background: var(--accent);
  color: #041018;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav .btn-nav:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.35rem 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header.nav-open .nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.35rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .nav a:hover {
    color: var(--accent);
  }

  .nav .btn-nav {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    justify-content: center;
    min-height: 48px;
    border-bottom: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: none;
  }

  .container {
    width: min(1120px, 94vw);
  }

  .tiers-grid {
    grid-template-columns: 1fr;
    padding-top: 1.25rem;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .payment-notice,
  .stripe-banner {
    width: 100%;
    max-width: none;
  }

  .compare-note {
    margin-bottom: 2rem;
    font-size: 0.92rem;
  }

  .page-intro p {
    max-width: none;
  }

  .grid-photos--refs {
    grid-template-columns: 1fr;
  }
}

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 55%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
  font-family: inherit;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn[data-loading="1"]::after {
  content: " …";
}

.btn-primary {
  background: var(--accent);
  color: #041018;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.15);
}

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 55ch;
}

.grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.grid-photos--refs {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 900px) {
  .grid-photos--refs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-card {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}

.photo-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.photo-card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  border-color: rgba(61, 156, 240, 0.35);
}

.photo-card--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.photo-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.photo-card--link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.32s ease;
}

.photo-card--link:hover img {
  transform: scale(1.08);
}

.photo-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.75rem 0.85rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f0f4f8;
  background: linear-gradient(to top, rgba(5, 8, 13, 0.92) 0%, rgba(5, 8, 13, 0.45) 55%, transparent 100%);
  pointer-events: none;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

.photo-placeholder span {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.about-text p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.about-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), var(--bg));
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem;
  text-align: center;
}

.about-visual--photo {
  padding: 0;
  overflow: hidden;
  min-height: 0;
  align-items: stretch;
}

.about-visual--photo img {
  width: 100%;
  display: block;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

/* Ilustrace serveru uvnitř tarifu LowCost (nad cenou) */
.tier-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 0.35rem;
  flex-shrink: 0;
  height: 96px;
}

.tier-illustration img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  display: block;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
}

.included-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.included-list li {
  margin-bottom: 0.35rem;
}

.mini-card .price-range-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: -0.35rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.price-card.featured {
  border-color: rgba(61, 156, 240, 0.45);
  background: linear-gradient(180deg, rgba(61, 156, 240, 0.08), var(--surface));
}

.price-card-cta {
  width: 100%;
  justify-content: center;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  width: fit-content;
}

.price-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.price-tag {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-tag small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card ul {
  flex: 1;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card ul li {
  margin-bottom: 0.35rem;
}

.price-hint {
  font-size: 0.9rem;
  color: var(--warning);
  margin: 0;
  font-style: italic;
}

.subsection {
  margin-top: 2.5rem;
}

.subsection h3 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.mini-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.mini-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.mini-card .amt {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mini-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
  max-width: 960px;
  margin-inline: auto;
}

@media (max-width: 820px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

.contact-about {
  text-align: left;
}

.contact-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  max-width: 320px;
  margin-bottom: 1.25rem;
  background: var(--surface);
}

.contact-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-role {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 48ch;
}

.contact-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.contact-aside-footer {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.contact-aside-footnote {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.contact-aside-cta {
  width: 100%;
  justify-content: center;
}

.contact-aside-title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.contact-aside-block {
  margin-bottom: 1.25rem;
}

.contact-aside-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.contact-aside-block p {
  margin: 0;
  font-size: 1.1rem;
}

.contact-aside-block a {
  color: var(--accent);
  font-weight: 500;
}

.contact-aside-block a:hover {
  text-decoration: underline;
}

.contact-wrap {
  max-width: 480px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.contact-card--single {
  text-align: center;
}

.contact-card--single .contact-lines {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.contact-card--single .contact-line h3 {
  margin-bottom: 0.35rem;
}

.contact-card--single .contact-line p {
  margin: 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-card a,
.contact-card p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.contact-card a:hover {
  color: var(--accent);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer .footer-legal {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
  align-items: center;
}

.site-footer .footer-legal a {
  color: var(--muted);
  font-weight: 500;
}

.site-footer .footer-legal a:hover {
  color: var(--accent);
}

.page-intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.page-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.payment-notice {
  margin: 1rem auto 0;
  max-width: min(1120px, 92vw);
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  font-size: 0.95rem;
  color: var(--text);
}

.payment-notice p {
  margin: 0 0 0.5rem;
}

.payment-notice p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.payment-notice strong {
  color: var(--warning);
}

.stripe-banner {
  margin: 1rem auto 0;
  max-width: min(1120px, 92vw);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
}

.stripe-banner[data-state="ok"] {
  border-color: rgba(74, 222, 128, 0.35);
}

.stripe-banner[data-state="err"] {
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--danger);
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 2rem 0 4rem;
  align-items: stretch;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  align-items: stretch;
}

.tier-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: flex-start;
  flex-shrink: 0;
  min-height: 7.5rem;
}

.tier.popular .tier-head {
  padding-right: 5.75rem;
  min-height: 8.25rem;
}

.tier::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

.tier.lowcost::after {
  background: linear-gradient(90deg, var(--success), transparent);
}

.tier.popular {
  border-color: rgba(61, 156, 240, 0.5);
  transform: scale(1.02);
  z-index: 1;
}

@media (max-width: 900px) {
  .tier.popular {
    transform: none;
  }
}

.tier-popular-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #041018;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.tier h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.28;
}

.tier-price-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.tier .price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  flex-shrink: 0;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.tier .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.tier ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.tier ul li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 1.35rem;
  position: relative;
}

.tier ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.85rem;
}

.tier .btn {
  width: 100%;
}

.compare-note {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.compare-note strong {
  color: var(--text);
}
