/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f6fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #2c6b9e;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1a4a6e;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

a .logo-img {
    height: 90px !important;
    width: auto !important;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
}

.nav a:hover {
    color: #2c6b9e;
}

.nav-count {
    font-size: 13px;
    color: #999;
    background: #f0f2f7;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.breadcrumbs {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

.breadcrumbs a {
    color: #2c6b9e;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #2c6b9e, #1a4a6e);
    color: #fff;
    padding: 50px 0;
}

.hero-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.hero-text {
    flex: 7;
    min-width: 0;
}

.hero-text h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 680px;
}

/* Hero side block */
.hero-side {
    flex: 3;
    min-width: 240px;
    max-width: 320px;
}

.hero-side-link {
    display: block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.hero-side-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-side-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-side-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: block;
    object-fit: contain;
    border-radius: 14px;
}

.hero-side-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-side-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 14px;
}

.hero-side-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #ffd700;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.4);
    padding-bottom: 2px;
}

/* Search */
.search-form {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    width: 560px;
    max-width: 90%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #ffd700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-search {
    background: #ffd700;
    color: #333;
}

.btn-search:hover {
    background: #ffc800;
    color: #333;
}

.btn-reset {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-reset:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* ========== ДЕМО-КНОПКА ========== */
.btn-demo-flash {
    display: block;
    width: 100%;
    padding: 16px 28px;
    margin-bottom: 15px;
    border-radius: 6px;
    text-decoration: none;
    background: #ffd700;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-demo-flash:hover {
    background: #e6c200;
    color: #000;
    text-decoration: none;
}

.demo-note {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: -10px 0 15px 0;
    text-align: center;
    padding: 0 5px;
}

/* ========== ЧТО ВХОДИТ В КУРС ========== */
.course-includes {
    background: linear-gradient(135deg, #f8f9ff, #eef2ff);
    border: 1px solid #d0d9f5;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 18px;
}

.course-includes h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.includes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.includes-list li:last-child {
    border-bottom: none;
}

.include-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* ========== End demo/includes ========== */

.btn-order {
    display: block;
    width: 100%;
    padding: 16px 28px;
    border-radius: 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-order:hover {
    background: #c0392b;
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* Alphabet */
.alphabet {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.alphabet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.alpha-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}

.alpha-link:hover {
    background: #e8f0f8;
    color: #2c6b9e;
}

.alpha-link.active {
    background: #2c6b9e;
    color: #fff;
}

/* Catalog */
.catalog {
    padding: 40px 0;
    flex: 1;
}

.catalog-header {
    margin-bottom: 20px;
}

.catalog-count {
    font-size: 16px;
    color: #666;
}

.catalog-count strong {
    color: #333;
}

/* Catalog Cards */
.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.profession-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    padding: 0;
    transition: all 0.2s;
    overflow: hidden;
}

.profession-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.08);
    border-color: #c8cedb;
}

.card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6b7b8d;
    background: #f0f2f7;
    padding: 6px 14px;
    border-radius: 0 0 6px 6px;
    align-self: flex-start;
    margin: 0 0 12px 16px;
}

.profession-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2634;
    line-height: 1.4;
    padding: 0 16px;
    margin-bottom: 6px;
    min-height: 44px;
}

.card-desc {
    font-size: 12px;
    color: #6a7a8a;
    line-height: 1.4;
    padding: 0 16px;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.card-include-item {
    font-size: 12px;
    color: #5a6a7a;
    background: #f5f7fa;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #eef0f5;
    margin-top: auto;
}

.profession-price {
    font-size: 20px;
    font-weight: 800;
    color: #e74c3c;
}

.profession-link {
    font-size: 14px;
    font-weight: 600;
    color: #2c6b9e;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #2c6b9e;
    color: #2c6b9e;
}

.page-link.active {
    background: #2c6b9e;
    color: #fff;
    border-color: #2c6b9e;
}

.page-dots {
    padding: 0 5px;
    color: #aaa;
}

/* Back link */
.back-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #f0f2f7;
    border: 1px solid #d0d3da;
    border-radius: 6px;
    padding: 8px 18px;
    margin-bottom: 14px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.back-link:hover {
    background: #e2e5ec;
    border-color: #b8bcc6;
    color: #333;
}

/* Course Page */
.course-page {
    padding: 40px 0;
    flex: 1;
}

.course-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.course-main h1 {
    font-size: 32px;
    color: #222;
    margin-bottom: 20px;
}

.course-meta {
    margin-bottom: 25px;
}

.course-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #e8f0f8;
    color: #2c6b9e;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.course-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.course-content h2 {
    font-size: 24px;
    color: #222;
    margin: 25px 0 15px;
}

.course-content h3 {
    font-size: 20px;
    color: #333;
    margin: 20px 0 12px;
}

