:root {
    --border: #3b3b3b;
    --button-blue: #4f72c7;
    --button-blue-dark: #3f62b2;
    --text: #232323;
    --bg: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 14px 8px;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
header {
    max-width: 1120px;
    margin: 0 auto;
}

header h1 {
    text-align: center;
}

main {
    max-width: 1120px;
    margin: 0 auto;
}

.api-panel {
    width: 100%;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.api-table th,
.api-table td {
    border: 2px solid var(--border);
    text-align: center;
    vertical-align: middle;
    font-size: 21px;
    padding: 24px 16px;
}

.api-table th {
    font-weight: 600;
    height: 96px;
}

.api-table td {
    height: 96px;
    font-weight: 600;
}

.api-table th:nth-child(1),
.api-table td:nth-child(1) {
    width: 21%;
}

.api-table th:nth-child(2),
.api-table td:nth-child(2) {
    width: 60%;
}

.api-table th:nth-child(3),
.api-table td:nth-child(3) {
    width: 18%;
}

button {
    min-width: 100px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    background: linear-gradient(180deg, #5b7fd6 0%, var(--button-blue) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

button:hover {
    background: linear-gradient(180deg, #5278d1 0%, var(--button-blue-dark) 100%);
}

.results-box {
    min-height: 360px;
    border: 2px solid var(--border);
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: pre-wrap;
}

.results-box h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#preloader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
overflow: hidden;
background: #fff;
}
#preloader:before {
content: "";
position: fixed;
top: calc(50% - 30px);
left: calc(50% - 30px);
border: 6px solid #f2f2f2;
border-top: 6px solid #56829e ;
border-radius: 50%;
width: 60px;
height: 60px;
-webkit-animation: animate-preloader 1s linear infinite;
animation: animate-preloader 1s linear infinite;
}
@-webkit-keyframes animate-preloader {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes animate-preloader {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}



@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .api-table th,
    .api-table td {
        font-size: 16px;
        padding: 16px 8px;
        height: auto;
    }

    button {
        min-width: 84px;
        padding: 10px 14px;
        font-size: 15px;
    }

    .results-box {
        min-height: 240px;
    }
}
