/* ============================================================
   workshop52.ru — Общие стили внутренних страниц МК
   (герой, мини-преимущества, что входит, шаги, цены, мастер, FAQ, CTA)
   ============================================================ */

/* ===== ГЕРОЙ (внутренние страницы) ===== */
.hero {
    padding: 50px 0 60px;
    background: linear-gradient(135deg, #eef2f7 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero h1 .highlight {
    color: #f5a623;
    padding: 0 8px;
}

.hero p {
    font-size: 19px;
    color: #4a4a5e;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-visual {
    background: #dce3ed;
    border-radius: 24px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #6a7a8a;
}

.hero-visual-placeholder {
    background: #dce3ed;
    border-radius: 24px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a7a8a;
    font-size: 18px;
    flex-direction: column;
    gap: 8px;
}

.hero-visual-placeholder span {
    font-size: 48px;
}

/* ===== МИНИ-ПРЕИМУЩЕСТВА ===== */
.mini-benefits {
    padding: 40px 0;
    background: #ffffff;
}

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

.mini-item {
    text-align: center;
    padding: 12px 8px;
}

.mini-item .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

.mini-item h4 {
    font-size: 15px;
    font-weight: 700;
}

.mini-item p {
    font-size: 13px;
    color: #5a5a72;
}

/* ===== ЧТО ВХОДИТ ===== */
.whats-in {
    padding: 60px 0;
    background: #ffffff;
}

.whats-in h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.whats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.whats-item {
    background: #f8f9fb;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #eaeaef;
}

.whats-item .icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.whats-item h4 {
    font-size: 17px;
    font-weight: 700;
}

.whats-item p {
    font-size: 14px;
    color: #5a5a72;
}

/* ===== ПОШАГОВАЯ ПРОГРАММА (СТЕПЫ) ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.step .num {
    display: inline-block;
    background: #f5a623;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.step h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.step p {
    font-size: 14px;
    color: #5a5a72;
}

.steps-block {
    padding: 60px 0;
    background: #f8f9fb;
}

.steps-block h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    gap: 16px;
}

.steps-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.steps-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.step-item {
    background: #fff;
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    border: 1px solid #eaeaef;
}

.step-item .num {
    display: inline-block;
    background: #f5a623;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.step-item h4 {
    font-size: 15px;
    font-weight: 700;
}

.step-item p {
    font-size: 13px;
    color: #5a5a72;
}

.how {
    padding: 60px 0;
    background: #f8f9fb;
}

.how h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* ===== ЦЕНЫ ===== */
.prices {
    padding: 60px 0;
    background: #ffffff;
}

.prices h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.prices .sub {
    text-align: center;
    font-size: 18px;
    color: #5a5a72;
    margin-bottom: 36px;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.price-card {
    background: #f8f9fb;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #eaeaef;
    transition: 0.2s;
}

.price-card:hover {
    border-color: #f5a623;
}

.price-card .name {
    font-weight: 600;
    font-size: 17px;
    color: #4a4a5e;
}

.price-card .price {
    font-weight: 800;
    font-size: 36px;
    margin: 8px 0 4px;
}

.price-card .price small {
    font-size: 16px;
    font-weight: 400;
    color: #6a6a82;
}

.price-card .desc {
    font-size: 14px;
    color: #5a5a72;
    margin-bottom: 16px;
    min-height: 40px;
}

.price-card .btn {
    width: 100%;
    font-size: 16px;
    padding: 12px;
}

.price-card.popular {
    border: 2px solid #f5a623;
    background: #fffcf5;
    position: relative;
}

.price-card.popular::before {
    content: '🔥 Самый популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f5a623;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 16px;
    border-radius: 40px;
    white-space: nowrap;
}

/* ===== МАСТЕР ===== */
.master {
    padding: 60px 0;
    background: #f8f9fb;
}

.master h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.master .sub {
    text-align: center;
    font-size: 18px;
    color: #5a5a72;
    margin-bottom: 36px;
}

.master-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: start;
    max-width: 740px;
    margin: 0 auto;
}

.master-avatar {
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: #dce3ed;
    background-size: cover;
    background-position: center;
}

.master-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #dce3ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #6a7a8a;
}

.master-info h3 {
    font-size: 24px;
    font-weight: 700;
}

.master-info .badge {
    display: inline-block;
    background: #e8edf4;
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin: 6px 0 12px;
    color: #2a2a42;
}

.master-info p {
    font-size: 15px;
    color: #4a4a5e;
    margin-bottom: 10px;
}

/* ===== FAQ ===== */
.faq {
    padding: 60px 0;
    background: #ffffff;
}

.faq h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.faq .sub {
    text-align: center;
    font-size: 18px;
    color: #5a5a72;
    margin-bottom: 36px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e6;
    padding: 16px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item .q {
    font-weight: 700;
    font-size: 16px;
}

.faq-item .q::before {
    content: '❓ ';
}

.faq-item .a {
    font-size: 15px;
    color: #4a4a5e;
    padding-left: 28px;
    margin-top: 4px;
}

/* ===== CTA / ФОРМА ЗАПИСИ ===== */
.cta {
    padding: 60px 0 70px;
    background: #1a1a2e;
    color: #fff;
}

.cta h2 {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: #fff;
}

.cta .sub {
    text-align: center;
    color: #b0b0cc;
    margin-bottom: 36px;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-form label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
    color: #c0c0dd;
}

.cta-form input,
.cta-form select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    margin-bottom: 18px;
    outline: none;
    transition: 0.2s;
}

.cta-form input:focus,
.cta-form select:focus {
    border-color: #f5a623;
    background: rgba(255, 255, 255, 0.10);
}

.cta-form input::placeholder {
    color: #8888aa;
}

.cta-form select option {
    color: #1a1a2e;
}

.cta-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.cta-form .privacy {
    font-size: 13px;
    color: #8888aa;
    text-align: center;
    margin-top: 14px;
}

.cta-form .privacy a {
    color: #f5a623;
    text-decoration: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .steps-grid.cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .price-cards {
        grid-template-columns: 1fr 1fr;
    }

    .price-cards .price-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .master-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .master-avatar,
    .master-avatar-placeholder {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 17px;
    }

    .steps-grid.cols-5 {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid.cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    .price-cards {
        grid-template-columns: 1fr;
    }

    .price-cards .price-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .whats-grid {
        grid-template-columns: 1fr;
    }

    .mini-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cta-form {
        padding: 20px 16px;
    }

    .how h2,
    .prices h2,
    .master h2,
    .faq h2,
    .cta h2,
    .steps-block h2 {
        font-size: 26px;
    }

    .price-card .price {
        font-size: 30px;
    }

    .master-avatar,
    .master-avatar-placeholder {
        width: 140px;
        height: 140px;
    }

    .hero-visual {
        height: 200px;
    }

    .hero-grid {
        gap: 24px;
    }
}

@media (max-width: 420px) {
    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
    }

    .steps {
        overflow-y: scroll;
    }

    .steps-grid.cols-5 {
        grid-template-columns: 1fr;
    }

    .steps-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}
