body {
    font-family: 'Unbounded';
    margin: 0;
    padding: 0;
    background-color: #f1f3f4;
    color: #151515;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
  }
  
  p a {
    color: #2563eb;
    text-decoration: none;
}

  p a:hover  {
      text-decoration: underline;
  }
  
  header a {
    text-decoration: none;
    color: inherit;
  }
  header a:hover {
    text-decoration: none;
    color: inherit;
  } 

  caption {
    text-align: left;
    padding: 15px 10px;
    font-size: 17px;
  }




button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

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

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: opacity 0.2s;
}


.btn-primary {
    background-color: #2563eb;
    color: white;
}

#top-banner {
    width: 100%;
    background-color: #000;
}

.banner-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* === HEADER === */
.site-header {
    background-color: #2563eb;
    padding: 20px 0;
    box-shadow: 0px 10px 40px 0px rgba(109, 141, 173, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-wrapper {
    position: relative;
    width: 182px;
    height: 40px;
}

.logo-part {
    position: absolute;
}

.vertical-divider {
    width: 1px;
    height: 20px;
    background-color: #ffffff;
    margin: 0 20px;
}

.main-nav {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    margin-left: 40px;
}

.nav-link {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.icon-group img {
    width: 24px;
    height: 24px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#article-hero {
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    padding: 30px 40px;
}

.hero-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7f8c8d;
    font-size: 12px;
    flex-wrap: wrap;
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #2563eb;
    color: white;
    padding: 5px 13px;
    border-radius: 5px;
    font-size: 14px;
    border: 1px solid #2563eb;
}

.tag.outline {
    background-color: transparent;
    color: #2563eb;
}

.hero-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000;
    line-height: 1.5;
}

ol, ul, li {
    line-height: 1.6;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 18px;
    color: #5a5a5a;
    margin-bottom: 30px;
    line-height: 1.4;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    color: #000;
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #474747;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-action {
    min-width: 220px;
}

/* Найдите и замените стили для кнопки */
.to-course-btn {
    width: auto;
    min-width: 150px;
    font-size: 14px;
    border-radius: 10px;
    padding: 10px 20px;
  }
  
  .price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
  }

  @media (max-width: 768px)  {
  .price-block {
    margin: 0;
  }
}
  
  /* Адаптивность для мобильных */
  @media (max-width: 768px) {
    .to-course-btn {
      width: 90%;
      font-size: 14px;
      padding: 12px 20px;
    }
    

  }

.price {
    color: #7f8c8d;
    font-size: 16px;
}

#main-content {
    padding-bottom: 20px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-body {
    flex: 1;
    min-width: 0;
}

.article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    padding: 40px;
}

.sidebar {
    width: 277px;
    flex-shrink: 0;
    position: -webkit-sticky; 
    position: sticky;
    top: 100px; 
    height: fit-content; 
    align-self: flex-start;
  }
  
  .visualr img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
  }

/* TOC Styles */
.toc-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    padding: 20px;
    margin-bottom: 40px;
}

.toc-container h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 15px;
}

.toc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(0, 0, 0, 0.6) ;
    font-size: 14px;
    cursor: pointer;

}



.toc-list li:hover {
    color: #2563eb;
}

/* Text Styles */
.text-block {
    margin: 20px 0;
}

.text-block h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.text-block p {
    color: #000;
    margin-bottom: 20px;
    line-height: 1.6;
}

.highlight-text {
    color: #2e3246;
    font-weight: 500;
}

/* CTA Block */
.cta-block {
    background: linear-gradient(135deg, #2563eb 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.cta-content h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 30px;
}

.cta-btn {
    background-color: white;
    color: #2b3990;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}


#comments-section {
    padding-bottom: 40px;
}

.comments-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    padding: 40px;
}

.comments-card h2 {
    margin-top: 0;
    margin-bottom: 5px;
}

.required-note {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #9ca3af;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    background-color: #fefeff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    font-family: inherit;
}

