:root {
  --bg: #11100f;
  --bg-soft: #1b1917;
  --panel: #24211f;
  --panel-light: #f2eee7;
  --text: #f7f1e8;
  --muted: #b9aea2;
  --ink: #1c1815;
  --copper: #c47a3f;
  --copper-soft: #e6a66b;
  --stone: #5f5a55;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(17, 16, 15, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  display: block;
  width: auto;
  height: clamp(30px, 3vw, 40px);
  max-width: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 12px;
  color: rgba(247, 241, 232, 0.78);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) clamp(56px, 8vw, 110px);
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.94) 0%, rgba(17, 16, 15, 0.62) 43%, rgba(17, 16, 15, 0.16) 100%),
    linear-gradient(0deg, rgba(17, 16, 15, 0.78), rgba(17, 16, 15, 0.1) 54%),
    image-set(
      url("assets/p10_00_harvia-lindea-luks-sauna-kabini.webp") type("image/webp"),
      url("assets/p10_00_harvia-lindea-luks-sauna-kabini.jpg") type("image/jpeg")
    ) center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), transparent);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.1;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-content > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(247, 241, 232, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #140f0c;
  background: linear-gradient(135deg, var(--copper-soft), var(--copper));
}

.ghost-button {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.whatsapp-button {
  width: fit-content;
  color: #07130e;
  background: #69d283;
}

.category-section,
.featured-section,
.story-section,
.projects-section,
.faq-section,
.contact-section {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.category-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.category-card,
.project-grid article,
.product-card,
.faq-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--category-next-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.category-card.is-swapping::after {
  opacity: 1;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(17, 16, 15, 0.92), rgba(17, 16, 15, 0.38) 58%, rgba(17, 16, 15, 0.08)),
    linear-gradient(90deg, rgba(17, 16, 15, 0.3), rgba(17, 16, 15, 0));
}

.category-card > * {
  position: relative;
  z-index: 2;
}

.category-card span {
  color: var(--copper-soft);
  font-weight: 900;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-tags em {
  padding: 7px 9px;
  border: 1px solid rgba(230, 166, 107, 0.34);
  border-radius: 999px;
  color: #f6d2b0;
  background: rgba(17, 16, 15, 0.5);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.category-card.electric {
  background-image: url("foto/Cilindro PC90XE 9,0 kW BlackSteel - HPC9004MXE.jpg");
}

.category-card.wood {
  background-image: url("foto/Cilindro 20 Steel - WKPC20S.jpg");
}

.category-card.control {
  background-image: url("foto/Fenix WiFi control panel - FX001XW.jpg");
}

.category-card.stones {
  background-image: url("foto/Sauna heater stones 5-10 cm 20 kg - AC3000.jpg");
}

.category-card.cabins {
  background-image: url("harvia-cabins/PANORAMA-L-03-5993.jpg");
}

.filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(196, 122, 63, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.filters label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filters select,
.filters input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #151311;
  color: var(--text);
  outline: 0;
}

.filters select {
  min-height: 58px;
  padding: 0 14px;
}

.filters input {
  min-height: 58px;
  padding: 0 16px;
}

.filters select:focus,
.filters input:focus {
  border-color: rgba(230, 166, 107, 0.7);
  box-shadow: 0 0 0 4px rgba(196, 122, 63, 0.16);
}

.filter-search {
  grid-column: span 1;
}

.filter-empty {
  display: grid;
  place-items: start;
  gap: 8px;
  min-height: 260px;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(230, 166, 107, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.96) 0%, rgba(23, 21, 19, 0.82) 48%, rgba(23, 21, 19, 0.22) 100%),
    url("harvia-cabins/PANORAMA-L-03-5993.jpg") right center / cover no-repeat;
}

.filter-empty h3 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
}

.filter-empty p:not(.eyebrow) {
  max-width: 560px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(230, 166, 107, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.results-head[hidden] {
  display: none;
}

.results-head span {
  color: var(--text);
  font-weight: 900;
}

.results-head button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.results-head button:hover {
  border-color: rgba(230, 166, 107, 0.58);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
}

.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 16px;
  background: #efebe4;
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.product-code {
  display: inline-flex;
  margin-top: 4px;
  color: var(--copper-soft);
  font-size: 13px;
  letter-spacing: 0;
}

.product-meta span {
  padding: 7px 9px;
  border-radius: 999px;
  color: #f3d4b9;
  background: rgba(196, 122, 63, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.compatibility-note {
  margin: -4px 0 14px;
  padding: 12px;
  border: 1px solid rgba(230, 166, 107, 0.22);
  border-radius: 7px;
  color: #e9d7c5;
  background: rgba(196, 122, 63, 0.12);
  font-size: 13px;
  line-height: 1.55;
}

.compatibility-note strong {
  color: var(--copper-soft);
}

.detail-button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(230, 166, 107, 0.5);
  border-radius: 7px;
  color: var(--text);
  background: rgba(196, 122, 63, 0.14);
  font-weight: 800;
  cursor: pointer;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: clamp(14px, 3vw, 36px);
}

.product-modal.open {
  display: grid;
  place-items: center;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(14px);
}

.product-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 44px);
  width: min(1180px, 100%);
  max-height: min(860px, calc(100vh - 28px));
  padding: clamp(16px, 3vw, 34px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #171513;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.55);
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: var(--text);
  background: rgba(17, 16, 15, 0.76);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.product-modal-media {
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-modal-main {
  display: grid;
  place-items: center;
  min-height: clamp(420px, 62vh, 680px);
  overflow: hidden;
  border-radius: 8px;
  background: #f1ede7;
}

.product-modal-main img {
  width: 100%;
  height: 100%;
  max-height: clamp(400px, 60vh, 660px);
  object-fit: contain;
  padding: clamp(14px, 3vw, 28px);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-modal-main img.loaded {
  opacity: 1;
  transform: scale(1);
}

.product-modal-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82px, 104px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-modal-thumbs button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #eee9e1;
  cursor: pointer;
}

.product-modal-thumbs button.active {
  border-color: var(--copper-soft);
  box-shadow: 0 0 0 3px rgba(196, 122, 63, 0.28);
}

.product-modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-modal-info {
  align-self: center;
  padding-right: 26px;
}

.product-modal-info h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 58px);
}

.detail-code {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--copper-soft);
  font-size: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #f3d4b9;
  background: rgba(196, 122, 63, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.detail-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(230, 166, 107, 0.5);
  border-radius: 7px;
  color: #140f0c;
  background: linear-gradient(135deg, var(--copper-soft), var(--copper));
  font-weight: 900;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: var(--panel-light);
  color: var(--ink);
}

.story-section p {
  color: #5d554d;
}

.story-image {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.86), rgba(17, 16, 15, 0.2)),
    url("assets/p48_00_harvia-cilindro-klasik-odun-yakmal.jpg") center / cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

button.story-video {
  display: grid;
  place-items: center;
  padding: 0;
  color: #140f0c;
  background: transparent;
  cursor: pointer;
}

.story-video span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-soft), var(--copper));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
  font-size: 30px;
  line-height: 1;
}

