/* ===== Базовые стили (тёмно-золотая тема) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1B1821 0%, #1A182A 50%, #070811 100%);
    color: #E0E0E0;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Шапка и навигация ===== */
header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    background: rgba(27, 24, 33, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 1px solid rgba(253, 162, 48, 0.3);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #FDA230, #FEE16F, #D49A27);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo a {
    text-decoration: none;
    color: inherit;
}
.nav {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}
.nav a {
    text-decoration: none;
    color: #E0E0E0;
    font-weight: 500;
    transition: 0.2s;
}
.nav a:hover {
    color: #FDA230;
}

/* ===== Гамбургер-меню ===== */
.burger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    color: #FDA230;
    transition: 0.2s;
}
.burger:hover {
    color: #FEE16F;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #1B1821;
    background: linear-gradient(135deg, #FDA230, #FEE16F, #D49A27);
    border-radius: 60px;
    box-shadow: 0 8px 20px rgba(253, 162, 48, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(253, 162, 48, 0.5);
}
.btn-secondary {
    background: #363543;
    color: #FDA230;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-secondary:hover {
    background: #4a485a;
    color: #FEE16F;
}
.btn-soon {
    position: relative;
    overflow: visible;
}
.btn-soon::after {
    content: "версия 2.1.7";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FDA230;
    color: #1B1821;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== Главная страница ===== */
.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0 80px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1 1 400px;
}
.hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 20px;
    color: #E0E0E0;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-image {
    flex: 1 1 300px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.dev-banner {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(54, 53, 67, 0.7);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: 60px;
    border: 1px solid rgba(253, 162, 48, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}
.dev-banner-text {
    font-weight: 500;
    color: #FDA230;
    font-size: 16px;
    display: flex;
    align-items: center;
}
.dev-banner-btn {
    background: linear-gradient(135deg, #FDA230, #D49A27);
    color: #1B1821;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.dev-banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(253, 162, 48, 0.5);
}

.features {
    padding: 40px 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.feature-item.reverse {
    flex-direction: row-reverse;
}
.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-text {
    flex: 1 1 400px;
}
.feature-text h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feature-text p {
    font-size: 18px;
    color: #E0E0E0;
    margin-bottom: 20px;
}
.feature-img {
    flex: 1 1 300px;
    text-align: center;
}
.feature-img img {
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
}

.cta-section {
    background: linear-gradient(135deg, #FDA230, #D49A27);
    border-radius: 60px;
    padding: 80px 40px;
    text-align: center;
    color: #1B1821;
    margin: 60px 0;
}
.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}
.cta-section p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}
.cta-section .btn {
    background: #1B1821;
    color: #FDA230;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.cta-section .btn:hover {
    background: #2A2A2A;
    color: #FEE16F;
}

.faq {
    padding: 60px 0;
}
.faq h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.faq-item {
    background: #2A2A2A;
    padding: 30px;
    border-radius: 32px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.faq-item h3 {
    font-size: 20px;
    color: #FDA230;
    margin-bottom: 10px;
}
.faq-item p {
    color: #E0E0E0;
}

/* ===== Страницы статей ===== */
.article-container {
    max-width: 900px;
    margin: 40px auto;
    background: #2A2A2A;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(253, 162, 48, 0.1);
}
.article-container h1 {
    font-size: 48px;
    color: #FDA230;
    margin-bottom: 20px;
}
.article-container h2 {
    font-size: 32px;
    color: #FEE16F;
    margin: 40px 0 20px;
    border-bottom: 2px solid rgba(253, 162, 48, 0.3);
    padding-bottom: 10px;
}
.article-container h3 {
    font-size: 24px;
    color: #FDA230;
    margin: 30px 0 15px;
}
.article-container p {
    font-size: 18px;
    color: #E0E0E0;
    margin-bottom: 20px;
    line-height: 1.7;
}
.article-container ul,
.article-container ol {
    padding-left: 30px;
    margin-bottom: 25px;
}
.article-container li {
    font-size: 18px;
    color: #E0E0E0;
    margin-bottom: 10px;
}
.article-image {
    text-align: center;
    margin: 30px 0;
}
.article-image img {
    max-width: 100%;
    border-radius: 32px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.article-image figcaption {
    font-size: 14px;
    color: #B0B0B0;
    margin-top: 8px;
}
.highlight {
    background: #363543;
    border-left: 6px solid #FDA230;
    padding: 25px;
    border-radius: 16px;
    margin: 30px 0;
    font-style: italic;
}
.warning {
    background: rgba(253, 162, 48, 0.1);
    border-left: 6px solid #FDA230;
    padding: 25px;
    border-radius: 16px;
    margin: 30px 0;
}
blockquote {
    background: #363543;
    border-left: 4px solid #FDA230;
    padding: 20px;
    font-style: italic;
    margin: 30px 0;
    border-radius: 16px;
}

/* ===== Страница документов ===== */
.docs-section {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    padding: 24px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(253, 162, 48, 0.1);
}
.docs-section h1 {
    font-size: 42px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.doc-item {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(253, 162, 48, 0.2);
    padding-bottom: 30px;
}
.doc-item:last-child {
    border-bottom: none;
}
.doc-item h2 {
    font-size: 28px;
    color: #FDA230;
    margin-bottom: 16px;
}
.doc-item h3 {
    font-size: 20px;
    color: #FEE16F;
    margin: 20px 0 10px;
}
.doc-item p {
    margin-bottom: 12px;
    color: #E0E0E0;
}
.doc-item ul, .doc-item ol {
    padding-left: 20px;
    margin: 10px 0 20px;
    color: #E0E0E0;
}
.data-block {
    background: #363543;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    font-size: 16px;
}

/* ===== Страница контактов ===== */
.contacts-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 48px;
    padding: 60px 40px;
    margin: 40px 0;
    box-shadow: 0 30px 50px rgba(253, 162, 48, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}
.contact-info {
    flex: 1 1 300px;
}
.contact-info h2 {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}
.contact-item {
    margin-bottom: 25px;
    font-size: 18px;
}
.contact-item strong {
    display: block;
    color: #FDA230;
    margin-bottom: 5px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-item a {
    color: #FEE16F;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
}
.contact-item a:hover {
    text-decoration: underline;
}
.map-placeholder {
    flex: 1 1 300px;
    background: #363543;
    border-radius: 32px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDA230;
    font-size: 18px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    flex-direction: column;
}
.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}
.social-links a {
    background: #2A2A2A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FDA230;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.social-links a:hover {
    transform: scale(1.1);
    background: #FDA230;
    color: #1B1821;
}

/* ===== Чат ===== */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #FDA230, #D49A27);
    color: #1B1821;
    border: none;
    border-radius: 60px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(253, 162, 48, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}
.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(253, 162, 48, 0.7);
    animation: none;
}
.chat-button:active {
    transform: scale(0.95);
}
.chat-icon {
    font-size: 24px;
    transition: transform 0.3s;
}
.chat-button:hover .chat-icon {
    transform: rotate(10deg);
}
.chat-text {
    letter-spacing: 0.5px;
}
@keyframes pulse {
    0% { box-shadow: 0 8px 20px rgba(253, 162, 48, 0.4); transform: scale(1); }
    50% { box-shadow: 0 12px 28px rgba(253, 162, 48, 0.7); transform: scale(1.05); }
    100% { box-shadow: 0 8px 20px rgba(253, 162, 48, 0.4); transform: scale(1); }
}
.chat-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #2A2A2A;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    z-index: 1001;
    overflow: hidden;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
    transform-origin: bottom right;
}
@keyframes slideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.chat-header {
    background: linear-gradient(135deg, #FDA230, #D49A27);
    color: #1B1821;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}
.chat-close {
    background: none;
    border: none;
    color: #1B1821;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.chat-close:hover {
    opacity: 1;
}
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #1B1821;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.user-msg {
    background: #FDA230;
    color: #1B1821;
    align-self: flex-end;
    padding: 10px 14px;
    border-radius: 20px 20px 4px 20px;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeInMsg 0.2s;
}
.bot-msg {
    background: #363543;
    color: #E0E0E0;
    align-self: flex-start;
    padding: 10px 14px;
    border-radius: 20px 20px 20px 4px;
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeInMsg 0.2s;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #363543;
    background: #2A2A2A;
    gap: 8px;
}
.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #363543;
    border-radius: 30px;
    outline: none;
    font-size: 14px;
    background: #1B1821;
    color: #E0E0E0;
    transition: border 0.2s;
}
.chat-input:focus {
    border-color: #FDA230;
}
.chat-send {
    background: #FDA230;
    color: #1B1821;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-send:hover {
    background: #D49A27;
    transform: scale(1.1);
}
.chat-send:active {
    transform: scale(0.9);
}

/* ===== Попапы ===== */
.popup-overlay,
.offer-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}
.offer-popup-overlay {
    z-index: 10000;
}
.popup-container,
.offer-popup-container {
    background: #2A2A2A;
    max-width: 450px;
    width: 90%;
    border-radius: 40px;
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(253, 162, 48, 0.3);
    position: relative;
    text-align: center;
    transform: scale(0.9);
    animation: scaleIn 0.3s forwards;
}
.offer-popup-container {
    max-width: 500px;
    background: linear-gradient(135deg, #2A2A2A, #363543);
}
.popup-close,
.offer-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #E0E0E0;
    transition: color 0.2s;
    line-height: 1;
}
.popup-close:hover,
.offer-popup-close:hover {
    color: #FDA230;
}
.popup-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}
.offer-popup-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}
.popup-description,
.offer-popup-description {
    font-size: 18px;
    color: #E0E0E0;
    margin-bottom: 25px;
    line-height: 1.5;
}
.offer-popup-highlight {
    font-weight: 700;
    color: #FDA230;
    font-size: 20px;
}
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.popup-input,
.popup-textarea {
    padding: 15px 20px;
    border: 2px solid #363543;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
    font-family: 'Inter', sans-serif;
    background: #1B1821;
    color: #E0E0E0;
}
.popup-textarea {
    border-radius: 30px;
    resize: vertical;
    min-height: 80px;
}
.popup-input:focus,
.popup-textarea:focus {
    border-color: #FDA230;
}
.antibot-question {
    background: #363543;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #E0E0E0;
}
.antibot-question span {
    white-space: nowrap;
}
.antibot-question input {
    width: 80px;
    text-align: center;
    border: 2px solid #363543;
    border-radius: 30px;
    padding: 8px;
    font-size: 16px;
    outline: none;
    background: #1B1821;
    color: #E0E0E0;
}
.antibot-question input:focus {
    border-color: #FDA230;
}
.popup-button {
    background: linear-gradient(135deg, #FDA230, #D49A27);
    color: #1B1821;
    border: none;
    padding: 16px 30px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(253, 162, 48, 0.3);
}
.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(253, 162, 48, 0.5);
}
.offer-popup-download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #FDA230, #D49A27);
    color: #1B1821;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(253, 162, 48, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.offer-popup-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(253, 162, 48, 0.5);
}
.popup-message {
    margin-top: 15px;
    font-size: 16px;
    padding: 10px;
    border-radius: 30px;
    display: none;
}
.popup-message.success {
    background: rgba(253, 162, 48, 0.2);
    color: #FDA230;
    display: block;
}
.popup-message.error {
    background: rgba(253, 162, 48, 0.1);
    color: #FEE16F;
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== Кнопка «Вверх» ===== */
.scroll-top {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FDA230, #D49A27);
    color: #1B1821;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(253, 162, 48, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
    border: 2px solid #FDA230;
}
.scroll-top:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(253, 162, 48, 0.6);
}
.scroll-top.visible {
    display: flex;
}

/* ===== Футер ===== */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(253, 162, 48, 0.3);
    text-align: center;
    color: #E0E0E0;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 500;
}
.footer-links a:hover {
    color: #FDA230;
}

