:root {
  --red: #97070d;
  --red-dark: #650006;
  --ink: #171715;
  --cream: #f4efe7;
  --paper: #fbfaf7;
  --muted: #6d6a64;
  --line: #dad4ca;
  --font-sans: "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans), Arial, sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 94px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.brand {
  width: 188px;
  height: 58px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.brand img,
.footer-brand img {
  width: 100%;
  display: block;
  mix-blend-mode: screen;
}

.nav nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}

.nav nav a {
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.nav nav a:hover {
  opacity: 1;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 13px 16px 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.nav-cta span,
.button span {
  font-size: 18px;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: #fff;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 780px;
  height: 92vh;
  max-height: 940px;
  color: #fff;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("assets/ekotermia-home.png") center center / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 13, 11, 0.91) 0%, rgba(31, 21, 17, 0.68) 36%, rgba(40, 20, 17, 0.04) 75%),
    linear-gradient(0deg, rgba(12, 9, 7, 0.38), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 190px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: #fff;
}

.hero h1,
.intro h2,
.section-heading h2,
.grant h2,
.contact h2,
.faq h2 {
  margin: 0;
  font-size: clamp(48px, 6.1vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 520;
}

h1 em,
h2 em {
  font-family: var(--font-serif), Georgia, serif;
  font-weight: 500;
}

.hero h1 em {
  color: #f0d8cb;
}

.hero-lead {
  width: min(530px, 100%);
  margin: 29px 0 35px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 230px;
  padding: 17px 19px 17px 22px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.primary:hover {
  background: #b10a12;
}

.text-link {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.hero-proof {
  position: absolute;
  right: 5vw;
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 145px);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-proof > div {
  padding: 17px 16px 0 0;
  display: grid;
}

.hero-proof strong {
  margin-bottom: 24px;
  color: #e9b9b8;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hero-proof span {
  font-size: 13px;
  font-weight: 800;
}

.hero-proof small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.intro {
  padding: 130px 0 150px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  align-items: end;
  gap: 80px;
}

.intro h2,
.section-heading h2,
.grant h2,
.contact h2,
.faq h2 {
  font-size: clamp(40px, 4.7vw, 66px);
}

.intro h2 em {
  color: var(--red);
}

.intro-grid > div:last-child p,
.section-heading > p,
.grant-copy > p,
.contact-copy > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.services {
  padding: 120px 0;
  background: var(--cream);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.6fr 0.65fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 70px;
}

.section-heading h2 {
  max-width: 730px;
}

.section-heading > p {
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 390px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  background: #fff;
  transform: translateY(-5px);
}

.service-top {
  display: flex;
  justify-content: space-between;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.service-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
}

.service-card small {
  color: var(--red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 14px 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.grant {
  padding: 110px 0;
}

.grant-card {
  min-height: 530px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 60px;
  align-items: center;
  background: var(--red);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.grant-card::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -150px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.035), 0 0 0 145px rgba(255, 255, 255, 0.025);
}

.grant-copy {
  position: relative;
  z-index: 2;
}

.grant h2 {
  font-size: clamp(38px, 4.3vw, 60px);
}

.grant h2 em {
  color: #efc9c8;
}

.grant-copy > p {
  max-width: 620px;
  margin: 25px 0 32px;
  color: rgba(255, 255, 255, 0.72);
}

.button.pale {
  background: #fff;
  color: var(--red);
}

.grant-stamp {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.grant-stamp > div {
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-7deg);
}

.grant-stamp strong {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 23px;
  font-style: italic;
}

.grant-stamp span {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process {
  padding: 85px 0 145px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  min-height: 230px;
  padding: 25px 28px 10px 0;
  border-right: 1px solid var(--line);
}

.step + .step {
  padding-left: 28px;
}

.step:last-child {
  border-right: 0;
}

.step > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
}

.step h3 {
  margin: 55px 0 11px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.contact {
  padding: 120px 0;
  background: var(--ink);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 115px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(42px, 4.3vw, 62px);
}

.contact h2 em {
  color: #dfaaaa;
}

.contact-copy > p {
  max-width: 570px;
  margin: 28px 0 42px;
  color: rgba(255, 255, 255, 0.61);
}

.contact-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 18px;
  border-left: 2px solid var(--red);
}

.contact-note strong {
  font-size: 13px;
}

.contact-note span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.lead-form {
  min-height: 520px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 18px;
  background: var(--paper);
  color: var(--ink);
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #3b3935;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 48px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid #bdb7ae;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--red);
}

.lead-form .consent {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.consent input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.button.dark {
  grid-column: 1 / -1;
  width: 100%;
  align-self: end;
  background: var(--red);
  color: #fff;
}

.form-success {
  grid-column: 1 / -1;
  align-self: center;
  text-align: center;
}

.form-success > span {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 24px;
}

.form-success h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.form-success p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.form-success button {
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.form-alert {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border-left: 3px solid var(--red);
  background: #f1e8e3;
  color: #5f0509;
  font-size: 12px;
  line-height: 1.55;
}

.form-alert.success {
  border-color: #347652;
  background: #e8f2ec;
  color: #205338;
}

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

.faq {
  padding: 130px 0;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 120px;
}

.faq h2 {
  font-size: 48px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

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

.faq summary span {
  color: var(--red);
  font-size: 20px;
  font-weight: 400;
}

.faq details[open] summary span {
  transform: rotate(45deg);
}

.faq details p {
  margin: -5px 40px 25px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

footer {
  padding-top: 70px;
  background: var(--red-dark);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.8fr 1.2fr;
  gap: 60px;
  padding-bottom: 70px;
}

.footer-brand img {
  width: 200px;
}

.footer-brand p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-serif), Georgia, serif;
  font-style: italic;
}

.footer-main > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}

.footer-main small {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-domain strong {
  font-size: 25px;
}

.footer-domain a {
  margin-top: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

@media (max-width: 980px) {
  .nav nav {
    display: none;
  }

  .nav nav.open {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    padding: 22px;
    display: grid;
    gap: 18px;
    background: rgba(23, 23, 21, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 14px;
  }

  .hero-proof {
    left: 32px;
    right: 32px;
    grid-template-columns: repeat(3, 1fr);
  }

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

  .contact-grid,
  .faq {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .footer-main {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-domain {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .shell,
  .hero-content {
    width: min(100% - 36px, 1180px);
  }

  .nav {
    height: 78px;
    padding: 0 18px;
  }

  .brand {
    width: 145px;
  }

  .nav-cta {
    padding: 11px 12px;
    min-width: 0;
    font-size: 0;
  }

  .nav-cta::before {
    content: "Kontakt";
    font-size: 11px;
  }

  .nav-cta span {
    font-size: 15px;
  }

  .hero {
    min-height: 760px;
    height: 100svh;
  }

  .hero-image {
    background-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(17, 13, 11, 0.89), rgba(28, 18, 13, 0.28));
  }

  .hero-content {
    padding-top: 155px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 65px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 21px;
  }

  .hero-proof {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .hero-proof > div {
    padding-right: 8px;
  }

  .hero-proof strong {
    margin-bottom: 14px;
  }

  .hero-proof span {
    font-size: 10px;
  }

  .hero-proof small {
    display: none;
  }

  .intro,
  .services,
  .contact,
  .faq {
    padding: 85px 0;
  }

  .intro-grid,
  .section-heading,
  .grant-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .intro h2,
  .section-heading h2,
  .grant h2,
  .contact h2 {
    font-size: 39px;
  }

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

  .service-card {
    min-height: 310px;
  }

  .grant {
    width: 100%;
    padding: 0;
  }

  .grant-card {
    padding: 70px 24px;
  }

  .grant-stamp {
    display: none;
  }

  .process {
    padding: 90px 0;
  }

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

  .step:nth-child(2) {
    border-right: 0;
  }

  .step + .step {
    padding-left: 18px;
  }

  .step {
    min-height: 210px;
    padding-right: 18px;
    border-bottom: 1px solid var(--line);
  }

  .lead-form {
    min-height: 590px;
    padding: 28px 22px;
    grid-template-columns: 1fr;
  }

  .lead-form .consent,
  .button.dark,
  .form-success {
    grid-column: 1;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 25px;
  }

  .footer-brand,
  .footer-domain {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    gap: 14px;
    flex-direction: column;
  }
}

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

  * {
    transition: none !important;
  }
}
