:root {
  --bg: #090b0f;
  --surface: #11151c;
  --surface-2: #171d26;
  --text: #f7f8fb;
  --muted: #aeb6c4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f6a400;
  --accent-2: #ffcf4a;
  --blue: #3aa7ff;
  --green: #49d17d;
  --danger: #ff6a4a;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: var(--accent);
  color: #111;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 15, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 850;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(246, 164, 0, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 164, 0, 0.35), transparent 48%),
    linear-gradient(135deg, #2b2f38, #07080b);
  box-shadow: 0 0 24px rgba(246, 164, 0, 0.28);
}

.brand-mark::before {
  content: "R";
  position: absolute;
  font-weight: 950;
  color: var(--accent-2);
}

.brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  white-space: nowrap;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  margin-left: auto;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.site-nav {
  position: fixed;
  inset: 73px 16px auto;
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px;
  background: #11151c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a,
.footer-menu a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.footer-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: none;
}

.phone-link {
  color: var(--accent-2);
  font-weight: 800;
  white-space: nowrap;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #171009;
  box-shadow: 0 12px 30px rgba(246, 164, 0, 0.24);
}

.btn-secondary {
  background: rgba(58, 167, 255, 0.14);
  border-color: rgba(58, 167, 255, 0.45);
  color: #d9efff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.btn-small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: 54px 0 44px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(9, 11, 15, 0.76), rgba(9, 11, 15, 0.94)),
    radial-gradient(circle at 74% 24%, rgba(246, 164, 0, 0.22), transparent 26%),
    radial-gradient(circle at 12% 75%, rgba(58, 167, 255, 0.16), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 84px);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 28px;
}

.hero-logo {
  position: relative;
  width: clamp(112px, 42vw, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(246, 164, 0, 0.34), transparent 62%),
    linear-gradient(135deg, #161b23, #07080b);
  border: 1px solid rgba(246, 164, 0, 0.45);
  box-shadow: 0 0 80px rgba(246, 164, 0, 0.22);
}

.hero-logo::before {
  content: "R";
  position: absolute;
  font-size: clamp(44px, 15vw, 96px);
  font-weight: 950;
  color: var(--accent-2);
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 12vw, 76px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 8vw, 48px);
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.16;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 650;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel,
.service-form,
.blog-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 18px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(73, 209, 125, 0.1);
  border: 1px solid rgba(73, 209, 125, 0.28);
  border-radius: var(--radius);
  color: #d9ffe7;
  font-weight: 750;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.counter-grid div {
  min-width: 0;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-align: center;
}

.counter-grid strong {
  display: block;
  color: var(--accent-2);
  font-size: 28px;
}

.counter-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: #0d1118;
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow),
.hero-panel p,
.split p,
.integration-note p {
  color: var(--muted);
}

.direction-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.direction-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.direction-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--card-bg);
}

.direction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 10, 13, 0.2), rgba(8, 10, 13, 0.82)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
}

.direction-card:hover,
.category-grid a:hover,
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 164, 0, 0.6);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.direction-card span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 950;
}

.direction-card .direction-icon {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  display: block;
  object-fit: contain;
  object-position: center;
  margin: 14px auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.direction-card a,
.blog-card a {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(246, 164, 0, 0.14);
  border: 1px solid rgba(246, 164, 0, 0.42);
  border-radius: var(--radius);
  color: var(--accent-2);
  font-weight: 850;
}

.theme-home { --card-bg: linear-gradient(135deg, #2d3748, #8b5e00); }
.theme-tool { --card-bg: linear-gradient(135deg, #152238, #375a7f); }
.theme-fuel { --card-bg: linear-gradient(135deg, #251b14, #b64d1d); }
.theme-generator { --card-bg: linear-gradient(135deg, #171717, #6f7d2f); }
.theme-ups { --card-bg: linear-gradient(135deg, #10231f, #27836f); }
.theme-battery { --card-bg: linear-gradient(135deg, #111f18, #419a55); }
.theme-power { --card-bg: linear-gradient(135deg, #18202a, #d29c22); }
.theme-drone { --card-bg: linear-gradient(135deg, #121826, #6a7ccf); }
.theme-transport { --card-bg: linear-gradient(135deg, #172023, #2ca8a4); }
.theme-laptop { --card-bg: linear-gradient(135deg, #171a2a, #8f66ff); }
.theme-pc { --card-bg: linear-gradient(135deg, #141a1f, #4d6075); }
.theme-phone { --card-bg: linear-gradient(135deg, #1b1624, #c05293); }
.theme-tablet { --card-bg: linear-gradient(135deg, #101c28, #2d8fd5); }
.theme-tv { --card-bg: linear-gradient(135deg, #151515, #a22c45); }
.theme-metal { --card-bg: linear-gradient(135deg, #1f1f17, #98934a); }
.theme-thermal { --card-bg: linear-gradient(135deg, #251313, #e0522d); }
.theme-gps { --card-bg: linear-gradient(135deg, #142318, #4c9a6d); }
.theme-measure { --card-bg: linear-gradient(135deg, #181b22, #9f7541); }

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.category-grid a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #eef2f8;
  font-weight: 750;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.split,
.form-layout {
  display: grid;
  gap: 24px;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-list div {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  color: var(--accent-2);
  overflow-wrap: anywhere;
}

.feature-list span {
  margin-top: 4px;
  color: var(--muted);
}

.service-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
}

.form-head {
  margin-bottom: 4px;
}

.form-head h2 {
  font-size: clamp(26px, 8vw, 36px);
}

.request-number,
.form-note {
  color: var(--accent-2);
  font-weight: 750;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
}

select option {
  color: #111;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246, 164, 0, 0.16);
}

.full {
  grid-column: 1 / -1;
}

.blog-grid {
  display: grid;
  gap: 14px;
}

.blog-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.blog-card span {
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  padding: 44px 0 26px;
  background: #07080b;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-phone {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent-2);
  font-size: 20px;
  font-weight: 900;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.socials a {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 750;
}

.footer-menu {
  display: grid;
  gap: 4px;
}

.integration-note h2 {
  font-size: 24px;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.floating-actions {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.floating-actions a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 0;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.floating-actions a::before {
  font-weight: 950;
  font-size: 17px;
}

.float-viber::before {
    content: "";
    background: url('/assets/img/icons/viber.svg') center center no-repeat;
    background-size: contain;
    width: 60px;
    height: 60px;
    display: block;
}

.float-telegram::before { content: "T"; }
.float-whatsapp::before { content: "W"; }
.float-phone::before { content: "☎"; }
.float-viber { background: #7360f2; }
.float-telegram { background: #229ed9; }
.float-whatsapp { background: #25d366; }
.float-phone { background: var(--accent); }

.fade-in,
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0ms);
}

.fade-in.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 360px) {
  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 480px) {
  .direction-grid,
  .category-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .service-form.compact {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 48px, var(--container));
  }

  .hero-inner,
  .split,
  .form-layout,
  .footer-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
  }

  .footer-grid {
    align-items: start;
  }

  .hero-actions {
    max-width: 520px;
  }

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

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

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

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 14px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

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

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

  .service-form {
    padding: 24px;
  }
}

@media (min-width: 1280px) {
  .direction-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .direction-card {
    min-height: 300px;
  }

  .site-nav a {
    padding-inline: 11px;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1420px;
  }

  .hero {
    min-height: 820px;
  }
}

@media (max-width: 374px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text {
    max-width: 148px;
    white-space: normal;
    line-height: 1.1;
  }

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

  .btn {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
