/* Section 05 and Footer only. Approved sections 01–04 stay unchanged. */
#order, #site-footer { font-family: 'Manrope', Arial, sans-serif; font-synthesis: none; color: var(--ink); }
#order { position: relative; isolation: isolate; background: var(--cream); padding: 76px 0 96px; min-height: calc(100vw * 941 / 1672); scroll-margin-top: 124px; }
#order .s5-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
#order .s5-background { position: absolute; inset: 0 0 auto; z-index: -1; pointer-events: none; display: block; mask-image: linear-gradient(#000 84%, transparent 100%); }
#order .s5-background img { display: block; width: 100%; height: auto; }
#order .s5-container { width: calc(100% - 80px); max-width: 1440px; margin-inline: auto; display: grid; grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); align-items: start; gap: 52px; }
#order .s5-intro { min-width: 0; padding-top: 5px; position: relative; }
#order .s5-intro::before { content: ''; position: absolute; z-index: -1; inset: -40px -38px; background: linear-gradient(90deg, transparent, rgb(255 253 246 / 95%) 5%, rgb(255 253 246 / 95%) 95%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
#order .s5-eyebrow { margin: 0 0 22px; font-size: 14px; font-weight: 500; letter-spacing: .075em; color: var(--deep); }
#order .s5-eyebrow::after { content: ''; display: block; width: 66px; height: 1px; background: var(--olive); margin-top: 15px; }
#order h2 { font-family: 'Bona Nova', Georgia, serif; font-size: clamp(58px,4.9vw,76px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; margin: 0 0 22px; color: var(--ink); }
#order h2 em { font-style: italic; font-weight: 400; color: #527d35; }
#order .s5-lede { font-size: 21px; line-height: 1.55; margin: 0; }
#order .s5-benefits { list-style: none; padding: 0; margin: 30px 0 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 23px; }
#order .s5-benefits li { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: start; gap: 16px; }
#order .s5-benefit-icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #e4eabb; color: var(--deep); }
#order .s5-benefit-icon .fm-icon { width: 36px; height: 36px; }
#order .s5-benefits h3, #order .s5-contacts h3 { font: 700 22px/1.2 'Bona Nova',Georgia,serif; margin: 4px 0 5px; }
#order .s5-benefits p { margin: 0; font-size: 16px; line-height: 1.55; }
#order .s5-contacts { padding-top: 18px; border-top: 1px solid var(--line); }
#order .s5-contacts h3 { margin: 0 0 14px; }
#order .s5-contact-row, #order .s5-contact-icons { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#order .s5-contact-row { gap: 22px; }
#order .s5-contact-icons { padding-left: 22px; border-left: 1px solid var(--line); }
#order .s5-contact { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--deep); padding: 0; }
#order .s5-contact .fm-icon { width: 26px; height: 26px; }
#order .s5-viber { width: 158px; gap: 12px; border-radius: 999px; background: #7360f2; border-color: #7360f2; color: white; font-size: 19px; font-weight: 700; }
#order .s5-viber .s5-viber-icon { display: block; width: 28px; height: auto; flex: 0 0 28px; object-fit: contain; }
#order .s5-contact:disabled { cursor: not-allowed; }
#order .s5-contact:not(:disabled):hover { background: #e4eabb; }
#order .s5-viber:not(:disabled):hover { background: #6552df; border-color: #6552df; }
#order .s5-viber:focus-visible { outline: 3px solid #4e4879; outline-offset: 4px; }
/* Retain the former phone-note footprint so the form and footer do not move. */
#order .s5-contacts::after { content: ''; display: block; height: 42.59375px; }
#order .s5-form { min-width: 0; padding: 35px 38px 30px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
#order .s5-form h3 { font: 700 clamp(32px,2.7vw,42px)/1.15 'Bona Nova',Georgia,serif; letter-spacing: -.02em; margin: 0 0 25px; }
#order .s5-fields { display: grid; gap: 12px; min-width: 0; }
#order .s5-field { position: relative; min-width: 0; }
#order .s5-field > .fm-icon { position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; color: var(--green); pointer-events: none; }
#order .s5-field input, #order .s5-field select { display: block; width: 100%; min-width: 0; height: 60px; padding: 16px 18px 16px 57px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); font: 400 16px/1.5 'Manrope',Arial,sans-serif; }
#order .s5-field input::placeholder { color: var(--muted); opacity: 1; }
#order .s5-field select { appearance: none; padding-right: 43px; cursor: pointer; }
#order .s5-field select:invalid { color: var(--muted); }
#order .s5-field option { color: var(--ink); background: var(--paper); }
#order .s5-field .s5-select-arrow { right: 16px; left: auto; width: 20px; }
#order .s5-selected-label { display: none; }
#order .s5-details { border: 1px solid var(--line); border-radius: 14px; padding: 17px 18px; min-width: 0; }
#order .s5-details label { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 16px; }
#order .s5-details label .fm-icon { color: var(--green); flex: 0 0 24px; }
#order .s5-details textarea { display: block; width: calc(100% - 39px); min-width: 0; margin: 7px 0 0 39px; padding: 0; border: 0; border-radius: 4px; background: transparent; font: 400 16px/1.5 'Manrope',Arial,sans-serif; color: var(--ink); min-height: 48px; height: 48px; resize: vertical; }
#order .s5-details p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 6px 0 0 39px; }
#order .s5-consent { display: grid; grid-template-columns: 23px minmax(0,1fr); align-items: start; gap: 13px; margin: 20px 0; font-size: 14px; line-height: 1.55; }
#order .s5-consent input { width: 23px; height: 23px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
#order .s5-consent label { cursor: pointer; }
#order .s5-pending-legal { display: block; color: var(--muted); }
#order .s5-pending-legal small { font-size: inherit; }
#order .s5-submit { display: flex; justify-content: center; align-items: center; width: 100%; min-width: 0; min-height: 60px; gap: 16px; padding: 15px 18px; border-radius: 18px; border: 1px solid #2b6029; background: #2b6029; color: white; font: 600 18px/1.5 'Manrope',Arial,sans-serif; cursor: pointer; }
#order .s5-submit:hover { background: #18461e; }
#order :is(input,select,textarea,button,a):focus-visible, #site-footer a:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }
#order .s5-details:focus-within { border-color: var(--green); }
#order .s5-demo-note { display: flex; gap: 10px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }
#order .s5-demo-note .fm-icon { flex: 0 0 19px; width: 19px; height: 19px; }
#order .s5-status { font-size: 14px; line-height: 1.6; margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--olive); background: #e4eabb66; color: var(--deep); overflow-wrap: anywhere; }
#order .s5-status:empty { display: none; }
#site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 24px 0; }
#site-footer .s5-footer-inner { width: calc(100% - 80px); max-width: 1440px; margin-inline: auto; display: grid; grid-template-columns: 100px minmax(0,1fr) auto; gap: 28px; align-items: center; }
#site-footer .s5-footer-logo { display: block; position: relative; width: 100px; height: 100px; border-radius: 50%; }
#site-footer .s5-footer-logo img { display: block; position: absolute; left: -10px; top: -10px; width: 120px; max-width: none; height: auto; object-fit: contain; filter: none; transform: none; image-rendering: auto; }
#site-footer .s5-footer-copy { text-align: center; min-width: 0; }
#site-footer .s5-footer-copy p { margin: 0 0 9px; font-size: 14px; color: var(--muted); }
#site-footer .s5-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--muted); }
#site-footer .s5-footer-copy small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
#site-footer .s5-to-top { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--green); }
#site-footer .s5-to-top:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 1025px) and (max-width: 1280px) {
  #order .s5-container { gap: 30px; }
  #order h2 { font-size: 57px; }
  #order .s5-lede { font-size: 19px; }
  #order .s5-benefits { gap: 22px 16px; }
  #order .s5-benefits li { grid-template-columns: 50px minmax(0,1fr); gap: 12px; }
  #order .s5-benefit-icon { width: 50px; height: 50px; }
  #order .s5-benefit-icon .fm-icon { width: 30px; height: 30px; }
  #order .s5-benefits h3 { font-size: 20px; }
  #order .s5-benefits p { font-size: 14px; }
  #order .s5-form { padding: 28px; }
}
@media (max-width: 1024px) {
  #order { padding: 64px 0 72px; min-height: 0; scroll-margin-top: 88px; }
  #order .s5-container { width: calc(100% - 48px); max-width: 720px; grid-template-columns: minmax(0,1fr); gap: 40px; }
  #order .s5-background { opacity: .72; mask-image: linear-gradient(#000 70%, transparent); }
  #order .s5-intro { padding: 14px 0 0; position: relative; }
  #order .s5-intro::before { inset: -30px -20px; }
  #order h2 { font-size: 58px; max-width: 650px; }
  #order .s5-lede { font-size: 20px; }
  #order .s5-form { padding: 34px; }
  #order .s5-form h3 { font-size: 39px; }
  #site-footer .s5-footer-inner { width: calc(100% - 48px); grid-template-columns: 84px minmax(0,1fr); gap: 16px 24px; }
  #site-footer .s5-footer-logo { width: 84px; height: 84px; }
  #site-footer .s5-footer-logo img { width: 100px; left: -8px; top: -8px; }
  #site-footer .s5-footer-copy { text-align: left; }
  #site-footer .s5-legal { justify-content: flex-start; }
  #site-footer .s5-to-top { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  #order { padding: 48px 0 48px; scroll-margin-top: 82px; }
  #order .s5-container { width: calc(100% - 36px); gap: 30px; }
  #order .s5-intro::before { left: -16px; right: -16px; }
  #order .s5-eyebrow { font-size: 12px; margin-bottom: 20px; }
  #order .s5-eyebrow::after { margin-top: 12px; width: 56px; }
  #order h2 { font-size: 43px; line-height: 1.09; margin-bottom: 21px; }
  #order .s5-lede { font-size: 17px; line-height: 1.65; }
  #order .s5-benefits { grid-template-columns: minmax(0,1fr); margin: 26px 0; gap: 20px; }
  #order .s5-benefits li { grid-template-columns: 56px minmax(0,1fr); gap: 16px; }
  #order .s5-benefit-icon { width: 56px; height: 56px; }
  #order .s5-benefit-icon .fm-icon { width: 32px; height: 32px; }
  #order .s5-benefits h3 { font-size: 21px; margin-top: 2px; }
  #order .s5-benefits p { font-size: 15px; }
  #order .s5-contacts h3 { font-size: 21px; }
  #order .s5-contact-row { gap: 14px; }
  #order .s5-contact-icons { gap: 8px; padding-left: 14px; }
  #order .s5-contact { width: 46px; height: 46px; }
  #order .s5-viber { width: 132px; }
  #order .s5-form { padding: 25px 20px; border-radius: 24px; }
  #order .s5-form h3 { font-size: 31px; line-height: 1.15; margin-bottom: 23px; }
  #order .s5-field input, #order .s5-field select { height: 58px; padding-left: 45px; padding-right: 12px; font-size: 16px; }
  #order .s5-field > .fm-icon { left: 13px; top: 18px; width: 21px; height: 21px; }
  #order .s5-field select { padding-right: 32px; }
  #order .s5-field .s5-select-arrow { left: auto; right: 9px; width: 18px; }
  /* Native options remain intact; the selected long name wraps visually on phones. */
  #order .s5-select:has(select:valid) select { height: 74px; color: transparent; }
  #order .s5-select:has(select:valid) > .fm-icon { top: 26px; }
  #order .s5-select:has(select:valid) .s5-selected-label { display: flex; position: absolute; inset: 0 32px 0 45px; align-items: center; pointer-events: none; font-size: 15px; line-height: 1.4; }
  #order .s5-select:has(option[value="5 кг"]:checked) .s5-selected-label::after { content: 'Стандартна кошница — 5 кг'; }
  #order .s5-select:has(option[value="7 кг"]:checked) .s5-selected-label::after { content: 'Бизнес кошница — 7 кг'; }
  #order .s5-select:has(option[value="10 кг"]:checked) .s5-selected-label::after { content: 'Корпоративна кошница — 10 кг'; }
  #order .s5-details { padding: 16px 13px; }
  #order .s5-details label { gap: 10px; font-size: 15px; }
  #order .s5-details label .fm-icon { flex-basis: 21px; width: 21px; }
  #order .s5-details textarea { width: 100%; margin-left: 0; height: 72px; }
  #order .s5-details p { margin-left: 0; font-size: 12px; }
  #order .s5-consent { font-size: 13px; gap: 11px; margin-block: 20px; }
  #order .s5-submit { min-height: 56px; font-size: 16px; padding-inline: 12px; }
  #order .s5-demo-note { font-size: 12px; }
  #site-footer { padding: 26px 0 22px; }
  #site-footer .s5-footer-inner { width: calc(100% - 36px); grid-template-columns: minmax(0,1fr); justify-items: center; gap: 16px; }
  #site-footer .s5-footer-logo { width: 80px; height: 80px; }
  #site-footer .s5-footer-logo img { width: 96px; left: -8px; top: -8px; }
  #site-footer .s5-footer-copy { text-align: center; }
  #site-footer .s5-footer-copy p { font-size: 12px; }
  #site-footer .s5-legal { justify-content: center; font-size: 11px; gap: 6px 16px; }
  #site-footer .s5-to-top { grid-column: auto; justify-self: center; font-size: 13px; }
}
@media (max-width: 360px) {
  #order .s5-container, #site-footer .s5-footer-inner { width: calc(100% - 32px); }
  #order h2 { font-size: 38px; }
  #order .s5-contact-icons { padding-left: 0; border-left: 0; }
  #order .s5-form { padding-inline: 15px; }
  #order .s5-form h3 { font-size: 29px; }
}
/* Fit the four unchanged-size contact icons alongside Viber on narrow phones. */
@media (min-width: 361px) and (max-width: 640px) {
  #order .s5-contact-row { column-gap: 8px; }
  #order .s5-contact-icons { padding-left: 8px; gap: 6px; }
}
