:root {
  --cc-primary: #3534ff;
  --cc-primary-dark: #2524c9;
  --cc-secondary: #1f1f25;
  --cc-heading: #262626;
  --cc-body: #555867;
  --cc-muted: #7f8492;
  --cc-white: #ffffff;
  --cc-soft: #f6f6ff;
  --cc-soft-2: #f3fbf8;
  --cc-line: #ddd8f9;
  --cc-teal: #00a78e;
  --cc-coral: #e85d4a;
  --cc-amber: #f5a524;
  --cc-danger: #d92d20;
  --cc-success: #0f8f6d;
  --cc-radius: 8px;
  --cc-shadow: 0 18px 48px rgba(31, 31, 37, 0.08);
  --cc-shadow-strong: 0 28px 78px rgba(31, 31, 37, 0.16);
  color: var(--cc-heading);
  font-family: Cabin, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fbfbff 0%, #ffffff 42%, #f7faf9 100%);
  color: var(--cc-heading);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 216, 249, 0.92);
  box-shadow: 0 12px 36px rgba(31, 31, 37, 0.06);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 12px max(20px, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand,
.primary-nav,
.hero-actions,
.cta-section,
.site-footer,
.price-card header,
.cookie-preview div,
.order-card header,
.site-card header {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--cc-secondary);
  font-weight: 900;
  gap: 12px;
  line-height: 1.05;
}

.brand-mark {
  display: block;
  height: 48px;
  object-fit: contain;
  width: 50px;
}

.primary-nav {
  gap: 26px;
  font-weight: 900;
}

.language-switcher {
  align-items: center;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.language-switcher a {
  border-radius: 6px;
  color: var(--cc-muted-text);
  font-size: 13px;
  line-height: 1;
  padding: 8px 9px;
}

.language-switcher a[aria-current="page"] {
  background: var(--cc-primary);
  color: var(--cc-white);
}

.footer-language {
  border-color: rgba(255, 255, 255, 0.22);
  margin-top: 4px;
  width: max-content;
}

.footer-language a {
  color: var(--cc-white);
}

.footer-language a[aria-current="page"] {
  background: var(--cc-white);
  color: var(--cc-primary-dark);
}

.nav-toggle {
  align-items: center;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 31, 37, 0.08);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 46px;
}

.nav-toggle span {
  background: var(--cc-secondary);
  border-radius: 999px;
  display: block;
  height: 3px;
  left: 12px;
  position: absolute;
  transition: opacity 160ms ease, transform 160ms ease, top 160ms ease;
  width: 20px;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.primary-nav a:hover {
  color: var(--cc-primary);
}

.primary-button,
.secondary-link,
.ghost-button,
.light-button,
.ghost-dark-button,
.icon-button {
  align-items: center;
  border-radius: var(--cc-radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  background: var(--cc-primary);
  color: var(--cc-white);
}

.primary-button:hover {
  background: var(--cc-primary-dark);
  transform: translateY(-1px);
}

.secondary-link,
.ghost-button {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  color: var(--cc-secondary);
}

.secondary-link:hover,
.ghost-button:hover {
  border-color: var(--cc-primary);
  color: var(--cc-primary);
}

.hero-section {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 64px 24px 86px;
  position: relative;
}

.hero-content {
  padding-left: clamp(28px, 3.2vw, 56px);
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  background: rgba(53, 52, 255, 0.08);
  border: 1px solid rgba(53, 52, 255, 0.14);
  border-radius: var(--cc-radius);
  color: var(--cc-primary);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.eyebrow.inverted {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--cc-white);
}

h1,
h2,
h3 {
  color: var(--cc-secondary);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  margin: 16px 0 18px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  color: var(--cc-body);
  margin: 0;
}

.hero-content p {
  font-size: 1.08rem;
  max-width: 660px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-scene {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(53, 52, 255, 0.94), rgba(31, 31, 37, 0.96)),
    linear-gradient(45deg, rgba(0, 167, 142, 0.2), rgba(232, 93, 74, 0.18));
  border-radius: 16px;
  box-shadow: var(--cc-shadow-strong);
  min-height: 520px;
  padding: 34px;
  position: relative;
}

.store-window {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 26px;
  height: 100%;
  min-height: 450px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.browser-bar {
  align-items: center;
  border-bottom: 1px solid var(--cc-line);
  display: flex;
  gap: 8px;
  margin: -20px -20px 0;
  padding: 14px 18px;
}

.browser-bar span {
  background: var(--cc-coral);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.browser-bar span:nth-child(2) {
  background: var(--cc-amber);
}

.browser-bar span:nth-child(3) {
  background: var(--cc-teal);
}

.browser-bar strong {
  color: var(--cc-muted);
  font-size: 0.82rem;
  margin-left: 10px;
}

.store-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 0.8fr 1fr;
}

.store-product {
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(53, 52, 255, 0.12), rgba(0, 167, 142, 0.14)),
    repeating-linear-gradient(45deg, rgba(53, 52, 255, 0.18) 0 10px, transparent 10px 20px);
  border-radius: var(--cc-radius);
}

.store-copy {
  display: grid;
  gap: 16px;
  padding: 8px 0;
}

.store-copy span,
.store-copy strong,
.store-copy em {
  background: var(--cc-soft);
  border-radius: var(--cc-radius);
  display: block;
}

.store-copy span {
  height: 22px;
  width: 42%;
}

.store-copy strong {
  height: 64px;
}

.store-copy em {
  height: 38px;
  width: 74%;
}

.cookie-preview {
  align-self: end;
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  margin-top: auto;
  padding: 22px;
}

.cookie-preview strong {
  color: var(--cc-secondary);
  display: block;
  font-size: 1.1rem;
}

.cookie-preview div {
  gap: 8px;
  margin-top: 16px;
}

.cookie-preview span {
  background: var(--cc-primary);
  border-radius: 999px;
  height: 34px;
  width: 96px;
}

.cookie-preview span:nth-child(2) {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
}

.cookie-preview span:nth-child(3) {
  background: var(--cc-teal);
}

.problem-section,
.section,
.cta-section,
.app-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 76px 24px;
}

.problem-section {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.38fr);
  padding-top: 24px;
}

