﻿:root {
  --ink: #25231f;
  --muted: #6d6458;
  --paper: #f4efe6;
  --paper-strong: #fffaf1;
  --line: #c9baa1;
  --charcoal: #191817;
  --charcoal-2: #24211e;
  --copper: #9d5b31;
  --olive: #58694b;
  --cream: #efe5d3;
  --shadow: 0 18px 42px rgba(25, 24, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(20, 40, 70, 0.12);
  box-shadow: 0 8px 24px rgba(20, 35, 55, 0.08);
}

.top-strip {
  width: min(1180px, calc(100% - 32px));
  min-height: 116px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(470px, 42vw);
  aspect-ratio: 4.08 / 1;
  overflow: hidden;
  position: relative;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  position: absolute;
  top: 0;
  left: 0;
  width: 113%;
  max-width: none;
  height: auto;
  transform: translate(-6.15%, -27.8%);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 229, 211, 0.4);
  background: #2d2923;
  color: #f8ead0;
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1;
  font-weight: 600;
}

.brand small {
  display: block;
  color: #bdb09c;
  font-family: Arial, sans-serif;
  font-size: 12px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: Arial, sans-serif;
}

.site-nav a {
  color: #23395f;
  text-decoration: none;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: #0786ca;
  border-color: #0786ca;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(35, 57, 95, 0.25);
  background: #fff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #23395f;
  margin: 5px 0;
}

