* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9fc;
    color: #28364a;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 5%;
}

.brand-small {
    font-size: 19px;
    font-weight: bold;
    color: #315c80;
}

.language a {
    text-decoration: none;
    color: #526276;
    padding: 9px 12px;
    border-radius: 20px;
    margin-left: 5px;
}

.language a.active {
    background: #315c80;
    color: white;
}

.main {
    max-width: 850px;
    margin: 65px auto 80px;
    padding: 20px;
    text-align: center;
}

.logo {
    font-size: clamp(42px, 8vw, 68px);
    letter-spacing: -3px;
    color: #315c80;
    font-weight: 300;
}

.logo strong {
    font-weight: 800;
}

.logo .accent {
    color: #d47785;
    font-weight: 600;
}

.subtitle {
    color: #758397;
    margin: 15px 0 38px;
    font-size: 17px;
}

.search-box {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 40px;
    box-shadow: 0 5px 25px rgba(30, 55, 80, .10);
    border: 1px solid #e2e8f0;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 16px;
    background: transparent;
}

.search-box button {
    border: none;
    border-radius: 30px;
    background: #315c80;
    color: white;
    padding: 0 25px;
    font-size: 15px;
    cursor: pointer;
}

.countries {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0 65px;
}

.country {
    background: white;
    border: 1px solid #e5eaf0;
    border-radius: 25px;
    padding: 10px 17px;
    color: #536276;
    font-size: 14px;
}

.categories h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.category-grid a {
    background: white;
    padding: 22px 12px;
    border: 1px solid #e4eaf0;
    border-radius: 13px;
    text-decoration: none;
    color: #35485e;
    transition: .2s;
}

.category-grid a:hover {
    border-color: #86a9c6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30,55,80,.07);
}

.region {
    margin-top: 50px;
    color: #8290a1;
}

footer {
    text-align: center;
    padding: 25px 15px;
    color: #8995a5;
    font-size: 13px;
}

@media (max-width: 600px) {
    .main {
        margin-top: 35px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box {
        border-radius: 18px;
        flex-direction: column;
        gap: 8px;
    }

    .search-box button {
        padding: 14px;
    }

    .countries {
        margin-bottom: 45px;
    }
}

.search-page {
    max-width: 850px;
    margin: 35px auto 70px;
    padding: 20px;
}

.search-logo {
    display: block;
    text-align: center;
    font-size: 36px;
    letter-spacing: -2px;
    color: #315c80;
    text-decoration: none;
    margin-bottom: 25px;
}

.search-logo strong {
    font-weight: 800;
}

.search-logo .accent {
    color: #d47785;
}

.search-page h1 {
    text-align: center;
    font-size: 23px;
    font-weight: 500;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: white;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(30,55,80,.08);
}

.filter-form input,
.filter-form select {
    flex: 1 1 150px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #dce3eb;
    border-radius: 9px;
    background: white;
    font-size: 14px;
}

.filter-form button {
    padding: 13px 22px;
    border: none;
    border-radius: 9px;
    background: #315c80;
    color: white;
    cursor: pointer;
}

.result-heading {
    margin: 35px 0 18px;
    font-size: 18px;
    font-weight: 500;
}

.result-list {
    display: grid;
    gap: 15px;
}

.result-card {
    background: white;
    border: 1px solid #e4eaf0;
    border-radius: 13px;
    padding: 22px;
}

.result-card h2 {
    color: #315c80;
    font-size: 19px;
    margin: 0 0 8px;
}

.result-provider {
    font-weight: bold;
    color: #4c5b6e;
}

.result-card p {
    color: #657386;
    line-height: 1.6;
}

.result-meta {
    color: #8995a5;
    font-size: 13px;
}

.result-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 15px;
}

.result-links a,
.back-link a {
    color: #315c80;
    text-decoration: none;
}

.result-links a:hover,
.back-link a:hover {
    text-decoration: underline;
}

.search-message {
    text-align: center;
    margin: 40px 0;
    color: #758397;
}

.back-link {
    margin-top: 35px;
}

@media (max-width: 600px) {
    .search-page {
        margin-top: 15px;
        padding: 15px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form input,
    .filter-form select,
    .filter-form button {
        width: 100%;
    }
}
