:root {
  --color-primary: #0758d9;
  --color-primary-dark: #0646ad;
  --color-primary-light: #eaf2ff;
  --color-navy: #09294d;
  --color-text: #172b45;
  --color-muted: #61738a;
  --color-white: #ffffff;
  --color-page: #f7faff;
  --color-surface: #ffffff;
  --color-surface-blue: #f0f6ff;
  --color-border: #d9e4f1;
  --color-border-strong: #bfd0e3;
  --color-success: #138a59;
  --color-error: #b42318;
  --shadow-card: 0 12px 32px rgba(23, 57, 96, 0.05);
  --shadow-soft: 0 8px 24px rgba(23, 57, 96, 0.06);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1240px;
  --section-space-desktop: 80px;
  --section-space-tablet: 64px;
  --section-space-mobile: 48px;
  --font: Inter, Manrope, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(7, 88, 217, 0.32);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-navy);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.625rem, 4.6vw, 4.25rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.1875rem, 1.5vw, 1.4375rem);
  font-weight: 750;
  letter-spacing: -0.015em;
}

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

.section {
  padding-block: var(--section-space-mobile);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--color-white);
  background: var(--color-navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid #a9c8fb;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.015em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  gap: 14px;
  padding: 12px 20px;
  border: 1px solid var(--color-primary);
  border-radius: 9px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary), #0647b8);
  box-shadow: 0 8px 18px rgba(7, 88, 217, 0.18);
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), #053b98);
  box-shadow: 0 10px 22px rgba(7, 88, 217, 0.25);
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-small {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.85rem;
}

.button-wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-primary);
  font-weight: 750;
}

.text-link:hover {
  color: var(--color-primary-dark);
}

.surface-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading > p:last-child,
.requirements-copy > p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.compact-heading {
  margin-bottom: 24px;
}

.compact-heading h2 {
  margin-bottom: 0;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(23, 57, 96, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

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

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  color: var(--color-navy);
  background: var(--color-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  inset: 71px 0 0;
  display: none;
  padding: 24px 18px 40px;
  overflow-y: auto;
  background: var(--color-white);
}

.main-nav.is-open {
  display: block;
}

.main-nav > a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-navy);
  font-weight: 700;
}

.nav-mobile-contact {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.nav-mobile-contact > a:not(.button) {
  color: var(--color-primary);
  font-weight: 700;
}

.header-contact {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f5f9ff;
}

.hero-background,
.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding-block: 40px 48px;
}

.hero-copy,
.hero-criteria {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

#hero-title {
  max-width: 620px;
  margin-bottom: 0;
  line-height: 1.03;
}

.hero-title-main,
#hero-title em {
  display: block;
}

#hero-title em {
  color: var(--color-primary);
  font-style: normal;
}

.hero-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: #304762;
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
  line-height: 1.55;
}

