@font-face {
    font-family: 'FontomasIconicFill';
    src: url('fonts/fontomas-webfont.eot');
    src: url('fonts/fontomas-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/fontomas-webfont.woff') format('woff'),
         url('fonts/fontomas-webfont.ttf') format('truetype'),
         url('fonts/fontomas-webfont.svg#FontomasIconicFill') format('svg');
    font-weight: normal;
    font-style: normal;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Arial", sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
}

TABLE {
    width: 100%;
    max-width: 700px;
    /*margin: 20px auto;*/
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #ddd;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 20px; /* Добавлен отступ снизу */
}

TD, TH {
    padding: 12px;
    border: 1px solid #ddd;
}

TH {
    background: #e9ecef;
    color: #495057;
}

.container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    overflow: auto;
    font-family: "Arial", sans-serif;
    color: #333;
}

.wrapper h1, .wrapper h2 {
    color: #007bff;
    font-weight: bold;
    text-align: left;
    margin-bottom: 20px;
}

.wrapper h1::after, .wrapper h2::after {
    content: '';
    display: block;
    /*width: 50px;*/
    height: 3px;
    background: #007bff;
    margin: 10px auto 0;
}

.captcha {
    text-align: center;
    margin: 30px 0;
}

small {
    display: block;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

input, button {
    outline: none;
    font-family: "Arial", sans-serif;
}

button:active, button:focus {
    outline: none;
}

textarea {
	width: 100%;
	max-width: 400px;
	padding: 10px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-sizing: border-box;
	background-color: #fff; /* Светлый фон */
	color: #000; /* Чёрный текст */
}

.wrapper input:not([type="checkbox"]) {
    width: auto;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.wrapper input:not([type="checkbox"]):focus {
    border-color: #80bdff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
}

.wrapper label {
    color: #495057;
}

.wrapper select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    font-family: "Arial", sans-serif;
    font-size: 18px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #ffffff;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
    appearance: none; /* Убирает стандартный стиль стрелки */
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"%3E%3Cpath fill="%23333" d="M10 12l-4-4h8l-4 4z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.wrapper select::-ms-expand {
    display: none;
}

.wrapper select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

[data-icon]::after {
    content: attr(data-icon);
    font-family: 'FontomasIconicFill';
    color: #007bff;
    position: fixed;
    top: calc(50% + 3px);
    transform: translateY(-50%);
	margin-left: +40px; /* Корректировка левого отступа */
}

input[type=checkbox].css-checkbox + label.css-label {
    padding-left: 25px;
    font-size: 14px;
    color: #495057;
}

p.login.button, p.signup.button {
    text-align: center;
	padding-left: 10px; /* Moves the buttons 10px to the right */
}

.wrapper p.button input {
    font-size: 15px;
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.wrapper p.button input:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.wrapper p.links a, .wrapper p.liks-on-main a {
    font-size: 15px;
    display: inline-block;
    padding: 10px 20px;
    color: #007bff;
    background: #e9ecef;
    border: 1px solid #ced4da;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
	border-radius: 30px;
	font-weight: bold;
}

.wrapper p.links a:hover, .wrapper p.liks-on-main a:hover {
    background: #dee2e6;
}

.tbank-button {
    font-size: 15px;
    display: inline-block;
    padding: 10px 20px;
    color: #000000; /* Черный текст */
    background: #FFDD2D; /* Желтый фон Tinkoff */
    border: 1px solid #FFDD2D; /* Граница совпадает с фоном */
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
    border-radius: 30px;
    font-weight: bold;
}

.tbank-button:hover {
    background: #E6C020; /* Темно-желтый при наведении */
    border-color: #E6C020; /* Более темная граница */
    color: #ffffff; /* Белый текст для контраста */
}

#lkon, #main, .msg {
    position: absolute;
    top: 2%;
    left: 50%; /* Start the panel at the center of the screen */
    transform: translateX(-50%); /* Move the panel left by half of its width */
    width: 70%; /* Set a percentage width to make it responsive */
    padding: 15px 2%; /* Padding on both sides */
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    box-sizing: border-box; /* Ensure padding is included in width */
	transition: margin-top 0.8s ease-in-out;
}

#login {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10%; /* можно регулировать по необходимости */
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* можно делать ширину относительно родительского контейнера */
    max-width: 600px; /* задайте максимальную ширину */
    padding: 15px 2%;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    box-sizing: border-box;
    transition: margin-top 0.8s ease-in-out;
	opacity: 0;
    margin-top: 20%;
    animation: fadeInUp 0.8s ease-in-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        margin-top: 20%;
    }
    100% {
        opacity: 1;
        margin-top: 10%;
    }
}