.textarea {
    height: 180px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.custom-checkbox {
    width: 13px;
    height: 13px;
    border: 1px solid #767676;
    border-radius: 2px;
}

.form-check label {
    color: #7f8c8d;
    font-size: 14px;
}

.captcha-placeholder {
    margin-bottom: 20px;
    width: 302px;
    height: 76px;
    background-color: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.recaptcha-mock {
    display: flex;
    align-items: center;
    width: 100%;
}

.recaptcha-check {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: white;
    margin-right: 12px;
}

.recaptcha-logo {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #555;
}

.submit-btn {
    width: 100%;
    height: 45px;
    font-size: 16px;
}

#read-also {
    padding-bottom: 60px;
}
.read-also-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 207px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header h3 {
    font-size: 20px;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 52px;
}


@media (max-width: 768px) {
    .card-header h3 {
        font-size: 18px;
        min-height: 46.8px; 
    }
}

@media (max-width: 480px) {
    .card-header h3 {
        font-size: 16px;
        min-height: 41.6px; 
    }
}

.card-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 63px;
}

.card-price {
    color: #2563eb;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-btn {
    flex: 1;
}

.icon-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: #2563eb;
}

.show-more-container {
    display: flex;
    justify-content: center;
}

.show-more-btn {
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* === FOOTER === */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 0.8fr 1.2fr; 
    gap: 30px; 
    margin-bottom: 60px;
}

.footer-logo {
    width: 186px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 320px;
}



.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links img {
    width: 20px;
    height: 20px;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    display: block;
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2563eb;
}

.footer-link.sub-link {
    color: #d2d2d2;
    font-size: 14px;
}

.footer-link.sub-link:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    color: #7e7e7e;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.btn-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 20px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
}


/* Tablet Large */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    
        margin: 0 auto;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Tablet Small (max-width: 768px) */