.story-points span {
  padding: 10px 12px;
  border-radius: 999px;
  color: #4b2a18;
  background: #ead7c4;
  font-weight: 800;
}

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

.project-grid article {
  padding: 26px;
}

.project-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--copper-soft);
  font-size: 22px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  display: block;
  width: 100%;
  padding: 20px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-item span {
  display: block;
  font-size: 19px;
  font-weight: 900;
}

.faq-item p {
  display: none;
  margin: 12px 0 0;
}

.faq-item.open p {
  display: block;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(17, 16, 15, 0.92), rgba(17, 16, 15, 0.7)),
    url("assets/p38_00_harvia-alpina-outdoor-sauna-cabin.jpg") center / cover;
}

.contact-copy {
  max-width: 640px;
}

.contact-company-info {
  display: grid;
  gap: 6px;
  max-width: 540px;
  margin-top: 22px;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.contact-company-info strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.contact-company-info a {
  width: fit-content;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.contact-company-info a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  padding: 13px 12px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status.success {
  color: #9be7ad;
}

.form-status.error {
  color: #ffd0c2;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-powered {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-powered img {
  display: block;
  width: 104px;
  height: auto;
}


.legal-consent {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: rgba(247, 241, 232, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.legal-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--copper);
}

.legal-consent a,
.footer-legal a,
.legal-document a {
  color: var(--copper-soft);
  font-weight: 800;
  text-decoration: none;
}

.legal-consent a:hover,
.footer-legal a:hover,
.legal-document a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 12px;
  font-weight: 800;
}

.legal-page {
  min-height: 100vh;
  padding: 132px clamp(18px, 5vw, 72px) 72px;
  background:
    linear-gradient(180deg, rgba(36, 33, 31, 0.92), rgba(17, 16, 15, 1) 420px),
    var(--bg);
}

.legal-document {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.legal-document h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(18px, 2.2vw, 24px);
}

.legal-document h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.12;
}

.legal-document p {
  max-width: 860px;
  color: rgba(247, 241, 232, 0.82);
}

.legal-updated {
  color: var(--copper-soft) !important;
  font-weight: 800;
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 16, 15, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.back-to-top:hover {
  background: var(--copper);
}

@media (max-width: 1120px) {
  .main-nav {
    position: fixed;
    inset: 76px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 16, 15, 0.96);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

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

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

  .product-modal-panel {
    grid-template-columns: 1fr;
  }

  .product-modal-info {
    align-self: start;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 760px;
    padding-top: 112px;
  }

  .section-heading,
  .site-footer {
    display: block;
  }

  .category-grid,
  .filters,
  .product-grid,
  .story-section,
  .project-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .story-image {
    min-height: 360px;
  }

  .product-modal {
    padding: 10px;
  }

  .product-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .product-modal-main {
    min-height: 360px;
  }

  .product-modal-thumbs {
    grid-auto-columns: 78px;
  }
}







