.center {
    text-align: center;
}
main {
    margin-top: 32px;
    font-family: 'Rounded Elegance';
}
header.blog-page {
    background: #fff;
}
header.blog-page .header__wrapper {
    padding-top: 16px;
}
.hero {
    margin-bottom: 32px;
}
.hero__figure {
    height: 32vh;
    margin: 0 auto 24px;
    overflow: hidden;
    background: none;
    text-align: center;
}

@media (min-width: 768px) {
    .hero__figure {
        height: 50vh;
        margin-bottom: 32px;
    }
}

.hero__image {
    width: 100%;
    height: 32vh;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero__image {
        width: auto;
        min-width: 888px;
        height: 50vh;
    }
}

@media (min-width: 768px) {
    .hero__main {
        padding: 24px;
        background: #fff;
    }
}

.hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 5px 0 32px;
    border-radius: 16px;
    font-size: 14px;
    text-transform: none;
}

.hero__breadcrumb .tag:not(:last-child) {
    -webkit-margin-end: 8px;
    margin-inline-end: 8px;
}

.tag {
    font-size: 16px;
    text-decoration: none;
    font-family: 'Rounded Elegance';
    transition: color .35s ease
}
.tag:hover {
    color: #000;
}

article header h1 {
    font-size: 24px;
    line-height: 34px;
}

.meta {
    margin-top: 32px;
    font-size: 14px;
    line-height: 18px;
}

.media {
    align-items: center;
    display: flex;
    gap: 16px;
}
.media .author__meta-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    -webkit-margin-end: 16px;
    margin-inline-end: 16px;
    border-radius: 50%;
    background: #edefeb;
}
.media .media-body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 12px;
}
.media .author__meta-name {
    margin-right: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
}
.post__time {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 10px;
    gap: 10px;
}

article + article .privacy {
    margin: 0;
}

.articles {
    padding: 24px 0;
}
.articles__wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 593px) {
  .articles__wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .articles__wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

.articles__wrap--featured-first {
  grid-template-columns: repeat(3, 1fr);
}

.articles__wrap--featured-first .card:nth-child(1) {
  grid-column: span 2;
}

.articles__wrap--featured-first .card:nth-child(1) .card__image img,
.articles__wrap--featured-first .card:nth-child(2) .card__image img {
  height: 485px;
  object-fit: cover;
  width: 100%;
  display: block;
}

.card {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 24px;
  background: #f7f6ff;
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.card .card__tags,
.hero__main .card__tags {
    display: flex;
    gap: 8px;
}

.hero__main .card__tags {
    margin-top: 16px;
}

.card .card__tag,
.hero__main .card__tag  {
    font-size: 14px;
    transition: color .35s ease;
    color: #6c63ff;
    padding: 6px 16px;
    border: #6c63ff solid 1px;
    border-radius: 16px;
    cursor: pointer;
    line-height: 100%;
    font-family: 'Aharoni';
}
.card .card__tag:hover,
.hero__main .card__tag:hover {
    color: #fff;
    background: #6c63ff;
}
.card .card__title {
    font-weight: 600;
    font-size: 20px;
    transition: color .35s ease;
    color: #000;
}
.card .card__title:hover {
    color: #554eef;
}

.card .card__text-content {
    padding: 0 8px;
}

.card .meta {
    margin-top: auto;
    padding: 4px;
}
.btn {
    width: fit-content;
    padding: 8px 24px;
    justify-self: center;
    cursor: pointer;
    transition: all ease .35s;
}
.btn--blue {
    border-radius: 4px;
    background-color: #6c63ff;
    color: #ffffff;
    font-weight: 400;
    font-style: normal;
    font-family: Tahoma, Geneva, sans-serif;
    box-shadow: none;
}
.btn--blue:hover {
    border-radius: 4px;
    background-color: #4943b3;
    color: #ffffff;
    font-weight: 400;
    font-style: normal;
    font-family: Tahoma, Geneva, sans-serif;
    box-shadow: none;
}

.articles > .container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.articles .articles__top,
.articles .articles__top .articles__top-radios {
    display: flex;
    gap: 16px
}

.articles input[type='radio'],
.articles input[type='checkbox'] {
    display: none;
}

.articles label input[type='radio']+span,
.articles input[type='checkbox']+span {
    border-radius: 16px;
    border: #6c63ff solid 1px;
    background-color: #fff;
    color: #6c63ff;
    padding: 8px 24px;
    transition: all ease .35s;
    cursor: pointer;
    font-family: 'Aharoni';
}

.articles label input[type='radio']:checked+span,
.articles input[type='checkbox']:checked+span {
    border-radius: 16px;
    border-color: #6c63ff;
    background-color: #6c63ff;
    color: #fff;
    padding: 8px 24px;
}

article .table-container, section .table-container {
    width: 100%;
    max-width: 1110px;
    overflow-x: auto;
    display: block;
    margin: auto;
}

article ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

article h2, 
article h3, 
article h4, 
article h5, 
article h6 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #6c5ce7;
    border-radius: 16px;
    padding: 28px;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.table-of-contents h3 {
    margin: 0 0 24px 0;
    font-size: 1.6rem;
    color: #2d3436;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.table-of-contents h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 2px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.toc-item {
    margin: 0;
    padding: 0;
    position: relative;
}

.toc-item a {
    display: block;
    padding: 12px 0 12px 28px;
    color: #495057;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    margin: 2px 0;
}

.toc-item a::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #6c5ce7;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.3);
}

.toc-item a:hover {
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.05);
    transform: translateX(8px);
    padding-left: 32px;
}

