/* ===== БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background-color: #efeae2;
    color: #282828;
    line-height: 1.4;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* запрещаем горизонтальный скролл у body */
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #efeae2;
    overflow-x: hidden; /* запрещаем горизонтальный скролл у контейнера */
}

/* ===== HEADER ===== */
.header {
    width: 100%;
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 12px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

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

.logo-icon {
    font-weight: 700;
    font-size: 22px;
    color: #1e1b18;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.16px;
    color: #282828;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 40px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-item:hover {
    background: #f5f1eb;
}

.nav-item-active {
    background: #ffd900;
    color: #000;
    font-weight: 600;
}

.nav-item-premium {
    background: linear-gradient(90deg, #FFC800 0%, #E974AC 100%);
    color: white !important;
    padding: 8px 12px;
}

.nav-item-premium:hover {
    background: linear-gradient(90deg, #e6b400 0%, #d1659b 100%);
}

.icon-em {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-wrapper {
    flex: 1 1 240px;
    min-width: 200px;
    max-width: 400px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e4daca;
    border-radius: 99px;
    padding: 4px 4px 4px 16px;
    transition: border 0.2s;
}

.search-form:focus-within {
    border-color: #b9a690;
}

.search-form .placeholder {
    flex: 1;
    color: #969696;
    font-size: 16px;
    letter-spacing: 0.16px;
}

.search-btn {
    background: #FFC800;
    border: none;
    border-radius: 99px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #e6b400;
}

.login-area {
    margin-left: auto;
}

.btn-login {
    background-color: #efeae2;
    border: none;
    border-radius: 33px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.32px;
    color: #282828;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-login:hover {
    background-color: #e0d6c8;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 99px;
    padding: 8px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: transform 0.2s;
}

.bottom-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 28px;
    background-color: #EFEAE2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bottom-nav-item.active .bottom-nav-icon {
    background: linear-gradient(90deg, #FFC800 0%, #E974AC 100%);
}

.bottom-nav-icon svg {
    width: 16px;
    height: 16px;
    stroke: #BDAFA6;
    fill: none;
}

.bottom-nav-item.active .bottom-nav-icon svg {
    stroke: white;
}

.bottom-nav-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12px;
    color: #282828;
    text-align: center;
}

.bottom-nav-item.active .bottom-nav-label {
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    width: 100%;
    padding: 20px 24px 24px;
    color: #b7b7b7;
    margin-top: 16px;
}

.footer-line {
    height: 1px;
    background: #444;
    margin-bottom: 20px;
    width: 100%;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.copyright {
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: #969696;
}

.social-icon svg {
    display: block;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.content-index {
    max-width: 1200px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin: 0 auto;
}

.hero-card {
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.hero-text {
    flex: 2;
    padding: 32px 28px;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
   letter-spacing: 0.02em;;
    margin-bottom: 16px;
    color: #282828;
}

.hero-description {
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0.32px;
    color: #282828;
    margin-bottom: 24px;
    max-width: 600px;
}

.btn-outline {
    background: #efeae2;
    border-radius: 33px;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.32px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: #e2d8cc;
}

.hero-image {
    flex: 1 1 300px;
    min-height: 206px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 206px;
    object-fit: cover;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 26.4px;
    letter-spacing: 0.48px;
    color: #282828;
    margin-bottom: 24px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.business-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    position: relative;
    height: 194px;
    overflow: hidden;
}

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

.growth-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(40, 40, 40, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 99px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0.28px;
    color: white;
}

.growth-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
}

.growth-value {
    color: #FFD900;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-category {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.28px;
    color: #82745E;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #282828;
    line-height: 1.3;
}

.card-title a {
    text-decoration: none; 
    color: #282828;
}
.card-title a:hover{
    text-decoration: none; 
    color: #BAA293;
}


.card-stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 99px;
    background-color: #EFEAE2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
}

.stat-invest {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M13.3334 8.66667V13.3333C13.3334 13.7015 13.0349 14 12.6667 14H3.33341C2.96522 14 2.66675 13.7015 2.66675 13.3333V8.66667M8.00008 1.33333V10M8.00008 10L5.33341 7.33333M8.00008 10L10.6667 7.33333' stroke='#7A5D4B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.stat-profit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2' y='2' width='12' height='12' rx='2' stroke='#7A5D4B' stroke-width='1.5'/%3E%3C/svg%3E");
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.02em;
    color: #282828;
}

.stat-label {
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 0.02em;
    color: #969696;
}

.idea-banner {
    background: #E4DACA;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    flex: 2 1 500px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #282828;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4.72 12.55L9.28 17.1L20.28 6.1' stroke='%23282828' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feature-report {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 4H20V20H4V4Z' stroke='%23282828' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M8 8H16M8 12H12' stroke='%23282828' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.feature-plan {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4V20M4 12H20' stroke='%23282828' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn-white {
    background: white;
    border-radius: 33px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-white:hover {
    background: #f5f0ea;
}

/* ===== СТРАНИЦА ПОСТА ===== */
.content-post {
    max-width: 1440px;
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 auto;
    width: 100%;
}

.post-form {
    flex: 3 1 600px;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.content-sidebar {
    flex: 1.2;
    min-width: 280px;
}

.premium-card-offer {
    width: 100%;
    background: #BAA293;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    padding: 12px;
}

.premium-card-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.premium-title {
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0.02em;
}

.premium-subtitle {
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 400;
    line-height: 18.2px;
    letter-spacing: 0.02em;
}

.premium-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-premium-buy,
.btn-premium-demo {
    width: 100%;
    border-radius: 99px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.32px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-premium-buy {
    background: #FFD900;
    color: #282828;
}

.btn-premium-buy:hover {
    background: #e6c400;
    transform: translateY(-1px);
}

.btn-premium-demo {
    background: transparent;
    color: white;
}

.btn-premium-demo:hover {
    background: rgba(255, 255, 255, 0.1);
}

.post-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-category {
    color: #BAA293;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.post-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: #282828;
}

.stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 8px;
}

.stat-icon-lg {
    width: 44px;
    height: 44px;
    background: #EFEAE2;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.post-image-img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-subsection-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 26.4px;
    letter-spacing: 0.02em;
    color: #282828;
    margin: 24px 0 8px 0;
}

.post-content p {
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0.02em;
    color: #282828;
}

.post-content strong {
    font-weight: 600;
}
h4 {
    font-size: 20px;
    font-weight: 600;
}
/* ===== ТАБЛИЦЫ ===== */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    border: 1px solid #E4DACA;
}

.post-content th,
.post-content td {
    padding: 12px 8px;
    text-align: left;
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #E4DACA;
    vertical-align: top;
}

.post-content th {
    background-color: #EFEAE2;
    font-weight: 600;
    color: #282828;
}

.post-content tr:nth-child(even) {
    background-color: #f9f7f4;
}

.post-content tr:last-child td {
    border-bottom: none;
}

/* Обёртка для горизонтального скролла */
.table-scroll-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
}

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

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

.table-scroll-container::-webkit-scrollbar-thumb {
    background: #BCA897;
    border-radius: 4px;
}

/* Цитата */
.post-quote {
    background: #EFEAE2;
    border-left: 4px solid #BAA293;
    padding: 24px;
    border-radius: 0 12px 12px 0;
    font-size: 16px;
    line-height: 22.4px;
    letter-spacing: 0.02em;
    color: #282828;
}

/* ===== СПИСКИ ===== */
.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content ul li::marker,
.post-content ol li::marker {
    color: #BCA897;
    font-size: 1.1em;
}

/* ===== АДАПТИВНОСТЬ ===== */
/* Мобильная и планшетная версия (до 1169px) */
@media (max-width: 1169px) {
    body {
        font-size: 14px;
    }

    .nav-links {
        display: none !important;
    }

    .search-wrapper {
        flex: 0 0 auto;
        max-width: none;
        min-width: auto;
    }

    .search-form .placeholder {
        display: none;
    }

    .search-form {
        padding: 0;
        border: none;
        background: transparent;
    }

    .search-btn {
        background: #FFD900;
        width: 40px;
        height: 40px;
    }

    .bottom-nav {
        display: block;
    }

    .app {
        padding-bottom: 80px;
    }

    .content-index, .content-post {
        padding: 16px;
    }

    .hero-text {
        padding: 24px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 20px;
    }

    .btn-outline {
        font-size: 14px;
        padding: 10px 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .cards-grid {
        gap: 16px;
    }

    .card-title {
        font-size: 18px;
    }

    .stat-value {
        font-size: 14px;
    }

    .idea-banner {
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .features-row {
        flex-direction: column;
        gap: 16px;
    }

    .feature-item {
        font-size: 14px;
    }

    .btn-white {
        width: 100%;
        text-align: center;
    }

    .post-form {
        padding: 24px;
    }

    .post-title {
        font-size: 28px;
    }

    .post-subsection-title {
        font-size: 28px;
    }

    .post-content p,
    .post-quote {
        font-size: 14px;
        line-height: 20px;
    }

    /* ===== ТАБЛИЦЫ НА МОБИЛЬНЫХ: правильный скролл ===== */
    .table-scroll-container {
        overflow-x: auto;
    }
    .table-scroll-container table {
        width: auto;
        min-width: auto;
    }
    .post-content th,
    .post-content td {
        min-width: 120px;
        white-space: normal;
    }
    .post-content th:first-child,
    .post-content td:first-child {
        min-width: 150px;
    }

    /* Подсказка о прокрутке */
    .table-scroll-container::after {
        content: '← прокрутите →';
        display: block;
        text-align: right;
        font-size: 11px;
        color: #BCA897;
        margin-top: 4px;
    }
}

/* Десктопная версия (от 1170px) */
@media (min-width: 1170px) {
    body {
        font-size: 16px;
    }
    .bottom-nav {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
    }
    .app {
        padding-bottom: 0;
    }
}

/* Дополнительные медиа-запросы */
@media (max-width: 900px) {
    .content-post {
        flex-direction: column;
    }
    .content-sidebar {
        width: 100%;
    }
    .premium-card-offer {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 780px) {
    .header {
        border-radius: 0;
        padding: 12px 16px;
    }
    .btn-login {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .hero-card {
        flex-direction: column;
    }
    .hero-text {
        padding: 20px;
    }
    .hero-image {
        width: 100%;
        min-height: 160px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .business-card {
        max-width: 100%;
    }
    .stats-row {
        flex-direction: column;
        gap: 12px;
    }
    .stat-item {
        flex: 1;
    }
    .post-title {
        font-size: 24px;
    }
    .post-subsection-title {
        font-size: 20px;
    }
    .btn-premium-buy,
    .btn-premium-demo {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        font-size: 18px;
    }
    .card-content {
        padding: 16px;
    }
    .stat-icon {
        width: 28px;
        height: 28px;
    }
    .stat-value {
        font-size: 13px;
    }
    .post-form {
        padding: 20px;
    }
    .stat-icon-lg {
        width: 36px;
        height: 36px;
    }
    .premium-title {
        font-size: 18px;
    }
    .footer {
        padding: 16px;
    }
    .copyright {
        font-size: 12px;
    }
}