.hero-facts {
  display: grid;
  max-width: 570px;
  margin: 32px 0 0;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-facts li > span {
  min-width: 0;
}

.hero-facts svg,
.hero-criteria svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-facts strong,
.hero-facts small {
  display: block;
}

.hero-facts strong {
  color: var(--color-navy);
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-facts small {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: .8rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: auto;
  max-width: 400px;
  margin-top: 34px;
  gap: 18px;
}

.hero-actions .button,
.header-contact .button {
  white-space: nowrap;
}

.hero-actions .button {
  width: 100%;
  max-width: 400px;
  padding-inline: 14px;
  font-size: .86rem;
}

.hero-actions .text-link {
  display: inline-flex;
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.hero-mobile-visual {
  width: 100%;
  aspect-ratio: 1674 / 941;
  overflow: hidden;
  border-radius: 20px;
  background: #eef5ff;
}

.hero-mobile-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-criteria {
  position: static;
  z-index: 3;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 42px rgba(9,41,77,.12);
}

.hero-criteria-header {
  margin-bottom: 4px;
}

.hero-criteria-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--color-primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-criteria h2 {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.3rem;
  line-height: 1.2;
}

.hero-criteria ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.hero-criteria li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-criteria li:last-child {
  border-bottom: 0;
}

.hero-criteria strong,
.hero-criteria small {
  display: block;
}

.hero-criteria strong {
  color: var(--color-navy);
  font-size: .98rem;
  line-height: 1.25;
}

.hero-criteria small {
  color: var(--color-muted);
  font-size: .76rem;
  line-height: 1.4;
}

.hero-criteria li > svg {
  width: 36px;
  height: 36px;
}

.hero-criteria-note {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: .72rem;
  line-height: 1.45;
}

/* Technical scheme */
.scheme-card {
  padding: clamp(24px, 3vw, 40px);
}

.technical-scheme {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fbfdff;
}

.energy-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.energy-source-card,
.energy-consumers-card,
.energy-reserve-card {
  border: 1px dashed var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-white);
}

.energy-source-card {
  order: 1;
  padding: 20px;
}

.diagram-label {
  display: block;
  margin-bottom: 13px;
  color: var(--color-navy);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
}

.energy-source-sequence {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.energy-source-step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.energy-source-step svg,
.energy-network-card svg,
.energy-consumers-card svg,
.energy-reserve-card > svg {
  width: 46px;
  height: 46px;
  margin-bottom: 7px;
  padding: 8px;
  border-radius: 9px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.energy-source-step b {
  color: var(--color-navy);
  font-size: .8rem;
}

.energy-source-step small {
  color: var(--color-muted);
  font-size: .68rem;
  line-height: 1.35;
}

.energy-mini-arrow,
.energy-arrow {
  color: var(--color-primary);
  font-weight: 800;
}

.energy-arrow {
  align-self: center;
  order: 2;
  font-size: 1.35rem;
  transform: rotate(90deg);
}

.energy-network-card {
  display: flex;
  order: 3;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  border-radius: 12px;
  color: var(--color-white);
  background: linear-gradient(145deg, var(--color-navy), #06438e);
  text-align: center;
}

.energy-network-card svg {
  color: var(--color-white);
  background: rgba(255,255,255,.12);
}

.energy-network-card h3,
.energy-network-card p {
  color: var(--color-white);
}

.energy-network-card h3,
.energy-consumers-card h3,
.energy-reserve-card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.energy-network-card p,
.energy-consumers-card p,
.energy-reserve-card p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.energy-reserve-card {
  display: flex;
  order: 7;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 20px;
  background: var(--color-surface-blue);
  text-align: center;
}

.reserve-arrow {
  display: none;
  width: 32px;
  height: 36px;
  margin: -8px auto 0;
  place-items: center;
  color: var(--color-primary);
}

.reserve-connection-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-white);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.reserve-arrow svg {
  width: 24px;
  height: 32px;
  margin: 0;
  padding: 0;
  color: currentColor;
  background: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.energy-reserve-card > svg {
  flex: 0 0 auto;
  margin: 0;
}

.energy-arrow-output {
  order: 4;
}

.energy-consumers-card {
  display: flex;
  order: 5;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px;
  text-align: center;
}

.scheme-notes {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.scheme-notes > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.scheme-notes > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-primary);
  background: var(--color-white);
}

.scheme-notes > div > span img {
  width: 22px;
  height: 22px;
}

.scheme-notes p {
  margin: 0;
  color: var(--color-muted);
  font-size: .7rem;
  line-height: 1.45;
}

.scheme-notes strong {
  display: block;
  color: var(--color-navy);
  font-size: .76rem;
}

/* Model */
.model {
  background: var(--color-white);
}

.model-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.model-steps li {
  position: relative;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-white);
}

.model-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 9px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-size: .75rem;
  font-weight: 800;
}

.model-steps h3 {
  margin-bottom: 8px;
}

.model-steps p {
  margin: 0;
  color: var(--color-muted);
  font-size: .82rem;
}

/* Calculator + lead */
.calculator-section {
  background: linear-gradient(180deg, var(--color-page), #f2f7fd);
}

.calculator-lead-grid {
  display: grid;
  gap: 18px;
}

.calculator-panel,
.lead-panel {
  padding: 24px;
}

.calculator-inner {
  display: grid;
  gap: 18px;
}

.calculator-form,
#lead-form {
  display: grid;
  align-content: start;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-navy);
  font-size: .82rem;
  font-weight: 700;
}

.field label span {
  color: var(--color-muted);
  font-size: .72rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 9px;
  color: var(--color-navy);
  background: var(--color-white);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover {
  border-color: #91afd2;
}

.field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(7, 88, 217, .11);
}

.field input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-hint,
.field-error {
  min-height: 1em;
  font-size: .7rem;
  line-height: 1.35;
}

.field-hint {
  color: var(--color-muted);
}

.field-error {
  color: var(--color-error);
}

.fixed-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 9px 14px;
  border: 1px solid #c9ddfb;
  border-radius: 9px;
  color: var(--color-text);
  background: var(--color-primary-light);
  font-size: .8rem;
}

.fixed-discount strong {
  color: var(--color-primary);
  font-size: 1rem;
}

.calculator-note,
.form-note,
.lead-email {
  margin: 0;
  color: var(--color-muted);
  font-size: .7rem;
  line-height: 1.45;
}

