:root {
    --bg: #f7f8fa;
    --bg-alt: #ffffff;
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --primary: #1d4ed8;
    --primary-soft: #e0ebff;
    --accent: #f97316;
    --border: #e5e7eb;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
    --radius-md: 10px;
    --radius-lg: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    color: var(--text-main);
    background: var(--bg);
    line-height: 1.6;
}

/* Layout helpers */

.container {
    width: min(1120px, 100% - 32px);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-contact {
    background: #eef2ff;
}

.section-inner.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.section-lead {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-note {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.95rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background: var(--primary-soft);
}

.main-nav .nav-cta {
    background: var(--primary);
    color: #fff;
    padding-inline: 18px;
}

.main-nav .nav-cta:hover {
    background: #1e40af;
}

/* Hero */

.hero {
    padding: 80px 0 60px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.9rem, 2.4vw + 1rem, 2.6rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.hero-benefits li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.hero-benefits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-side {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: var(--bg-alt);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
}

.hero-card h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.hero-card ol {
    padding-left: 20px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #d4dffe;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* Sections content */

h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 8px;
}

p {
    margin-top: 0;
}

/* Stats */

.stats {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: var(--shadow-soft);
}

.stat-item {
    margin-bottom: 8px;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.cards-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 18px 16px 16px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.02);
}

.card p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.card ul {
    padding-left: 18px;
    margin: 10px 0 0;
    color: var(--text-main);
    font-size: 0.94rem;
}

/* Tags */

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 10px;
}

.tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Kontakt */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    color: var(--text-main);
    font-size: 0.96rem;
}

.contact-list a {
    color: var(--primary);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: var(--shadow-soft);
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 9px 10px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.9rem;
}

.checkbox-group input {
    margin-right: 4px;
}

.form-note {
    margin: 10px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */


/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.portfolio-item {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.portfolio-logo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0 6px;
  margin: 0 0 4px;
  cursor: pointer;
}


.portfolio-logo {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12));
  transition: transform 0.15s ease, filter 0.15s ease;
}


.portfolio-logo-button:hover .portfolio-logo {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.16));
}

.portfolio-content {
  display: none;
  margin-top: 6px;
}

.portfolio-item.is-open .portfolio-content {
  display: block;
}

.portfolio-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.portfolio-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}

.portfolio-meta {
  margin: 4px 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.portfolio-points {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.92rem;
}

.portfolio-result {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}



@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-side {
        justify-content: flex-start;
    }

    .section-inner.two-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}




@media (max-width: 640px) {
    .site-header {
        position: static;
    }

    .hero {
        padding: 40px 0 32px;
    }

    .section {
        padding: 56px 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav {
        gap: 10px;
        font-size: 0.9rem;
    }
}

.policy-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.policy-toggle-icon {
  font-size: 1.2rem;
  color: var(--primary);
}

.policy-content {
  display: none;
  margin-top: 18px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.policy-content h2 {
  font-size: 1.1rem;
  margin-top: 16px;
  margin-bottom: 6px;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content p,
.policy-content ul {
  font-size: 0.95rem;
}
