* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    color: #111;
    background: #fff;
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 100px 0;
    text-align: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

h3 {
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.button {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
}

.primary {
    background: #1565c0;
    color: white;
}

.secondary {
    border: 1px solid #ddd;
    color: #111;
}

section {
    padding: 80px 0;
}

.gray {
    background: #f7f7f7;
}

/* === Screenshot images === */
.screenshot img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    /* Ограничиваем максимальную высоту, чтобы не было гигантских картинок */
    max-height: 620px;           /* подбери под себя */
    object-fit: contain;         /* сохраняет пропорции */
    background: #f8f9fa;
}

/* Для очень высоких wireframes (второй и третий) можно сделать чуть строже */
.screenshot:nth-child(3) img,
.screenshot:nth-child(4) img {
    max-height: 520px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .screenshot img {
        max-height: 420px;
    }
}

ul {
    padding-left: 20px;
}

footer {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #1565c0;
    text-decoration: none;
}

@media (max-width: 768px) {
    header {
        padding: 70px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }
}


.hero-small {
    padding: 80px 0;
    text-align: center;
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 80px;
}

.pricing-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pricing-table th,
.pricing-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.pricing-table thead th {
    background: #f8fafc;
    font-weight: 600;
    padding: 24px 16px 16px;
}

.plan-header {
    position: relative;
}

.plan-header.community { background: #f0f9ff; }
.plan-header.saas      { background: #f0fdf4; }
.plan-header.services  { background: #fefce8; }

.plan-price {
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}

.pricing-table td:first-child {
    text-align: left;
    font-weight: 500;
    width: 38%;
    padding-left: 28px;
}

/* Чекмарки и тире */
.pricing-table td:not(:first-child) {
    font-size: 1.1rem;
}

.pricing-table td:not(:first-child):has(✓) {
    color: #15803d;
    font-weight: 600;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .pricing-table {
        min-width: 700px;
    }
    .pricing-table th,
    .pricing-table td {
        padding: 14px 10px;
        font-size: 0.95rem;
    }
    .pricing-table td:first-child {
        padding-left: 16px;
    }
}