/* --- PAMATA KONTEINERS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 25px;
}

/* --- HERO / IEVADA SADAĻA --- */
.about-main {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 100px;
    /* Pievienots 'forwards' beigās */
    animation: fadeInSlide 1s ease-out forwards; 
}

.about-main p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-main strong {
    color: var(--text-main);
    font-weight: 700;
}

/* --- MODERNĀ MOZAĪKA (KARTĪŠU REŽĢIS) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 30px;
}

/* --- KARTĪŠU PAMATA STILS --- */
.card {
    background: var(--bg-subtle); /* Izmantojam maigo fonu */
    padding: 45px;
    border-radius: 32px; /* Moderni, ļoti noapaļoti stūri */
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Teksts kartītes apakšā */
    position: relative;
}

/* Asimetriskie izmēri modernam izskatam */
.card:nth-child(1) { grid-column: span 2; } /* Platā kartīte */
.card:nth-child(2) { grid-row: span 2; }    /* Garā kartīte */

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* --- SARAKSTI KARTĪTĒS --- */
.card ul {
    list-style: none;
}

.card ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Moderna "Check" ikona */
.card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

/* --- IZCELTĀ (TUMŠĀ) KARTĪTE --- */
.card.highlight {
    background: var(--text-main);
    color: var(--white);
    grid-column: span 2; /* Arī platāka */
    border: none;
}

.card.highlight h3 { color: var(--white); }
.card.highlight ul li { color: #cbd5e1; }

/* --- HOVER EFEKTI --- */
.card:hover {
    transform: translateY(-12px) scale(1.01);
    background: var(--white);
    box-shadow: 0 30px 60px rgba(0, 98, 255, 0.08);
    border-color: var(--primary-glow);
}

.card.highlight:hover {
    background: #1e293b; /* Nedaudz gaišāks tumši zilais */
}

/* --- STATISTIKAS BLOKS (Ja lieto) --- */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat p {
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Konteiners skaitlim un zīmei */
.stat-value {
    display: flex;
    align-items: baseline; /* Izlīdzina zīmi pēc skaitļa apakšējās malas */
    justify-content: center;
}

.stat span {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 800;
    line-height: 1; /* Noņem lieko vietu virs/zem teksta */
}

.unit {
    /* Ja vēlies, lai zīme būtu nedaudz mazāka un "pievilktāka" */
    font-size: 2rem !important; 
    margin-left: 2px; /* Minimāla atstarpe estētikai */
}

/* --- ANIMĀCIJAS --- */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSĪVAIS DIZAINS --- */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card:nth-child(n) { grid-column: span 2; } /* Visi kļūst pilna platuma */
}

@media (max-width: 650px) {
    .quick-stats { flex-direction: column; align-items: center; gap: 30px; }
    .card { padding: 35px; }
}

.num {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.tag {
    display: inline-block;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}