.error {
    margin-top: 5px;
    text-align: center;
    color: #e74c3c;
    font-size: 14px;
}

.info::after, .success::after, .err::after, .lock::after, .unlock::after {
    font-family: 'FontomasIconicFill';
    font-size: 100px;
    color: #007bff;
    margin-left: -20px;
}

/* Общие стили для кнопок */
button, 
.spoiler-button,
.wrapper p.button input {
    font-size: 15px;
    padding: 10px 20px;
    color: #fff;
    background: #007bff;
    border: 1px solid #007bff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
	font-weight: bold;
	margin-bottom: 5px;
}

/* Анимация при наведении */
button:hover,
.spoiler-button,
.wrapper p.button input:hover {
    background: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

/* Анимация при клике */
button:active, 
.spoiler-button,
.wrapper p.button input:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

button {
    border: none;
    font-family: "Arial", sans-serif;
}

.spoiler-content {
    max-height: 0; /* Высота скрытого блока */
    opacity: 0; /* Прозрачность скрытого блока */
    overflow: hidden; /* Скрываем содержимое */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Увеличили плавность до 0.5s */
    background: #f9f9f9;
    padding: 0 20px; /* Внутренние отступы */
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-top: 10px;
}

.spoiler-content.open {
    opacity: 1; /* Полностью видимый */
    max-height: none; /* Высота автоматически адаптируется */
}

/* Общие стили для навигационного бара */
.nav-bar {
    position: absolute; /* Зафиксировано сверху страницы */
    top: 0;
    left: 0;
    width: 100%; /* Ширина на весь экран */
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Тень под панелью */
    border-radius: 0 0 30px 30px; /* Скругление только внизу */
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Лого слева, ссылки справа */
    align-items: center;
    padding: 10px 15%;
    box-sizing: border-box;
}

/* Логотип и текст */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Отступ между логотипом и текстом */
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Круглый логотип */
    object-fit: cover;
}

