/* Home Page Styles - Portfolio Main Page */

/* Home Page Styles - Portfolio Main Page */

@media (max-width: 1200px) {
    .article-sidebar-nav {
        display: none;
    }
    
    .main-content {
        padding-right: 0;
        max-width: 100%;
    }
}

/* Main Content Styles - переопределяется в Craftum.css */
@media (min-width: 1025px) {
    .main-content {
        padding-top: 0;
        padding-left: 280px;
        padding-right: 0;
        padding-bottom: 80px;
        margin-left: auto;
        margin-right: 0;
        max-width: 100%;
    }
}

@media (min-width: 1431px) {
    .main-content {
        min-height: 100vh;
        padding-top: 0;
        padding-left: 280px;
        padding-right: 280px;
        margin-left: auto;
        margin-right: auto;
        max-width: calc(1200px + 280px + 280px);
    }
}

@media (min-width: 1024px) and (max-width: 1430px) {
    .main-content {
        min-height: 100vh;
        padding-top: 0;
        padding-left: calc(280px + 20px);
        padding-right: calc(280px + 20px);
        margin-left: auto;
        margin-right: auto;
        max-width: calc(1200px + 280px + 280px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .main-content {
        padding-top: 0;
        padding-left: 280px;
        padding-right: 20px;
        padding-bottom: 80px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .medium-article {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .main-content {
        padding-top: 24px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 60px;
    }
}

/* Medium Article Styles */
.medium-article {
    width: 100%;
    max-width: 688px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

/* Hero Image Styles */
.hero-image-section {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.hero-image,
.hero-video {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.hero-video {
    background-color: #000000;
}

.hero-image:hover,
.hero-video:hover {
    transform: scale(1.02);
}

/* Greeting Section inside article content */
.article-content .greeting-section {
    width: 100%;
    margin: 0 0 48px 0;
}

.article-content .greeting-block {
    max-width: 100%;
    width: 100%;
}

/* TradersLab Section inside article content */
.article-content .traderslab-section {
    width: 100%;
    margin: 0 0 48px 0;
}

.traderslab-block-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.traderslab-block-link:hover {
    opacity: 1;
    color: inherit;
}

.traderslab-block-link:hover .traderslab-block {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.03);
}

.traderslab-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #FFFFFF;
    border-radius: 64px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.traderslab-video {
    width: calc(100% + 4px);
    height: auto;
    display: block;
    border-radius: 64px;
    object-fit: cover;
    margin-left: -2px;
    margin-right: -2px;
    margin-top: -2px;
    margin-bottom: -2px;
}

/* ========== DESKTOP - 1441px & more ========== */
@media (min-width: 1441px) {
    .traderslab-block {
        border-radius: 64px;
    }
    
    .traderslab-video {
        border-radius: 64px;
    }
}

/* ========== TABLET - 1024px to 1440px ========== */
@media (min-width: 1024px) and (max-width: 1440px) {
    .traderslab-block {
        border-radius: 64px;
    }
    
    .traderslab-video {
        border-radius: 64px;
    }
}

/* ========== TABLET SMALL - 768px to 1023px ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    .traderslab-block {
        border-radius: 32px;
    }
    
    .traderslab-video {
        border-radius: 32px;
    }
}

/* ========== MOBILE LARGE - 600px to 767px ========== */
@media (min-width: 600px) and (max-width: 767px) {
    .traderslab-block {
        border-radius: 32px;
    }
    
    .traderslab-video {
        border-radius: 32px;
    }
}

/* ========== MOBILE MEDIUM - 420px to 600px ========== */
@media (min-width: 420px) and (max-width: 600px) {
    .traderslab-block {
        border-radius: 32px;
    }
    
    .traderslab-video {
        border-radius: 32px;
    }
}

/* ========== MOBILE SMALL - 320px to 420px ========== */
@media (min-width: 320px) and (max-width: 420px) {
    .traderslab-block {
        border-radius: 24px;
    }
    
    .traderslab-video {
        border-radius: 24px;
    }
}

/* ========== MOBILE - max-width 767px ========== */
@media (max-width: 767px) {
    .article-content .traderslab-section {
        margin: 0 0 32px 0;
    }
    
    .traderslab-block {
        border-radius: 24px;
    }
    
    .traderslab-video {
        border-radius: 24px;
    }
}

/* Article Header Styles */
.article-header {
    margin-bottom: 40px;
}

/* Применяем стили из greeting-introduction главного блока */
.article-title {
    font-family: 'Roboto', sans-serif !important;
    font-style: normal !important;
    font-weight: 900 !important;
    font-size: 56px !important;
    line-height: 0.95 !important;
    letter-spacing: -0.05em !important;
    color: #1A1A1A !important;
    color: color(display-p3 0.102 0.102 0.102) !important;
    margin: 0 0 20px 0;
    padding-bottom: 48px;
    text-align: left;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1A1A1A;
}

.publish-date {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #8e8c8c;
}

/* Article Content Styles */
.article-content {
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
    text-align: left;
    box-sizing: border-box;
}

.article-content p,
.article-content li,
.article-content span:not(.author-name):not(.publish-date) {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    line-height: 1.7;
    font-style: normal !important;
}

.article-section {
    text-align: left;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Логические блоки контента - gap 48px между блоками */
#problem,
#hypothesis,
#interviews,
#validation,
#pivot,
#design,
#components,
#launch,
#results,
#learnings {
    margin-bottom: 48px;
}

.article-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.article-section p,
.article-section h2,
.article-section h3,
.article-section ul,
.article-section .image-gallery,
.article-section .hero-image,
.article-section .hero-video,
.article-section .featured-image {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-section.fade-in p,
.article-section.fade-in h2,
.article-section.fade-in h3,
.article-section.fade-in ul,
.article-section.fade-in .image-gallery,
.article-section.fade-in .hero-image,
.article-section.fade-in .hero-video,
.article-section.fade-in .featured-image {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for list items */
.article-section.fade-in ul li:nth-child(1) {
    transition-delay: 0.1s;
}

.article-section.fade-in ul li:nth-child(2) {
    transition-delay: 0.2s;
}

.article-section.fade-in ul li:nth-child(3) {
    transition-delay: 0.3s;
}

.article-section.fade-in ul li:nth-child(4) {
    transition-delay: 0.4s;
}

.article-section.fade-in ul li:nth-child(5) {
    transition-delay: 0.5s;
}

.article-section.fade-in ul li:nth-child(6) {
    transition-delay: 0.6s;
}

/* Разделители между темами */
.divider-1,
.divider-2,
.divider-3,
.divider-4,
.divider-5,
.divider-6,
.divider-7,
.divider-8,
.divider-9,
.divider-10,
.divider-11 {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 48px 0;
}

/* Разделители без линии (только отступы) */
.spacer-1,
.spacer-2,
.spacer-3,
.spacer-4,
.spacer-5,
.spacer-6,
.spacer-7,
.spacer-8,
.spacer-9,
.spacer-10 {
    width: 100%;
    height: 0;
    margin: 48px 0;
}

.article-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #1A1A1A;
    margin: 40px 0 20px 0;
    letter-spacing: -0.01em;
    text-align: left;
}

.article-section p {
    font-family: 'Source Serif Pro', Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 19px;
    line-height: 1.7;
    color: #1A1A1A;
    letter-spacing: -0.003em;
    margin: 0 0 24px 0;
    text-align: left;
}

.article-section ul {
    margin: 0 0 28px 0;
    padding: 0;
    list-style: none;
}

.article-section ul li {
    margin-bottom: 14px;
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
    font-family: 'Source Serif Pro', Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 19px;
    color: #1A1A1A;
    letter-spacing: -0.003em;
    text-align: left;
}

.article-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 12px;
    height: 12px;
    background-image: url('../IMG/Mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 8px;
    transform: translateY(0);
    color: #1F2937;
}

.lead-paragraph {
    font-family: 'Source Serif Pro', Georgia, Cambria, "Times New Roman", Times, serif !important;
    font-size: 21px !important;
    font-weight: 400;
    line-height: 1.65 !important;
    color: #1A1A1A !important;
    letter-spacing: -0.003em !important;
    margin-bottom: 36px !important;
}

.article-image {
    margin: 0;
    padding: 0;
    text-align: center;
}

.featured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Data Points Styles */
.data-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0;
    text-align: left;
}

.data-point {
    padding: 32px;
    background: #FFFFFF;
    border-radius: 24px;
    text-align: left;
}

.data-point h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 18px;
    font-weight: 500;
    font-style: normal;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    text-align: left;
}

.data-point p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
    margin: 0;
    text-align: left;
}

.data-point a {
    color: #1A1A1A;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.data-point a:hover {
    opacity: 0.7;
}

/* General H3 styles */
h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

/* Final CTA Section Styles */
.final-cta {
    text-align: left;
    margin: 24px 0 0 0;
}

/* CTA Button Styles */
.cta-button--black {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 13px 24px;
    gap: 16px;
    width: fit-content;
    min-width: fit-content;
    height: 47px;
    background: #262626f5;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button--black:hover {
    background: #1a1a1af5;
    transform: translateY(-2px);
}

.cta-button--black .button-text {
    width: auto;
    height: 21px;
    display: flex;
    align-items: center;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.015em;
    font-size: 16px;
    line-height: 132%;
    color: #FFFFFF;
}

/* ========== TABLET - 1024px to 1440px ========== */
@media (min-width: 1024px) and (max-width: 1440px) {
    .article-title {
        font-family: 'Roboto', sans-serif !important;
        font-style: normal !important;
        font-weight: 900 !important;
        font-size: 48px !important;
        line-height: 0.95 !important;
        letter-spacing: -0.05em !important;
        color: #1A1A1A !important;
        color: color(display-p3 0.102 0.102 0.102) !important;
    }
}

/* ========== TABLET SMALL - 768px to 1023px ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    .article-title {
        font-family: 'Roboto', sans-serif !important;
        font-style: normal !important;
        font-weight: 900 !important;
        font-size: 34px !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        color: #1A1A1A !important;
        color: color(display-p3 0.102 0.102 0.102) !important;
    }
}

/* ========== MOBILE LARGE - 600px to 767px ========== */
@media (min-width: 600px) and (max-width: 767px) {
    .article-title {
        font-family: 'Roboto', sans-serif !important;
        font-style: normal !important;
        font-weight: 900 !important;
        font-size: 34px !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        color: #1A1A1A !important;
        color: color(display-p3 0.102 0.102 0.102) !important;
    }
}

/* ========== MOBILE MEDIUM - 420px to 600px ========== */
@media (min-width: 420px) and (max-width: 600px) {
    .article-title {
        font-family: 'Roboto', sans-serif !important;
        font-style: normal !important;
        font-weight: 900 !important;
        font-size: 34px !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        color: #1A1A1A !important;
        color: color(display-p3 0.102 0.102 0.102) !important;
    }
}

/* ========== MOBILE SMALL - 320px to 420px ========== */
@media (min-width: 320px) and (max-width: 420px) {
    .article-title {
        font-family: 'Roboto', sans-serif !important;
        font-style: normal !important;
        font-weight: 900 !important;
        font-size: 32px !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        color: #1A1A1A !important;
        color: color(display-p3 0.102 0.102 0.102) !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    /* Уменьшаем border-radius для изображений на мобильных устройствах */
    .hero-image,
    .hero-video {
        border-radius: 16px !important;
    }
    
    .article-title {
        font-family: 'Roboto', sans-serif !important;
        font-style: normal !important;
        font-weight: 900 !important;
        font-size: 32px !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        color: #1A1A1A !important;
        color: color(display-p3 0.102 0.102 0.102) !important;
        padding-bottom: 32px;
    }
    
    .article-section h2 {
        font-family: 'Inter', sans-serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: -0.01em;
        margin: 32px 0 16px 0;
    }
    
    .article-section p {
        font-size: 17px;
        margin: 0 0 20px 0;
    }
    
    .lead-paragraph {
        font-size: 19px !important;
        margin-bottom: 28px !important;
    }
    
    .data-point {
        padding: 28px;
    }
    
    .data-point h3 {
        font-size: 16px;
    }
    
    .data-point p {
        font-size: 15px;
    }
    
    .main-content {
        padding-left: 16px;
        padding-right: 16px;
    }
}