.home-hero {
  min-height: calc(100vh - 80px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  gap: 34px;
  align-items: center;
  color: var(--paper);
  padding: 42px 0;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.95;
  font-weight: 500;
}

.hero-copy p,
.page-hero p {
  max-width: 650px;
  font-size: clamp(18px, 2.2vw, 24px);
  color: #d8cdbb;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.btn.primary {
  background: var(--copper);
  color: #fffaf1;
}

.btn.ghost {
  color: var(--paper);
  border-color: rgba(239, 229, 211, 0.34);
}

.hero-media {
  position: relative;
  min-height: 340px;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(239, 229, 211, 0.28);
  background: #111;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.01);
  transition: opacity 180ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-badges {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  background: rgba(25, 24, 23, 0.82);
  color: var(--cream);
  padding: 8px 10px;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.quick-links {
  width: min(1180px, calc(100% - 32px));
  margin: -24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.quick-links a {
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(239, 229, 211, 0.42);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1)), var(--bg) center / cover;
}

.quick-links span {
  background: #111;
  padding: 6px 8px;
  font-size: 22px;
}

.content-band,
.story-band {
  background: var(--paper);
  background-image: url("../public/assets/images/bg.jpg");
  padding: 64px 0;
}

.story-band {
  background-color: #e5dac9;
  border-block: 1px solid var(--line);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-title {
  margin-bottom: 26px;
}

.section-title h2,
.story-grid h2,
.product-section h2,
.info-panel h2,
.contact-card h2,
.media-note h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 500;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-grid article,
.info-panel,
.contact-card,
.contact-form {
  background: rgba(255, 250, 241, 0.84);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(37, 35, 31, 0.08);
}

.service-grid h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.service-grid p,
.story-grid p,
.product-section p,
.info-panel p,
.contact-grid p {
  color: var(--muted);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.partner-grid a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid var(--line);
  padding: 16px;
}

.partner-grid img {
  width: 120px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto;
}

.partner-grid span {
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.page-hero {
  color: var(--paper);
  background: linear-gradient(90deg, rgba(25, 24, 23, 0.96), rgba(36, 33, 30, 0.88)), url("../public/assets/images/normalheader.jpg") center / cover;
}

.page-hero.compact > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.anchor-nav a {
  background: #2b2924;
  color: var(--paper);
  padding: 9px 12px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.product-stack {
  display: grid;
  gap: 18px;
}

.product-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid var(--line);
  padding: 20px;
}

.product-section img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.product-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  padding-left: 20px;
}

.info-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-panel span {
  color: var(--olive);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.media-note {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 110px 110px 110px 1fr;
  gap: 16px;
  align-items: center;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid var(--line);
  padding: 18px;
}

.media-note img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
  font-family: Arial, sans-serif;
}

.gallery-tabs a {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  color: #23395f;
  border-bottom: 3px solid transparent;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.gallery-tabs a:hover,
.gallery-tabs a.active {
  color: #0786ca;
  border-bottom-color: #0786ca;
  background: rgba(255, 250, 241, 0.72);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fffaf1;
  padding: 6px;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.contact-card a {
  color: var(--copper);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf1;
  color: var(--ink);
  padding: 11px 12px;
}

.map-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: #fffaf1;
  padding: 8px;
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  color: #cfc4b2;
  background: #151413;
  border-top: 1px solid #080808;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 24px;
  font-weight: 500;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 8px;
  color: #cfc4b2;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.copyright {
  margin: 0;
  padding: 12px;
  text-align: center;
  background: #0d0c0c;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.84);
  padding: 22px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: #151413;
  color: #fff;
  cursor: pointer;
}

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

  .site-nav {
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid rgba(244, 239, 230, 0.16);
    padding: 8px 16px 18px;
  }

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

  .site-nav a {
    padding: 14px 0;
  }

  .home-hero,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

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

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

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

  .media-note div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .top-strip {
    width: min(100% - 24px, 1180px);
  }

  .brand strong {
    font-size: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .home-hero,
  .container,
  .quick-links,
  .footer-grid,
  .page-hero.compact > div {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 46px;
  }

  .quick-links,
  .service-grid,
  .partner-grid,
  .info-layout,
  .footer-grid,
  .product-section ul {
    grid-template-columns: 1fr;
  }

  .quick-links {
    margin-top: 0;
  }

  .content-band,
  .story-band {
    padding: 42px 0;
  }

  .hero-media {
    min-height: 260px;
  }

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

.legacy-host {
  margin-top: 34px;
}

.legacy-content {
  color: var(--ink);
}

.legacy-note {
  margin-bottom: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.legacy-content #pagewrap,
.legacy-content #wrap,
.legacy-content #maincontent,
.legacy-content #page,
.legacy-content .widepage {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  border: 0 !important;
  background: transparent !important;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3,
.legacy-content h4 {
  color: var(--ink);
  line-height: 1.15;
}

.legacy-content h1 {
  font-size: clamp(28px, 4vw, 44px) !important;
  margin: 28px 0 14px !important;
}

.legacy-content h2 {
  font-size: clamp(22px, 3vw, 32px) !important;
}

.legacy-content .post,
.legacy-content .posthead {
  margin: 0 0 18px !important;
  padding: 18px !important;
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid var(--line);
}

.legacy-content p,
.legacy-content li,
.legacy-content td,
.legacy-content th {
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.legacy-content ul,
.legacy-content ol {
  padding-left: 24px !important;
  margin: 0 0 18px !important;
}

.legacy-content .legacy-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  list-style: none;
  margin: 0 0 34px !important;
  padding: 18px 22px !important;
  background: rgba(255, 250, 241, 0.86);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legacy-content .legacy-index > li {
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid rgba(201, 186, 161, 0.72);
  list-style: none;
}

.legacy-content .legacy-index a {
  display: inline;
  color: #23395f !important;
  background: transparent !important;
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-decoration-color: rgba(7, 134, 202, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legacy-content .legacy-index a:hover {
  color: #0786ca !important;
  text-decoration-color: #0786ca;
}

.legacy-content .legacy-index #sublista {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 10px 0 0 !important;
  padding: 0 0 0 14px !important;
  border-left: 2px solid rgba(7, 134, 202, 0.42);
}

.legacy-content .legacy-index #sublista li {
  list-style: none;
}

.legacy-content .legacy-index #sublista a {
  font-size: 14px;
  font-weight: 400;
}

.legacy-content img {
  max-width: 100% !important;
  height: auto !important;
}

.legacy-content table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.legacy-content th,
.legacy-content td {
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.legacy-content .pozeprofil1,
.legacy-content .euroimg,
.legacy-content .imgrehau1,
.legacy-content .imgdeschideri12,
.legacy-content #garantie,
.legacy-content .backbtn {
  float: none !important;
  margin: 12px auto !important;
}

.legacy-content .backbtn {
  display: none;
}

.product-section[id],
.legacy-host,
.legacy-content [id] {
  scroll-margin-top: 132px;
}

.legacy-error {
  padding: 16px;
  background: #fff3f0;
  border: 1px solid #c47a6a;
}

@media (max-width: 980px) {
  .site-nav {
    background: #fff;
  }
}

@media (max-width: 680px) {
  .brand {
    width: min(340px, calc(100% - 56px));
    flex-shrink: 1;
  }

  .brand-logo {
    width: 113%;
    height: auto;
  }

  .top-strip {
    min-height: 86px;
    gap: 12px;
  }

  .site-nav {
    top: 86px;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .gallery-tabs {
    width: 100%;
    min-width: 0;
  }

  .gallery-tabs a {
    min-width: 0;
    padding: 8px 4px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .product-section[id],
  .legacy-host,
  .legacy-content [id] {
    scroll-margin-top: 102px;
  }

  .legacy-content .legacy-index {
    grid-template-columns: 1fr;
    padding: 12px 16px !important;
  }
}