/* ===== Экспертная статья на главной ===== */
.expert-article {
    background: #2A2A2A;
    max-width: 1200px;
    margin: 60px auto;
    padding: 48px 40px;
    border-radius: 48px;
    box-shadow: 0 20px 40px rgba(253, 162, 48, 0.1);
    box-sizing: border-box;
}
.article-header {
    text-align: center;
    margin-bottom: 40px;
}
.article-header h2 {
    font-size: 38px;
    font-weight: 700;
    background: linear-gradient(135deg, #FDA230, #FEE16F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.article-meta {
    font-size: 16px;
    color: #FDA230;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.article-content {
    max-width: 900px;
    margin: 0 auto;
}
/* Контент внутри экспертной статьи */
.article-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Картинки – всегда резиновые */
.expert-article img,
.article-image img {
    max-width: 100%;
    height: auto;
}

/* Таблицы – скролл внутри, без вылезания за край */
.table-wrapper {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #E0E0E0;
    margin-bottom: 24px;
}
.article-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #FDA230;
    margin: 48px 0 20px;
    border-left: 4px solid #FDA230;
    padding-left: 20px;
}
.article-conclusion {
    background: #363543;
    border-radius: 32px;
    padding: 32px;
    margin-top: 48px;
}
.article-conclusion h3 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