.calculator-result {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-blue);
}

.result-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--color-navy);
  font-size: .8rem;
  font-weight: 800;
}

.result-list {
  margin: 0 0 14px;
}

.result-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #d5e2f1;
}

.result-list dt,
.result-list dd {
  margin: 0;
  font-size: .7rem;
}

.result-list dt {
  color: var(--color-muted);
}

.result-list dd {
  color: var(--color-navy);
  font-weight: 800;
  text-align: right;
}

.savings-highlight,
.annual-savings {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  color: var(--color-primary);
}

.savings-highlight strong,
.annual-savings strong {
  font-size: 1.5rem;
  line-height: 1.1;
}

.savings-highlight strong {
  font-size: 1.85rem;
}

.calculator-result > p {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: .64rem;
  line-height: 1.45;
}

.lead-panel {
  background: linear-gradient(145deg, #f6faff, #eaf3ff);
}

.lead-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 5vw, 2.15rem);
}

.lead-panel > p:not(.eyebrow):not(.lead-email) {
  margin-bottom: 22px;
  color: var(--color-muted);
}

.consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--color-muted);
  font-size: .68rem;
  line-height: 1.45;
}

.consent-check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.consent-check a,
.lead-email a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.form-status {
  display: none;
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: .75rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #0a6640;
  background: #e7f7ef;
}

.form-status.is-error {
  color: var(--color-error);
  background: #fff0ee;
}

.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.button.is-loading .button-loader {
  display: block;
}

.lead-email {
  margin-top: 18px;
}

/* Compact project launch */
.project-start {
  padding-top: 20px;
  background: var(--color-white);
}

.project-start-card {
  display: grid;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff, #f4f8fe);
}

.project-start-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 5vw, 2.2rem);
}

.project-start-heading > p:last-child,
.project-start-note {
  margin: 0;
  color: var(--color-muted);
  font-size: .8rem;
}

.project-start-columns {
  display: grid;
  gap: 12px;
}

.project-start-columns article {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-white);
}

.project-start-columns h3 {
  margin-bottom: 14px;
}

.project-start-columns ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.project-start-columns li {
  position: relative;
  padding-left: 22px;
  color: #40566e;
  font-size: .8rem;
}

