/* ================================================================
   БАЗОВЫЕ СТИЛИ
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: #e8ecf0;
    color: #1a2a2f;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-image: 
        repeating-linear-gradient(0deg, rgba(0, 180, 100, 0.03) 0px, rgba(0, 180, 100, 0.03) 1px, transparent 1px, transparent 3px),
        repeating-linear-gradient(90deg, rgba(0, 180, 100, 0.03) 0px, rgba(0, 180, 100, 0.03) 1px, transparent 1px, transparent 3px);
}

.container {
    max-width: 1100px;
    width: 100%;
}

/* ================================================================
   ШАПКА
   ================================================================ */
.header {
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a7a5a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #2a7a5a, #2a7a5a 8px, transparent 8px, transparent 12px);
}

.logo h1 {
    font-size: 30px;
    font-weight: 600;
    color: #0d2a1f;
    letter-spacing: -0.5px;
}
.logo h1 span {
    color: #1a7a4a;
}
.logo .sub {
    font-size: 13px;
    font-weight: 300;
    color: #3a5a4a;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.header-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    background: #d4e0d8;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #0d2a1f;
    border-left: 3px solid #1a8a4a;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge i {
    color: #1a8a4a;
    animation: blink 1.2s step-end infinite;
}

.server-counter {
    background: #0d2a1f;
    padding: 8px 22px 8px 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #1a7a4a;
    box-shadow: 0 0 20px rgba(26, 122, 74, 0.15);
}
.server-counter i {
    color: #1a8a4a;
    font-size: 20px;
}
.server-counter .label {
    color: #8aaa9a;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.server-counter .count {
    color: #66ddaa;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 20px rgba(26, 138, 74, 0.3);
}
.server-counter .count span {
    font-size: 14px;
    font-weight: 300;
    color: #5a8a7a;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ================================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА
   ================================================================ */
.lang-switch {
    display: flex;
    gap: 4px;
    background: #d4e0d8;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #b8ccc0;
}
.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #3a5a4a;
    cursor: pointer;
    transition: 0.2s;
}
.lang-btn.active {
    background: #ffffff;
    color: #0d2a1f;
    box-shadow: 0 2px 8px rgba(0, 20, 10, 0.08);
}
.lang-btn:hover:not(.active) {
    color: #0d2a1f;
}

/* ================================================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ================================================================ */
.section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #0d2a1f;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}
.section-title i {
    color: #1a7a4a;
    font-size: 18px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(90deg, #1a7a4a, #1a7a4a 6px, transparent 6px, transparent 10px);
    margin-left: 8px;
}

.lag-line {
    display: block;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #1a8a4a, #1a8a4a 4px, transparent 4px, transparent 8px);
    margin: 12px 0 8px 0;
    opacity: 0.3;
    animation: lagScroll 8s linear infinite;
}
@keyframes lagScroll {
    0% { background-position: 0 0; }
    100% { background-position: 24px 0; }
}

.prompt {
    color: #1a7a4a;
    font-weight: 500;
    margin-right: 6px;
}
.prompt::before {
    content: '>';
    margin-right: 6px;
    color: #1a8a4a;
    font-weight: 700;
}

.hl {
    background: #d4ece0;
    padding: 0 8px;
    border-radius: 3px;
    color: #0a4a2a;
    font-weight: 500;
}

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #1a8a4a;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 4px;
}

/* ================================================================
   СЕТКА САЙТОВ
   ================================================================ */
.site-grid {
    background: #f2f6f4;
    padding: 18px 22px;
    border-radius: 6px;
    border: 1px solid #c0d0c8;
    border-left: 4px solid #1a8a4a;
    box-shadow: inset 0 0 30px rgba(0, 80, 40, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}
.site-group {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}
.site-group .label {
    font-weight: 500;
    color: #2a5a4a;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    opacity: 0.7;
}
.site-group a {
    color: #0d2a1f;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1.5px dashed #8aaa9a;
    transition: 0.2s;
    padding: 0 2px;
}
.site-group a:hover {
    border-bottom-color: #1a8a4a;
    color: #0a3a2a;
    background: #e0ece4;
}
.tag {
    background: #d4e0d8;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #1a4a3a;
    letter-spacing: 0.3px;
    line-height: 20px;
}

/* ================================================================
   СОЦСЕТИ
   ================================================================ */
.social-grid {
    background: #f2f6f4;
    padding: 18px 22px;
    border-radius: 6px;
    border: 1px solid #c0d0c8;
    border-left: 4px solid #1a8a4a;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: #ffffff;
    border: 1.5px solid #b8ccc0;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #0d2a1f;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 20, 10, 0.04);
    cursor: pointer;
}
.social-btn i {
    font-size: 20px;
    transition: 0.2s;
}
.social-btn .btn-label {
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4a7a6a;
    margin-right: 2px;
}

.social-btn.tg {
    border-color: #66b0d0;
    background: #f0f8fe;
}
.social-btn.tg i { color: #0088cc; }
.social-btn.tg:hover {
    background: #dceef9;
    border-color: #0088cc;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.12);
    transform: translateY(-2px);
}

.social-btn.max-channel {
    border-color: #a29bfe;
    background: #f5f3ff;
}
.social-btn.max-channel i { color: #6c5ce7; }
.social-btn.max-channel:hover {
    background: #ede8ff;
    border-color: #6c5ce7;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.12);
    transform: translateY(-2px);
}

.social-btn.max-contact {
    border-color: #55c7a0;
    background: #f0fcf7;
}
.social-btn.max-contact i { color: #00b894; }
.social-btn.max-contact:hover {
    background: #ddf5ec;
    border-color: #00b894;
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.12);
    transform: translateY(-2px);
}

/* ================================================================
   АККОРДЕОН
   ================================================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: #f2f6f4;
    border-radius: 4px;
    border: 1px solid #c8d8d0;
    border-left: 4px solid #1a8a4a;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0, 40, 20, 0.04);
}
.faq-item:hover {
    border-left-color: #0d6a3a;
    background: #f0f6f2;
}
.faq-item.active .faq-answer {
    max-height: 1200px;
    opacity: 1;
    padding: 0 22px 22px 22px;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    color: #0d2a1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    gap: 14px;
}
.faq-question i:first-child {
    color: #1a7a4a;
    font-size: 18px;
    min-width: 24px;
}
.faq-question .arrow {
    font-size: 14px;
    color: #4a7a6a;
    transition: 0.3s;
    margin-left: auto;
}
.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
    color: #0d6a3a;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 22px;
    transition: max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.35s ease,
                padding 0.3s ease;
    color: #1a3a2f;
    line-height: 1.8;
    font-size: 14px;
    font-weight: 300;
}
.faq-answer strong {
    color: #0d2a1f;
    font-weight: 600;
}

/* ================================================================
   СЕТКИ УСЛУГ И ТАРИФОВ
   ================================================================ */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
    margin-top: 6px;
}
.service-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed #d0ddd5;
}
.service-item i {
    color: #1a7a4a;
    width: 20px;
    font-size: 14px;
}
.service-item .price {
    color: #0d2a1f;
    font-weight: 500;
    margin-left: auto;
    white-space: nowrap;
}

.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    margin-top: 6px;
}
.terms-grid .term {
    padding: 3px 0;
    border-bottom: 1px dashed #d0ddd5;
}
.terms-grid .term i {
    color: #1a7a4a;
    width: 18px;
    margin-right: 6px;
}

.contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 4px;
}
.contact-line a {
    color: #0d3a2a;
    text-decoration: none;
    border-bottom: 1px dotted #8aaa9a;
}
.contact-line a:hover {
    border-bottom-color: #1a8a4a;
}
.legal-tag {
    background: #d4e0d8;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #0d3a2a;
    display: inline-block;
    line-height: 22px;
}

/* ================================================================
   КАРТОЧКИ ПРИЛОЖЕНИЙ
   ================================================================ */
.app-card {
    background: #e8f0ec;
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 4px solid #1a8a4a;
    margin-top: 8px;
}
.app-card .app-name {
    font-weight: 600;
    font-size: 16px;
    color: #0d2a1f;
}
.app-card .app-name i {
    color: #1a7a4a;
    margin-right: 8px;
}
.app-card .app-desc {
    font-size: 13px;
    color: #1a3a2f;
    margin-top: 4px;
}
.app-card .app-desc i {
    color: #1a7a4a;
    width: 18px;
}
.app-card .initiative-tag {
    display: inline-block;
    background: #d4e0d8;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #0d3a2a;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* ================================================================
   ФУТЕР
   ================================================================ */
.footer {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #c8d8d0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #3a5a4a;
    font-weight: 300;
    letter-spacing: 0.5px;
}
.footer i {
    color: #1a7a4a;
    margin-right: 4px;
}

/* ================================================================
   МУЛЬТИЯЗЫЧНОСТЬ
   ================================================================ */
.lang-content { display: none; }
.lang-content.active { display: block; }
.lang-content-inline { display: none; }
.lang-content-inline.active { display: inline; }

/* ================================================================
   АДАПТАЦИЯ ПОД ПК
   ================================================================ */
@media (min-width: 1024px) {
    body { padding: 50px 40px; }
    .container { max-width: 1100px; }
    .logo h1 { font-size: 36px; }
    .faq-question { font-size: 16px; padding: 18px 26px; }
    .faq-answer { font-size: 15px; padding: 0 26px; }
    .faq-item.active .faq-answer { padding: 0 26px 24px 26px; }
    .site-grid { padding: 20px 28px; gap: 8px 32px; }
    .social-grid { padding: 20px 28px; gap: 16px 24px; }
    .social-btn { padding: 12px 28px; font-size: 14px; }
    .service-grid { grid-template-columns: 1fr 1fr; gap: 8px 30px; }
    .terms-grid { grid-template-columns: 1fr 1fr; }
    .server-counter .count { font-size: 32px; }
    .badge { padding: 10px 24px; font-size: 14px; }
}

/* ================================================================
   АДАПТАЦИЯ ПОД ТЕЛЕФОН
   ================================================================ */
@media (max-width: 700px) {
    body { padding: 20px 12px; }
    .header { flex-direction: column; align-items: flex-start; }
    .header-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .header-stats { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .lang-switch { order: 10; width: 100%; justify-content: flex-start; }
    .logo h1 { font-size: 24px; }
    .server-counter .count { font-size: 22px; }
    .faq-question { font-size: 14px; padding: 14px 16px; }
    .faq-answer { font-size: 13px; }
    .site-grid { flex-direction: column; gap: 10px; padding: 14px 16px; }
    .social-grid { flex-direction: column; gap: 10px; padding: 14px 16px; }
    .social-btn { justify-content: center; padding: 10px 18px; font-size: 12px; }
    .service-grid { grid-template-columns: 1fr; }
    .terms-grid { grid-template-columns: 1fr; }
    .server-counter .label { font-size: 10px; }
    .server-counter { padding: 6px 14px 6px 12px; gap: 8px; }
    .server-counter i { font-size: 16px; }
    .server-counter .count { font-size: 20px; }
}