/*
 * dlasamorzadu.pl — Front Page CSS v3.1
 * Sekcje: hero (animated), why-new, modules, units, about, latest, CTA
 * Estetyka GOV.PL / BIP — oficjalny, urzędowy charakter
 */

/* ==================== HERO ==================== */
.ds-hero {
    background: var(--ds-navy);
    padding: 100px 0 0;
    overflow: hidden;
}
.ds-hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
    padding-bottom: 56px;
}
.ds-hero__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    border: 1px solid rgba(255,255,255,.12);
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 20px;
}
.ds-hero h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.125rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -.02em;
}
.ds-hero__lead {
    font-size: clamp(1rem, .95rem + .25vw, 1.1rem);
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 520px;
}
.ds-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Hero animated browser mockup */
.ds-hero__anim {
    position: relative;
    animation: ds-float 6s ease-in-out infinite;
}
@keyframes ds-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.ds-hero__browser {
    background: #1A3050;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
}
.ds-hero__browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: #152640;
}
.ds-hero__browser-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.ds-hero__browser-bar span:first-child { background: #D4213D; }
.ds-hero__browser-bar span:nth-child(2) { background: rgba(255,255,255,.18); }
.ds-hero__browser-bar span:nth-child(3) { background: rgba(255,255,255,.18); }
.ds-hero__browser-body {
    padding: 16px;
}
.ds-hero__b-nav {
    height: 7px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    margin-bottom: 14px;
    width: 55%;
    animation: ds-shimmer 3s ease-in-out infinite alternate;
}
@keyframes ds-shimmer {
    0% { opacity: .5; }
    100% { opacity: 1; }
}
.ds-hero__b-hero {
    background: linear-gradient(135deg, rgba(212,33,61,.18), rgba(212,33,61,.05));
    border-radius: 6px;
    padding: 18px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(212,33,61,.12);
}
.ds-hero__b-title {
    height: 10px;
    width: 70%;
    background: rgba(255,255,255,.15);
    border-radius: 3px;
    margin-bottom: 8px;
}
.ds-hero__b-sub {
    height: 6px;
    width: 50%;
    background: rgba(255,255,255,.08);
    border-radius: 3px;
    margin-bottom: 12px;
}
.ds-hero__b-btn {
    height: 10px;
    width: 28%;
    background: var(--ds-red);
    border-radius: 3px;
    opacity: .7;
}
.ds-hero__b-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.ds-hero__b-card {
    background: rgba(255,255,255,.04);
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,.06);
    padding: 12px 10px;
}
.ds-hero__b-card span {
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    margin-bottom: 8px;
}
.ds-hero__b-card div {
    height: 5px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
    margin-bottom: 5px;
}
.ds-hero__b-card div:last-child {
    width: 65%;
    margin-bottom: 0;
}

/* Floating tags */
.ds-hero__tag {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    animation: ds-tag-float 4s ease-in-out infinite;
}
@keyframes ds-tag-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.ds-hero__tag--1 {
    top: -6px;
    right: -18px;
    background: #fff;
    color: var(--ds-navy);
    animation-delay: 0s;
}
.ds-hero__tag--2 {
    top: 30%;
    left: -30px;
    background: var(--ds-red);
    color: #fff;
    animation-delay: .6s;
}
.ds-hero__tag--3 {
    bottom: 28%;
    right: -24px;
    background: #16A34A;
    color: #fff;
    animation-delay: 1.2s;
}
.ds-hero__tag--4 {
    bottom: 8%;
    left: -20px;
    background: #2563EB;
    color: #fff;
    animation-delay: 1.8s;
}
.ds-hero__tag--5 {
    top: 16%;
    right: -10px;
    background: var(--ds-navy-mid);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.15);
    animation-delay: 2.4s;
}

