/* Блок «Спецификация уже готова?» (includes/spec_form.html): тёмная полоса с кнопкой
   «Прислать файл», под кнопкой раскрывается форма приёма файла. Всё заскоуплено под
   .spec-sec — в глобальном style.css заняты .title/.form-block/.btn и другие короткие
   имена, без скоупа вёрстка поехала бы. Палитра — как в directions.css: брендовый
   #11AE88 на тёмном фоне --spec-ink. */

.spec-sec{
    --spec-green:#11AE88; --spec-green-d:#0E9476;
    --spec-ink:#12201c; --spec-line:rgba(255,255,255,.14);
    --spec-soft:rgba(255,255,255,.72);
    font-family:'Inter','Segoe UI',system-ui,sans-serif;
    padding:28px 0 56px;
    scroll-margin-top:100px;
}
.spec-sec *{ box-sizing:border-box; }

.spec-band{
    background:var(--spec-ink); border-radius:20px; padding:34px 38px;
    display:grid; grid-template-columns:minmax(0,1fr) auto; gap:28px; align-items:center;
}
/* Форма раскрыта - полоса перестаёт быть «кнопкой справа» и становится блоком в столбик */
.spec-band:has(.spec-box[open]){ grid-template-columns:1fr; align-items:stretch; }

.spec-title{ font-size:26px; font-weight:800; letter-spacing:-.02em; color:#fff; margin:0 0 10px; }
.spec-lead{ font-size:15.5px; line-height:1.55; color:var(--spec-soft); margin:0; max-width:72ch; }

.spec-box{ min-width:0; }
.spec-btn{
    display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
    height:52px; padding:0 30px; border-radius:12px; border:0; list-style:none;
    background:var(--spec-green); color:#fff; font-size:15.5px; font-weight:700;
    white-space:nowrap; transition:background .15s ease;
}
.spec-btn:hover{ background:var(--spec-green-d); }
.spec-btn::-webkit-details-marker{ display:none; }
/* Раскрытая форма: та же кнопка работает на сворачивание, поэтому гасим её, чтобы
   она не спорила с «Отправить файл» внизу формы. */
.spec-box[open] .spec-btn{
    margin-bottom:22px; height:42px; padding:0 20px; font-size:14px;
    background:transparent; border:1px solid var(--spec-line); color:var(--spec-soft);
}
.spec-box[open] .spec-btn:hover{ background:rgba(255,255,255,.06); color:#fff; }
.spec-btn-close{ display:none; }
.spec-box[open] .spec-btn-open{ display:none; }
.spec-box[open] .spec-btn-close{ display:inline; }

.spec-form{
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 18px;
    align-items:start;
}
.spec-field{ display:flex; flex-direction:column; gap:7px; min-width:0; }
.spec-field-wide{ grid-column:1 / -1; }
.spec-field label{ font-size:13.5px; font-weight:600; color:var(--spec-soft); }
.spec-field input[type=text],
.spec-field input[type=tel],
.spec-field input[type=email],
.spec-field input[type=file],
.spec-field textarea{
    width:100%; padding:13px 15px; border:1px solid var(--spec-line); border-radius:12px;
    background:rgba(255,255,255,.06); color:#fff;
    font-family:inherit; font-size:15px; line-height:1.35;
}
.spec-field textarea{ resize:vertical; }
.spec-field input::placeholder,
.spec-field textarea::placeholder{ color:rgba(255,255,255,.45); }
.spec-field input:focus,
.spec-field textarea:focus{ outline:none; border-color:var(--spec-green); }
/* Кнопка системного выбора файла на тёмном фоне нечитаема - перекрашиваю её отдельно */
.spec-field input[type=file]::file-selector-button{
    margin-right:12px; padding:8px 14px; border:0; border-radius:9px; cursor:pointer;
    background:rgba(255,255,255,.16); color:#fff; font-family:inherit; font-size:14px; font-weight:600;
}
.spec-hint{ font-size:12.5px; line-height:1.45; color:rgba(255,255,255,.55); }

.spec-agree{ display:flex; align-items:flex-start; gap:10px; font-weight:400 !important; cursor:pointer; }
.spec-agree input{ margin-top:2px; width:17px; height:17px; accent-color:var(--spec-green); flex:0 0 auto; }
.spec-agree span{ font-size:13.5px; line-height:1.5; color:var(--spec-soft); }
.spec-agree a{ color:#fff; text-decoration:underline; }

.spec-submit{
    grid-column:1 / -1; justify-self:start; height:52px; padding:0 30px;
    border:0; border-radius:12px; cursor:pointer;
    background:var(--spec-green); color:#fff; font-family:inherit; font-size:15.5px; font-weight:700;
    transition:background .15s ease;
}
.spec-submit:hover{ background:var(--spec-green-d); }
.spec-submit:disabled{ opacity:.6; cursor:default; }

/* Ошибки полей рисует общий .cf-error (style.css), но на тёмном фоне он не виден */
.spec-sec .cf-error{ font-size:12.5px; line-height:1.4; color:#FFB4A8; }
.spec-sec .cf-error:empty{ display:none; }

.spec-thanks{ display:flex; flex-direction:column; gap:6px; color:#fff; }
.spec-thanks strong{ font-size:18px; font-weight:700; }
.spec-thanks span{ font-size:15px; color:var(--spec-soft); }

@media (max-width:900px){
    .spec-band{ grid-template-columns:1fr; padding:28px 24px; }
    .spec-title{ font-size:22px; }
}
@media (max-width:640px){
    .spec-sec{ padding:20px 0 40px; }
    .spec-form{ grid-template-columns:1fr; }
    .spec-btn,
    .spec-submit{ width:100%; }
}
