:root {
    --primary-color: #ff6b35;
    --accent-color: #f7931e;
    --dark-gray: #1a1a1a;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --text-dark: #2d3436;
    --text-light: #636e72;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.15);
    padding: 0.75rem 0;
}

.navbar-brand .navbar-item {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-item {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.navbar-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff8f5 0%, #fff0e8 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-section.with-bg {
    background: url('images/hero.JPEG') center center / cover no-repeat;
    position: relative;
}

.hero-section.with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 248, 245, 0.92) 0%, rgba(255, 240, 232, 0.88) 100%);
}

.hero-section.with-bg > .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
    color: white;
}

/* About Section */
#about {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding-top: 4rem;
}

#about .card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Content Section */
.content-section {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--medium-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.content h2 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--medium-gray);
}

.content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.content ul,
.content ol {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.content a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.content a:hover {
    color: var(--accent-color);
}

/* Cards */
.card {
    border-radius: 16px;
    border: 1px solid var(--medium-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-content {
    padding: 2rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--medium-gray);
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.12);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.pricing-card.featured::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-title {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.pricing-period {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--primary-color);
    font-size: 1rem;
}

.btn-pricing {
    width: 100%;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-color: transparent;
}

.pricing-card.featured .btn-pricing {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-color: transparent;
}

.pricing-card.featured .btn-pricing:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #fff8f5 0%, #ffe8d6 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Notification Box */
.notification-box {
    background: linear-gradient(135deg, #fff8f5 0%, #fff0e8 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.notification-box strong {
    color: var(--primary-color);
}

.notification-box.info {
    border-left-color: var(--accent-color);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.payment-method:hover {
    background: linear-gradient(135deg, #fff8f5 0%, #fff0e8 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Contact Info */
.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

footer a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

footer hr {
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

footer .copyright {
    color: rgba(255, 255, 255, 0.5);
}

/* Navbar CTA + mobile burger */
.navbar-burger {
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

.navbar-burger span {
    background: white;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    margin: 0 0.5rem;
    font-weight: 600;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ── Post cards (channel preview + full feed) ──────────────── */
.post-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1);
}

.post-card-body {
    padding: 1.25rem;
    flex: 1;
}

.post-card-meta {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-text {
    color: var(--text-dark);
    line-height: 1.6;
    word-break: break-word;
}

.post-text a {
    color: var(--primary-color);
}

/* Home «Последние публикации» preview: clamp long posts so 10 cards stay compact.
   Scoped to #channels-preview so the full-text feed on channels.html is untouched. */
#channels-preview .post-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Full post (channels page) */
.post-card-full {
    margin-bottom: 1.5rem;
}

.post-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--medium-gray);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.post-author i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    padding: 0 1.25rem 1.25rem;
}

.post-media-img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* ── Channel tabs ──────────────────────────────────────────── */
.channel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--medium-gray);
    padding-bottom: 0;
}

.channel-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.channel-tab:hover {
    color: var(--primary-color);
}

.channel-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.channel-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ── Training cards ────────────────────────────────────────── */
.training-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1);
}

.training-cover {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.training-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.training-card-title {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.training-card-desc {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.training-meta-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.training-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.training-meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.training-meta-item .meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.training-meta-item .meta-value {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
}

.training-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.training-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tag-sold-out {
    color: #e74c3c;
    font-weight: 600;
}

/* preview meta list inside feature-card (home) */
.training-meta {
    color: var(--text-light);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.training-meta p {
    margin-bottom: 0.25rem;
}

.training-meta i {
    color: var(--primary-color);
    margin-right: 0.4rem;
    width: 16px;
}

/* ── Help / feedback form ──────────────────────────────────── */
.feedback-state {
    text-align: center;
    padding: 1.5rem 1rem;
}

.feedback-state-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feedback-state-text {
    color: var(--text-light);
    font-size: 1.05rem;
}

.help.is-danger {
    color: #e74c3c;
}

/* ── Instructions page ─────────────────────────────────────── */
.instr-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.instr-nav a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.instr-nav a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.instr-h-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Step cards (PWA install) */
.step-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.step-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-title {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.step-list {
    color: var(--text-light);
    padding-left: 1.25rem;
    line-height: 1.7;
}

.step-list li {
    margin-bottom: 0.5rem;
}

.step-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.step-note i {
    color: var(--accent-color);
}

/* Auth method cards */
.auth-card {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.auth-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.1);
}

.auth-icon {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.auth-title {
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.auth-desc {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Benefits grid (telegram) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 1.25rem;
}

.benefit-item > i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.15rem;
}

.benefit-item h4 {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Manuals accordion */
.manual-accordion {
    margin-top: 1.5rem;
}

.manual-item {
    background: white;
    border: 1px solid var(--medium-gray);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.manual-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.manual-header:hover {
    background: var(--light-gray);
}

.manual-item.open .manual-header {
    color: var(--primary-color);
}

.manual-chevron {
    transition: transform 0.25s ease;
    color: var(--text-light);
}

.manual-item.open .manual-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.manual-body {
    padding: 0 1.5rem 1.5rem;
}

.manual-content {
    color: var(--text-light);
    line-height: 1.7;
}

.manual-content h1,
.manual-content h2,
.manual-content h3 {
    color: var(--dark-gray);
    margin-top: 1rem;
}

.manual-content img {
    max-width: 100%;
    border-radius: 10px;
}

.manual-content a {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .training-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .training-card-footer .btn-pricing {
        text-align: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