.dark-panel,
.flow-section,
.sidebar,
.dashboard-hero,
.site-footer {
  background:
    linear-gradient(135deg, rgba(53, 52, 255, 0.94), rgba(31, 31, 37, 0.96)),
    linear-gradient(45deg, rgba(0, 167, 142, 0.18), rgba(232, 93, 74, 0.14));
  border-radius: var(--cc-radius);
  color: var(--cc-white);
}

.dark-panel {
  align-content: center;
  display: grid;
  gap: 14px;
  padding: 32px;
}

.dark-panel h2,
.dark-panel p,
.flow-section h2,
.flow-section p,
.dashboard-hero h2,
.dashboard-hero p,
.site-footer strong,
.site-footer p,
.site-footer span {
  color: var(--cc-white);
}

.dark-panel p,
.flow-section p,
.site-footer p,
.site-footer span {
  color: rgba(255, 255, 255, 0.74);
}

.stacked-heading {
  display: grid;
  gap: 4px;
}

.stacked-heading span {
  display: block;
}

.dark-panel .stacked-heading {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.14;
}

.dark-panel .stacked-heading span:nth-child(-n + 2) {
  white-space: nowrap;
}

.problem-grid,
.card-grid,
.pricing-grid,
.flow-grid,
.metric-grid,
.site-list,
.order-list,
.discount-code-list {
  display: grid;
  gap: 16px;
}

.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem-grid article,
.feature-card,
.price-card,
.surface-panel,
.metric-card,
.site-card,
.order-card,
.discount-code-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  min-width: 0;
  padding: 24px;
}

.problem-grid article {
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.problem-grid article span,
.feature-card > span,
.flow-grid span {
  color: var(--cc-teal);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.problem-grid p {
  grid-column: 2;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
  max-width: 780px;
}

.section-header.centered {
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  display: grid;
  gap: 12px;
  position: relative;
}

.feature-card::before,
.price-card::before {
  background: var(--cc-primary);
  content: "";
  height: 3px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 0;
}

.feature-card,
.price-card {
  position: relative;
}

.feature-card:nth-child(2)::before {
  background: var(--cc-teal);
}

.feature-card:nth-child(3)::before {
  background: var(--cc-coral);
}

.feature-card:nth-child(4)::before {
  background: var(--cc-amber);
}

.flow-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  padding-right: max(24px, calc((100vw - 1240px) / 2));
}

.flow-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cc-radius);
  display: grid;
  gap: 10px;
  grid-template-rows: 42px minmax(58px, auto) minmax(0, 1fr);
  height: 100%;
  padding: 22px;
}