@media (max-width: 768px) {

    /* Header */
    .site-header {
        padding: 15px 0;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .vertical-divider {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2563eb;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        margin-left: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav .nav-link {
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions .icon-group {
        display: none;
    }

    /* Hero Section */
    .hero-card {
        padding: 20px;
    }

    .hero-main {
        flex-direction: column;
        gap: 20px;
    }

    .hero-action {
        width: 100%;
        min-width: auto;
    }




    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tags {
        gap: 8px;
    }

    .tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* Article Card */
    .article-card {
        padding: 25px;
    }

    .text-block h2 {
        font-size: 20px;
    }

    .text-block h3 {
        font-size: 18px;

    }
    .text-block h4 {
        font-size: 16px;
      
    }


    .text-block p {
        font-size: 14px;
    }

    /* CTA Block */
    .cta-block {
        padding: 30px;
    }

    .cta-content h3 {
        font-size: 20px;
    }

    .cta-content p {
        font-size: 14px;
    }

    .cta-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* FAQ */
    .faq-section h2 {
        font-size: 20px;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px 20px;
        font-size: 12px;
    }

    /* Comments */
    .comments-card {
        padding: 25px;
    }

    .comments-card h2 {
        font-size: 20px;
    }

    .form-input {
        padding: 10px;
        font-size: 14px;
    }

    .textarea {
        height: 150px;
    }

    .captcha-placeholder {
        width: 100%;
        max-width: 302px;
    }

    .submit-btn {
        height: 42px;
        font-size: 14px;
    }

    /* Read Also */
    .section-title {
        font-size: 20px;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 15px;
    }

    .card-header h3 {
        font-size: 18px;
    }

    .card-desc {
        font-size: 13px;
    }

    .card-btn {
        font-size: 13px;
        padding: 8px 15px;
    }

    .icon-btn {
        width: 42px;
        height: 42px;
    }



    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

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

    .footer-logo {
        margin: 0 auto 20px auto;
    }

    .footer-desc {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Header */
    .site-header {
        padding: 10px 0;
    }

    .logo-wrapper {
        width: 140px;
        height: 35px;
    }

    /* Hero Section */
    .hero-card {
        padding: 15px;
        border-radius: 8px;
    }

    h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .meta-info {
        gap: 10px;
    }

    .stats {
        gap: 15px;
    }

    .stat-item {
        font-size: 12px;
    }

    .stat-item img {
        width: 14px;
        height: 14px;
    }

    .tags {
        gap: 6px;
    }

    .tag {
        font-size: 12px;
        padding: 10px 15px;
    }

    /* Article Card */
    .article-card {
        padding: 20px;
        border-radius: 8px;
    }

    .text-block {
        margin-bottom: 30px;
    }

    .text-block h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .text-block h3 {
        font-size: 16px;

    }
    .text-block h4 {
        font-size: 14px;
      
    }

    .text-block p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* CTA Block */
    .cta-block {
        padding: 25px;
        border-radius: 8px;
    }

    .cta-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .cta-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .cta-btn {
        font-size: 13px;
        padding: 10px 18px;
    }

    /* FAQ */
    .faq-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .faq-question {
        padding: 15px;
        font-size: 14px;
    }

    .faq-question img {
        width: 18px;
        height: 18px;
    }

    .faq-answer {
        padding: 0 15px 15px;
        font-size: 13px;
    }

    /* Comments */
    .comments-card {
        padding: 20px;
        border-radius: 8px;
    }

    .comments-card h2 {
        font-size: 18px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-input {
        padding: 8px;
        font-size: 13px;
    }

    .textarea {
        height: 120px;
    }

    .form-check label {
        font-size: 13px;
    }

    .captcha-placeholder {
        height: 70px;
    }

    .recaptcha-check {
        width: 24px;
        height: 24px;
    }

    .submit-btn {
        height: 40px;
        font-size: 13px;
    }

    /* Read Also */
    #read-also {
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .cards-grid {
        gap: 15px;
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 12px;
    }

    .card-header h3 {
        font-size: 16px;
    }

    .card-desc {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .card-price {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .card-actions {
        gap: 8px;
    }

    .card-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .icon-btn img {
        width: 18px;
        height: 18px;
    }

    .show-more-btn {
   
        font-size: 13px;
    }

    /* Footer */
    .site-footer {
        padding: 40px 0 15px 0;
    }

    .footer-grid {
        gap: 25px;
        margin-bottom: 40px;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-desc {
        font-size: 13px;
    }

    .footer-link {
        font-size: 14px;
    }

    .footer-link.sub-link {
        font-size: 13px;
    }

    .btn-outline {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .site-header {
        padding: 8px 0;
    }

    .logo-wrapper {
        width: 120px;
        height: 30px;
    }

    .hero-card {
        padding: 12px;
    }

    h1 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 13px;
    }

    .article-card {
        padding: 15px;
    }

    .text-block h2 {
        font-size: 16px;
    }

    .text-block p {
        font-size: 12px;
    }

    .cta-block {
        padding: 20px;
    }

    .cta-content h3 {
        font-size: 16px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-answer {
        padding: 0 12px 12px;
        font-size: 12px;
    }

    .comments-card {
        padding: 15px;
    }

    .card-image {
        height: 140px;
    }

    .card-header h3 {
        font-size: 15px;
    }

    .footer-logo {
        width: 130px;
    }
}

/* Print Styles */
@media print {

    .site-header,
    #top-banner,
    .sidebar,
    #comments-section,
    #read-also,
    .header-actions,
    .show-more-container {
        display: none !important;
    }

    .content-wrapper {
        display: block;
    }

    .article-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background-color: #ffffff;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .btn-primary,
    .tag,
    .card-btn {
        border: 2px solid #ffffff;
    }

    .article-card,
    .faq-item,
    .card {
        border: 2px solid #000000;
    }

    .nav-link {
        text-decoration: underline;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}




/* FAQ */
.faq-section h2 {
    margin-bottom: 20px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    line-height: 1.5;
}


.faq-question span {
    color: #000;
    transition: color 0.3s ease;
    flex: 1;
    padding-right: 15px;
}


.faq-question img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) saturate(100%);
}

.faq-item.open .faq-question span {
    color: #2563eb;
}

.faq-item.open .faq-question img {
    transform: rotate(180deg);

    filter: brightness(0) saturate(100%) invert(29%) sepia(97%) saturate(748%) hue-rotate(189deg) brightness(94%) contrast(95%);
}

.faq-answer {
    padding: 0 20px 20px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    display: none;

}

.faq-item.open .faq-answer {
    display: block;
}


/* TOC */
.toc-box {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.05);
    }
    
    .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 700;
    }
    
    .toc-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 15px;
    cursor: pointer;
    }
    
    .toc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(0, 0, 0, 0.6);
    }

    .main-nav ul {
        display: flex;
        gap: 30px;
        flex-grow: 1;
        color: white;
        list-style: none;
        font-weight: 400;
    }
    #header {
        position: sticky;
        top: 0;
        z-index: 1000;
      }

      /* комменты начало */
.comments-wrapper #commentform p {
    margin-bottom: 20px;
  }
  
  
  .comments-wrapper #commentform input[type="text"],
  .comments-wrapper #commentform input[type="email"],
  .comments-wrapper #commentform input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #fefeff;
    box-sizing: border-box;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    color: #151515;
    margin-top: 5px;
  }
  
  .comments-wrapper #commentform input[type="text"]:focus,
  .comments-wrapper #commentform input[type="email"]:focus,
  .comments-wrapper #commentform input[type="url"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  
  .comments-wrapper #commentform textarea#comment {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #fefeff;
    box-sizing: border-box;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    color: #151515;
    height: 120px;
    resize: vertical;
    display: block; 
    margin-top: 5px;
  }
  
  .comments-wrapper #commentform textarea#comment:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  
  .comments-wrapper #commentform input[type="submit"] {
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 30px;
    border: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto; 
  }
  
  .comments-wrapper #commentform input[type="submit"]:hover {
    background-color: #1d4ed8;

    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }
  
  
  .comments-wrapper #commentform p.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6b7280;
  }
  
  .comments-wrapper #commentform p.comment-form-cookies-consent input {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }
  
  
  .comments-wrapper #commentform label {
    font-weight: 600;
    color: #151515;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
  }
  
  #comments-section {
    padding: 40px 0;
  }
  
  .comments-wrapper {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    width: 100%;
  }
  
  
  #comments-section {
    padding-bottom: 20px;
  }
  
  .comments-wrapper {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
  }
  
  .comments-header {
    margin-bottom: 24px;
  }
  
  .comments-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .comments-header p {
    font-size: 14px;
    color: #7f8c8d;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #9ca3af;
    font-size: 14px;
  }
  
  .form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #fefeff;
    box-sizing: border-box;
    font-family: 'Unbounded';
    font-size: 14px;
  }
  
  .form-input:focus {
    outline: none;
    border-color: #2563eb;
  }
  
  .textarea {
    height: 120px;
    resize: vertical;
  }
  
  .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .checkbox-wrapper {
    width: 20px;
    height: 20px;
    border: 1px solid #767676;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .checkbox-wrapper input {
    width: 14px;
    height: 14px;
    cursor: pointer;
  }
  
  .captcha-placeholder {
    margin-bottom: 20px;
  }
  
  .captcha-box {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    padding: 10px 20px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    width: 300px;
    justify-content: space-between;
  }
  
  .captcha-check {
    width: 24px;
    height: 24px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: white;
  }
  
  .captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #555;
  }
  
  .captcha-logo img {
    width: 32px;
  }
  
  .submit-btn {
    width: 100%;
  }
  
  /* комменты конец */



  /* === КНОПКА НАВЕРХ === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2563eb;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  }
  
  .scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .scroll-to-top:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
  }
  
  .scroll-to-top:active {
    transform: translateY(-1px);
  }
  
  .scroll-to-top svg {
    width: 24px;
    height: 24px;
  }
  
  /* Адаптивность для мобильных */
  @media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 18px;
        width: 50px;
        height: 50px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
  }

  

