/* ============================================================
   razrabotka-tz.css
   Самодостаточный файл стилей для страницы «Разработка ТЗ»
   Включает базовые стили из product-template.css + кастомные
   ============================================================ */

/* ============================================================
   БАЗОВЫЕ СТИЛИ (из product-template.css)
   ============================================================ */
body {
    line-height: 1.6;
    color: #1E1E1E;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

body.no-scroll {
    overflow: hidden;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
}

.checkbox-container:hover input[type="checkbox"] ~ .checkmark {
    border-color: #FF6B00;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: #FF6B00;
    border-color: #FF6B00;
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.product-template-page {
    background-color: #ffffff;
}

/* ============================================================
   РАССТОЯНИЕ МЕЖДУ БЛОКАМИ
   ============================================================ */
.product-template-page .for-whom-section,
.product-template-page .pt-process,
.product-template-page .tech-section,
.product-template-page .pricing-section,
.product-template-page .ss-reviews,
.product-template-page .faq-section,
.product-template-page .contact-form {
    padding-top: 0;
    padding-bottom: 0;
}

.product-template-page .for-whom-section,
.product-template-page .tech-section,
.product-template-page .ss-cases,
.product-template-page .ss-reviews,
.product-template-page .faq-section {
    margin-top: 100px;
}

.product-template-page .results-section {
    margin-top: 100px;
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (max-width: 900px) {
    .product-template-page .for-whom-section,
    .product-template-page .pt-process,
    .product-template-page .tech-section,
    .product-template-page .ss-cases,
    .product-template-page .pricing-section,
    .product-template-page .ss-reviews,
    .product-template-page .faq-section,
    .product-template-page .contact-form {
        margin-top: 50px;
    }

    .product-template-page .results-section {
        margin-top: 50px;
    }
}

/* ============================================================
   БЛОК 1: HERO
   ============================================================ */
.product-template-page .article-hero--template {
    background-color: #ffffff;
}

.article-hero--template {
    position: relative;
    overflow: hidden;
    padding: 140px 16px 80px;
    background-color: transparent;
}

.pt-hero {
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pt-hero__title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #333333;
    text-transform: uppercase;
    margin: 0 0 48px;
    letter-spacing: -1px;
    width: 60%;
}

.pt-hero__body {
    display: flex;
    align-items: center;
    position: relative;
}

.pt-hero__left {
    flex: 1 1 0;
    max-width: 560px;
    position: relative;
    z-index: 2;
}

.pt-hero__tagline {
    font-size: 18px;
    line-height: 1.55;
    color: #666666;
    margin: 0 0 32px;
}

.pt-hero__right {
    position: absolute;
    right: -40px;
    top: 25%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 1;
    pointer-events: none;
}

.pt-hero__image {
    width: 100%;
    max-width: 680px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin-left: auto;
}

.ss-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.ss-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background-color: #f3f3f3;
    color: #333333;
}

.ss-hero__chip--orange { background-color: #f3f3f3; color: #333333; }
.ss-hero__chip--dark { background-color: #f3f3f3; color: #333333; }

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

.ss-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.ss-hero__cta--primary { background-color: #FF6B00; color: #ffffff; }
.ss-hero__cta--primary:hover { background-color: #e05a00; }
.ss-hero__cta--secondary { background: #ffffff; color: #FF6B00; border: 1px solid #FF6B00; }
.ss-hero__cta--secondary:hover { background-color: #FF6B00; color: #ffffff; }

@media (max-width: 1024px) {
    .pt-hero__title { font-size: 44px; }
    .pt-hero__tagline { font-size: 17px; }
}

@media (max-width: 900px) {
    .article-hero--template { padding: 120px 16px 48px; }
    .pt-hero__title { font-size: 36px; width: 100%; }
    .pt-hero__body { flex-direction: column; align-items: flex-start; gap: 32px; }
    .pt-hero__left { max-width: 100%; }
    .pt-hero__right { position: static; transform: none; width: 100%; pointer-events: auto; }
    .pt-hero__image { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .article-hero--template { padding: 110px 16px 32px; }
    .pt-hero__title { font-size: 26px; margin-bottom: 32px; letter-spacing: -0.5px; }
    .pt-hero__tagline { font-size: 15px; }
    .pt-hero__image { max-width: 100%; border-radius: 0; }
    .ss-hero__chip { font-size: 13px; padding: 6px 12px; }
    .ss-hero__cta-row { flex-direction: column; }
    .ss-hero__cta { width: 100%; justify-content: center; }
}

/* ============================================================
   БЛОК 2: ДЛЯ КОГО
   ============================================================ */
.for-whom-section { padding: 80px 0; background: #ffffff; }
.for-whom-section__container { max-width: 1200px; padding: 0 20px; margin: 0 auto; }
.for-whom-section__title { font-size: 36px; font-weight: 400; color: #333333; margin: 0 0 48px; line-height: 1.2; text-transform: uppercase; }
.for-whom-section__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.for-whom-section__card { background: #ffffff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; border: 1px solid #e5e5e5; transition: border-color 0.3s ease; }
.for-whom-section__card-icon { font-size: 32px; font-weight: 600; color: #333333; line-height: 1; }
.for-whom-section__card-title { font-size: 18px; color: #333333; margin: 0; line-height: 1.2; }
.for-whom-section__card-text { font-size: 16px; color: #666666; line-height: 1.5; margin: 0; }

@media (max-width: 1024px) {
    .for-whom-section__grid { grid-template-columns: repeat(2, 1fr); }
    .for-whom-section__title { font-size: 34px; }
}
@media (max-width: 600px) {
    .for-whom-section { padding: 60px 16px; }
    .for-whom-section__grid { grid-template-columns: 1fr; }
    .for-whom-section__title { font-size: 26px; }
}

/* ============================================================
   БЛОК 3: ЧТО ПОЛУЧИТЕ
   ============================================================ */
.results-section { padding: 80px 0; background: #2a2a2a; }
.results-section__container { max-width: 1200px; padding: 0 20px; margin: 0 auto; }
.results-section__title { font-size: 36px; font-weight: 400; color: #ffffff; margin: 0 0 48px; line-height: 1.2; text-transform: uppercase; }
.results-section__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.results-section__item { background: rgba(255,255,255,0.05); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; border: 1px solid rgba(255,255,255,0.08); }
.results-section__number { font-size: 32px; font-weight: 600; color: #FF6B00; line-height: 1; letter-spacing: -0.5px; }
.results-section__step-title { font-size: 18px; font-weight: 600; color: #ffffff; margin: 0; line-height: 1.2; }
.results-section__text { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.5; margin: 0; }

@media (max-width: 1024px) {
    .results-section__grid { grid-template-columns: repeat(2, 1fr); }
    .results-section__title { font-size: 30px; }
}
@media (max-width: 900px) {
    .results-section__number { font-size: 26px; font-weight: 500; }
    .results-section__step-title { font-size: 16px; font-weight: 500; }
    .results-section__text { font-size: 15px; }
}
@media (max-width: 600px) {
    .results-section { padding: 60px 16px; }
    .results-section__grid { grid-template-columns: 1fr; }
    .results-section__title { font-size: 24px; margin-bottom: 32px; }
    .results-section__number { font-size: 22px; }
    .results-section__step-title { font-size: 15px; }
    .results-section__text { font-size: 14px; }
}

/* ============================================================
   БЛОК 4: КАК РАБОТАЕМ
   ============================================================ */
.pt-process { margin-top: 100px; padding: 0; background: #ffffff; }
.pt-process__container { max-width: 1160px; margin: 0 auto; }
.pt-process__title { font-size: 36px; font-weight: 700; color: #333333; text-transform: uppercase; letter-spacing: -0.5px; margin: 0 0 48px; }
.pt-process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pt-process__card { position: relative; background: #f5f5f5; border-radius: 16px; padding: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }
.pt-process__num { position: absolute; top: -8px; right: 12px; font-size: 96px; font-weight: 800; line-height: 1; color: #e8e8e8; letter-spacing: -4px; user-select: none; pointer-events: none; }
.pt-process__name { font-size: 18px; font-weight: 700; color: #333333; margin: 0; line-height: 1.3; padding-top: 56px; position: relative; z-index: 1; }
.pt-process__desc { font-size: 16px; line-height: 1.65; color: #666666; margin: 0; position: relative; z-index: 1; }

@media (max-width: 1024px) { .pt-process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .pt-process { padding: 56px 16px; }
    .pt-process__container { padding: 0; }
    .pt-process__title { font-size: 26px; margin-bottom: 32px; }
    .pt-process__grid { grid-template-columns: 1fr; gap: 12px; }
    .pt-process__num { font-size: 80px; }
    .pt-process__name { font-size: 17px; padding-top: 48px; }
}

/* ============================================================
   БЛОК 5: ТЕХНОЛОГИИ
   ============================================================ */
.tech-section { padding: 80px 0; background: #ffffff; }
.tech-section__container { max-width: 1200px; padding: 0 20px; margin: 0 auto; }
.tech-section__title { font-size: 36px; font-weight: 400; color: #333333; margin: 0 0 48px; line-height: 1.2; text-transform: uppercase; }
.tech-section__categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tech-section__category { background: #ffffff; border-radius: 16px; padding: 24px; border: 1px solid #e5e5e5; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tech-section__category-title { font-size: 14px; font-weight: 500; color: #ffffff; background: #333333; border-radius: 100px; padding: 8px 18px; display: inline-block; line-height: 1.6; }
.tech-section__category:nth-child(3n+1) .tech-section__category-title { background: #FF6B00; }
.tech-section__category:nth-child(3n+2) .tech-section__category-title { color: #333; background: #f5f5f5; }
.tech-section__category:nth-child(3n+3) .tech-section__category-title { background: #333333; }
.tech-section__items { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.tech-section__item { font-size: 16px; color: #333333; }
.tech-section__item + .tech-section__item::before { content: '\2022'; color: #cccccc; margin: 0 10px; }

@media (max-width: 900px) {
    .tech-section__categories { grid-template-columns: 1fr; }
    .tech-section__title { font-size: 34px; }
}
@media (max-width: 600px) {
    .tech-section { padding: 60px 16px; }
    .tech-section__title { font-size: 26px; margin: 0 0 30px; }
    .tech-section__container { padding: 0; }
}

/* ============================================================
   БЛОК 6: КЕЙСЫ
   ============================================================ */
.ss-cases { padding: 80px 0; background: #f7f7f7; }
.ss-cases__container { max-width: 1200px; padding: 0 20px; margin: 0 auto; }
.ss-cases__title { font-size: 36px; font-weight: 700; color: #333333; text-transform: uppercase; letter-spacing: -0.5px; margin: 0 0 48px; }
.ss-cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ss-cases__card { background: #ffffff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #eeeeee; }
.ss-cases__img-wrap { background: #f0f0f0; height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ss-cases__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ss-cases__name { font-size: 14px; font-weight: 600; color: #888888; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.ss-cases__metric { font-size: 32px; font-weight: 800; color: #FF6B00; margin: 0; letter-spacing: -1px; line-height: 1.1; }
.ss-cases__desc { font-size: 16px; line-height: 1.6; color: #666666; margin: 0; flex: 1; }
.ss-cases__link { font-size: 14px; font-weight: 600; color: #FF6B00; text-decoration: none; margin-top: 8px; display: inline-block; }
.ss-cases__link:hover { text-decoration: underline; }

@media (max-width: 1024px) { .ss-cases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .ss-cases { padding: 56px 16px; }
    .ss-cases__container { padding: 0; }
    .ss-cases__title { font-size: 26px; margin-bottom: 32px; }
    .ss-cases__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   БЛОК 7: СТОИМОСТЬ (стиль salesynergy)
   ============================================================ */
.ss-pricing { background: #ffffff; margin-top: 100px; }
.ss-pricing__container { max-width: 1200px; padding: 0 20px; margin: 0 auto; }
.ss-pricing__title { font-size: 36px; font-weight: 400; color: #333333; margin: 0 0 16px; line-height: 1.2; text-transform: uppercase; }
.ss-pricing__subtitle { font-size: 18px; color: #666666; margin: 0 0 48px; }
.ss-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.ss-pricing__card { background: #ffffff; border-radius: 16px; padding: 24px; border: 1px solid #e5e5e5; transition: border-color 0.3s ease; }
.ss-pricing__plan { font-size: 24px; font-weight: 500 !important; color: #333333; margin: 0 0 16px; line-height: 1.2; }
.ss-pricing__price-row { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; border-bottom: 1px solid #e5e5e5; }
.ss-pricing__price { font-size: 32px; font-weight: 700; color: #FF6B00; padding: 0 0 16px; margin: 0; }
.ss-pricing__gens { font-size: 16px; line-height: 1.5; color: #666666; padding: 0 0 16px; white-space: nowrap; }
.ss-pricing__desc { font-size: 16px; line-height: 1.5; color: #666666; margin: 0; }
.ss-pricing__footer { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 1024px) { .ss-pricing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .ss-pricing { padding: 56px 16px; margin-top: 50px; }
    .ss-pricing__container { padding: 0; }
    .ss-pricing__title { font-size: 26px; }
    .ss-pricing__subtitle { font-size: 15px; margin-bottom: 28px; }
    .ss-pricing__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   БЛОК 8: ОТЗЫВЫ
   ============================================================ */
.ss-reviews { padding: 80px 0; background: #ffffff; }
.ss-reviews__container { max-width: 1200px; padding: 0 20px; margin: 0 auto; }
.ss-reviews__title { font-size: 36px; font-weight: 700; color: #333333; text-transform: uppercase; letter-spacing: -0.5px; margin: 0 0 48px; }
.ss-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ss-reviews__card { background: #f7f7f7; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.ss-reviews__quote { font-size: 16px; line-height: 1.65; color: #333333; margin: 0; flex: 1; }
.ss-reviews__author { display: flex; align-items: center; gap: 12px; }
.ss-reviews__avatar { width: 48px; height: 48px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #888888; flex-shrink: 0; overflow: hidden; }
.ss-reviews__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ss-reviews__name { font-size: 16px; font-weight: 700; color: #333333; margin: 0 0 2px; }
.ss-reviews__role { font-size: 14px; color: #666666; margin: 0; }

@media (max-width: 1024px) { .ss-reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .ss-reviews { padding: 56px 16px; }
    .ss-reviews__container { padding: 0; }
    .ss-reviews__title { font-size: 26px; margin-bottom: 32px; }
    .ss-reviews__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   БЛОК 9: FAQ
   ============================================================ */
.faq-section { padding: 80px 0; background: #ffffff; overflow: hidden; }
.faq-section__container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.faq-section__title { font-size: 36px; color: #000; margin-bottom: 48px; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400; }
.faq-section__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.faq-section__item { background: transparent; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 10px; transition: all 0.3s ease; }
.faq-section__item.active { border-bottom-color: #FF6B00; }
.faq-section__question { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; }
.faq-section__question span { font-size: 20px; font-weight: 500; color: #000; padding-right: 40px; letter-spacing: 0.01em; transition: color 0.3s ease; }
.faq-section__item.active .faq-section__question span { color: #FF6B00; }
.faq-section__icon { width: 24px; height: 24px; flex-shrink: 0; position: relative; }
.faq-section__icon::before, .faq-section__icon::after { content: ''; position: absolute; background: #000; transition: all 0.3s ease; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-section__icon::before { width: 14px; height: 1.5px; }
.faq-section__icon::after { width: 1.5px; height: 14px; }
.faq-section__item.active .faq-section__icon::before, .faq-section__item.active .faq-section__icon::after { background: #FF6B00; }
.faq-section__item.active .faq-section__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-section__answer { max-height: 0; overflow: hidden; transition: all 0.5s ease; opacity: 0; visibility: hidden; }
.faq-section__item.active .faq-section__answer { max-height: 1000px; padding: 0 0 24px; opacity: 1; visibility: visible; }
.faq-section__answer p { font-size: 16px; line-height: 1.6; color: #666; margin: 0; padding-right: 20px; }

@media (max-width: 900px) {
    .faq-section__list { grid-template-columns: 1fr; gap: 0; }
    .faq-section__title { font-size: 30px; }
    .faq-section__question span { font-size: 17px; }
}
@media (max-width: 600px) {
    .faq-section { padding: 60px 16px 40px; }
    .faq-section__title { font-size: 24px; }
    .faq-section__container { padding: 0; }
}

/* ============================================================
   БЛОК 10: ФОРМА ОБРАТНОЙ СВЯЗИ
   ============================================================ */
.contact-form { margin-top: 100px; padding: 80px 20px 40px 20px; background: #f9f9f9; }
.contact-form__container { max-width: 1160px; margin: 0 auto; padding: 40px 20px 0 20px; }
.contact-form__content { display: flex; flex-direction: row; align-items: stretch; justify-content: space-between; gap: 40px; background-color: transparent; border-radius: 0; padding: 0; }
.contact-form__left { flex: 0 0 50%; padding: 64px 32px; background-color: #fff; border-radius: 24px; margin-bottom: 5px; position: static; z-index: auto; max-width: none; display: flex; flex-direction: column; min-height: 420px; }
.contact-form__right { flex: 1; display: flex; justify-content: flex-end; align-items: center; position: static; z-index: auto; }
.phone-image-container { max-width: 100%; }
.phone-image { width: 100%; max-width: 520px; height: auto; object-fit: contain; }
.contact-form__title { font-size: 28px; font-weight: 500; line-height: 1.2; text-transform: uppercase; color: #333333; margin: 0 0 48px; }
.contact-form__form { display: flex; flex-direction: column; width: 100%; flex: 1; }
.form-group { width: 100%; margin-bottom: 24px; position: relative; }
.form-input { width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid #333333; border-radius: 0; font-size: 16px; font-family: inherit; outline: none; background-color: transparent; font-weight: 400; line-height: 1.6; color: #333333; transition: border-color 0.3s ease; }
.form-input:focus { border-bottom-color: #FF6B00; }
.form-input::placeholder { color: #999; transition: opacity 0.3s ease, transform 0.3s ease; }
.form-input:focus::placeholder { opacity: 0.7; transform: translateY(-10px); }
.checkbox-container { display: flex; align-items: center; position: relative; font-size: 14px; color: #666; line-height: 1.4; padding: 16px 0; gap: 8px; margin-top: auto; cursor: pointer; }
.privacy-link { color: #FF6B00; text-decoration: none; }
.privacy-link:hover { text-decoration: underline; }
.submit-button { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 14px 36px; border-radius: 999px; background-color: #FF6B00; color: #fff; font-size: 16px; font-family: inherit; width: auto; height: auto; border: none; cursor: pointer; transition: background-color 0.3s ease; }
.submit-button:hover { background-color: #E05F00; }
.submit-button:disabled { opacity: 0.7; cursor: default; }

@media (max-width: 1024px) { .phone-image { max-width: 420px; } }
@media (max-width: 900px) {
    .phone-image { max-width: 320px; }
    .contact-form__left { flex: 0 0 55%; }
}
@media (max-width: 768px) {
    .contact-form { padding: 30px 0 50px; margin-bottom: 40px; }
    .contact-form__content { flex-direction: column; gap: 24px; background-color: transparent; padding: 0; }
    .contact-form__left { flex: none; width: 100%; padding: 24px 20px; }
    .contact-form__right { display: none; }
}
