/* Протлаб лаборатори — light "bento" design, rounded type, soft lavender + brand red/blue */
:root {
  --blue: #434da4;
  --blue-2: #363f92;
  --red: #db3739;
  --red-2: #bd2a2c;
  --bg: #f6f5fb;
  --tile: #ffffff;
  --lav: #eceafa;
  --lav-2: #e0ddf6;
  --peach: #fdecea;
  --mint: #dff7ef;
  --sun: #fff4d6;
  --ink: #1d1b3a;
  --text: #34325a;
  --text-2: #6a6890;
  --muted: #9a98b8;
  --line: #e6e4f3;
  --radius: 28px;
  --shadow: 0 30px 60px -36px rgba(40, 36, 100, .35);
  --font: "Nunito", "Nunito Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; left: -9999px; }
.sr-only:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* soft background blobs */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blobs i:nth-child(1) { width: 520px; height: 520px; background: #dcd8fb; left: -160px; top: -120px; }
.blobs i:nth-child(2) { width: 460px; height: 460px; background: #fde1df; right: -140px; top: 240px; }
.blobs i:nth-child(3) { width: 420px; height: 420px; background: #d9f4ec; left: 30%; bottom: -200px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 18px; border: 0; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .2s; }
.btn:hover { transform: translateY(-2px); background: #2c2a55; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--red-2); }
.btn--soft { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--soft:hover { background: var(--lav); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }

/* floating pill navigation */
.nav-shell { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.pill { width: min(1180px, 100%); margin: 14px auto 0; display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 14px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(16px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; box-shadow: 0 18px 40px -28px rgba(40, 36, 100, .45); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.wm { font-weight: 900; font-size: 21px; letter-spacing: .02em; line-height: 1; }
.wm .p { color: var(--blue); } .wm .l { color: var(--red); }
.brand small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 15px; color: var(--text-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--lav); color: var(--ink); }
.open-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #0f8a6c; background: var(--mint); padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.open-pill i { width: 8px; height: 8px; border-radius: 50%; background: #12b886; }
.open-pill.closed { color: #a3570c; background: var(--sun); }
.open-pill.closed i { background: #f59f00; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--ink); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 120px 24px 40px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .3s; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-weight: 900; font-size: 26px; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }

/* centered hero */
.hero { text-align: center; padding: 70px 0 40px; }
.hero .emblem { width: 120px; margin: 0 auto 22px; filter: drop-shadow(0 16px 30px rgba(67, 77, 164, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(3deg); } }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--text-2); }
.kicker b { color: var(--red); }
.hero h1 { font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.025em; margin: 22px auto 18px; max-width: 14ch; color: var(--ink); }
.hero h1 .r { color: var(--red); }
.hero h1 .b { color: var(--blue); }
.hero .lead { font-size: 19px; color: var(--text-2); max-width: 36em; margin: 0 auto 30px; }
.hero-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.promo { display: inline-flex; gap: 10px; align-items: center; margin-top: 26px; font-size: 15px; font-weight: 700; color: var(--text); background: var(--peach); padding: 10px 16px; border-radius: 16px; text-decoration: none; }
.promo b { background: var(--red); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; }

/* photo ribbon under hero */
.ribbon { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1.3fr 1fr; gap: 14px; margin-top: 46px; align-items: end; }
.ribbon figure { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.ribbon figure:nth-child(odd) { height: 210px; }
.ribbon figure:nth-child(even) { height: 270px; }
.ribbon img { width: 100%; height: 100%; object-fit: cover; }

/* bento grid */
section { scroll-margin-top: 100px; }
.sec { padding: 90px 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.head h2 { font-weight: 900; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -.02em; margin: 0; color: var(--ink); max-width: 18ch; }
.head h2 .r { color: var(--red); } .head h2 .b { color: var(--blue); }
.head p { margin: 0; color: var(--text-2); max-width: 30em; }
.tag { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { background: var(--tile); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 20px 40px -34px rgba(40, 36, 100, .4); transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { margin: 0 0 8px; font-weight: 900; font-size: 23px; color: var(--ink); line-height: 1.15; }
.tile p { margin: 0; color: var(--text-2); font-size: 16px; }
.t-lav { background: var(--lav); } .t-peach { background: var(--peach); } .t-mint { background: var(--mint); } .t-sun { background: var(--sun); }
.t-ink { background: var(--ink); color: #fff; } .t-ink h3 { color: #fff; } .t-ink p { color: #c9c7e8; }
.t-photo { padding: 0; min-height: 260px; }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-photo .cap { position: absolute; left: 16px; bottom: 16px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 12px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.big { font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.big.r { color: var(--red); }
.off { display: inline-block; font-weight: 900; font-size: 15px; color: var(--red); background: #fff; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.ico { width: 54px; height: 54px; border-radius: 18px; background: #fff; display: grid; place-items: center; margin-bottom: 18px; color: var(--blue); }
.ico svg { width: 28px; height: 28px; }
.t-peach .ico, .t-sun .ico { color: var(--red); }
.t-ink .ico { background: rgba(255, 255, 255, .1); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pills span { font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--blue); }
.t-ink .pills span { background: rgba(255, 255, 255, .1); color: #e4e2ff; }
.pills span.vd { background: var(--red); color: #fff; }
.price { font-weight: 900; font-size: 46px; line-height: 1; color: var(--ink); margin: 14px 0 4px; }
.t-ink .price { color: #fff; }
.price small { font-size: 16px; font-weight: 700; color: var(--muted); }
.tile .btn { margin-top: 20px; }
.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: baseline; color: var(--text); font-weight: 700; }
.list li::before { content: "•"; color: var(--red); font-weight: 900; }
.device { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.device .flag { font-weight: 900; font-size: 12px; background: var(--ink); color: #fff; border-radius: 8px; padding: 4px 8px; }
.device b { color: var(--ink); }

/* branches */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.branch { text-align: left; border: 2px solid transparent; cursor: pointer; display: grid; gap: 8px; }
.branch[aria-pressed="true"] { border-color: var(--blue); }
.branch .n { font-weight: 900; font-size: 15px; color: var(--muted); }
.branch .sat { justify-self: start; font-size: 12px; font-weight: 900; color: #0f8a6c; background: var(--mint); border-radius: 999px; padding: 4px 10px; }
.map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; height: 380px; box-shadow: 0 20px 40px -34px rgba(40, 36, 100, .4); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* contact */
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.phone { background: #fff; border-radius: 20px; padding: 18px; text-decoration: none; display: grid; gap: 2px; transition: transform .2s; }
.phone:hover { transform: translateY(-3px); }
.phone b { font-weight: 900; font-size: 22px; color: var(--ink); }
.phone span { font-size: 13px; font-weight: 700; color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours td { padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, .2); font-weight: 700; }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: #8ff0cf; }
.fb { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; color: #fff; font-weight: 800; text-decoration: none; }
.fb svg { width: 22px; height: 22px; }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 900; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

.site-footer { padding: 40px 0 34px; }
.foot { background: #fff; border-radius: var(--radius); padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-weight: 800; color: var(--text-2); }
.foot small { color: var(--muted); font-weight: 700; }
.float-call { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 20px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(219, 55, 57, .8); }
.float-call svg { width: 26px; height: 26px; }

[data-reveal] { opacity: 0; transform: translateY(22px) scale(.99); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .pill .btn { display: none; }
  .open-pill { margin-left: auto; }
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8 { grid-column: span 12; }
  .ribbon { grid-template-columns: 1fr 1fr 1fr; }
  .ribbon figure:nth-child(n+4) { display: none; }
  .branches { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .pill { gap: 10px; }
  .brand small { display: none; }
  .open-pill span { display: none; }
  .hero { padding: 46px 0 20px; }
  .hero .emblem { width: 92px; }
  .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }
  .tile { padding: 24px; }
  .big { font-size: 52px; }
  .ribbon { grid-template-columns: 1fr 1fr; }
  .ribbon figure { height: 170px !important; }
  .ribbon figure:nth-child(n+3) { display: none; }
  .phones { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
}
