/* =========================================================================
   PARKOMAK: offer page (/offer/). Split screen: a navy panel over our own
   barrier render on the left, the four-question form on the right.
   ========================================================================= */
html { scroll-behavior: smooth; }
.offer-page [hidden] { display: none !important; }      /* our display rules must never beat the hidden attribute */
body.offer-page { margin: 0; min-height: 100vh; background: #F6F8FB; color: var(--ink-900); font-family: var(--font-body); }

/* ---------- top bar ---------- */
.ohead { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
         height: 72px; padding: 0 clamp(16px, 3vw, 40px); pointer-events: none; }
.ohead > * { pointer-events: auto; }
.ohead .logo { padding: 8px 14px 8px 8px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px -10px rgba(11, 27, 51, .4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ohead__right { display: flex; align-items: center; gap: 10px; }
.ohead__back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-full); background: #fff; border: 1px solid var(--color-border);
               font-size: var(--text-sm); font-weight: 600; color: var(--ink-800); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease-out); }
.ohead__back:hover { box-shadow: var(--shadow-md); }
.ohead .lang-pick__btn { background: #fff; }

/* ---------- layout ---------- */
.offer { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; min-height: 100vh; }
.offer__side { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: flex-end; }
.offer__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.06); }
.offer__shade { position: absolute; inset: 0; z-index: -1;
                background: linear-gradient(180deg, rgba(10, 11, 14, .35) 0%, rgba(10, 11, 14, .55) 38%, rgba(10, 11, 14, .94) 78%, #0A0B0E 100%),
                            radial-gradient(80% 60% at 0% 100%, rgba(227, 38, 47, .28), transparent 70%); }
.offer__side-inner { width: 100%; display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 4vw, 56px); padding-top: 120px; }
.offer__kicker { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: var(--radius-full);
                 background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 600; letter-spacing: .01em;
                 backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.offer__kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.offer__title { font: 700 clamp(34px, 3.6vw, 52px)/1.05 var(--font-display); letter-spacing: -.03em; color: #fff; }
.offer__lead { font-size: var(--text-lg); line-height: 1.6; color: rgba(220, 232, 250, .86); max-width: 460px; }
.offer__promises { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.offer__promises li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(220, 232, 250, .78); }
.offer__promises strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.offer__pico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px;
               background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #CFE0FF; }
.offer__pico .icon { width: 19px; height: 19px; }
.offer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(220, 232, 250, .7); }
.offer__contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; }
.offer__contact a:hover { color: #A9C8FF; }

.offer__main { display: flex; flex-direction: column; justify-content: center; padding: 112px clamp(20px, 5vw, 80px) 72px; }

/* ---------- form ---------- */
.oform, .odone { width: 100%; max-width: 680px; margin-inline: auto; }
.oform { display: flex; flex-direction: column; gap: 22px; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.oform.is-leaving { opacity: 0; transform: translateY(-14px) scale(.98); }
.oform.is-shake { animation: oform-shake .5s var(--ease-out); }
@keyframes oform-shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.oform__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.oform__title { font: 700 clamp(24px, 2.3vw, 30px)/1.15 var(--font-display); letter-spacing: -.02em; }
.oform__progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.oform__progress li { width: 26px; height: 6px; border-radius: 3px; background: var(--ink-200); transition: background .5s var(--ease-out), width .5s var(--ease-out); }
.oform__progress li.is-done { width: 38px; background: linear-gradient(90deg, #F04A52, #C8202A); }

.oform__step { margin: 0; padding: 24px; border: 1px solid var(--color-border); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(11, 27, 51, .04);
               transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out); min-width: 0; }
.oform__step:focus-within { border-color: #C9CDD4; box-shadow: 0 18px 40px -26px rgba(17, 19, 24, .45); }
/* a legend normally sits on the fieldset border: floating it puts it inside the card like any heading */
.oform__q { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0; font: 650 17px/1.35 var(--font-display); color: var(--ink-900); }
.oform__q + * { clear: both; }
.oform__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-100); color: var(--ink-600);
            font: 700 13px/1 var(--font-display); transition: background .4s var(--ease-out), color .4s var(--ease-out); }
.oform__step.is-done .oform__n { background: var(--brand); color: #fff; }
.req { color: #E5484D; }

/* tiles: what kind of entrance */
.otiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.otile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px;
         border-radius: 16px; border: 1.5px solid var(--color-border); background: #FBFCFD; cursor: pointer;
         transition: border-color .25s var(--ease-out), background .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.otile:hover { border-color: #C9CDD4; transform: translateY(-1px); }
.otile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.otile__ico { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--ink-700);
              box-shadow: inset 0 0 0 1px var(--color-border); transition: all .25s var(--ease-out); }
.otile__ico .icon { width: 21px; height: 21px; }
.otile__t { font-weight: 650; font-size: 15px; color: var(--ink-900); }
.otile__s { font-size: 12.5px; color: var(--ink-500); }
.otile:has(input:checked) { border-color: var(--brand); background: linear-gradient(135deg, #F4F5F7, #FFFFFF); box-shadow: 0 12px 26px -18px rgba(17, 19, 24, .6); }
.otile:has(input:checked) .otile__ico { background: linear-gradient(135deg, #3A3F48, #111318); color: #fff; box-shadow: 0 8px 16px -8px rgba(17, 19, 24, .7); }
.otile:has(input:checked)::after { content: ""; position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand)
         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.otile:has(input:focus-visible) { outline: 3px solid rgba(17, 19, 24, .35); outline-offset: 2px; }
.oform__other { margin-top: 14px; }

/* fields */
.ogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ofield { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ofield--full { grid-column: 1 / -1; }
.ofield__label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.ofield__opt { font-weight: 400; color: var(--ink-400); }
.oinput, .ophone__prefix { height: 52px; width: 100%; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--color-border); background: #FBFCFD; color: var(--ink-900);
                           font: 500 16px/1 var(--font-body); transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out); }
.oinput::placeholder { color: var(--ink-400); font-weight: 400; }
.oinput:hover { border-color: var(--ink-300); }
.oinput:focus, .ophone__prefix:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(17, 19, 24, .14); }
.ophone { display: flex; gap: 8px; }
.ophone__prefix { width: auto; flex: none; padding: 0 30px 0 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
                  background: #FBFCFD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D7290' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; }
.ofield__error { display: none; font-size: 13px; font-weight: 600; color: #B4232A; }
.ofield.is-invalid .ofield__error, .ofield__error.is-shown { display: block; }
.ofield.is-invalid .oinput { border-color: #E5484D; background: #FFF8F8; }
.oform__type-error, .oform__cars-error { margin-top: 10px; }

/* chips: how many cars */
.ochips { display: flex; flex-wrap: wrap; gap: 8px; }
.ochip { position: relative; cursor: pointer; }
.ochip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ochip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: var(--radius-full); border: 1.5px solid var(--color-border); background: #FBFCFD;
              font-size: 15px; font-weight: 600; color: var(--ink-700); transition: all .25s var(--ease-out); }
.ochip:hover span { border-color: #C9CDD4; }
.ochip input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; box-shadow: 0 10px 22px -12px rgba(11, 27, 51, .7); }
.ochip input:focus-visible + span { outline: 3px solid rgba(17, 19, 24, .35); outline-offset: 2px; }

.oform__wa { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #ECFDF5; color: #065F46; font-size: 13.5px; line-height: 1.45; }
.oform__wa-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #25D366; color: #fff; }

.ocheck { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-600); cursor: pointer; }
.ocheck input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); }
.ocheck a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.oform__consent-error { margin-top: -12px; }

/* the button */
.obtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 60px; padding: 0 28px; border: 0; border-radius: 18px; cursor: pointer;
        background: linear-gradient(135deg, #0B0C0F 0%, #1A1C21 55%, #2E3139 100%); color: #fff; font: 650 17px/1 var(--font-display); letter-spacing: -.01em;
        box-shadow: 0 20px 40px -20px rgba(17, 19, 24, .8), inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), filter .3s; overflow: hidden; }
.oform > .obtn { width: 100%; }
.obtn:hover { transform: translateY(-2px); box-shadow: 0 26px 46px -20px rgba(17, 19, 24, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
.obtn:focus-visible { outline: 3px solid rgba(17, 19, 24, .45); outline-offset: 3px; }
.obtn .icon { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.obtn:hover .icon { transform: translate(3px, -3px); }
.obtn.is-sending { pointer-events: none; }
.obtn.is-sending .icon { transform: translate(140px, -60px) rotate(12deg); opacity: 0; transition: transform .8s cubic-bezier(.5, 0, .75, 0), opacity .8s; }
.obtn.is-sending::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); animation: obtn-sweep .9s linear infinite; }
@keyframes obtn-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.obtn--ghost { background: #fff; color: var(--ink-900); box-shadow: inset 0 0 0 1.5px var(--color-border), var(--shadow-sm); height: 52px; }
.obtn--ghost:hover { box-shadow: inset 0 0 0 1.5px #C9CDD4, var(--shadow-md); }
.obtn--link { background: none; color: var(--ink-600); box-shadow: none; height: 52px; font-weight: 600; }
.obtn--link:hover { color: var(--brand); box-shadow: none; transform: none; }
.oform__fine { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -6px; font-size: 13px; color: var(--ink-500); }

/* ---------- after sending: the barrier lifts, the tick draws ---------- */
.odone { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 24px; border-radius: 32px; background: #fff;
         border: 1px solid var(--color-border); box-shadow: 0 40px 80px -50px rgba(11, 27, 51, .45); opacity: 0; transform: translateY(16px) scale(.98);
         transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.odone.is-in { opacity: 1; transform: none; }
.odone__scene { width: min(360px, 90%); margin-bottom: 8px; }
.odone__svg { width: 100%; height: auto; overflow: visible; }
.odone__road { fill: var(--ink-200); }
.odone__post { fill: #fff; stroke: var(--ink-200); stroke-width: 2; }
.odone__led, .odone__armled { fill: #2563EB; transition: fill .5s ease .5s; }
.odone__bar { fill: #fff; stroke: var(--ink-300); stroke-width: 2; }
.odone__hub { fill: #fff; stroke: var(--ink-300); stroke-width: 2; }
.odone__arm { transform-box: view-box; transform-origin: 51px 64px; transform: rotate(0deg); transition: transform 1.3s cubic-bezier(.65, 0, .35, 1) .9s; }
.odone__ring { fill: none; stroke: #10B981; stroke-width: 6; stroke-dasharray: 214; stroke-dashoffset: 214; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg);
               transition: stroke-dashoffset 1s var(--ease-out) 1.9s; }
.odone__tick { fill: none; stroke: #10B981; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .6s var(--ease-out) 2.6s; }
.odone.is-in .odone__led, .odone.is-in .odone__armled { fill: #10B981; }
.odone.is-in .odone__arm { transform: rotate(-72deg); }
.odone.is-in .odone__ring, .odone.is-in .odone__tick { stroke-dashoffset: 0; }
.odone__title { font: 700 clamp(28px, 3vw, 38px)/1.1 var(--font-display); letter-spacing: -.03em; outline: none; opacity: 0; transform: translateY(10px); transition: all .7s var(--ease-out) 2.4s; }
.odone__text { max-width: 470px; font-size: var(--text-lg); line-height: 1.6; color: var(--ink-600); opacity: 0; transform: translateY(10px); transition: all .7s var(--ease-out) 2.6s; }
.odone__ref { font-size: 14px; color: var(--ink-500); opacity: 0; transition: opacity .7s 2.8s; }
.odone__ref strong { font-family: var(--font-mono); font-weight: 500; color: var(--ink-900); padding: 3px 8px; border-radius: 8px; background: var(--ink-100); }
.odone__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; opacity: 0; transition: opacity .7s 3s; }
.odone.is-in .odone__title, .odone.is-in .odone__text { opacity: 1; transform: none; }
.odone.is-in .odone__ref, .odone.is-in .odone__actions { opacity: 1; }

/* ---------- phones and tablets ---------- */
@media (max-width: 980px) {
  .offer { grid-template-columns: 1fr; }
  .offer__side { position: relative; height: auto; min-height: 0; }
  .offer__side-inner { padding: 104px 22px 32px; gap: 16px; }
  .offer__promises { grid-template-columns: 1fr; }
  .offer__contact { display: none; }
  .offer__main { padding: 28px 16px 56px; }
}
@media (max-width: 600px) {
  .ohead { height: 64px; }
  .ohead__back span { display: none; }
  .ohead__back { width: 40px; padding: 0; justify-content: center; }
  .offer__lead { font-size: var(--text-md); }
  .oform__step { padding: 18px 16px; border-radius: 20px; }
  .otiles { grid-template-columns: 1fr; }
  .ogrid { grid-template-columns: 1fr; }
  .oform__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .odone { padding: 32px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .oform, .odone, .odone *, .obtn, .obtn .icon { transition: none !important; animation: none !important; }
}
