/* Liberty Digital — one page: products shown as live phones, a step calculator, a request form.
   Ground white, ink near-black, Liberty orange #FF5900 as the one working colour. Manrope for titles, Inter for text. */
:root {
  --bg: #ffffff; --ink: #111318; --mut: #5b616b; --line: #e7e5e1; --soft: #f6f4f1; --dark: #121317;
  --acc: #ff5900; --acc-2: #e04e00; --acc-soft: #fff1e8;
  --r: 18px; --wrap: 1180px;
  --pad: max(5vw, 16px);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif; overflow-x: clip; }
html[data-l="ro"] [lang="ru"], html[data-l="ru"] [lang="ro"] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 800; }
h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 800; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band.soft { background: var(--soft); }
.band.dark { background: var(--dark); color: #f3f1ee; }
.sub { color: var(--mut); font-size: 18px; max-width: 60ch; margin: 14px 0 0; }
.dark .sub { color: #b9b6b0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; background: var(--acc); color: #fff; font: 600 16px Inter, sans-serif; text-decoration: none; border: 1.5px solid var(--acc); cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--acc-2); border-color: var(--acc-2); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn:focus-visible, .lang button:focus-visible, .opt:focus-within { outline: 3px solid #ffb48a; outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: 5px; text-decoration: none; font-family: Manrope, sans-serif; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.logo b { font-weight: 800; }
.logo i { font-style: normal; font-weight: 700; color: var(--acc); }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--mut); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: none; font: 600 14px Inter, sans-serif; color: var(--mut); padding: 8px 6px; cursor: pointer; border-radius: 8px; }
.lang button.on { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--acc-soft) 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.kick { margin: 0 0 16px; font-weight: 600; color: var(--acc-2); font-size: 15px; }
.lead { font-size: 19px; color: var(--mut); margin: 20px 0 0; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.facts li { display: flex; flex-direction: column; font-size: 14px; color: var(--mut); line-height: 1.3; }
.facts b { font: 800 34px/1 Manrope, sans-serif; color: var(--ink); margin-bottom: 6px; }
.hero-pic { position: relative; height: clamp(420px, 46vw, 600px); }

/* phones */
.phone { position: relative; width: 100%; aspect-ratio: 600 / 1299; border-radius: 34px; background: #0d0e11; padding: 9px; box-shadow: 0 30px 60px -20px rgba(17, 19, 24, .35), 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.hero-pic .phone { position: absolute; width: 41%; }
.hero-pic .p1 { left: 0; top: 9%; transform: rotate(-6deg); }
.hero-pic .p2 { left: 29.5%; top: 0; z-index: 2; }
.hero-pic .p3 { right: 0; top: 9%; transform: rotate(6deg); }

/* products */
.prod { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.prod.rev .prod-pic { order: 2; }
.prod-pic { display: flex; justify-content: center; background: var(--soft); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.prod-pic .phone { width: min(280px, 72%); }
.prod-pic.two { position: relative; }
.prod-pic.two .phone { width: min(250px, 60%); z-index: 2; transform: translateX(-18%); }
.prod-pic.two .phone.back { position: absolute; z-index: 1; transform: translateX(24%) rotate(5deg) scale(.92); top: clamp(24px, 4vw, 48px); }
.tag { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 99px; background: var(--acc-soft); color: var(--acc-2); font-weight: 600; font-size: 14px; }
.one { font-size: 19px; margin: 12px 0 0; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: #2a2d33; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc) 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='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.where { margin: 18px 0 0; font-size: 14px; color: var(--mut); padding-left: 14px; border-left: 2px solid var(--acc); }

/* what we do */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tile b { font: 800 19px/1.2 Manrope, sans-serif; }
.tile p { margin: 10px 0 0; color: var(--mut); font-size: 15px; }

/* calculator */
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.calc-head { grid-column: 1 / -1; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.calc legend { display: flex; align-items: center; gap: 10px; font: 700 18px Manrope, sans-serif; margin-bottom: 12px; padding: 0; }
.calc .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.opt:hover { border-color: #c9c5bf; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { flex: none; width: 22px; height: 22px; margin-top: 1px; border: 2px solid #b9b5ae; border-radius: 50%; display: grid; place-items: center; }
.chk .opt .box { border-radius: 6px; }
.opt.on { border-color: var(--acc); background: var(--acc-soft); }
.opt.on .box { border-color: var(--acc); background: var(--acc); }
.opt.on .box::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.opt span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opt b { font-weight: 600; }
.opt small { color: var(--mut); font-size: 13.5px; line-height: 1.35; }
.opt em { flex: none; margin-left: auto; font-style: normal; font-weight: 600; color: var(--acc-2); font-size: 14px; white-space: nowrap; }
.total { position: sticky; top: 88px; background: var(--dark); color: #fff; border-radius: 22px; padding: 26px; }
.t-l { margin: 0; color: #b9b6b0; font-size: 15px; }
.t-sum { margin: 6px 0 0; font: 800 clamp(40px, 5vw, 54px)/1 Manrope, sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.t-m { margin: 10px 0 0; font-weight: 600; color: #ffb48a; min-height: 1.4em; }
.t-d { margin: 4px 0 20px; color: #d8d5cf; }
.t-note { margin: 16px 0 0; font-size: 13.5px; color: #a9a59e; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 24px 22px 22px; border-radius: var(--r); background: #1c1d22; border: 1px solid #2a2b31; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); font: 800 40px/1 Manrope, sans-serif; color: var(--acc); margin-bottom: 14px; }
.steps b { font: 700 19px/1.25 Manrope, sans-serif; }
.steps p { margin: 8px 0 14px; color: #b9b6b0; font-size: 15px; flex: 1; }
.steps em { font-style: normal; font-size: 13px; color: #ffb48a; font-weight: 600; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 700 18px/1.35 Manrope, sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--acc); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--mut); max-width: 62ch; }

/* form */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.lead-f { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 6px; }
.lead-f label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.lead-f small { color: var(--mut); font-weight: 400; }
.lead-f input, .lead-f select, .lead-f textarea { width: 100%; font: 16px Inter, sans-serif; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.lead-f input:focus, .lead-f select:focus, .lead-f textarea:focus { outline: none; border-color: var(--acc); }
.lead-f textarea { resize: vertical; }
.ph { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 8px; }
.lead-f .btn { margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-msg { margin: 6px 0 0; min-height: 1.4em; font-size: 15px; }
.f-msg.ok { color: #18794e; font-weight: 600; }
.f-msg.err { color: #c2361f; }

/* footer */
.foot { background: var(--dark); color: #d8d5cf; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .logo { color: #fff; }
.foot p { margin: 0; font-size: 14px; }
.foot .mut { color: #8f8b84; margin-left: auto; }

@media (max-width: 980px) {
  .nav { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-in, .prod, .calc-wrap, .faq-wrap, .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .prod.rev .prod-pic { order: 0; }
  .hero-pic { height: clamp(360px, 92vw, 520px); max-width: 520px; width: 100%; margin: 0 auto; }
  .total { position: static; }
}
@media (max-width: 560px) {
  .top-r .btn { display: none; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .tiles, .steps { grid-template-columns: minmax(0, 1fr); }
  .facts b { font-size: 28px; }
  .lead, .one { font-size: 17px; }
  .sub { font-size: 16px; }
  .foot .mut { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.direct { margin: 18px 0 0; font-size: 15px; color: var(--mut); }
.direct a { color: var(--acc-2); font-weight: 600; }
.foot a { color: #fff; }
