:root {
  /* IT Solutions theme */
  --color-solutions-primary: #4f00ed;
  --color-solutions-black: #141721;
  --color-solutions-gray: #f7f7f7;
  --color-solutions-white: #ffffff;

  /* IT Services theme */
  --color-services-primary: #7b66ff;
  --color-services-accent: #35e0ea;
  --color-services-blue: #303048;
  --color-services-black: #010206;
  --color-services-gray: #f4f8ff;
  --color-services-white: #ffffff;

  /* Software Company theme */
  --color-software-primary: #2342ad;
  --color-software-accent: #ffcf27;
  --color-software-dark: #020842;
  --color-software-gray-dark: #f7f9ff;
  --color-software-gray-light: #e3f2fb;
  --color-software-white: #ffffff;

  /* Development theme */
  --color-development-primary: #0056d8;
  --color-development-dark: #030618;
  --color-development-gray: #f1f5f9;
  --color-development-white: #ffffff;

  /* Shared text colors */
  --color-text-title: #141721;
  --color-text-paragraph: #666666;

  /* Typography */
  --font-heading: "Inter", sans-serif;
  --font-body: "Manrope", sans-serif;

  --h1-size: 100px;
  --h1-line-height: 100px;
  --h1-letter-spacing: -5px;

  --h2-size: 55px;
  --h2-line-height: 60px;
  --h2-letter-spacing: -2.75px;

  --h3-size: 30px;
  --h3-line-height: normal;
  --h3-letter-spacing: -0.9px;

  --h4-size: 24px;
  --h4-line-height: 33px;
  --h4-letter-spacing: -0.72px;

  --h5-size: 22px;
  --h5-line-height: 30px;
  --h5-letter-spacing: -0.66px;

  --h6-size: 20px;
  --h6-line-height: 28px;
  --h6-letter-spacing: -0.6px;

  --body-size: 18px;
  --body-line-height: 28px;

  /* Buttons */
  --btn-radius: 10px;
  --btn-large-padding: 15px 30px;
  --btn-large-gap: 5px;
  --btn-large-font: 16px;
  --btn-small-padding: 12px 24px;
  --btn-small-gap: 3px;
  --btn-small-font: 14px;
}

* {
  box-sizing: border-box;
}

html {
  /* clip, not hidden: hidden forces overflow-y to auto on the root,
     which breaks position:sticky for every descendant on every page. */
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font-body);
  color: var(--color-text-paragraph);
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-title);
}

h1 { font-size: var(--h1-size); line-height: var(--h1-line-height); letter-spacing: var(--h1-letter-spacing); }
h2 { font-size: var(--h2-size); line-height: var(--h2-line-height); letter-spacing: var(--h2-letter-spacing); }
h3 { font-size: var(--h3-size); line-height: var(--h3-line-height); letter-spacing: var(--h3-letter-spacing); }
h4 { font-size: var(--h4-size); line-height: var(--h4-line-height); letter-spacing: var(--h4-letter-spacing); }
h5 { font-size: var(--h5-size); line-height: var(--h5-line-height); letter-spacing: var(--h5-letter-spacing); }
h6 { font-size: var(--h6-size); line-height: var(--h6-line-height); letter-spacing: var(--h6-letter-spacing); }

p {
  margin: 0;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--color-text-paragraph);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section {
  margin-bottom: 72px;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 24px;
  text-transform: uppercase;
  color: var(--color-text-title);
  margin-bottom: 24px;
}

/* Colors */
.color-group {
  margin-bottom: 40px;
}

.color-group-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.48px;
  color: #000;
  margin-bottom: 16px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.color-swatch {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Typography table */
.type-row {
  display: grid;
  grid-template-columns: 1fr 120px 150px 150px 150px;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.type-row-head {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-text-title);
  font-weight: 500;
}

.type-meta {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-title);
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--btn-radius);
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover svg { transform: none; }
}

.btn--large {
  gap: var(--btn-large-gap);
  padding: var(--btn-large-padding);
  font-size: var(--btn-large-font);
}

.btn--small {
  gap: var(--btn-small-gap);
  padding: var(--btn-small-padding);
  font-size: var(--btn-small-font);
}

.btn--default {
  background: var(--color-solutions-black);
  color: #ffffff;
}

.btn--default:hover {
  background: var(--color-solutions-primary);
}

.btn--border {
  background: transparent;
  border: 1px solid rgba(79, 0, 237, 0.1);
  color: var(--color-solutions-black);
}

.btn--white {
  background: #ffffff;
  color: var(--color-solutions-black);
}

.btn--gray {
  background: var(--color-solutions-gray);
  color: var(--color-text-paragraph);
}
