/* Loaded only by page-kak-zakazat.php. All presentation is scoped to its main element. */
@font-face {
    font-family: 'FC Order Inter';
    src: url('fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FC Order Inter';
    src: url('fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FC Order Manrope';
    src: url('fonts/manrope-v20-cyrillic_latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
.fc-order-page {
    --fc-font-body: 'FC Order Inter', system-ui, sans-serif;
    --fc-font-head: 'FC Order Manrope', system-ui, sans-serif;
    --fc-radius: 10px;
    background: var(--fc-white);
    color: var(--fc-text);
    font-size: 15px;
    line-height: 1.65;
}
.fc-order-page *, .fc-order-page *::before, .fc-order-page *::after { box-sizing: border-box; }
.fc-order-page h1, .fc-order-page h2, .fc-order-page h3 { font-weight: 700; }
.fc-order-page h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; margin: 0 0 26px; }
.fc-order-page h3 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
.fc-order-page p { margin: 0; }
.fc-order-page .fc-order-section { padding: 56px 0; }
.fc-order-page .fc-order-intro { background: var(--fc-navy); color: var(--fc-white); padding: 44px 0; }
.fc-order-page .fc-order-intro h1 { color: var(--fc-white); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; max-width: 880px; margin: 0 0 16px; }
.fc-order-page .fc-order-intro p { max-width: 850px; color: #e1e8f1; font-size: 16px; margin-bottom: 24px; }
.fc-order-page .fc-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.fc-order-page .fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px !important;
    border-radius: 7px;
    font-size: 14px !important;
    line-height: 1.4;
    font-weight: 700;
    max-width: 100%;
    white-space: normal;
    transition: background-color .2s, border-color .2s, color .2s;
}
.fc-order-page .fc-btn:hover { transform: none; box-shadow: none; }
.fc-order-page .fc-btn--accent { background: var(--fc-red-dark); color: var(--fc-white); }
.fc-order-page .fc-btn--accent:hover { background: #a5222e; }
.fc-order-page .fc-order-btn-light { background: transparent; border: 1px solid #c7d5e8; color: white; }
.fc-order-page .fc-order-btn-light:hover { background: white; color: var(--fc-navy); border-color: white; }
.fc-order-page :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--fc-red-dark); outline-offset: 4px; }
.fc-order-page .fc-order-intro a:focus-visible { outline-color: white; }
.fc-order-page .fc-order-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fc-order-page .fc-order-method { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; min-width: 0; background: white; border: 1px solid var(--fc-border); border-radius: var(--fc-radius); }
.fc-order-page .fc-order-icon { display: block; flex: none; color: var(--fc-navy); }
.fc-order-page .fc-order-icon-box { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; background: var(--fc-bg); margin-bottom: 14px; }
.fc-order-page .fc-order-method h3 { font-size: 18px; }
.fc-order-page .fc-order-method p { color: #4b5563; margin-bottom: 20px; }
.fc-order-page .fc-order-method .fc-order-actions { margin-top: auto; }
.fc-order-page .fc-order-phones a { padding: 11px 14px !important; font-size: 13px !important; white-space: nowrap; }
.fc-order-page .fc-order-details { background: var(--fc-bg); }
.fc-order-page .fc-order-details h2 { margin-bottom: 12px; }
.fc-order-page .fc-order-section-intro { max-width: 780px; color: #4b5563; margin-bottom: 26px; }
.fc-order-page .fc-order-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; list-style: none; margin: 0; padding: 0; }
.fc-order-page .fc-order-detail-grid li { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.fc-order-page .fc-order-detail-grid .fc-order-icon { margin-top: 2px; }
.fc-order-page .fc-order-detail-grid p { color: #4b5563; font-size: 14px; }
.fc-order-page .fc-order-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fc-border); color: var(--fc-navy); }
.fc-order-page .fc-order-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.fc-order-page .fc-order-step-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--fc-navy); color: white; font-weight: 600; margin-bottom: 14px; }
.fc-order-page .fc-order-steps p { font-size: 14px; color: #4b5563; }
.fc-order-page .fc-order-calculation { background: var(--fc-bg); scroll-margin-top: var(--fc-order-scroll-offset, 190px); }
.fc-order-page .fc-order-form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.fc-order-page .fc-order-form-copy h2 { margin-bottom: 16px; }
.fc-order-page .fc-order-form-copy p { color: #4b5563; }
.fc-order-page .fc-order-form-box { padding: 24px; min-width: 0; background: white; border: 1px solid var(--fc-border); border-radius: var(--fc-radius); }
.fc-order-page .fc-order-form-box label { display: block; color: var(--fc-navy); font-size: 14px; }
.fc-order-page .fc-order-form-box :is(input:not([type=submit]):not([type=checkbox]):not([type=radio]), select, textarea) { width: 100%; min-width: 0; max-width: 100%; padding: 11px 12px; margin: 6px 0 0; border: 1px solid var(--fc-border); border-radius: 7px; background: white; color: var(--fc-text); font-size: 16px; line-height: 1.4; }
.fc-order-page .fc-order-form-box textarea { height: 110px; min-height: 110px; resize: vertical; }
.fc-order-page .fc-order-form-box input[type=file] { font-size: 13px !important; overflow: hidden; }
.fc-order-page .fc-order-form-box :is(.fc-cf7, .fc-home-fields) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fc-order-page .fc-order-form-box .fc-cf7__row { margin: 0; min-width: 0; }
.fc-order-page .fc-order-form-box :is(.fc-cf7__row:nth-child(n + 3), .fc-cf7__policy, .fc-home-field-wide) { grid-column: 1 / -1; }
.fc-order-page .fc-order-form-box :is(.fc-cf7__row p, .fc-home-fields > p) { margin: 0; min-width: 0; }
.fc-order-page .fc-order-form-box .fc-cf7__policy { margin: 0; font-size: 12px; line-height: 1.5; }
.fc-order-page .fc-order-form-box .fc-cf7__policy a { color: var(--fc-red-dark); text-decoration: underline !important; }
.fc-order-page .fc-order-form-box input[type=submit] { display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 18px !important; border: 0; border-radius: 7px; background: var(--fc-red-dark); color: white; font-size: 15px !important; font-weight: 600; line-height: 1.4; white-space: normal; cursor: pointer; }
.fc-order-page .fc-order-form-box input[type=submit]:hover { background: #a5222e; }
.fc-order-page .fc-order-form-box input[type=submit]:disabled { opacity: .6; cursor: wait; }
.fc-order-page .fc-order-form-box .wpcf7-spinner { display: block; margin: 6px auto 0; }
.fc-order-page .fc-order-form-box .wpcf7-list-item { margin-left: 0; }
.fc-order-page .fc-order-form-box .wpcf7-not-valid-tip { font-size: 12px; }
.fc-order-page .fc-order-form-box .wpcf7-response-output { margin: 16px 0 0; padding: 12px; font-size: 14px; }
@media (max-width: 1024px) {
    .fc-order-page .fc-order-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-order-page .fc-order-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-order-page .fc-order-form-layout { gap: 28px; }
}
@media (max-width: 768px) {
    .fc-order-page .fc-order-section { padding: 36px 0; }
    .fc-order-page .fc-order-intro { padding: 32px 0; }
    .fc-order-page h2 { margin-bottom: 22px; }
    .fc-order-page .fc-order-method { padding: 20px; }
    .fc-order-page .fc-order-methods { gap: 16px; }
    .fc-order-page .fc-order-method .fc-order-actions { width: 100%; }
    .fc-order-page .fc-order-form-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .fc-order-page .fc-order-form-box { padding: 20px; }
    .fc-order-page .fc-order-form-box :is(.fc-cf7, .fc-home-fields) { grid-template-columns: minmax(0, 1fr); }
    .fc-order-page .fc-order-calculation { scroll-margin-top: var(--fc-order-scroll-offset, 110px); }
}
@media (max-width: 640px) {
    .fc-order-page .fc-order-methods { grid-template-columns: minmax(0, 1fr); }
    .fc-order-page .fc-order-intro .fc-order-actions { flex-direction: column; align-items: stretch; }
    .fc-order-page .fc-order-detail-grid { gap: 20px; }
}
@media (max-width: 480px) {
    .fc-order-page .fc-order-detail-grid, .fc-order-page .fc-order-steps { grid-template-columns: minmax(0, 1fr); }
    .fc-order-page .fc-order-phones { flex-direction: column; align-items: stretch; }
    .fc-order-page .fc-order-phones a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-order-page *, .fc-order-page *::before, .fc-order-page *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Final polish: stretch the existing flex cards without fixing their height. */
.fc-order-page .fc-order-methods { align-items: stretch; }
.fc-order-page .fc-order-method { align-self: stretch; }
.fc-order-page .fc-order-method .fc-order-actions { margin-top: auto; align-self: stretch; }

/* Keep the real, keyboard-accessible file input and its native selected filename. */
.fc-order-page .fc-order-upload {
    display: block;
    padding: 16px;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    background: var(--fc-bg);
    transition: border-color .2s, background-color .2s;
}
.fc-order-page .fc-order-upload:hover { border-color: #aab8cd; }
.fc-order-page .fc-order-upload:focus-within { border-color: var(--fc-red-dark); outline: 2px solid var(--fc-red-dark); outline-offset: 3px; }
.fc-order-page .fc-order-upload-heading { display: flex; align-items: center; gap: 8px; color: var(--fc-navy); font-weight: 600; line-height: 1.4; }
.fc-order-page .fc-order-upload-heading .fc-order-icon { width: 20px; height: 20px; }
.fc-order-page .fc-order-form-box .fc-order-upload input[type=file] { margin-top: 12px; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: #4b5563; min-height: 48px; line-height: 1.5; }
.fc-order-page .fc-order-upload input[type=file]::file-selector-button { min-height: 40px; max-width: 100%; margin-right: 10px; padding: 8px 12px; border: 1px solid #c4cfde; border-radius: 6px; background: white; color: var(--fc-navy); font: inherit; font-weight: 600; cursor: pointer; }
.fc-order-page .fc-order-upload input[type=file]::file-selector-button:hover { background: #e9eef5; border-color: var(--fc-navy); }
.fc-order-page .fc-order-upload-help { display: block; margin-top: 8px; color: #4b5563; font-size: 12px; line-height: 1.5; }

.fc-order-page .fc-order-direct { margin-top: 24px; padding: 20px; border: 1px solid var(--fc-border); border-radius: 8px; background: #f0f3f7; }
.fc-order-page .fc-order-direct h3 { margin-bottom: 8px; font-size: 16px; }
.fc-order-page .fc-order-direct p { font-size: 14px; margin-bottom: 16px; }
.fc-order-page .fc-order-direct .fc-btn { gap: 7px; min-height: 44px; padding: 10px 14px !important; font-size: 13px !important; border-width: 1px; }
.fc-order-page .fc-order-direct .fc-order-icon { width: 16px; height: 16px; color: inherit; }
@media (prefers-reduced-motion: reduce) {
    .fc-order-page .fc-order-upload { transition: none; }
}