/* ===== Ссылки (общие стили) ===== */
a {
    color: #FDA230;
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s ease;
}
a:hover {
    color: #FEE16F;
    text-decoration: none;
}
a:active {
    color: #D49A27;
}
.nav a {
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FDA230, #FEE16F);
    transition: width 0.3s ease;
}
.nav a:hover::after {
    width: 100%;
}
.article-container a,
.docs-section a,
.faq-item a,
.expert-article a {
    color: #c76d00;
    border-bottom: 1px solid rgba(253, 162, 48, 0.3);
}
.article-container a:hover,
.docs-section a:hover,
.faq-item a:hover,
.expert-article a:hover {
    color: #FEE16F;
    border-bottom-color: #FEE16F;
}
.contact-item a {
    color: #FEE16F;
    border-bottom: none;
}
.contact-item a:hover {
    color: #FDA230;
    text-decoration: underline;
}
.popup-container a,
.offer-popup-container a {
    color: #FDA230;
    border-bottom: 1px dashed rgba(253, 162, 48, 0.5);
}
.popup-container a:hover,
.offer-popup-container a:hover {
    color: #FEE16F;
}

/* ===== Выпадающее меню (десктоп) ===== */
.dropdown {
    position: relative;
}
.dropdown .dropbtn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: #E0E0E0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dropdown .dropbtn:hover {
    color: #FDA230;
}
.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c2c2c;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 8px 0;
}
.dropdown.open .dropdown-content {
    display: block;
}
.dropdown .dropdown-content a {
    color: #ffffff !important;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #444;
}
.dropdown .dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown .dropdown-content a:hover {
    background: #4a4a4a;
    color: #ffd966 !important;
}