/* === КНОПКА AI АССИСТЕНТ === */
.ai-assistant-btn {
    position: fixed;
    bottom: 95px; 
    width: 50px;
    height: 50px;
    right: 30px;
    background-color: #2563eb;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  }
  
  .ai-assistant-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
  }
  
  .ai-assistant-btn:active {
    transform: translateY(-1px);
  }
  
 

  /* Table Styles */
.text-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 350px) {
    .author {
        flex-wrap: nowrap !important;
        gap: 8px;

    }
}

@media (max-width: 1000px) {
    .visual img {
      width: 50%;
    }
  } 

.text-block thead {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.text-block th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #1d4ed8;
}

.text-block td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.text-block tbody tr:hover {
    background-color: #f9fafb;
}

.text-block tbody tr:last-child td {
    border-bottom: none;
}

/* Адаптивность для таблиц */
@media (max-width: 768px) {
    .text-block table {
        font-size: 12px;
    }
    
    .text-block th,
    .text-block td {
        padding: 8px 10px;
    }
}


/* === PROS CONS === */
.pros-cons-block {
    margin-bottom: 30px;
  }
  
  .pc-grid {
    display: flex;
    gap: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.05);
    padding: 20px;
  }
  
  .pc-col {
    flex: 1;
  }
  
  .pc-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 0;
  }
  
  .pc-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .pc-col ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #2e3246;
    line-height: 1.5;
  }
  
  .pc-col ul li img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  

  .faq-section {
    margin-top: 25px;
  }
  

  /* TOC Collapsed State */
