* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    height: 15vh;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(
        to right,
        rgb(55, 122, 223),
        rgb(99, 160, 184),
        rgb(241, 146, 146)
    );
}

.nav { width: 100%; }

.nav ul {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    margin: 0;
}

.nav ul li { cursor: pointer; }

.nav ul li a,
.nav ul li {
    font-family: 'EB Garamond', serif;
    font-size: 40px;
    text-decoration: none;
    color: hsl(219, 69%, 42%);
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 10px rgba(100, 120, 200, 0.25);
}

.nav ul li a:hover,
.nav ul li:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(180, 100, 160, 0.4);
}

.nav ul li a.active {
    background: linear-gradient(135deg, rgb(55, 122, 223), rgb(241, 146, 146));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav ul li:hover { color: white; }

.footer {
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-family: "EB Garamond", serif;
    background-image: linear-gradient(
        to left,
        rgb(55, 122, 223),
        rgb(99, 160, 184),
        rgb(241, 146, 146)
    );
}

@media (max-width: 768px) {
    .header { height: auto; padding: 16px 20px; }
    .nav ul { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 16px; }
    .nav ul li a, .nav ul li { font-size: 22px; }
}

/* ===== O MNĚ PAGE ===== */

.about-aside {
    display: block !important;
    align-items: unset !important;
    flex: 1;
    background-color: rgba(198, 220, 238, 0.7);
    background-image: url(put5.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    font-family: "EB Garamond", serif;
}

.about-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 70px;
    animation: fadeUp 0.8s ease both;
}

.about-hero .foto-block img {
    width: 320px;
    height: 420px;
    border-radius: 50px;
    object-fit: cover;
    display: block;
    box-shadow:
        0 0 15px 5px rgb(241, 146, 146),
        0 0 30px 10px rgb(99, 160, 184);
    transition: transform 0.35s ease;
}

.about-hero .foto-block img:hover { transform: scale(1.03); }

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgb(55, 122, 223), rgb(241, 146, 146));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero p {
    font-size: 22px;
    line-height: 1.8;
    color: rgb(30, 80, 140);
}

.about-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.card {
    background: rgba(198, 220, 238, 0.55);
    border-radius: 32px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow:
        0 0 15px 5px rgb(241, 146, 146),
        0 0 30px 10px rgb(99, 160, 184);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    animation: fadeUp 0.8s ease both;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 20px 8px rgb(241, 146, 146),
        0 0 40px 15px rgb(99, 160, 184);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card-header { display: flex; align-items: center; gap: 14px; }
.card-icon { font-size: 42px; }

.card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: rgb(55, 122, 223);
}

.card p {
    font-size: 19px;
    line-height: 1.75;
    color: rgb(30, 80, 140);
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow:
        0 0 10px 3px rgb(241, 146, 146),
        0 0 20px 6px rgb(99, 160, 184);
}

.card.wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 44px;
}

.card.wide img { width: 260px; height: 260px; flex-shrink: 0; border-radius: 30px; }

.card.wide .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

a.tatar-link {
    color: rgb(55, 122, 223);
    text-decoration: none;
    border-bottom: 1px solid rgba(55, 122, 223, 0.35);
    transition: color 0.2s, border-color 0.2s;
}
a.tatar-link:hover { color: rgb(200, 80, 120); border-color: rgb(200, 80, 120); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .about-wrapper { padding: 30px 20px; }
    .about-hero { flex-direction: column; text-align: center; }
    .about-hero .foto-block img { width: 240px; height: 300px; }
    .about-hero h1 { font-size: 34px; }
    .about-hero p { font-size: 18px; }
    .about-sections { grid-template-columns: 1fr; }
    .card.wide { flex-direction: column; }
    .card.wide img { width: 100%; height: 220px; }
}