/* Resetting default margins and paddings */
body, h1, p {
    margin: 0;
    padding: 0;
}

/* Body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body takes up at least the full height of the viewport */
}

/* Header styling */
header {
    background-color: #ffffff;
    padding: 10px 20px;
}

header .container {
    display: flex;
    justify-content: flex-start; /* Aligns elements to the left */
    align-items: center;
}

header .logo {
    margin-right: 20px; /* Adds space between the logo and the navigation */
    height: 40px; /* Adjust the height of the logo */
}

header nav {
    display: flex;
    gap: 20px; /* Adds space between the navigation links */
}

header nav a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #e0e0e0;
}

/* Main content styling */
main {
    background-color: white;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.main-container {
    display: flex;
    padding: 90px 20px;
    align-items: center;
    max-width: max-content;
    width: 100%;
}

/* Common styles for document and tariffs containers */
.docs-container,
.tariffs-container {
    background-color: #f0f0f0; /* Серый фон для обоих блоков */
    padding: 20px;
    margin: 20px auto; /* Центрирование блоков */
    border-radius: 8px; /* Края с небольшим закруглением */
    max-width: 800px; /* Максимальная ширина блока */
    width: 100%; /* Блок занимает всю ширину родителя */
    box-sizing: border-box; /* Учитывает padding в ширине элемента */
}

.docs-container h1,
.tariffs-container h1 {
    padding-bottom: 20px;
}

.docs {
    display: grid;
    justify-content: space-between; /* Распределяет ссылки равномерно по ширине */
    align-items: center;
    flex-wrap: wrap; /* Позволяет переносить ссылки на следующую строку, если они не помещаются */
    gap: 10px; /* Зазор между ссылками */
}

.docs a {
    background-color: #fff; /* Белый фон для ссылок */
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.docs a:hover {
    background-color: #ddd; /* Цвет при наведении */
}

.tariffs-container p {
    margin-bottom: 10px;
}

.main-image {
    max-width: 300px;
    height: auto;
    margin-right: 20px;
}

.text-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.text-content a.open-program {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f8b400;
    color: white;
    text-decoration: none;
    font-size: 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.text-content a.open-program:hover {
    background-color: #e69500;
}

/* Footer styling */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

footer .container {
    text-align: center;
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer .copyright {
    background-color: #222;
    padding: 10px 0;
    text-align: center;
}

.login-button {
    background-color: #28a745; /* Зеленый цвет */
    color: white;
    text-decoration: none;
    padding: 15px 22.5px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 700;
    transition: background-color 0.3s ease;
    margin-left: auto;
}

.login-button:hover {
    background-color: #218838;
}

/* Размещение кнопки в правом углу */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav {
    margin-right: 20px;
}