.course-content ul {
    margin: 10px 0 20px;
    padding-left: 25px;
}

.course-content ul li {
    margin-bottom: 8px;
    color: #555;
}

.course-seo-text {
    background: #f9f9fc;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.course-seo-text h3 {
    color: #2c6b9e;
    margin-bottom: 10px;
}

.course-seo-text p {
    margin-bottom: 14px;
}

.seo-lms-rec {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1a4a6e, #2c6b9e);
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
}

.seo-lms-label {
    font-weight: 700;
    color: #ffd700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-lms-link {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.seo-lms-link:hover {
    color: #ffd700;
}

.seo-lms-text {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* Sidebar */
.sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.sidebar-price {
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.price-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #e74c3c;
}

.sidebar-features {
    list-style: none;
    margin-bottom: 20px;
}

.sidebar-features li {
    padding: 8px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-features li:last-child {
    border-bottom: none;
}

.sidebar-share {
    margin-top: 20px;
    text-align: center;
}

.sidebar-share p {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.sidebar-share a {
    display: inline-block;
    margin: 0 8px;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    font-size: 24px;
    color: #222;
    margin-bottom: 10px;
}

.modal-course {
    color: #666;
    margin-bottom: 25px;
    padding: 10px 15px;
    background: #f5f6fa;
    border-radius: 6px;
}

/* Order Form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2c6b9e;
}

.form-note {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* Request Bar (inside catalog) */
.request-bar {
    margin: 20px 0 30px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1a4a6e, #2c6b9e);
    border-radius: 10px;
}

.request-bar-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.request-bar-text {
    flex-shrink: 0;
}

.request-bar-text h2 {
    font-size: 22px;
    color: #fff;
    margin: 0 0 4px 0;
}

.request-bar-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.request-bar-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.request-bar-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.request-bar-fields input {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
}

.request-bar-comment {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    resize: vertical;
}

.btn-request-bar {
    padding: 12px 28px;
    border-radius: 6px;
    background: #ffd700;
    color: #1a2634;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-request-bar:hover {
    background: #ffc800;
}

/* Contacts Page */
.contacts-page {
    padding: 50px 0;
    flex: 1;
}

.contacts-page h1 {
    font-size: 32px;
    color: #1a2634;
    text-align: center;
    margin-bottom: 8px;
}

.contacts-subtitle {
    text-align: center;
    color: #6a7a8a;
    font-size: 16px;
    margin-bottom: 40px;
}

.contacts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.contact-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.contact-icon {
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 16px;
    color: #888;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 22px;
    font-weight: 700;
    color: #1a2634;
}

.contact-value:hover {
    color: #2c6b9e;
}

.contacts-note {
    max-width: 600px;
    margin: 0 auto;
    background: #f5f7fa;
    border-radius: 10px;
    padding: 30px;
}

.contacts-note p {
    color: #444;
    margin-bottom: 12px;
}

.contacts-note ul {
    list-style: none;
    padding: 0;
}

.contacts-note ul li {
    padding: 6px 0;
    color: #555;
}

.contacts-note ul li::before {
    content: "— ";
    color: #2c6b9e;
    font-weight: 700;
}

.contacts-response {
    margin-top: 15px;
    color: #888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .request-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    .request-bar-form input {
        min-width: 100%;
    }
    .btn-request-bar {
        width: 100%;
    }
}

/* Order result */
.order-result {
    padding: 80px 0;
    flex: 1;
}

.alert {
    text-align: center;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.alert h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.alert p {
    font-size: 16px;
    margin-bottom: 10px;
}

.alert ul {
    list-style: none;
    margin-bottom: 20px;
}

.alert ul li {
    color: #e74c3c;
    margin-bottom: 5px;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.alert-success h2 {
    color: #2e7d32;
}

.alert-error {
    background: #fbe9e7;
    border: 1px solid #ef9a9a;
}

.alert-error h2 {
    color: #c62828;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    margin-bottom: 25px;
}

/* Similar courses */
.similar-courses {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 0;
}

.similar-title {
    font-size: 24px;
    color: #222;
    margin-bottom: 25px;
    text-align: center;
}

/* SEO text block */
.seo-text {
    background: #fff;
    padding: 50px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.seo-text h2 {
    font-size: 22px;
    color: #222;
    margin-bottom: 20px;
}

.seo-text h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 15px;
}

.seo-text p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.7;
}

.seo-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.seo-text ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.seo-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c6b9e;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #222;
    color: #888;
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-side {
        max-width: 100%;
        width: 100%;
    }

    .hero h1 {
        font-size: 26px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .professions-grid {
        grid-template-columns: 1fr;
    }
    
    .course-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        position: static;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav a:first-child {
        margin-left: 0;
    }

    .seo-text {
        padding: 30px 15px;
    }

    .seo-text h2 {
        font-size: 18px;
    }
}