/* Trust strip */
.ds-hero__trust {
    border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.12);
}
.ds-hero__trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.ds-hero__stat {
    text-align: center;
    padding: 20px 16px;
    border-right: 1px solid rgba(255,255,255,.06);
}
.ds-hero__stat:last-child { border-right: none; }
.ds-hero__stat strong {
    display: block;
    font-size: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.ds-hero__stat span {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ==================== WHY NEW PORTAL ==================== */
.ds-why-new {
    padding: var(--ds-section) 0;
    background: var(--ds-bg);
}
.ds-why-new__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}
.ds-feature {
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    padding: 24px 20px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ds-feature:hover {
    border-color: var(--ds-red);
    box-shadow: var(--ds-shadow-md);
    transform: translateY(-3px);
}
.ds-feature__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(212,33,61,.08), rgba(212,33,61,.03));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(212,33,61,.1);
    transition: background .2s;
}
.ds-feature:hover .ds-feature__icon {
    background: var(--ds-red);
    border-color: var(--ds-red);
}
.ds-feature__icon svg {
    width: 22px;
    height: 22px;
    color: var(--ds-red);
    transition: color .2s;
}
.ds-feature:hover .ds-feature__icon svg {
    color: #fff;
}
.ds-feature h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ds-navy);
    margin: 0 0 8px;
    line-height: 1.3;
}
.ds-feature p {
    font-size: 13.5px;
    color: var(--ds-gray-600);
    line-height: 1.6;
    margin: 0;
}
.ds-why-new__cta {
    text-align: center;
}

/* ==================== MODULES ==================== */
.ds-modules {
    padding: var(--ds-section) 0;
    background: var(--ds-navy);
}
.ds-section-head--light h2 {
    color: #fff;
}
.ds-section-head--light p {
    color: rgba(255,255,255,.55);
}
.ds-section-head__label--light {
    color: rgba(255,255,255,.4) !important;
    border-color: rgba(255,255,255,.12) !important;
}
.ds-modules__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.ds-modules__col {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--ds-radius-lg);
    padding: 24px;
    transition: background .15s;
}
.ds-modules__col:hover {
    background: rgba(255,255,255,.07);
}
.ds-modules__col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: relative;
}
.ds-modules__col h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--ds-red);
}
.ds-modules__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ds-modules__col li {
    position: relative;
    padding: 7px 0 7px 16px;
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.ds-modules__col li:last-child {
    border-bottom: none;
}
.ds-modules__col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 5px;
    height: 5px;
    background: var(--ds-red);
    border-radius: 50%;
}
.ds-modules__cta {
    text-align: center;
}
.ds-modules__cta p {
    color: rgba(255,255,255,.5);
    font-size: 15px;
    margin: 0 0 18px;
}

/* ==================== UNITS (Dla kogo) ==================== */
.ds-units {
    padding: var(--ds-section) 0;
    background: var(--ds-bg);
}
.ds-units__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ds-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ds-white);
    border-radius: var(--ds-radius);
    text-decoration: none;
    color: var(--ds-gray-800);
    border: 1px solid var(--ds-border);
    transition: border-color .15s, box-shadow .15s;
}
.ds-unit:hover {
    border-color: var(--ds-red);
    box-shadow: var(--ds-shadow);
}
.ds-unit__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--ds-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.ds-unit__icon svg { width: 20px; height: 20px; color: var(--ds-navy); transition: color .15s; }
.ds-unit:hover .ds-unit__icon { background: var(--ds-red); }
.ds-unit:hover .ds-unit__icon svg { color: #fff; }
.ds-unit__body { flex: 1; min-width: 0; }
.ds-unit__body strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.ds-unit__body small { color: var(--ds-gray-400); font-size: 12px; }
.ds-unit__arrow {
    flex-shrink: 0;
    color: var(--ds-gray-200);
    transition: color .15s, transform .15s;
}
.ds-unit:hover .ds-unit__arrow { color: var(--ds-red); transform: translateX(2px); }

/* ==================== ABOUT ==================== */
.ds-about {
    padding: var(--ds-section) 0;
}
.ds-about__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
    align-items: start;
}
.ds-about__content .ds-section-head__label { text-align: left; }
.ds-about__content h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
    color: var(--ds-navy);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
}
.ds-about__content p {
    color: var(--ds-gray-600);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 14px;
}
.ds-about__list {
    list-style: none;
    padding: 0;
    margin: 20px 0 28px;
}
.ds-about__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    font-size: 15px;
    color: var(--ds-gray-800);
    font-weight: 500;
    border-bottom: 1px solid var(--ds-gray-100);
}
.ds-about__list li:last-child { border-bottom: none; }
.ds-about__list svg {
    flex-shrink: 0;
    color: var(--ds-red);
    margin-top: 3px;
}

