:root {
  --navy: #071a6f;
  --blue: #102896;
  --orange: #ff8700;
  --orange-dark: #e96f00;
  --green: #35a853;
  --ink: #132047;
  --muted: #697089;
  --surface: #ffffff;
  --page: #f4f6fb;
  --line: #e6e9f2;
  --shadow: 0 16px 48px rgba(14, 30, 91, 0.10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Arial, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; }
button, select { min-height: 44px; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header { position: relative; z-index: 10; background: rgba(255,255,255,.98); border-bottom: 1px solid #edf0f7; box-shadow: 0 4px 18px rgba(17,32,89,.06); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px; }
.brand { display: inline-flex; flex-direction: column; color: var(--navy); text-decoration: none; line-height: 1; }
.brand strong { font-size: 20px; letter-spacing: -.8px; }
.brand span { margin-top: 5px; color: var(--orange); font-size: 10px; font-weight: 700; }
.uralhim-brand { flex-direction: row; align-items: center; gap: 7px; }
.uralhim-brand img { width: 29px; height: 29px; }
.uralhim-brand strong { font-size: 18px; white-space: nowrap; }
.uralhim-brand strong span { margin: 0; color: var(--green); font-size: inherit; }
.header-facts { display: none; }

.state-screen { min-height: calc(100vh - 154px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; text-align: center; }
.state-screen h1 { margin: 20px 0 8px; color: var(--navy); font-size: 28px; }
.state-screen p { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.55; }
.state-icon { width: 68px; height: 68px; border-radius: 50%; background: #fff0e2; color: var(--orange-dark); font-size: 38px; line-height: 68px; }
.loader { width: 46px; height: 46px; border: 4px solid #dfe5ff; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.employee-strip { background: var(--navy); color: white; }
.employee-strip-inner { display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; padding: 13px 18px; }
.employee-avatar { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 800; }
.employee-name-block { min-width: 0; align-self: center; }
.employee-name-block span, .employee-meta dt { display: block; color: #b9c5ff; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.employee-name-block strong { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.employee-meta { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin: 0; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.15); }
.employee-meta div { min-width: 0; }
.employee-meta dd { overflow: hidden; margin: 3px 0 0; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.hero-section { overflow: hidden; background: radial-gradient(circle at 86% 15%, #fff 0, #f3f5fc 42%, #fff 78%); }
.hero-inner { padding: 34px 18px 0; }
.eyebrow, .step-kicker { color: var(--orange-dark); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hero-copy h1 { margin: 12px 0 15px; color: var(--navy); font-size: clamp(31px, 9vw, 46px); line-height: 1.08; letter-spacing: -1.4px; }
.hero-copy > p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; }
.hero-price-card { margin-top: 24px; padding: 20px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.hero-price-card > strong { display: block; color: var(--orange); font-size: 34px; line-height: 1; }
.hero-price-card > span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.meal-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.meal-parts span { color: var(--navy); font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.meal-parts b { display: block; height: 31px; font-size: 26px; font-weight: 400; line-height: 25px; }
.hero-visual { margin: 26px -18px 0; }
.hero-visual img { display: block; width: 100%; max-height: 470px; object-fit: cover; object-position: 50% 55%; }

.order-section { background: var(--page); }
.order-inner { padding: 38px 16px 24px; }
.order-heading h2 { margin: 7px 0 8px; color: var(--navy); font-size: 30px; letter-spacing: -.7px; }
.order-heading p { margin: 0 0 24px; color: var(--muted); line-height: 1.5; }
.selection-panel { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px rgba(26,43,105,.05); }
.selection-title, .department-panel label { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.selection-title b, .department-panel label b { display: block; color: var(--navy); font-size: 16px; }
.selection-title small, .department-panel label small { display: block; margin-top: 3px; color: var(--muted); }
.step-number { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 50%; background: #e9edff; color: var(--blue); font-size: 14px; font-weight: 800; line-height: 31px; text-align: center; }
#department-select { width: 100%; padding: 0 42px 0 14px; border: 1px solid #cfd5e7; border-radius: 12px; background: #fff; color: var(--ink); }
#department-select:focus { border-color: var(--blue); outline: 3px solid rgba(16,40,150,.1); }
.field-hint { margin: 9px 0 0; color: var(--orange-dark); font-size: 12px; }
.date-list { display: grid; grid-auto-columns: minmax(74px, 1fr); grid-auto-flow: column; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.date-button { min-width: 74px; padding: 10px 7px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-align: center; }
.date-button span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.date-button strong { display: block; margin-top: 4px; color: var(--navy); font-size: 16px; }
.date-button.is-active { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 8px 18px rgba(16,40,150,.22); }
.date-button.is-active span, .date-button.is-active strong { color: white; }
.shift-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shift-selector button { padding: 13px 8px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--navy); }
.shift-selector button strong, .shift-selector button small { display: block; }
.shift-selector button small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.shift-selector button.is-active { border-color: var(--blue); background: #edf0ff; box-shadow: inset 0 0 0 1px var(--blue); }
.shift-selector button:disabled { cursor: not-allowed; opacity: .43; }
.shift-icon { float: left; width: 28px; font-size: 24px; }
.meal-list { display: grid; gap: 12px; }
.meal-card { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; width: 100%; min-height: 118px; padding: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); text-align: left; }
.meal-card img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.meal-card-copy { align-self: center; padding-right: 5px; }
.meal-card-copy strong { display: block; color: var(--navy); font-size: 16px; }
.meal-card-copy p { display: -webkit-box; margin: 6px 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.meal-card-copy b { color: var(--orange-dark); font-size: 18px; }
.meal-card.is-active { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange), 0 9px 25px rgba(255,135,0,.12); }
.meal-card.is-active::after { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: white; content: "✓"; font-weight: 800; line-height: 24px; text-align: center; }
.meal-card:disabled { cursor: not-allowed; opacity: .6; }
.empty-menu { padding: 24px; border: 1px dashed #cfd5e7; border-radius: 14px; color: var(--muted); text-align: center; }
.order-summary { position: sticky; z-index: 20; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 18px; padding: 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(8,25,97,.2); backdrop-filter: blur(12px); }
.summary-copy { min-width: 0; }
.summary-copy span, .summary-copy small { display: block; color: var(--muted); font-size: 10px; }
.summary-copy strong { display: block; overflow: hidden; color: var(--navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.summary-price { color: var(--orange-dark); font-size: 18px; font-weight: 800; white-space: nowrap; }
#submit-order { grid-column: 1 / -1; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: linear-gradient(100deg, #ff9400, #ff7900); color: white; font-size: 15px; font-weight: 800; text-transform: uppercase; box-shadow: 0 8px 20px rgba(255,126,0,.25); }
#submit-order:disabled { cursor: not-allowed; background: #c9cdd8; box-shadow: none; }
#submit-order span:first-child { margin-right: 7px; }
.order-message { min-height: 20px; margin: 12px 0 0; color: var(--green); font-size: 13px; font-weight: 700; text-align: center; }
.order-message.is-error { color: #c83b31; }

.benefits { padding: 10px 16px 34px; background: var(--page); }
.benefits-inner { display: grid; gap: 10px; }
.benefits article { display: flex; gap: 13px; padding: 16px; border-radius: 16px; background: white; }
.benefits article > span { width: 38px; color: var(--blue); font-size: 29px; text-align: center; }
.benefits strong { color: var(--navy); font-size: 13px; }
.benefits p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.site-footer { background: linear-gradient(120deg, #071a6f, #0d2db9); color: white; }
.footer-inner { display: grid; gap: 18px; padding: 28px 20px calc(28px + env(safe-area-inset-bottom)); }
.footer-brand { color: white; }
.footer-inner p { margin: 0; color: #dfe5ff; font-size: 12px; line-height: 1.5; }
.footer-copy { opacity: .8; }

@media (min-width: 720px) {
  .header-inner, .employee-strip-inner, .hero-inner, .order-inner, .benefits-inner, .footer-inner { max-width: 1180px; margin: 0 auto; }
  .header-inner { min-height: 92px; padding: 0 26px; }
  .brand strong { font-size: 25px; }
  .brand span { font-size: 11px; }
  .uralhim-brand img { width: 39px; height: 39px; }
  .uralhim-brand strong { font-size: 23px; }
  .header-facts { display: flex; gap: 54px; color: var(--navy); font-size: 12px; line-height: 1.4; }
  .header-fact { display: flex; align-items: center; gap: 11px; }
  .fact-icon { color: var(--blue); font-size: 28px; }
  .employee-strip-inner { grid-template-columns: 44px 1fr auto; align-items: center; padding: 12px 26px; }
  .employee-meta { grid-column: auto; display: flex; gap: 38px; padding: 0; border: 0; }
  .employee-meta div { min-width: 140px; }
  .hero-inner { display: grid; grid-template-columns: .92fr 1.28fr; min-height: 550px; padding: 48px 26px 0; }
  .hero-copy { position: relative; z-index: 2; padding-top: 16px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy > p { max-width: 460px; }
  .hero-price-card { max-width: 390px; }
  .hero-visual { align-self: end; height: 502px; margin: 0 -56px 0 -25px; }
  .hero-visual img { width: 100%; height: 100%; max-height: none; border-radius: 52% 0 0 0; object-fit: cover; }
  .order-inner { padding: 54px 26px 42px; }
  .order-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
  .order-heading p { max-width: 470px; text-align: right; }
  .date-list { grid-auto-columns: minmax(94px, 1fr); overflow: visible; }
  .meal-list { grid-template-columns: repeat(2, 1fr); }
  .order-summary { grid-template-columns: minmax(210px, 1fr) auto minmax(250px, .7fr); padding: 17px 18px; }
  .order-summary { position: relative; bottom: auto; }
  #submit-order { grid-column: auto; }
  .benefits { padding: 0 26px 46px; }
  .benefits-inner { grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border-radius: 18px; background: var(--line); box-shadow: var(--shadow); }
  .benefits article { border-radius: 0; }
  .footer-inner { grid-template-columns: 1fr 1.2fr 1fr; align-items: center; padding: 34px 26px; }
  .footer-copy { text-align: right; }
}

@media (min-width: 1100px) {
  .selection-panel { padding: 22px 24px; }
  .department-panel { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; column-gap: 30px; }
  .department-panel label { margin: 0; }
  .department-panel .field-hint { grid-column: 2; }
  .meal-list { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
