/* Сброс стандартных отступов и полей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Общие стили тела страницы */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.hero {
    text-align: left;
    padding: 10px 20px;
    background: linear-gradient(150deg, #efe8ca 0%, #a35b5b 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 50px;
    margin-top: 30px;
    box-shadow: 4px 5px 8px 0px rgba(0, 0, 0, 0.2);
}

section.info {
    background: #faf4e6;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 4px 5px 8px 0px rgba(0, 0, 0, 0.2);
}

.section-title {
    background: linear-gradient(150deg, #a9545433 0%, #a95454a1 100%);
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    padding-left: 10px;
    font-size: 1.4em;
}

.section-content {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.col div {
    margin-bottom: 20px;
}

.section-content .section-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.section-content form {
    margin-left: 10px;
}

section.info .section-content h3 {
    margin: auto 0px;
    font-size: 1.1em;
    color: #273f5b
}

a h3 {
    text-decoration: underline;
}

ul {
    margin-left: 50px;
}

ol {
    margin-left: 50px;
}

section.info .section-content button, section.info .section-content a.btn {
    width: 100%;
    max-width: 200px;
}

section.info .section-content form {
    width: 100%;
    max-width: 200px;
}

.button-widget {
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-widget img {
    width: 100%;
    max-width: 100px;
    display: flex;
    flex-direction: column;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

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

.main .content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили для заголовков */
h1, h2 {
    color: #333;
    margin-bottom: 20px;
}

/* Стили для ссылок */
a {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Стили для сообщений об ошибках */
.error {
    color: red;
    margin: 10px 0;
    font-size: 14px;
}

/* Стили для личного кабинета */
.account-container {
    max-width: 600px; /* Ограничиваем ширину на ПК */
    padding: 30px;
}

/* Стили для информации о тарифе и балансе */
.info-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tariff-info,
.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.tariff-info h2,
.balance-info h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.change-btn,
.recharge-btn {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.change-btn:hover,
.recharge-btn:hover {
    background-color: #1e7e34;
}

.recharge-btn {
    background-color: #007bff;
}

.recharge-btn:hover {
    background-color: #0056b3;
}

/* Стили для секций скачивания */
.download-section {
    text-align: left;
}

.download-section h3 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.device-links,
.platform-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-links a,
.platform-links a {
    color: #007bff;
    text-decoration: none;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.device-links a:hover,
.platform-links a:hover {
    background-color: #e9ecef;
}

/* Адаптивность */
@media (max-width: 768px) {
    .account-container {
        padding: 20px;
        max-width: 100%;
        margin: 10px;
    }

    .tariff-info,
    .balance-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .change-btn,
    .recharge-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .device-links a,
    .platform-links a {
        font-size: 14px;
    }
}

/* Стили для страницы ошибки */
.error-container {
    max-width: 500px;
    padding: 40px 30px;
    text-align: center;
}

.error-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.error-icon {
    font-size: 60px;
    color: #e74c3c;
    background: #ffeaea;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    margin-bottom: 30px;
}

.error-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.error-details {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    text-align: left;
    width: 100%;
}