.toc-item a:hover::before {
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
}

/* Активная ссылка */
.toc-item a.active {
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.08);
    font-weight: 600;
    border-left: 3px solid #6c5ce7;
    padding-left: 25px;
}

.toc-item a.active::before {
    background: #6c5ce7;
    transform: translateY(-50%) scale(1.2);
}

/* Стили для подуровней (H3, H4, H5, H6) */
.toc-item.level-3 {
    margin-left: 24px;
    position: relative;
}

.toc-item.level-3::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #dee2e6, transparent);
}

.toc-item.level-3 a {
    font-size: 0.92rem;
    color: #6c757d;
    padding-left: 24px;
    font-weight: 400;
}

.toc-item.level-3 a::before {
    width: 6px;
    height: 6px;
    background: #a29bfe;
}

.toc-item.level-4 {
    margin-left: 48px;
}

.toc-item.level-4 a {
    font-size: 0.88rem;
    color: #868e96;
    font-weight: 400;
}

.toc-item.level-4 a::before {
    width: 4px;
    height: 4px;
    background: #fd79a8;
}

.toc-item.level-5,
.toc-item.level-6 {
    margin-left: 72px;
}

.toc-item.level-5 a,
.toc-item.level-6 a {
    font-size: 0.85rem;
    color: #adb5bd;
}

.toc-item.level-5 a::before,
.toc-item.level-6 a::before {
    width: 3px;
    height: 3px;
    background: #fdcb6e;
}

/* Анимации */
.table-of-contents {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Подсветка целевого заголовка при переходе */
:target {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(108, 92, 231, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Responsive дизайн */
@media (max-width: 1200px) {
    .table-of-contents {
        margin: 30px 0;
    }
}

@media (max-width: 768px) {
    .table-of-contents {
        padding: 20px;
        margin: 25px 0;
        border-radius: 12px;
    }
    
    .table-of-contents h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .toc-item.level-3 {
        margin-left: 16px;
    }
    
    .toc-item.level-4 {
        margin-left: 32px;
    }
    
    .toc-item.level-5,
    .toc-item.level-6 {
        margin-left: 48px;
    }
    
    .toc-item a {
        padding: 10px 0 10px 24px;
        font-size: 0.95rem;
    }
    
    .toc-item a:hover {
        transform: translateX(4px);
        padding-left: 28px;
    }
}

@media (max-width: 480px) {
    .table-of-contents {
        padding: 16px;
        margin: 20px 0;
    }
    
    .table-of-contents h3 {
        font-size: 1.3rem;
    }
    
    .toc-item a {
        font-size: 0.9rem;
        padding: 8px 0 8px 20px;
    }
    
    .toc-item.level-3 {
        margin-left: 12px;
    }
    
    .toc-item.level-4 {
        margin-left: 24px;
    }
}

@media print {
    .table-of-contents {
        background: white;
        border: 2px solid #333;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .table-of-contents::before {
        display: none;
    }
    
    .toc-item a {
        color: #333 !important;
    }
    
    .toc-item a::before {
        background: #333 !important;
    }
}

.author-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #6c63ff 0%, #5a52e3 50%, #4d46cc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 101, 132, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

.author-section .container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.author-section .container .content {
    color: white;
}

.author-section .container .content .author-name {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #e8e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); 
    }
    to { 
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)); 
    }
}

.author-section .container .content .description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.author-section .container .content .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.author-section .container .content .social-links .social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.author-section .container .content .social-links .social-link:hover {
    background: #FF6584;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 101, 132, 0.3);
}

.author-section .container .author-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-section .container .author-image-container .author-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    animation: pulse 4s ease-in-out infinite;
    background: #fff;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

.author-section .container .author-image-container .author-image:hover {
    transform: scale(1.1);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 30px rgba(255, 255, 255, 0.1);
}

.author-section .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.author-section .floating-elements .floating-element {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatUp 15s infinite linear;
}

.author-section .floating-elements .floating-element:nth-child(2) {
    left: 20%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.author-section .floating-elements .floating-element:nth-child(3) {
    left: 40%;
    animation-delay: -10s;
    animation-duration: 18s;
}

.author-section .floating-elements .floating-element:nth-child(4) {
    left: 60%;
    animation-delay: -15s;
    animation-duration: 22s;
}

.author-section .floating-elements .floating-element:nth-child(5) {
    left: 80%;
    animation-delay: -2s;
    animation-duration: 16s;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .author-section .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .author-section .container .content .author-name {
        font-size: 2.5rem;
    }

    .author-section .container .content .description {
        font-size: 1.1rem;
    }

    .author-section .container .author-image-container .author-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .author-section .container .content .author-name {
        font-size: 2rem;
    }
    
    .author-section {
        padding: 1rem;
    }
}

.faqs {
    padding: 50px 0;
    background: #f9f9f9;
}

.faqs__wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faqs__item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    cursor: pointer;
}

.faqs__title {
    font-weight: 600;
    font-size: 18px;
    position: relative;
    padding-right: 25px;
}

.faqs__title::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faqs__item.active .faqs__title::after {
    transform: rotate(45deg);
}

.faqs__descr {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faqs__item.active .faqs__descr {
    max-height: 500px; /* достаточно, чтобы вместить текст */
    padding: 10px 0 0 0;
}