.toc-list.collapsed {
    display: none;
}

.toc-box.collapsed .toc-toggle-icon {
    transform: rotate(-180deg);
}

.toc-header {
    cursor: pointer;
    user-select: none;
}

.toc-toggle-icon {
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
}

/* TOC Toggle Styles */
.toc-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toc-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.toc-toggle-icon.rotated {
    transform: rotate(-90deg);
}

.toc-list {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.toc-list.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
}

.toc-list:not(.collapsed) {
    max-height: 2000px; /* Достаточно большое значение */
    opacity: 1;
}

.toc-box.collapsed .toc-list {
    display: none;
}

/* Hover эффекты для тегов */
.tag:hover {
    background-color: #1d4ed8;

    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.tag.outline:hover {
    background-color: #2563eb;
    color: #ffffff;

    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}


  /* Адаптивность для мобильных */
  @media (max-width: 430px) {
    .read-also-wrapper {
        padding: 15px;
    }
  }


  @media (max-width: 480px) {
    .su-button {
        padding: 8px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 280px;
    }
  
    h1 {
      font-size: 24px;
    }
  
    .toc-header {
      font-size: 15px;
    }
  
    li {
      font-size: 14px;
    }
  }
  
  
  @media (max-width: 430px) {
    .visualr img {
      width: 50%;
    }
  } 
  
  @media (max-width: 768px) {
    .ai-assistant-btn {
        bottom: 80px; 
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .ai-assistant-btn img {
        width: 20px;
        height: 20px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 18px;
        width: 50px;
        height: 50px;
    }
  }
  


.article-card {
    max-width: 100%;
    box-sizing: border-box; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
}


.text-block {
    word-wrap: break-word; 
    overflow-wrap: break-word;
    max-width: 100%;
}


.text-block img {
    max-width: 100%;
    height: auto;
    display: block; 
}




.text-block pre, 
.text-block code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap; 
    word-break: break-all;
}


@media (max-width: 480px) {
    .container {
        padding: 0 15px; 
    }
    
    .visual img {
        width: 50%;
    }

    .article-card {
        padding: 20px; 
        border-radius: 8px;
    }
    .faq-question span {
        padding-right: 5px;
    }


    .content-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .article-body {
        width: 100%; 
        min-width: 0; 
    }
}


@media (max-width: 1024px) {
  
  
    .pc-grid {
      flex-direction: column;
    }
  }

  
.author-avatar img{
    width: 46px;
    height: 46px;
    border-radius: 50%;
    }

    .author {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .author-avatar {
        flex-shrink: 0;
    }
    
    .author-avatar img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .author-name {
        white-space: nowrap;
    }
    
    .author-time {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Мобильная версия */
    @media (max-width: 768px) {
        .author {
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .author-name {
            white-space: normal;
            word-break: break-word;
        }
        
        .author-avatar img {
            width: 32px;
            height: 32px;
        }
    }


    .pc-grid ul li a {
        color: #2563eb;
        text-decoration: none;
    }


    .pc-col ul li {
        display: flex;
       
        gap: 10px;
        margin-bottom: 12px;
        font-size: 13px;
        color: #2e3246;
        line-height: 1.5;
        font-weight: 300 !important;
    }
    
    .pc-col ul li img {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .pc-col ul li .pc-text {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
    }

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 8px;
    
}

.table-wrapper table {
    min-width: 600px;
    width: 100%;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}


.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}


.table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #2563eb #f1f1f1;
}


.table-wrapper {
    position: relative;
}

@media (max-width: 375px) {
    .cards-grid {
        gap: 15px;
        grid-template-columns: none;
    }
}

@keyframes slide-indicator {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(-5px); opacity: 1; }
}


.table-wrapper.scrolled::after {
    opacity: 0.3;
    animation: none;
}

@media (max-width: 768px) {
    .text-block table {
        font-size: 12px;
    }
    
    .text-block th,
    .text-block td {
        padding: 8px 10px;
    }
    
    .table-wrapper {
        margin: 15px -15px;
        padding: 0 15px;
        border-radius: 8px;
    }
    
    .table-wrapper table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .table-wrapper {
        margin: 15px -15px;
        padding: 0 15px;
    }
    
    .table-wrapper table {
        min-width: 450px;
        font-size: 11px;
    }
    
    .text-block th,
    .text-block td {
        padding: 6px 8px;
    }
}


.article-card p , .article-card li {
    font-weight: 300;
}







.card {
    position: relative;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-actions a {
    position: relative;
    z-index: 2;
}

.card-btn {
    position: relative;
    z-index: 2;
}


@media (max-width: 768px) {
   
    .breadcrumbs {
        flex-wrap: nowrap; 
        overflow: hidden; 
    }

   
    .breadcrumb-current {
        white-space: nowrap;    
        overflow: hidden;         
        text-overflow: ellipsis;  
        
     
        min-width: 0; 
        flex-shrink: 1;
        
        
        max-width: 150px; 
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
 
    .breadcrumbs a:first-child {
        max-width: 125px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        display: inline-block;
    }
    

    .breadcrumb-current {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex-shrink: 1;
        max-width: 150px;
    }
}


@media (max-width: 480px) {
    .sidebar {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 770px) {
    .no-padding {
      padding: 0;
      border-radius: 0;
    }
    
    .no-border {
      border-radius: 0 !important;
    }
    
    #article-hero{
      padding-top: 0px;
    }
  
    .site-footer {
      padding: 40px 15px 15px;
      }
  
   
  
    }
  
 
    

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #2563eb #f1f1f1;
    box-sizing: border-box; 
  }
  
  
  @media (max-width: 768px) {
    .table-wrapper {
        margin: 15px 0; 
        padding: 0; 
        border-radius: 8px;
        width: calc(100% - 0px);
    }
    
    .table-wrapper table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .table-wrapper th,
    .table-wrapper td {
        padding: 10px 15px; 
    }
  }
  
  
  @media (max-width: 480px) {
    .table-wrapper {
        margin: 15px 0; 
        padding: 0;
        width: calc(100% - 0px);
    }
    
    .table-wrapper table {
        min-width: 450px;
        font-size: 11px;
    }
    
    .table-wrapper th,
    .table-wrapper td {
        padding: 10px 15px;
    }
  }
  
  
  .table-wrapper::-webkit-scrollbar {
    height: 8px;
  }
  
  .table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 8px; 
  }
  
  .table-wrapper::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
  }
  
  .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
  }


  
  @media (max-width: 1024px) {
    .visual img {
      width: 50% !important;
    }
  } 
  
  @media (max-width: 1024px) {
    .sidebar {
    width: 100% !important;
    margin: 0 auto !important;
    }
   }

   .visual img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
  }
  
  .text-block img {
    border-radius: 10px;
  }

  .table-wrapper a {
    color: #2563eb !important;
    text-decoration: underline !important;
  }

    .card:hover {
   box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15); 
    transition: all 0.3s ease;
  }

  .card-actions a {
    transition: background-color 0.3s ease; 
  }

  .card-actions a:hover {
    background-color: #1d4ed8;
  }

  .show-more-btn {
     transition: background-color 0.3s ease;
  }

  .show-more-btn:hover {
    background-color: #1d4ed8;
     
  }

  .to-course-btn {
          transition: background-color 0.3s ease;
  }
   .to-course-btn:hover {
     background-color: #1d4ed8;
  }


  .p1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000;
    line-height: 1.5;
  }


  /* Table of Contents */
.toc-box {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
  }
  
  .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #151515;
  }
  
  .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  
  .toc-list li a {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
  }
  
  .toc-list li a:hover {
    color: #2563eb;
  }
  
  .toc-list li {
    list-style: none;
    padding-left: 15px; 
    margin-bottom: 8px;
    position: relative;
  }
  
  .toc-list .toc-h3 {
    padding-left: 30px;
    font-size: 14px; 
  }
  
  .toc-list .toc-h4 {
    padding-left: 40px;
    font-size: 13px; 
  }
  
  .toc-list li a.active {
    color: #2563eb;
    font-weight: bold;
  }
  
  .toc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(0, 0, 0, 0.6);
  }
  
  
  .toc-list .toc-h3::before {
    left: 15px; 
  }
  
  
  .toc-list .toc-h4::before {
    left: 20px; 
  }
  
  @media (max-width: 768px) {
    .toc-list li {
      font-size: 12px !important;
    }
  }