/* ============================================================
   workshop52.works — Единая система стилей
   Версия 1.0
   ============================================================ */

/* ============================================================
   1. СБРОС И БАЗА
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fb;
    color: #1a1a2e;
    line-height: 1.6;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   2. КНОПКИ
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: #f5a623;
    color: #1a1a2e;
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.btn-primary:hover {
    background: #e0951a;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(245, 166, 35, 0.45);
}

.btn-outline {
    background: transparent;
    color: #1a1a2e;
    border: 2px solid #1a1a2e;
}

.btn-outline:hover {
    background: #1a1a2e;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #1a1a2e;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ============================================================
   3. ШАПКА (единая)
   ============================================================ */
.header {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #1a1a2e;
}

.logo span {
    color: #f5a623;
}

.logo small {
    font-weight: 400;
    font-size: 14px;
    color: #6a6a82;
}

.back-link {
    color: #6a6a82;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.back-link:hover {
    color: #f5a623;
}

.header .btn {
    padding: 10px 28px;
    font-size: 15px;
}

/* ============================================================
   4. ГЕРОЙ (ГЛАВНАЯ)
   ============================================================ */
.hero-main {
    padding: 60px 0 70px;
    background: linear-gradient(135deg, #eef2f7 0%, #ffffff 100%);
    text-align: center;
}

.hero-main h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-main h1 .highlight {
    color: #f5a623;
    background: #fff3d4;
    padding: 0 12px;
}

.hero-main p {
    font-size: 20px;
    color: #4a4a5e;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ============================================================
   5. ГЕРОЙ (ВНУТРЕННИЕ СТРАНИЦЫ)
   ============================================================ */
.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;
    background: #fff3d4;
    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;
}

/* ============================================================
   6. НАПРАВЛЕНИЯ (ГЛАВНАЯ — СЕТКА 4)
   ============================================================ */
.directions {
    padding: 60px 0 80px;
    background: #ffffff;
}

.directions h2 {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.directions .sub {
    text-align: center;
    font-size: 18px;
    color: #5a5a72;
    margin-bottom: 48px;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.dir-card {
    background: #f8f9fb;
    border-radius: 20px;
    padding: 32px 20px 28px;
    text-align: center;
    border: 1px solid #eaeaef;
    transition: 0.3s ease;
    text-decoration: none;
    color: #1a1a2e;
    display: block;
}

.dir-card:hover {
    border-color: #f5a623;
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.12);
}

.dir-card .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.dir-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dir-card p {
    font-size: 14px;
    color: #5a5a72;
    margin-bottom: 12px;
    line-height: 1.4;
}

.dir-card .meta {
    font-size: 13px;
    color: #6a6a82;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dir-card .meta span {
    background: #eaeaef;
    padding: 2px 12px;
    border-radius: 40px;
}

.dir-card .price-tag {
    display: inline-block;
    margin-top: 14px;
    font-weight: 800;
    font-size: 22px;
    color: #f5a623;
}

.dir-card .price-tag small {
    font-weight: 400;
    font-size: 14px;
    color: #6a6a82;
}

/* ============================================================
   7. ПРЕИМУЩЕСТВА (ОБЩИЕ)
   ============================================================ */
.benefits {
    padding: 60px 0;
    background: #f8f9fb;
}

.benefits h2 {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
}

.benefit-item .icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 700;
}

.benefit-item p {
    font-size: 14px;
    color: #5a5a72;
}

/* ============================================================
   8. МИНИ-ПРЕИМУЩЕСТВА (для внутренних страниц)
   ============================================================ */
.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;
}

/* ============================================================
   9. ЧТО ВХОДИТ (для внутренних страниц)
   ============================================================ */
.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;
}

/* ============================================================
   10. ПОШАГОВАЯ ПРОГРАММА (СТЕПЫ)
   ============================================================ */
.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;
}

/* ============================================================
   11. ЦЕНЫ
   ============================================================ */
.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;
}

/* ============================================================
   12. МАСТЕР
   ============================================================ */
.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;
}

/* ============================================================
   13. 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;
}

/* ============================================================
   14. ПОДПИСКА (на главной)
   ============================================================ */
.subscribe {
    padding: 60px 0;
    background: #1a1a2e;
    color: #fff;
    text-align: center;
}

.subscribe h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.subscribe p {
    color: #b0b0cc;
    margin-bottom: 28px;
}

.subscribe-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    outline: none;
}

.subscribe-form input::placeholder {
    color: #8888aa;
}

.subscribe-form input:focus {
    border-color: #f5a623;
}

.subscribe-form .btn {
    padding: 14px 32px;
}

.subscribe .privacy {
    font-size: 13px;
    color: #6a6a82;
    margin-top: 16px;
}

.subscribe .privacy a {
    color: #f5a623;
    text-decoration: none;
}

/* ============================================================
   15. ФОРМА ЗАПИСИ (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;
}

/* ============================================================
   16. ФУТЕР
   ============================================================ */
.footer {
    padding: 30px 0;
    background: #0f0f1a;
    color: #6a6a82;
    font-size: 14px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer a {
    color: #aaaacc;
    text-decoration: none;
}

.footer a:hover {
    color: #f5a623;
}

/* ============================================================
   17. АДАПТИВНОСТЬ
   ============================================================ */

/* Планшеты */
@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;
    }

    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .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-main h1 {
        font-size: 34px;
    }

    .hero h1 {
        font-size: 32px;
    }
}

/* Телефоны */
@media (max-width: 640px) {
    .hero-main h1 {
        font-size: 28px;
    }

    .hero-main p {
        font-size: 17px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 17px;
    }

    .directions-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .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;
    }

    .subscribe-form {
        flex-direction: column;
        padding: 0 16px;
    }

    .subscribe-form input {
        min-width: auto;
    }

    .logo {
        font-size: 20px;
    }

    .logo small {
        font-size: 12px;
        display: block;
    }

    .header .btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .back-link {
        font-size: 13px;
    }

    .how h2,
    .prices h2,
    .master h2,
    .faq h2,
    .cta h2,
    .steps-block h2,
    .benefits h2,
    .directions 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-grid.cols-5 {
        grid-template-columns: 1fr;
    }

    .steps-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .dir-card {
        padding: 24px 16px;
    }
}