/* Google Sans — Bulgarian Cyrillic (locl / BGR), same files as intellinec.com.
   lang="bg" selects the Bulgarian shapes. Russian forms stay unused. */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/google-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/google-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #c52902;
  --brand-dark: #a32102;
  --ink: #141821;
  --muted: #5c6570;
  --line: #e7eaef;
  --bg: #f6f7fa;
  --card: #fff;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 10px 30px rgba(20, 28, 45, 0.06), 0 0 0 1px rgba(20, 28, 45, 0.045);
  --shadow-hover: 0 18px 44px rgba(20, 28, 45, 0.1), 0 0 0 1px rgba(20, 28, 45, 0.05);
  --header: 76px;
  --max: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(560px 300px at 6% 36%, rgba(126, 174, 220, 0.16), transparent 70%),
    radial-gradient(520px 280px at 98% 8%, rgba(232, 176, 120, 0.13), transparent 72%),
    radial-gradient(480px 260px at 94% 82%, rgba(197, 41, 2, 0.05), transparent 70%),
    var(--bg);
  font-family: "Google Sans", "Segoe UI", sans-serif;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "locl" 1;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input { font: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip:focus { top: 12px; }

.boot-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  background: var(--brand);
  pointer-events: none;
  animation: boot 1.05s var(--ease) forwards;
}

@keyframes boot {
  0% { transform: scaleX(0); opacity: 1; }
  72% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

.orb {
  position: fixed;
  z-index: 0;
  left: -16vw;
  bottom: -22vw;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  border-radius: 50%;
  background: var(--brand);
  pointer-events: none;
  animation: orb-in 1.15s var(--ease) both;
}

@keyframes orb-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(20, 24, 33, 0.06);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow 0.35s var(--ease);
}

.header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 24, 33, 0.05); }

.header-inner,
.legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img { height: 46px; width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.011em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.btn svg { width: 16px; height: 16px; }

.btn:hover { background: var(--brand-dark); }

.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #e1e5eb;
}