/* ===== Таблицы ===== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 40px;
    border: 1px solid #ddd;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    color: #1a1a1a;
    font-size: 14px;
    min-width: 500px;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: 600;
}
tr:nth-child(even) {
    background-color: #f8f9fa;
}
tr:hover {
    background-color: #f1f1f1;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (ВСЁ В ОДНОМ МЕСТЕ) ===== */
@media (max-width: 768px) {
    /* Гамбургер */
    .burger {
        display: block;
    }
    body.menu-open {
        overflow: hidden;
    }
    
    /* Навигационное меню (выезжающее) */
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #1B1821;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: 5px 0 20px rgba(0,0,0,0.5);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .nav.open {
        left: 0;
    }
    
    /* Элементы меню — никакого горизонтального скролла */
    .nav * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Выпадающий список статей */
    .dropdown {
        width: 100%;
    }
    .dropdown .dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
        text-align: left;
    }
    .dropdown .dropdown-content {
        position: static;
        width: 100%;
        background: #2c2c2c;
        box-shadow: none;
        border-radius: 12px;
        margin-top: 8px;
        padding: 8px 0;
    }
    .dropdown.open .dropdown-content {
        display: block;
    }
    .dropdown .dropdown-content a {
        padding: 12px 20px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Контейнеры и отступы */
    body .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    body, html {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Типографика */
    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    .hero-content p {
        font-size: 16px !important;
    }
    .feature-text h2 {
        font-size: 28px !important;
    }
    .feature-text p {
        font-size: 16px !important;
    }
    .cta-section h2 {
        font-size: 28px !important;
    }
    .cta-section p {
        font-size: 16px !important;
    }
    .faq h2 {
        font-size: 28px !important;
    }
    .faq-item h3 {
        font-size: 18px !important;
    }
    .faq-item p {
        font-size: 14px !important;
    }
    .docs-section h1 {
        font-size: 28px !important;
    }
    .doc-item h2 {
        font-size: 22px !important;
    }
    .contact-info h2 {
        font-size: 28px !important;
    }
    .contact-item a,
    .contact-item span {
        font-size: 16px !important;
    }
    .map-placeholder {
        font-size: 16px !important;
        min-height: 150px !important;
    }
    .article-container h1 {
        font-size: 36px;
    }
    .article-container h2 {
        font-size: 28px;
    }
    .article-container {
        padding: 30px 20px;
    }
    
    /* Блоки */
    .hero {
        flex-direction: column;
        padding: 40px 0 60px !important;
    }
    .hero-image {
        order: -1;
        margin-bottom: 20px;
    }
    .hero-content {
        order: 2;
    }
    .features {
        padding: 20px 0 !important;
    }
    .feature-item {
        margin-bottom: 40px !important;
        gap: 30px !important;
    }
    .cta-section {
        padding: 40px 20px !important;
        margin: 30px 0 !important;
    }
    .faq {
        padding: 30px 0 !important;
    }
    .docs-section {
        padding: 30px 20px !important;
    }
    .contacts-card {
        padding: 30px 20px !important;
    }
    .social-links a {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    /* Попапы */
    .popup-container,
    .offer-popup-container {
        width: 90% !important;
        max-width: 350px !important;
        padding: 30px 20px !important;
    }
    .popup-title,
    .offer-popup-title {
        font-size: 24px !important;
    }
    .popup-description,
    .offer-popup-description {
        font-size: 16px !important;
    }
    .popup-input,
    .popup-textarea {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    .popup-button,
    .offer-popup-download-btn {
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
    
    /* Чат */
    .chat-window {
        width: 90% !important;
        height: 70% !important;
        bottom: 80px !important;
        right: 5% !important;
    }
    .chat-button {
        padding: 12px 24px !important;
        font-size: 16px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    .chat-icon {
        font-size: 20px !important;
    }
    .chat-text {
        font-size: 14px !important;
    }
    
    /* Кнопка вверх */
    .scroll-top {
        left: 20px !important;
        bottom: 20px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    /* Экспертная статья */
    .article-header h2 {
        font-size: 28px;
    }
    .article-content p {
        font-size: 16px;
    }
    .article-content h3 {
        font-size: 24px;
        margin: 32px 0 16px;
    }
    
    /* Таблицы */
    .table-wrapper {
        margin: 20px -16px;
        border-radius: 40px;
    }
    table {
        min-width: 500px;
    }
    th, td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНОГО DROPDOWN ===== */
@media (max-width: 768px) {
    /* 1. Родительский dropdown — статический, без абсолютного позиционирования */
    .dropdown {
        position: static !important;
        width: 100% !important;
    }
    
    /* 2. Кнопка-заголовок "Статьи" */
    .dropdown .dropbtn {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0 !important;
        text-align: left !important;
        background: none !important;
        border: none !important;
        color: #E0E0E0 !important;
        font-weight: 500 !important;
        cursor: pointer !important;
    }
    
    /* 3. Выпадающий контейнер — убираем absolute, делаем блочным, вертикальным */
    .dropdown .dropdown-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: unset !important;
        background: #2c2c2c !important;
        border-radius: 12px !important;
        margin-top: 8px !important;
        padding: 8px 0 !important;
        box-shadow: none !important;
        /* Отключаем любые flex/float/transform */
        flex-direction: column !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    /* 4. Показываем контейнер при открытом dropdown */
    .dropdown.open .dropdown-content {
        display: block !important;
    }
    
    /* 5. Ссылки внутри — блочные, с переносом текста */
    .dropdown .dropdown-content a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #444 !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }
    
    .dropdown .dropdown-content a:last-child {
        border-bottom: none !important;
    }
    
    .dropdown .dropdown-content a:hover {
        background: #4a4a4a !important;
        color: #ffd966 !important;
    }
    
    /* 6. Дополнительно: фикс возможного горизонтального скролла всего меню */
    .nav {
        overflow-x: hidden !important;
    }
    
    .nav * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
.dropdown .dropdown-content a {
    display: block !important;
    float: none !important;
    clear: both !important;
}
/* ===== МОБИЛЬНЫЙ DROPDOWN - ПОЛНЫЙ СБРОС ПОЗИЦИОНИРОВАНИЯ ===== */
@media (max-width: 768px) {
    /* 1. Родительский dropdown — никакого relative */
    .dropdown {
        position: static !important;
        display: block !important;
        width: 100% !important;
    }
    
    /* 2. Кнопка "Статьи" — без изменений */
    .dropdown .dropbtn {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 12px 0 !important;
    }
    
    /* 3. Сам выпадающий блок — убираем всё, что может его сдвинуть */
    .dropdown .dropdown-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        translate: none !important;
        float: none !important;
        clear: both !important;
        margin: 8px 0 0 0 !important;
        padding: 8px 0 !important;
        background: #2c2c2c !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }
    
    /* 4. Показываем при открытии */
    .dropdown.open .dropdown-content {
        display: block !important;
    }
    
    /* 5. Ссылки — вертикально, с переносом */
    .dropdown .dropdown-content a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #444 !important;
    }
    
    /* 6. Страховка для родительского меню */
    .nav {
        overflow-x: hidden !important;
    }
    .nav * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* ===== ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНОГО DROPDOWN (Яндекс Браузер) ===== */
@media (max-width: 768px) {
    /* 1. Родительский dropdown — относительное позиционирование, чтобы absolute-блок привязался к нему */
    .dropdown {
        position: relative !important;
        width: 100% !important;
    }
    
    /* 2. Кнопка "Статьи" — без изменений */
    .dropdown .dropbtn {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 12px 0 !important;
    }
    
    /* 3. Выпадающий блок — absolute, привязанный к левому краю родителя, шириной 100% */
    .dropdown .dropdown-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        min-width: unset !important;
        background: #2c2c2c !important;
        border-radius: 12px !important;
        margin-top: 4px !important;
        padding: 8px 0 !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
        z-index: 1001 !important;
        
        /* Отключаем трансформации */
        transform: none !important;
        transition: none !important;
    }
    
    /* 4. Показываем при открытии */
    .dropdown.open .dropdown-content {
        display: block !important;
    }
    
    /* 5. Ссылки — вертикальные, с переносом */
    .dropdown .dropdown-content a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #444 !important;
    }
    
    /* 6. Страховка: убираем горизонтальный скролл */
    .nav {
        overflow-x: hidden !important;
    }
}