:root {
  --ink: #0d161b;
  --muted: #5d696e;
  --paper: #edf2ef;
  --paper-strong: #ffffff;
  --dark: #070b0f;
  --dark-soft: #0c1318;
  --line: rgba(13, 22, 27, 0.16);
  --line-dark: rgba(255, 255, 255, 0.14);
  --cyan: #70e4ff;
  --mint: #75f2b3;
  --warm: #f3c86c;
  --accent: var(--cyan);
  --accent-rgb: 112, 228, 255;
}

html {
  background: var(--dark);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

body[data-service="website-development"],
body[data-service="b2b-portals"],
body[data-service="wordpress-speed-optimization"] {
  --accent: var(--mint);
  --accent-rgb: 117, 242, 179;
}

body[data-service="woocommerce-stores"],
body[data-service="booking-systems"],
body[data-service="product-catalog-imports"] {
  --accent: var(--warm);
  --accent-rgb: 243, 200, 108;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #f5f8f7;
  background: rgba(5, 9, 12, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.topbar .container {
  width: min(1240px, calc(100% - 48px));
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: #f5f8f7;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 264px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: #bac4c8;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a:not([hreflang])::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links a[hreflang] {
  min-width: 44px;
  padding: 7px 10px;
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 84px 0 70px;
  color: #f5f8f7;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 74% 24%, rgba(var(--accent-rgb), 0.18), transparent 30%),
    var(--dark);
  background-size: 64px 64px, 64px 64px, auto, auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 15, 0.98) 0%, rgba(7, 11, 15, 0.88) 44%, rgba(7, 11, 15, 0.28) 72%, rgba(7, 11, 15, 0.84) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 33%, var(--mint) 33% 66%, var(--warm) 66%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  color: #ffffff;
  font-size: clamp(46px, 6.1vw, 78px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

html[lang="bg"] h1 {
  font-size: clamp(44px, 5.4vw, 70px);
}

h2 {
  max-width: 900px;
  margin: 0 0 20px;
  color: inherit;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  color: #c5d0d4;
}

.lead {
  max-width: 800px;
  font-size: clamp(17px, 1.6vw, 20px);
}

.service-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.52);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  transform: translateY(18px);
}

.service-visual::before {
  content: "";
  position: absolute;
  inset: -26px 22px 22px -26px;
  z-index: -1;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.service-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

body[data-service="website-support-hosting"] .service-visual img,
body[data-service="wordpress-speed-optimization"] .service-visual img {
  object-position: center 58%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 5px;
  font-weight: 900;
  text-decoration: none;
}

.btn-primary {
  color: #07100d;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

main > section:not(.hero) {
  position: relative;
  padding: clamp(72px, 9vw, 118px) 0;
}

main > section:nth-of-type(2) {
  background: #c9ffda;
}

main > section:nth-of-type(3) {
  background: var(--paper);
}

main > section:nth-of-type(4) {
  color: #f4f7f6;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--dark-soft);
  background-size: 64px 64px, 64px 64px, auto;
}

main > section:nth-of-type(5) {
  background: #e2e9e5;
}

main > section:nth-of-type(6) {
  background: #f3c86c;
}

main > section:nth-of-type(n + 7) {
  background: var(--paper);
}

.section-intro {
  max-width: 820px;
  margin-bottom: 34px;
  font-size: 18px;
}

p a,
li a,
.card a,
.panel a {
  color: #087d8f;
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

main > section:nth-of-type(4) p,
main > section:nth-of-type(4) li {
  color: #adb9be;
}

main > section:nth-of-type(4) a {
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.panel {
  position: relative;
  padding: 30px;
  color: #f5f8f7;
  background: var(--dark-soft);
  border-top: 3px solid var(--accent);
  box-shadow: 18px 18px 0 rgba(13, 22, 27, 0.1);
}

.panel p,
.panel li {
  color: #b7c2c6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  grid-column: span 4;
  min-height: 100%;
  padding: 30px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  background: transparent;
}

.grid:not(.two) .card:nth-child(1),
.grid:not(.two) .card:nth-child(5) {
  grid-column: span 8;
}

.grid.two .card {
  grid-column: auto;
}

.card p,
.card li {
  color: var(--muted);
}

main > section:nth-of-type(4) .grid,
main > section:nth-of-type(4) .card {
  border-color: rgba(255, 255, 255, 0.17);
}

main > section:nth-of-type(4) .card p,
main > section:nth-of-type(4) .card li {
  color: #adb9be;
}

ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 7px;
}

.meta-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid rgba(13, 22, 27, 0.28);
}

.meta-item {
  position: relative;
  padding: 14px 14px 14px 34px;
  color: var(--ink);
  border-bottom: 1px solid rgba(13, 22, 27, 0.2);
}

.meta-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 4px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.faq {
  color: #f5f8f7;
  background:
    radial-gradient(circle at 85% 0%, rgba(var(--accent-rgb), 0.12), transparent 28%),
    var(--dark) !important;
}

.faq .section-intro,
.faq p {
  color: #aeb9be;
}

.faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px 0;
}

.faq details:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.faq summary {
  cursor: pointer;
  color: #f5f8f7;
  font-size: 18px;
  font-weight: 900;
}

.faq details[open] summary {
  color: var(--accent);
}

.faq p {
  max-width: 860px;
  margin-top: 12px;
}

.footer {
  padding: 42px 0;
  color: #9daab0;
  font-size: 14px;
  background: #030609;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer a {
  color: #c9ffda;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 44px;
  }

  .card,
  .grid:not(.two) .card:nth-child(1),
  .grid:not(.two) .card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 840px) {
  .container,
  .topbar .container {
    width: min(100% - 36px, 760px);
  }

  .nav {
    min-height: 68px;
    gap: 18px;
  }

  .brand img {
    width: 230px;
    max-height: 54px;
  }

  .nav-links {
    gap: 15px;
    font-size: 13px;
  }

  .hero {
    min-height: 0;
    padding: 70px 0 74px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .service-visual {
    width: min(680px, 100%);
    transform: none;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: relative;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
    overflow-wrap: anywhere;
  }

  h2 {
    overflow-wrap: anywhere;
  }

  .hero {
    padding-top: 56px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(7, 11, 15, 0.94), rgba(7, 11, 15, 0.78));
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  main > section:not(.hero) {
    padding: 72px 0;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .card,
  .grid.two .card,
  .grid:not(.two) .card:nth-child(1),
  .grid:not(.two) .card:nth-child(5) {
    grid-column: auto;
    padding: 24px;
  }

  .panel {
    padding: 24px;
    box-shadow: 10px 10px 0 rgba(13, 22, 27, 0.1);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .container,
  .topbar .container {
    width: calc(100% - 28px);
  }

  .brand img {
    width: 210px;
    height: auto;
  }

  .nav-links {
    gap: 12px;
  }

  .service-visual {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