.flow-grid strong {
  color: var(--cc-white);
  display: block;
  line-height: 1.35;
  min-height: 58px;
}

.flow-grid span {
  align-items: center;
  background: rgba(182, 245, 234, 0.13);
  border-radius: 999px;
  color: #b6f5ea;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.pricing-section {
  background: linear-gradient(180deg, var(--cc-white), var(--cc-soft));
  max-width: none;
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  padding-right: max(24px, calc((100vw - 1240px) / 2));
}

.pricing-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

.pricing-grid.single {
  max-width: 620px;
}

.price-card {
  display: grid;
  gap: 16px;
}

.price-card.featured {
  border-color: rgba(232, 93, 74, 0.42);
  box-shadow: var(--cc-shadow-strong);
}

.price-card header {
  gap: 10px;
  justify-content: space-between;
}

.price-card header span {
  color: var(--cc-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card header em {
  background: linear-gradient(135deg, var(--cc-secondary), var(--cc-primary));
  border-radius: 999px;
  color: var(--cc-white);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  padding: 8px 10px;
}

.pricing-card {
  max-width: 620px;
}

.billing-toggle {
  background: rgba(53, 52, 255, 0.08);
  border: 1px solid rgba(53, 52, 255, 0.14);
  border-radius: var(--cc-radius);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.billing-toggle button {
  background: transparent;
  border-radius: 6px;
  color: var(--cc-heading);
  min-height: 52px;
  padding: 9px 12px;
}

.billing-toggle button.active {
  background: var(--cc-primary);
  box-shadow: 0 10px 22px rgba(53, 52, 255, 0.22);
  color: var(--cc-white);
}

.billing-toggle small {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
  margin-top: 3px;
  opacity: 0.76;
}

.price-amount {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.price-amount .price-period,
.price-amount span {
  color: var(--cc-muted);
  font-weight: 900;
  padding-bottom: 4px;
}

.price-card strong {
  color: var(--cc-secondary);
  font-size: 2.35rem;
  line-height: 1;
}

.price-note {
  background: rgba(0, 167, 142, 0.08);
  border: 1px solid rgba(0, 167, 142, 0.14);
  border-radius: var(--cc-radius);
  color: var(--cc-secondary);
  font-weight: 900;
  padding: 12px 14px;
}

.price-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-card li {
  color: var(--cc-body);
  padding-left: 22px;
  position: relative;
}

.price-card li::before {
  background: var(--cc-teal);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 0.65em;
  width: 8px;
}

.cta-section {
  background:
    linear-gradient(135deg, rgba(53, 52, 255, 0.96), rgba(0, 167, 142, 0.9)),
    linear-gradient(45deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  color: var(--cc-white);
  justify-content: space-between;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  padding-right: max(24px, calc((100vw - 1240px) / 2));
}

.cta-section h2,
.cta-section p {
  color: var(--cc-white);
}

.light-button {
  background: var(--cc-white);
  color: var(--cc-primary);
}

.app-shell {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  display: grid;
  gap: 20px;
  padding: 24px;
  position: sticky;
  top: 98px;
}

.sidebar h2,
.sidebar a,
.sidebar-label {
  color: var(--cc-white);
}

.sidebar a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.74);
  display: block;
  font-weight: 900;
  padding: 10px 12px;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cc-white);
}

.sidebar-label {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ghost-dark-button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cc-white);
}

.portal-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.dashboard-hero {
  padding: 30px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card strong {
  color: var(--cc-secondary);
  display: block;
  font-size: 1.9rem;
}

.metric-card span {
  color: var(--cc-body);
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
}

.panel-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-heading p {
  color: var(--cc-muted);
  margin-top: 6px;
  max-width: 720px;
}

.company-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wide-field {
  grid-column: span 2;
}

.discount-code-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.discount-code-card {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.discount-code-card strong {
  color: var(--cc-secondary);
  display: block;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.discount-code-card small {
  color: var(--cc-muted);
  font-weight: 900;
  grid-column: 1 / -1;
}

.discount-field {
  max-width: 320px;
}

.checkbox-label {
  align-content: end;
  display: flex;
  gap: 10px;
  min-height: 48px;
}

.checkbox-label input {
  width: auto;
}

.voucher-checkbox {
  align-items: flex-start;
  background: rgba(53, 52, 255, 0.06);
  border: 1px solid rgba(53, 52, 255, 0.12);
  border-radius: var(--cc-radius);
  color: var(--cc-heading);
  padding: 12px 14px;
}

.terms-consent {
  align-items: flex-start;
  background: rgba(53, 52, 255, 0.05);
  border: 1px solid rgba(53, 52, 255, 0.12);
  border-radius: var(--cc-radius);
  color: var(--cc-body);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
  padding: 12px 14px;
}

.terms-consent a {
  color: var(--cc-primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-panel,
.bank-instructions {
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bank-instructions {
  background: rgba(0, 167, 142, 0.07);
}

.bank-instructions dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.bank-instructions dl div {
  display: grid;
  gap: 3px;
}

.bank-instructions dt {
  color: var(--cc-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.bank-instructions dd {
  color: var(--cc-heading);
  font-weight: 850;
  margin: 0;
  word-break: break-word;
}

.form-hint {
  color: var(--cc-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.form-hint.warning {
  color: var(--cc-danger);
}

.site-form {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 180px 160px auto;
}

label {
  color: var(--cc-body);
  display: grid;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 8px;
}

input,
select {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  color: var(--cc-heading);
  min-width: 0;
  padding: 13px 14px;
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input:focus,
select:focus {
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 3px rgba(53, 52, 255, 0.12);
  outline: 0;
}

.site-card,
.order-card {
  display: grid;
  gap: 14px;
}

.site-card header,
.order-card header {
  gap: 12px;
  justify-content: space-between;
}

.badge {
  background: rgba(0, 167, 142, 0.1);
  border-radius: 6px;
  color: var(--cc-success);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.badge.pending,
.badge.awaiting_bank_transfer,
.badge.demo_not_started {
  background: rgba(245, 165, 36, 0.12);
  color: #9a5b00;
}

.badge.demo_expired,
.badge.pending_payment {
  background: rgba(217, 45, 32, 0.1);
  color: var(--cc-danger);
}

.snippet {
  background: var(--cc-secondary);
  border-radius: var(--cc-radius);
  color: #b6f5ea;
  display: block;
  font-size: 0.84rem;
  overflow-x: auto;
  padding: 14px;
  white-space: pre;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-panel {
  background: rgba(53, 52, 255, 0.04);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.integration-panel.locked {
  background: rgba(245, 165, 36, 0.08);
}

.integration-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manual-install {
  display: grid;
  gap: 10px;
}

.site-footer {
  border-radius: 0;
  gap: 24px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 44px max(24px, calc((100vw - 1240px) / 2));
}

.site-footer div {
  display: grid;
  gap: 8px;
}

.site-footer span {
  max-width: 640px;
}

.footer-links {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  font-weight: 900;
  min-width: 280px;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: var(--cc-white);
  display: block;
  padding: 8px 12px;
}

.footer-links a:hover {
  background: var(--cc-white);
  border-color: var(--cc-white);
  color: var(--cc-primary-dark);
}

.backoffice-body {
  background: #f7f8fb;
}

.backoffice-main {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 34px 24px 76px;
}

.backoffice-token-form,
.discount-admin-form {
  display: grid;
  gap: 14px;
}

.backoffice-token-form {
  align-items: end;
  grid-template-columns: minmax(280px, 1fr) auto;
}

.discount-admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.discount-admin-list {
  display: block;
}

.discount-admin-table-wrap {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  overflow-x: auto;
}

.discount-admin-table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

.discount-admin-table th,
.discount-admin-table td {
  border-bottom: 1px solid rgba(221, 216, 249, 0.82);
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.discount-admin-table th {
  background: rgba(54, 57, 252, 0.06);
  color: var(--cc-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.discount-admin-table tbody tr:hover {
  background: rgba(54, 57, 252, 0.035);
}

.discount-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.discount-admin-table select,
.discount-admin-table input[type='number'] {
  min-height: 44px;
}

.discount-percent-input {
  max-width: 88px;
}

.discount-code-cell strong {
  color: var(--cc-secondary);
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.discount-code-cell span,
.discount-owner-cell {
  color: var(--cc-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.discount-owner-cell {
  max-width: 220px;
  word-break: break-word;
}

.table-checkbox {
  align-items: center;
  display: flex;
  justify-content: center;
}

.backoffice-body {
  background:
    radial-gradient(circle at 88% 4%, rgba(0, 167, 142, 0.11), transparent 28%),
    radial-gradient(circle at 16% 0%, rgba(53, 52, 255, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(246, 246, 255, 0.96) 0%, #ffffff 42%, #f7faf9 100%);
  color: var(--cc-heading);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cc-theme-admin-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.cc-theme-admin-shell.is-sidebar-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}

.cc-theme-admin-sidebar {
  background: linear-gradient(180deg, #1f1f25 0%, #17171d 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cc-white);
  min-height: 100vh;
  overflow-y: auto;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  transition: padding 180ms ease, width 180ms ease;
}

.cc-theme-admin-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(248, 250, 249, 0.82)),
    transparent;
  min-width: 0;
}

.cc-theme-sidebar-brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  margin-bottom: 18px;
  padding: 4px 4px 18px;
}

.cc-theme-sidebar-logo {
  grid-row: span 2;
  height: 42px;
  object-fit: contain;
  width: 44px;
}

.cc-theme-sidebar-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cc-theme-sidebar-name {
  color: var(--cc-white);
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.cc-theme-sidebar-kicker {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cc-theme-sidebar-toggle {
  align-items: center;
  align-self: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin-left: auto;
  overflow: visible;
  padding: 8px;
  position: relative;
  width: 36px;
}

.cc-theme-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.cc-theme-sidebar-toggle span {
  background: var(--cc-white);
  border-radius: 999px;
  display: block;
  height: 2px;
  left: 9px;
  position: absolute;
  top: 16px;
  transform-origin: center;
  transition: opacity 140ms ease, transform 140ms ease;
  width: 18px;
}

.cc-theme-sidebar-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.cc-theme-sidebar-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.cc-theme-admin-sidebar.is-menu-open .cc-theme-sidebar-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.cc-theme-admin-sidebar.is-menu-open .cc-theme-sidebar-toggle span:nth-child(2) {
  opacity: 0;
}

.cc-theme-admin-sidebar.is-menu-open .cc-theme-sidebar-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.cc-theme-admin-sidebar.is-menu-collapsed .cc-theme-sidebar-brand {
  gap: 8px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-left: 0;
  padding-right: 0;
}

.cc-theme-admin-sidebar.is-menu-collapsed .cc-theme-sidebar-copy,
.cc-theme-admin-sidebar.is-menu-collapsed .cc-theme-sidebar-nav {
  display: none;
}

.cc-theme-admin-sidebar.is-menu-collapsed .cc-theme-sidebar-logo {
  grid-row: auto;
}

.cc-theme-admin-sidebar.is-menu-collapsed .cc-theme-sidebar-toggle {
  margin: 0;
}

.cc-theme-nav-group {
  margin: 0 0 18px;
}

.cc-theme-nav-label {
  color: #b6f5ea;
  font-size: 0.72rem;
  font-weight: 900;
  margin: 0 0 6px;
  padding: 0 10px;
  text-transform: uppercase;
}

.cc-theme-nav-list {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cc-theme-nav-list .cc-theme-nav-link {
  background: transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 10px 11px;
}

.cc-theme-nav-list .cc-theme-nav-link:hover,
.cc-theme-nav-list .cc-theme-nav-link.active {
  background: linear-gradient(90deg, rgba(53, 52, 255, 0.32), rgba(255, 255, 255, 0.09));
  color: var(--cc-white);
}

.cc-theme-nav-list .cc-theme-nav-link.active {
  box-shadow: inset 3px 0 0 #b6f5ea;
}

.cc-theme-page-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--cc-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.cc-theme-page-header h1 {
  color: var(--cc-secondary);
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.cc-theme-page-header p,
.cc-theme-card-subtitle {
  color: var(--cc-body);
  margin: 4px 0 0;
}

.cc-theme-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cc-theme-content {
  isolation: isolate;
  padding: 22px 24px 42px;
  position: relative;
  z-index: 1;
}

.cc-theme-container {
  margin: 0 auto;
  max-width: 1500px;
  width: 100%;
}

.cc-theme-stack {
  display: grid;
}

.cc-theme-gap-md {
  gap: 16px;
}

.cc-theme-card,
.cc-theme-metric-card {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 31, 37, 0.06);
}

.cc-theme-card {
  margin: 0;
  overflow: hidden;
}

.cc-theme-card-header {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(53, 52, 255, 0.06), rgba(0, 167, 142, 0.04)),
    var(--cc-white);
  border-bottom: 1px solid var(--cc-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px 18px;
}

.cc-theme-card-title {
  color: var(--cc-secondary);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.cc-theme-card-body {
  padding: 18px;
}

.cc-theme-p-0 {
  padding: 0;
}

.cc-theme-panel-padding {
  padding: 18px;
}

.cc-theme-metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cc-theme-metric-card {
  background:
    radial-gradient(circle at right top, rgba(53, 52, 255, 0.1), transparent 42%),
    var(--cc-white);
  min-height: 112px;
  overflow: hidden;
  padding: 18px 18px 16px;
  position: relative;
}

.cc-theme-metric-card::before {
  background: var(--cc-primary);
  border-radius: 0 6px 6px 0;
  bottom: 16px;
  content: "";
  left: 0;
  position: absolute;
  top: 16px;
  width: 4px;
}

.cc-theme-metric-value {
  color: var(--cc-primary);
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  margin: 0;
}

.cc-theme-metric-label {
  color: var(--cc-body);
  font-size: 0.78rem;
  font-weight: 900;
  margin: 18px 0 0;
  text-transform: uppercase;
}

.cc-theme-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  line-height: 1.1;
  min-height: 38px;
  padding: 10px 14px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.cc-theme-btn:hover {
  transform: translateY(-1px);
}

.cc-theme-btn-sm {
  font-size: 0.82rem;
  min-height: 32px;
  padding: 7px 11px;
}

.cc-theme-btn-primary {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: var(--cc-white);
}

.cc-theme-btn-primary:hover {
  background: var(--cc-primary-dark);
  border-color: var(--cc-primary-dark);
}

.cc-theme-btn-outline-primary,
.cc-theme-btn-outline-secondary {
  background: var(--cc-white);
}

.cc-theme-btn-outline-primary {
  border-color: rgba(53, 52, 255, 0.32);
  color: var(--cc-primary);
}

.cc-theme-btn-outline-primary:hover {
  background: rgba(53, 52, 255, 0.08);
}

.cc-theme-btn-outline-secondary {
  border-color: var(--cc-line);
  color: var(--cc-secondary);
}

.cc-theme-btn-outline-secondary:hover {
  border-color: var(--cc-primary);
  color: var(--cc-primary);
}

.cc-theme-form-label {
  color: var(--cc-secondary);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.cc-theme-input,
.cc-theme-select {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: 6px;
  color: var(--cc-heading);
  display: block;
  line-height: 1.4;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}

.cc-theme-input-sm {
  min-height: 34px;
  padding: 7px 10px;
}

.cc-theme-input:focus,
.cc-theme-select:focus {
  border-color: var(--cc-primary);
  box-shadow: 0 0 0 3px rgba(53, 52, 255, 0.12);
  outline: 0;
}

.cc-theme-check {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.cc-theme-check-input {
  accent-color: var(--cc-primary);
  flex: 0 0 auto;
  margin-top: 3px;
}

.cc-theme-check-label {
  color: var(--cc-body);
  font-weight: 900;
}

.cc-theme-table-frame {
  overflow-x: auto;
  width: 100%;
}

.cc-theme-table {
  border-collapse: collapse;
  color: var(--cc-heading);
  margin: 0;
  width: 100%;
}

.cc-theme-table th,
.cc-theme-table td {
  border-bottom: 1px solid var(--cc-line);
  line-height: 1.35;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

.cc-theme-table th {
  color: var(--cc-body);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.cc-theme-table tbody tr:nth-child(even) td {
  background: rgba(246, 246, 255, 0.58);
}

.cc-theme-alert {
  border-radius: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
}

.cc-theme-alert-danger {
  background: rgba(217, 45, 32, 0.1);
  border: 1px solid rgba(217, 45, 32, 0.22);
  color: var(--cc-danger);
}

.cc-theme-muted {
  color: var(--cc-muted);
}

.backoffice-check {
  align-items: center;
  min-height: 40px;
  padding-top: 22px;
}

.discount-admin-table {
  min-width: 1080px;
}

.cc-theme-table.discount-admin-table th {
  background: transparent;
}

.legal-main {
  margin: 0 auto;
  max-width: 1040px;
  padding: 72px 24px 40px;
}

.contract-main {
  max-width: 980px;
  padding-top: 54px;
}

.legal-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.legal-hero h1 {
  max-width: 860px;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-card {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  display: grid;
  gap: 10px;
  padding: 22px;
}

.legal-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.legal-card a {
  color: var(--cc-primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-summary {
  display: grid;
  gap: 8px;
  margin: 0;
}

.company-summary strong {
  color: var(--cc-heading);
  font-size: 1.08rem;
  font-weight: 900;
}

.company-summary span {
  color: var(--cc-muted);
  font-weight: 900;
}

.contract-document {
  background: var(--cc-white);
  border: 1px solid rgba(221, 216, 249, 0.92);
  box-shadow: 0 24px 80px rgba(35, 32, 84, 0.12);
  color: var(--cc-body);
  display: grid;
  gap: 0;
  padding: clamp(28px, 5vw, 58px);
}

.contract-title {
  border-bottom: 2px solid var(--cc-heading);
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
  text-align: center;
}

.contract-title h1 {
  color: var(--cc-heading);
  font-size: clamp(2.05rem, 4vw, 3.4rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  text-transform: uppercase;
}

.contract-title p,
.contract-parties p,
.contract-section p {
  color: var(--cc-body);
  font-size: 1rem;
  line-height: 1.78;
}

.contract-title p {
  margin: 0 auto;
  max-width: 760px;
}

.contract-parties {
  border-bottom: 1px solid var(--cc-line);
  display: grid;
  gap: 10px;
  padding: 24px 0;
}

.contract-parties p,
.contract-section p {
  margin: 0;
}

.contract-section {
  border-bottom: 1px solid rgba(221, 216, 249, 0.7);
  display: grid;
  gap: 10px;
  padding: 24px 0;
}

.contract-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contract-section h2 {
  color: var(--cc-heading);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.24;
  margin: 0 0 2px;
}

.contract-section strong,
.contract-parties strong {
  color: var(--cc-heading);
  font-weight: 900;
}

.contract-document a {
  color: var(--cc-primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contract-emphasis {
  background: rgba(54, 57, 252, 0.04);
  border: 1px solid rgba(54, 57, 252, 0.16);
  margin: 18px -18px;
  padding: 24px 18px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(31, 31, 37, 0.62);
  display: grid;
  inset: 0;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.auth-modal {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow-strong);
  margin: 0 auto;
  max-width: 520px;
  width: min(100%, 520px);
}

.auth-modal header {
  align-items: flex-start;
  border-bottom: 1px solid var(--cc-line);
  display: flex;
  justify-content: space-between;
  padding: 24px 24px 18px;
}

.auth-modal h2 {
  font-size: 1.8rem;
  margin-top: 8px;
}

.icon-button {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  color: var(--cc-muted);
  height: 38px;
  padding: 0;
  width: 38px;
}

.auth-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  padding: 18px 24px 0;
}

.auth-tabs button {
  background: var(--cc-white);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  color: var(--cc-body);
  cursor: pointer;
  font-weight: 900;
  padding: 11px 12px;
}

.auth-tabs button.active {
  background: var(--cc-secondary);
  color: var(--cc-white);
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-error {
  background: rgba(217, 45, 32, 0.09);
  border: 1px solid rgba(217, 45, 32, 0.12);
  border-radius: var(--cc-radius);
  color: var(--cc-danger);
  font-weight: 900;
  padding: 12px 14px;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-section,
  .problem-section,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding-left: 0;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-form,
  .discount-admin-form,
  .site-form {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    gap: 14px;
    justify-content: space-between;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--cc-line);
    box-shadow: 0 24px 44px rgba(31, 31, 37, 0.14);
    display: none;
    flex-direction: column;
    gap: 8px;
    left: 0;
    padding: 14px 16px 18px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .site-header.is-nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a,
  .language-switcher,
  .primary-nav .ghost-button {
    justify-content: center;
    min-height: 46px;
    width: 100%;
  }

  .primary-nav a {
    border: 1px solid var(--cc-line);
    border-radius: 8px;
    padding: 12px 14px;
  }

  .language-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .language-switcher a {
    text-align: center;
  }

  .primary-nav a:hover {
    background: var(--cc-muted);
  }

  .site-footer,
  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-scene {
    min-height: 420px;
  }

  .problem-grid,
  .card-grid.three,
  .card-grid.four,
  .pricing-grid,
  .flow-grid,
  .metric-grid,
    .discount-code-list,
    .backoffice-token-form,
    .discount-admin-form,
    .company-form,
  .site-form {
    grid-template-columns: 1fr;
  }

  .wide-field {
    grid-column: span 1;
  }
}