.header-text {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

/* Ссылки как светлые кнопки */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: #007bff; /* Текст основного цвета */
    background: #e7f0ff; /* Светлый фон */
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid #007bff; /* Цвет рамки */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.nav-links a:hover {
    background: #d6e9ff; /* Чуть темнее при наведении */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.nav-links a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

/* Стили для иконок */
.nav-links img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.nav-links img:hover {
    transform: scale(1.2);
}

/* Стили выпадающего меню */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-button {
	background-color: #e7f0ff;
	color: #007bff;
	font-size: 14px;
	padding: 10px 20px;
	border: 2px solid #007bff;
	border-radius: 30px;
	margin-bottom: 0px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-button:hover {
	background-color: #d6e9ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #ffffff;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	padding: 10px 0;
	min-width: 150px;
	overflow: hidden;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.dropdown:hover .dropdown-content {
	display: block;
	opacity: 1;
	transform: scaleY(1);
}

.dropdown-content a {
	display: block;
	text-decoration: none;
	color: #007bff;
	font-size: 14px;
	padding: 10px 20px;
	background: #ffffff;
	transition: background-color 0.2s ease, color 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.dropdown-content a:hover {
	background: #f0f8ff;
	color: #0056b3;
}

.theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
}

.theme-toggle button {
    padding: 10px 20px;
    font-size: 14px;
    color: #ffffff;
    background: #007bff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle button img {
    width: 20px; /* Размер картинки, можно изменить */
    height: 20px; /* Размер картинки, можно изменить */
}

.theme-toggle button:hover {
    background: #0056b3;
}

ol li {
    font-size: 17px; /* Размер текста по умолчанию */
    line-height: 1.6;
    margin-bottom: 15px;
}

p {
    font-size: 16px; /* Размер текста по умолчанию */
}

img.icon {
    height: 1.5em;
    vertical-align: middle;
}

h3 {
    font-size: 24px; /* Размер текста по умолчанию */
}

#error-message {
    position: relative;
    padding: 12px 20px;
    margin: 15px auto;
    max-width: 80%;
    border-radius: 6px;
    background: #FFF5F5;
    border-left: 4px solid #FF5252;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #D32F2F;
    font-size: 14px;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease-out;
    transition: all 0.3s ease;
}

#error-message:before {
    content: "!";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #FF5252;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.form-group {
	margin-bottom: 15px;
	display: flex;
	align-items: center;
}
.form-group label {
	width: 200px;
	font-weight: bold;
	margin-right: 10px;
}
.form-group input, 
.form-group select, 
.form-group textarea {
	flex: 1;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.form-group textarea {
	min-height: 80px;
}
.form-actions {
	margin-top: 20px;
	text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}
.maintenance-notification {
	padding: 15px;
	margin: 10px 0;
	border-radius: 5px;
	font-family: Arial, sans-serif;
	border-left: 4px solid;
	line-height: 1.5;
}

.maintenance-notification {
	border-color: #f44336;
	background-color: #ffebee;
	color: #d32f2f;
}

.maintenance-notification strong {
	font-size: 1.1em;
}

.maintenance-action {
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4f0ff 100%);
    border: 2px solid #4a90e2;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.15);
    color: #2c3e50;
}

.maintenance-action strong {
    font-size: 20px;
    color: #1a73e8;
    display: block;
    margin-bottom: 10px;
}

.maintenance-action p {
    margin: 8px 0;
}

.maintenance-action li {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: none;
    position: relative;
}

.maintenance-action li:before {
    content: "•";
    color: #1a73e8;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}
.code-box {
    position: relative;
    padding-top: 25px;
    margin-bottom: 20px;
}
.copy-btn {
    position: absolute;
    top: -8px;
    right: 0;
    padding: 3px 8px;
    font-size: 14px;
    cursor: pointer;
}
code {
    display: block;
    padding: 10px;
    border: 2px solid #ccc;
	border-radius: 15px;
    white-space: pre-wrap;
}

/* Adjustments for mobile devices */
@media (max-width: 1000px) {
    .wrapper {
        width: 95%;
        padding: 40px; /* Максимально увеличенные внутренние отступы */
    }

    TABLE {
		margin: 20px auto;
		max-width: none;
    }

    TD, TH {
        padding: 20px; /* Максимально увеличенные внутренние отступы */
        font-size: 24px; /* Максимально увеличенный размер шрифта */
    }

    .wrapper h1, .wrapper h2 {
        font-size: 34px; /* Максимально увеличенный размер шрифта */
        margin-bottom: 35px;
    }
	
	.wrapper h3 {
        font-size: 35px; /* Увеличенный размер шрифта для h3 */
        margin-bottom: 30px;
    }

    .wrapper h4 {
        font-size: 24px; /* Увеличенный размер шрифта для h4 */
        margin-bottom: 25px;
    }
	
	button, 
    .wrapper p.button input, .spoiler-button, .wrapper p.links a {
        padding: 25px 50px; /* Максимально увеличенные внутренние отступы */
        font-size: 24px; /* Максимально увеличенный размер шрифта */
    }
	
	.maintenance-action li {
		font-size: 24px;
	}
	
	.maintenance-action strong {
        font-size: 30px;
	}
	
	.tbank-button {
        padding: 25px 50px; /* Максимально увеличенные внутренние отступы */
        font-size: 24px; /* Максимально увеличенный размер шрифта */
    }
	
	.wrapper select {
		font-size: 24px; /* Увеличенный размер шрифта */
		padding: 20px; /* Увеличенные внутренние отступы */
    }

    .wrapper input:not([type="checkbox"]) {
        padding: 25px; /* Максимально увеличенные внутренние отступы */
        margin: 20px 0;
		font-size: 24px; /* Увеличенный размер шрифта */
    }
	
	.wrapper label {
        font-size: 24px; /* Увеличенный размер шрифта для label */
        margin-bottom: 15px; /* Добавленное нижнее поле для улучшения читаемости */
    }

    .captcha {
        margin: 35px 0;
    }

    #lkon, #main, #login, .msg {
        width: 90%;
        padding: 40px; /* Максимально увеличенные внутренние отступы */
    }
	#login {
		max-width: 550px;
	}

    .error {
        font-size: 24px; /* Максимально увеличенный размер шрифта для удобства */
    }

    .info::after, .success::after, .err::after, .lock::after, .unlock::after {
        font-size: 120px; /* Максимально увеличенный размер иконок */
        margin-left: -10px;
    }
	
	[data-icon]::after {
        font-size: 30px; /* Увеличенный размер иконки */
        top: calc(50% - 25px); /* Корректировка позиции на экране */
        margin-left: +110px; /* Корректировка левого отступа */
    }
	.expired {
		color: red;
	}
	
	.nav-bar {
        flex-direction: column; /* Элементы расположены в столбик */
        align-items: center; /* Центрирование элементов */
        padding: 15px;
    }

    .logo-container {
        justify-content: center; /* Центрирование логотипа */
        margin-bottom: 20px; /* Отступ снизу для разделения с кнопками */
    }

    .header-logo {
        width: 80px; /* Увеличенный логотип для мобильных устройств */
        height: 80px;
    }

    .header-text {
        text-align: center; /* Текст по центру под логотипом */
        font-size: 25px;
    }

    .nav-links {
        flex-wrap: wrap; /* Разрешает кнопкам переноситься */
        gap: 20px; /* Расстояние между кнопками */
        justify-content: center;
    }

    .nav-links a {
        padding: 15px 20px; /* Максимально увеличенные внутренние отступы */
        font-size: 20px; /* Максимально увеличенный размер шрифта */
    }
	
	.dropdown {
		width: 100%; /* Занимает всю ширину */
	}

	.dropdown-button {
		width: 100%; /* Кнопка растягивается на всю ширину */
		font-size: 16px; /* Увеличиваем размер текста */
		padding: 15px; /* Увеличиваем внутренние отступы */
	}

	.dropdown-content {
		position: relative; /* Положение относительно кнопки */
		width: 100%; /* Меню занимает всю ширину */
		border-radius: 0; /* Убираем скругления */
		box-shadow: none; /* Убираем тень */
	}

	.dropdown-content a {
		padding: 15px; /* Увеличиваем внутренние отступы */
		font-size: 16px; /* Увеличиваем размер текста */
	}
	
	.theme-toggle button {
        padding: 15px 25px; /* Увеличенные отступы */
        font-size: 20px; /* Увеличенный размер текста */
    }

    .theme-toggle button img {
        width: 30px; /* Увеличенный размер картинки */
        height: 30px;
    }
	
	ol li {
        font-size: 28px; /* Увеличенный размер текста */
    }
	
	p {
        font-size: 24px; /* Увеличенный размер текста в параграфах */
    }
	#error-message {
		font-size: 24px;
	}
	.copy-btn {
		font-size: 22px;
	}
}
