
.mini-nav a:focus,
.mini-nav a:active {
    color: #fff !important;
}
.hero {
    position: relative;
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('/images/download/image2.png');
    background-size: cover;
    background-position: center;
}
.hero__heading {
    max-width: 800px;
    letter-spacing: 2px;
    padding: 0.2em;
    font-size: 2rem;
    color: white;
}
.hero__text {
    font-size: 1.5rem;
    color: white;
}
.about {
    display: flex;
    justify-content: center;
    padding: 2em;
}
.about .heading,
.about .text {
    width: 50%;
    box-sizing: border-box;
}
.about .heading_p {
    padding: 1em;
    font-size: 2rem;
    font-weight: bold;
}
.about p {
    font-size: 1.2rem;
    margin-bottom: 1em;
}
.mini-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2em 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 1em 0;
    background-color: #ee780e;
}
.mini-nav a {
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 2px;
    font-weight: bold;
    color: #fff;
    padding: 0.5em 2em;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.mini-nav a:hover {
    background-color: #5d6d77;
    color: #fff;
}
.catalog-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2em;
}
.cards {
    flex: 1 1 300px;   /* rośnie, kurczy się, minimalnie 300px */
    max-width: 316px;  /* maksymalna szerokość, by nie była zbyt szeroka */
    max-height: 450px;
    aspect-ratio: 4 / 5;
    position: relative;
    perspective: 800px;
}
.front-card {
    max-width: 316px;
    max-height: 450px;
    transition: 0.8s;
    box-sizing: border-box;
}
.back-card {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 316px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background-color: #323640;
    transition: 0.8s;
    opacity: 0;
    transform: rotateY(-180deg);
    box-sizing: border-box;
}
.back-card p {
    font-size: 1rem;
    padding: 10px;
    color: #fff;
}
.back-card .button {
    margin: auto;
    background-color: #ee780e;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.4s;
}
.back-card .button:hover {
    background-color: #cac5c1;
}
.cards:hover .back-card {
    transform: rotate(0);
    opacity: 1;
}
.cards:hover .front-card {
    transform: rotateY(-180deg);
    opacity: 0;
}
.about_archit {
    font-size: 1rem;
    padding: 0 1.5rem;
    line-height: 2;
    margin: 0 auto 3rem auto;
    color: #333;
    max-width: 800px;
}
.docs-grid {
    display: grid;
    max-width: 1400px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    padding: 0 2em;
}
.docs-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.docs-card:hover {
    transform: translateY(-5px);
}
.docs-card h3 {
    margin-top: 0;
    color: #ee780e;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.docs-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.docs-card li {
    margin-bottom: 1rem;
}
.docs-card a {
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 0.7rem 1rem;
    /*border-radius: 6px;*/
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #ee780e;
}
.docs-card a:hover {
    background-color: #5d6d77;
    color: #fff;
    border-color: #5d6d77;
}
.docs-card a::after {
    content: "📥";
    margin-left: 0.5rem;
}
@media (max-width: 600px) {
    .mini-nav {
        flex-direction: column;
        align-items: center;
    }
    .mini-nav a {
        width: 100%;
        max-width: 300px; /* opcjonalnie ogranicz długość */
        text-align: center;
    }
}
@media (max-width: 760px) {
    .about .heading_p {
        font-size: 1.5rem;
        text-align: center;
    }
    .about p {
        font-size: 1rem;
        text-align: center;
    }
    .about {
        padding: 0.5em;
    }
    .mini-nav {
        justify-content: center;
    }
}
@media (max-width: 990px) {
    .about {
        flex-direction: column;
        align-items: center;
    }
    .about .heading,
    .about .text {
        width: 100%;
    }
}
