:root {
  /* Brand accent */
  --accent: #168653;
  --accent-bright: #23a965;
  --accent-soft: rgba(22, 134, 83, 0.1);

  /* Dark areas */
  --header-bg: #121715;
  --hero-start: #1b211e;
  --hero-end: #28312c;
  --toolbox-bg: rgba(13, 17, 15, 0.72);

  /* Light page areas */
  --page-bg: #dfe4e0;
  --page-bg-soft: #e9edea;
  --section-bg: #edf1ee;
  --section-bg-bottom: #e1e7e3;

  /* Button and tile surfaces */
  --card-bg-start: #d1dad4;
  --card-bg-end: #c5d0c9;
  --card-hover-start: #e1e7e3;
  --card-hover-end: #d4ddd7;

  /* Section headers */
  --service-header: #27352e;
  --company-header: #30383d;
  --dealer-header: #3c3930;

  /* Text */
  --text-dark: #17201b;
  --text-dark-soft: #4f5b54;
  --text-dark-muted: #59675e;

  --text-light: #f4f7f5;
  --text-light-soft: #c5cec8;
  --text-light-muted: #95a099;

  /* Borders */
  --border-dark: rgba(255, 255, 255, 0.11);
  --border-dark-strong: rgba(255, 255, 255, 0.18);

  --border-light: #aab7af;
  --border-light-strong: #99a89f;

  /* Shadows */
  --shadow-small:
    0 6px 16px rgba(25, 35, 29, 0.13);

  --shadow-medium:
    0 16px 38px rgba(21, 29, 24, 0.16);

  --shadow-large:
    0 26px 62px rgba(0, 0, 0, 0.28);

  /* Layout */
  --radius: 20px;
  --radius-small: 12px;
  --width: 1280px;
}

/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;

  background:
    radial-gradient(
      circle at 12% 4%,
      rgba(22, 134, 83, 0.06),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      var(--page-bg-soft),
      var(--page-bg)
    );

  color: var(--text-dark);

  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

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

  margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  border-bottom: 1px solid var(--border-dark);
  background: rgba(18, 23, 21, 0.97);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 16px;

  color: var(--text-light);
  text-decoration: none;
}

.brand img {
  width: 116px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand strong {
  color: #ffffff;

  font-size: 0.97rem;
  line-height: 1.2;
}

.brand small {
  color: var(--text-light-muted);

  font-size: 0.75rem;
  line-height: 1.2;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(35, 169, 101, 0.17),
      transparent 29rem
    ),
    linear-gradient(
      135deg,
      var(--hero-start),
      var(--hero-end)
    );
}