.btn-ghost:hover { background: #f7f8fa; }

.main {
  position: relative;
  z-index: 1;
  padding: 18px 0 12px;
}

.directions { padding: 36px 0 8px; text-align: center; }

.kicker {
  width: 46px;
  height: 3px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: var(--brand);
}

.directions h1,
.policy h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  font-weight: 650;
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.lede {
  max-width: 38rem;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.011em;
  text-wrap: balance;
}

body.has-cookie { padding-bottom: 132px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
  text-align: left;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 12px 12px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fff 58%, #f7f8fb 100%);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card-gas { background: linear-gradient(180deg, #fff 0%, #fff 55%, #f3f7fb 100%); }
.card-home { background: linear-gradient(180deg, #fff 0%, #fff 55%, #fbf7f4 100%); }
.card-smart { background: linear-gradient(180deg, #fff 0%, #fff 55%, #fbf8f1 100%); }

.card:focus-visible { outline-offset: 4px; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }

  .card:hover .card-media img { transform: scale(1.06); }

  .card:hover .card-go {
    background: var(--brand);
    color: #fff;
    transform: translateX(2px);
  }
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #e8ecf1;
}

.card-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease);
}

.card-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #7eebff;
  background: rgba(8, 22, 38, 0.38);
  border: 1px solid rgba(126, 235, 255, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.pin svg { width: 16px; height: 16px; }

.pin-1 { top: 14%; left: 10%; }
.pin-2 { top: 18%; right: 12%; animation: float 5.5s ease-in-out infinite; }
.pin-3 { right: 20%; bottom: 16%; animation: float 6.2s ease-in-out 0.4s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: end;
  padding: 16px 8px 2px;
}

.brand {
  grid-column: 1 / -1;
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2px;
}

.card-copy { display: contents; }

.card-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.028em;
  line-height: 1.2;
  text-wrap: balance;
}

.card-text {
  margin: 6px 0 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
  letter-spacing: -0.011em;
}

.card-go {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 24, 33, 0.08), 0 0 0 1px rgba(20, 24, 33, 0.04);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.card-go svg { width: 18px; height: 18px; }

.contact {
  padding: 28px 0 8px;
  scroll-margin-top: 96px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 1.5fr);
  padding: 8px 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 28px;
}

.contact-item + .contact-item { border-left: 1px solid var(--line); }

.contact-icon {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: var(--brand);
}

.contact-icon svg { width: 28px; height: 28px; display: block; }

.contact-item h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.contact-item p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.45; }

.contact-item a { text-decoration: none; }

.contact-item a:hover { color: var(--brand); }

.phone,
.mail {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.phone { font-size: 1.15rem; }

.sub { margin-top: 2px; }

.nowrap { white-space: nowrap; }

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-top: 6px;
}

.channels a { white-space: nowrap; }

.dot {
  width: 3px;
  height: 3px;
  align-self: center;
  border-radius: 50%;
  background: #c5cad1;
}

.legal {
  position: relative;
  z-index: 1;
  padding: 8px 0 28px;
}

.legal-inner {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
}

.legal a,
.legal button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal a:hover,
.legal button:hover { color: var(--brand); }

.rise { animation: rise 0.95s var(--ease) both; }
.rise-1 { animation-delay: 0.04s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.16s; }
.rise-4 { animation-delay: 0.26s; }
.rise-5 { animation-delay: 0.36s; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

.cookie {
  position: fixed;
  z-index: 45;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(860px, 100%);
  padding: 16px 16px 16px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 50px rgba(20, 24, 33, 0.14), 0 0 0 1px rgba(20, 24, 33, 0.05);
  pointer-events: auto;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.cookie.is-in .cookie-inner { transform: none; opacity: 1; }

.cookie p { margin: 0; color: #3d4654; font-size: 0.94rem; line-height: 1.45; }

.cookie a { color: var(--ink); font-weight: 600; }

.cookie-actions { display: flex; flex: none; gap: 8px; }

.modal[hidden],
.cookie[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 28, 0.46);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal.is-open .modal-backdrop { opacity: 1; }

.modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(840px, 100%);
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(20, 24, 33, 0.22);
  transform: translateY(16px) scale(0.985);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
}

.modal.is-open .modal-dialog { transform: none; opacity: 1; }

.modal-dialog iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-dialog.is-loaded iframe { opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(20, 24, 33, 0.14);
  cursor: pointer;
}

.modal-close svg { width: 16px; height: 16px; }

.modal-close:hover { color: var(--brand); }

body.modal-open { overflow: hidden; }

.page-policy { background: #fff; }

.policy {
  max-width: 740px;
  margin: 0 auto;
  padding: 42px 0 72px;
}

.policy .updated { margin: 10px 0 0; color: var(--muted); }

.policy h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.policy h3 {
  margin: 1.2rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.policy p,
.policy li { color: #3c4553; font-size: 1.02rem; line-height: 1.65; }

.policy ul,
.policy ol { padding-left: 1.2rem; }

.policy a { color: var(--brand); }

.policy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.table-wrap {
  margin: 14px 0 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.policy table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }

.policy th,
.policy td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.policy tr:last-child td { border-bottom: 0; }

.policy th { color: var(--ink); font-weight: 650; background: #f7f8fb; }

html.is-embed body { background: #fff; }

html.is-embed .policy { padding: 18px 8px 36px; }

html.is-embed .policy h1 { padding-right: 56px; }

@media (max-width: 1080px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 22px) / 2);
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; padding: 6px 0; }
  .contact-item + .contact-item { border-top: 1px solid var(--line); border-left: 0; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions { justify-content: flex-end; }
  body.has-cookie { padding-bottom: 240px; }
}

@media (max-width: 720px) {
  .wrap,
  .header-inner,
  .legal-inner { width: min(var(--max), calc(100% - 32px)); }

  .cards { grid-template-columns: 1fr; }
  .card:last-child { grid-column: auto; width: auto; }
  .directions { padding-top: 22px; }
  .orb { left: -140px; bottom: -150px; width: 240px; height: 240px; }
  .modal { padding: 10px; }
  .modal-dialog { height: calc(100vh - 20px); border-radius: 20px; }
}

@media (max-width: 420px) {
  .logo img { height: 36px; }
  .btn { min-height: 40px; padding: 0 12px 0 14px; font-size: 13.5px; }
  .cookie { right: 10px; bottom: 10px; left: 10px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
  .contact-item { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boot-bar,
  .orb,
  .pin { animation: none; }
  .rise,
  .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .card,
  .card-media img,
  .card-go,
  .cookie-inner,
  .modal-dialog,
  .modal-backdrop { transition: none; }
}

@media print {
  .header,
  .cookie,
  .orb,
  .boot-bar,
  .legal,
  .card-go,
  .card-pins,
  .modal { display: none !important; }
  body { background: #fff; }
  .card,
  .contact-card { box-shadow: none; }
}