/* About aside card */
.ds-about__card {
    background: var(--ds-navy);
    color: #fff;
    border-radius: var(--ds-radius-lg);
    padding: 28px;
    position: sticky;
    top: 84px;
}
.ds-about__card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.ds-about__card-head svg { flex-shrink: 0; color: var(--ds-red); }
.ds-about__card-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.ds-about__card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ds-about__card li {
    position: relative;
    padding: 7px 0 7px 18px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.ds-about__card li:last-child { border-bottom: none; }
.ds-about__card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--ds-red);
    border-radius: 50%;
}

/* ==================== LATEST ARTICLES ==================== */
.ds-latest {
    padding: var(--ds-section) 0;
    background: var(--ds-bg);
}
.ds-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.ds-latest__more { text-align: center; }

/* ==================== CTA SECTION ==================== */
.ds-cta-section {
    padding: var(--ds-section) 0;
}
.ds-cta-section__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: start;
}
.ds-cta-section__info .ds-section-head__label { text-align: left; }
.ds-cta-section__info h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    color: var(--ds-navy);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
}
.ds-cta-section__info > p {
    color: var(--ds-gray-600);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 24px;
}
.ds-cta-section__points {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.ds-cta-section__points div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-gray-800);
}
.ds-cta-section__points svg { flex-shrink: 0; color: var(--ds-red); }
.ds-cta-section__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--ds-gray-100);
}
.ds-cta-section__contact svg { color: var(--ds-navy); flex-shrink: 0; }
.ds-cta-section__contact a {
    color: var(--ds-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}
.ds-cta-section__contact a:hover { color: var(--ds-red); }

.ds-cta-section__form {
    background: var(--ds-white);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    padding: 28px;
    box-shadow: var(--ds-shadow-md);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .ds-hero__inner { grid-template-columns: 1fr; }
    .ds-hero__anim { display: none; }
    .ds-why-new__grid { grid-template-columns: repeat(2, 1fr); }
    .ds-modules__grid { grid-template-columns: repeat(2, 1fr); }
    .ds-about__grid { grid-template-columns: 1fr; gap: 32px; }
    .ds-about__card { position: static; }
    .ds-cta-section__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .ds-hero { padding: 88px 0 0; }
    .ds-hero h1 { font-size: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem); }
    .ds-hero__trust-row { grid-template-columns: repeat(2, 1fr); }
    .ds-hero__stat { border-bottom: 1px solid rgba(255,255,255,.06); }
    .ds-why-new__grid { grid-template-columns: 1fr 1fr; }
    .ds-modules__grid { grid-template-columns: 1fr; }
    .ds-units__grid { grid-template-columns: 1fr 1fr; }
    .ds-latest__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ds-hero__actions { flex-direction: column; }
    .ds-hero__actions .ds-btn { width: 100%; justify-content: center; }
    .ds-hero__trust-row { grid-template-columns: 1fr 1fr; }
    .ds-why-new__grid { grid-template-columns: 1fr; }
    .ds-units__grid { grid-template-columns: 1fr; }
    .ds-cta-section__form { padding: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ds-hero__anim,
    .ds-hero__tag,
    .ds-hero__b-nav { animation: none; }
    .ds-feature { transition: none; }
}