.hero::before {
  content: "";
  position: absolute;
  top: -250px;
  right: -180px;

  width: 560px;
  height: 560px;

  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  right: 150px;
  bottom: -390px;

  width: 540px;
  height: 540px;

  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.hero-layout {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 52px;

  align-items: center;

  padding: 58px 0 76px;
}

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

.label {
  margin: 0 0 9px;

  color: var(--accent-bright);

  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .label {
  color: #62c991;
}

.hero h1 {
  max-width: 760px;
  margin: 0;

  color: #ffffff;

  font-size: clamp(2.6rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.058em;
}

.hero-description {
  max-width: 650px;
  margin: 21px 0 0;

  color: var(--text-light-soft);

  font-size: 1.05rem;
  line-height: 1.7;
}

/* =========================================================
   TOOLBOX
   ========================================================= */

.toolbox {
  overflow: hidden;

  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius);

  background: var(--toolbox-bg);

  box-shadow: var(--shadow-large);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toolbox-header {
  padding: 23px 24px 18px;

  border-bottom: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.025);
}

.toolbox-header h2 {
  margin: 0;

  color: #ffffff;

  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.toolbox-header span {
  display: block;
  margin-top: 8px;

  color: var(--text-light-muted);

  font-size: 0.82rem;
  line-height: 1.5;
}

.toolbox-links {
  display: grid;
  gap: 9px;

  padding: 16px;
}

.toolbox-link {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;

  padding: 14px 15px;

  border: 1px solid var(--border-dark);
  border-radius: var(--radius-small);

  background: rgba(255, 255, 255, 0.065);

  color: #ffffff;
  text-decoration: none;

  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.toolbox-link:hover {
  transform: translateX(3px);

  border-color: rgba(35, 169, 101, 0.6);
  background: rgba(255, 255, 255, 0.11);
}

.toolbox-link strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.toolbox-link span {
  margin-top: 5px;

  color: var(--text-light-muted);

  font-size: 0.75rem;
  line-height: 1.35;
}

.toolbox-link.disabled {
  cursor: default;
  opacity: 0.56;
}

.toolbox-link.disabled:hover {
  transform: none;

  border-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.065);
}

/* =========================================================
   FEATURED LINKS
   ========================================================= */

.featured {
  position: relative;
  z-index: 5;

  margin-top: -56px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 16px;
  padding: 0 4px;
}

.section-title h2 {
  margin: 0;

  color: #ffffff;

  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-title > p {
  margin: 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.82rem;
}

.featured-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(230px, 1fr));

  gap: 14px;
}

.featured-card {
  position: relative;

  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;

  padding: 21px;
  overflow: hidden;

  border: 1px solid var(--border-light-strong);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      var(--card-bg-start),
      var(--card-bg-end)
    );

  color: var(--text-dark);

  box-shadow:
    0 7px 18px rgba(23, 32, 27, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  text-decoration: none;

  transition:
    transform 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.featured-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;

  width: 160px;
  height: 160px;

  border-radius: 50%;
  background: var(--accent-soft);
}

.featured-card:hover {
  transform: translateY(-4px);

  border-color: var(--accent);

  background:
    linear-gradient(
      145deg,
      var(--card-hover-start),
      var(--card-hover-end)
    );

  box-shadow:
    0 18px 34px rgba(21, 29, 24, 0.22);
}

.featured-card > * {
  position: relative;
  z-index: 1;
}

.featured-category {
  color: var(--accent);

  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.featured-card strong {
  display: block;
  margin-top: 8px;

  color: var(--text-dark);

  font-size: 1.04rem;
  line-height: 1.25;
}

.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.card-bottom span {
  color: var(--text-dark-muted);

  font-size: 0.78rem;
  line-height: 1.35;
}

.card-bottom b {
  color: var(--accent);

  font-size: 0.72rem;
  font-weight: 800;
}

/* =========================================================
   RESOURCE SECTIONS
   ========================================================= */

.resources {
  padding: 46px 0 78px;
}

.resource-list {
  display: grid;
  gap: 30px;
}

.resource-section {
  overflow: hidden;

  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius);

  background: var(--section-bg);

  box-shadow: var(--shadow-medium);
}

.resource-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  padding: 23px 27px;

  border-bottom: 1px solid var(--border-dark);
}

.resource-header h2 {
  margin: 0;

  color: #ffffff;

  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.resource-header > p {
  max-width: 360px;
  margin: 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
}

/* Neutral section colors */

.theme-service .resource-header {
  border-left: 6px solid var(--accent);

  background:
    linear-gradient(
      135deg,
      #27312b,
      var(--service-header)
    );
}

.theme-company .resource-header {
  border-left: 6px solid #87969e;

  background:
    linear-gradient(
      135deg,
      #282f33,
      var(--company-header)
    );
}

.theme-dealer .resource-header {
  border-left: 6px solid #aa9a69;

  background:
    linear-gradient(
      135deg,
      #302e28,
      var(--dealer-header)
    );
}

.theme-service .label {
  color: #6cd39b;
}

.theme-company .label {
  color: #c0cbd1;
}

.theme-dealer .label {
  color: #d9c991;
}

.resource-content {
  padding: 23px;

  background:
    linear-gradient(
      180deg,
      var(--section-bg),
      var(--section-bg-bottom)
    );
}

.resource-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(215px, 1fr));

  gap: 13px;
}

.resource-card {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: space-between;

  padding: 18px;

  border: 1px solid var(--border-light);
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      var(--card-bg-start),
      var(--card-bg-end)
    );

  color: var(--text-dark);
  text-decoration: none;

  box-shadow:
    0 6px 16px rgba(23, 32, 27, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);

  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.resource-card:hover {
  transform: translateY(-3px);

  border-color: var(--accent);

  background:
    linear-gradient(
      145deg,
      var(--card-hover-start),
      var(--card-hover-end)
    );

  box-shadow:
    0 15px 28px rgba(21, 29, 24, 0.19);
}

.resource-card strong {
  color: var(--text-dark);

  font-size: 0.97rem;
  line-height: 1.25;
}

.resource-card p {
  margin: 7px 0 0;

  color: var(--text-dark-muted);

  font-size: 0.79rem;
  line-height: 1.42;
}

.resource-card .card-bottom {
  margin-top: 17px;
}

.resource-card .card-bottom span {
  color: var(--accent);

  font-size: 0.7rem;
  font-weight: 800;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: auto;

  border-top: 1px solid var(--border-dark);
  background: #121715;
}

.footer-content {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color: var(--text-light-muted);

  font-size: 0.75rem;
}

.footer-content > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-content strong {
  color: var(--text-light-soft);
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.brand:focus-visible,
.toolbox-link:focus-visible,
.featured-card:focus-visible,
.resource-card:focus-visible {
  outline: 3px solid rgba(22, 134, 83, 0.62);
  outline-offset: 4px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;

    padding: 52px 0 72px;
  }

  .toolbox {
    max-width: 660px;
  }

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

/* =========================================================
   MOBILE
   ========================================================= */

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

  .header-content {
    min-height: 66px;
  }

  .brand {
    gap: 11px;
  }

  .brand img {
    width: 94px;
    height: 40px;
  }

  .brand small {
    display: none;
  }

  .hero-layout {
    padding: 42px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .toolbox-links {
    grid-template-columns: 1fr;
  }

  .featured {
    margin-top: -42px;
  }

  .section-title,
  .resource-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-title > p {
    color: rgba(255, 255, 255, 0.68);
  }

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

  .resources {
    padding: 34px 0 52px;
  }

  .resource-list {
    gap: 22px;
  }

  .resource-section {
    border-radius: 17px;
  }

  .resource-header {
    padding: 20px;
  }

  .resource-header > p {
    max-width: none;
    text-align: left;
  }

  .resource-content {
    padding: 16px;
  }

  .footer-content {
    min-height: 84px;

    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