.project-start-columns li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.project-start-note {
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

/* FAQ */
.faq {
  background: var(--color-white);
}

.faq-heading {
  margin-bottom: 22px;
}

.faq-heading .eyebrow {
  margin-bottom: 8px;
}

.faq-heading h2 {
  margin: 0;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion details {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fbfdff;
}

.accordion summary {
  position: relative;
  padding: 15px 44px 15px 16px;
  color: var(--color-navy);
  font-size: .86rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span::before,
.accordion summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: translateY(-50%);
}

.accordion summary span::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 160ms ease;
}

.accordion details[open] summary span::after {
  transform: translateY(-50%) rotate(0);
}

.accordion details p {
  margin: 0;
  padding: 0 16px 17px;
  color: var(--color-muted);
  font-size: .78rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.footer-main {
  display: grid;
  gap: 24px;
  padding-block: 26px;
}

.footer-brand p {
  max-width: 330px;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: .76rem;
}

.footer-nav,
.footer-contacts {
  display: grid;
  align-content: start;
  gap: 9px;
  font-size: .78rem;
}

.footer-nav a:hover,
.footer-contacts a:hover,
.footer-bottom a:hover {
  color: var(--color-primary);
}

.footer-contacts a {
  color: var(--color-navy);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 13px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: .68rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Inner and system pages */
.inner-page {
  min-height: 100vh;
}

.inner-page-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.inner-page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.inner-page-header .back-link {
  margin: 0;
}

.legal-main {
  padding-block: 40px 72px;
}

.system-page {
  display: grid;
  min-height: 100vh;
  padding: 32px 16px;
  place-items: center;
}

.inner-page .container,
.system-page .container {
  max-width: 900px;
}

.legal-card,
.system-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.system-card {
  width: min(100%, 660px);
  text-align: center;
}

.system-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 18px;
  color: var(--color-white);
  background: var(--color-primary);
  font-size: 1.7rem;
  font-weight: 800;
}

.legal-card h1,
.system-card h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.legal-card h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

.legal-card p,
.legal-card li,
.system-card p {
  color: #40566e;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-weight: 700;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-width: max-content;
    gap: 24px;
  }

  .hero-actions .button {
    width: auto;
    padding-inline: 20px;
    font-size: inherit;
  }

  .scheme-notes,
  .project-start-columns,
  .accordion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-inner {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .footer-main {
    grid-template-columns: minmax(260px, 1.5fr) 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .section {
    padding-block: var(--section-space-tablet);
  }

  .calculator-panel,
  .lead-panel {
    padding: 30px;
  }

  .section-heading-split {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    align-items: end;
    gap: 48px;
  }

  .section-heading-split h2 {
    margin-bottom: 0;
  }

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

  .project-start-card {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 34px;
  }

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

  .project-start-note {
    grid-column: 1 / -1;
  }

  .legal-card,
  .system-card {
    padding: 42px;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: clamp(620px, 72vh, 780px);
  }

  .hero-background,
  .hero-overlay {
    position: absolute;
    inset: 0;
    display: block;
  }

  .hero-background {
    z-index: -3;
  }

  .hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% center;
  }

  .hero-overlay {
    z-index: -2;
    background:
      linear-gradient(180deg, transparent 72%, rgba(247, 250, 255, .7) 100%),
      linear-gradient(90deg, rgba(255,255,255,.99) 0%, rgba(255,255,255,.97) 30%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.3) 70%, rgba(255,255,255,.04) 100%);
  }

  .hero-content {
    min-height: inherit;
    grid-template-columns: minmax(0, 600px) minmax(260px, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    padding-block: clamp(64px, 8vw, 100px);
  }

  .hero-copy {
    align-self: center;
  }

  .hero-mobile-visual {
    display: none;
  }

  .hero-criteria {
    position: relative;
    z-index: 2;
    align-self: start;
    justify-self: end;
    width: min(100%, 330px);
    margin-top: 20px;
  }

  .hero-criteria ul {
    display: block;
  }

  .hero-criteria li {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero-criteria li:last-child {
    border-bottom: 0;
  }
}

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

  .section {
    padding-block: var(--section-space-desktop);
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 74px;
    gap: 16px;
  }

  .brand img {
    width: 170px;
  }

  .menu-toggle,
  .nav-mobile-contact {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 0;
    gap: clamp(10px, 1.45vw, 20px);
    overflow: visible;
    background: transparent;
  }

  .main-nav > a {
    display: inline-flex;
    padding: 8px 0;
    border: 0;
    font-size: .76rem;
    font-weight: 650;
  }

  .main-nav > a:hover {
    color: var(--color-primary);
  }

  .header-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .78rem;
    font-weight: 650;
  }

  .header-contact > a:not(.button) {
    display: none;
  }

  .header-contact > a:not(.button):hover {
    color: var(--color-primary);
  }

  .calculator-lead-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
    align-items: stretch;
  }

  .calculator-panel,
  .lead-panel {
    height: 100%;
  }

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

  .model-steps li {
    border-radius: 0;
    border-right: 0;
  }

  .model-steps li:first-child {
    border-radius: 14px 0 0 14px;
  }

  .model-steps li:last-child {
    border-right: 1px solid var(--color-border);
    border-radius: 0 14px 14px 0;
  }

  .footer-main {
    grid-template-columns: minmax(280px, 1.6fr) minmax(360px, 1fr) auto;
    align-items: start;
  }

  .footer-nav {
    grid-template-columns: repeat(3, max-content);
    column-gap: 20px;
  }
}

@media (min-width: 1200px) {
  .energy-diagram {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) 44px minmax(210px, .9fr) 44px minmax(210px, .9fr);
    grid-template-areas:
      "source arrow-one network arrow-two consumers"
      ". . reserve . .";
    align-items: center;
    gap: 24px 18px;
  }

  .energy-source-card {
    grid-area: source;
  }

  .energy-arrow {
    align-self: center;
    justify-self: center;
    transform: none;
  }

  .energy-arrow-main {
    grid-area: arrow-one;
  }

  .energy-network-card {
    grid-area: network;
    min-height: 190px;
    justify-content: center;
  }

  .energy-arrow-output {
    grid-area: arrow-two;
  }

  .energy-consumers-card {
    grid-area: consumers;
    min-height: 190px;
    justify-content: center;
  }

  .energy-reserve-card {
    grid-area: reserve;
    margin-top: 0;
  }

  .energy-reserve-card .reserve-arrow {
    display: grid;
  }

  .reserve-connection-label {
    display: none;
  }
}

@media (min-width: 1280px) {
  .header-inner {
    gap: 24px;
  }

  .brand img {
    width: 184px;
  }

  .main-nav {
    gap: clamp(16px, 1.7vw, 26px);
  }

  .main-nav > a {
    font-size: .8rem;
  }

  .header-contact {
    gap: 14px;
  }

  .header-contact > a:not(.button) {
    display: inline-flex;
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
