/* =============================================
   Tehnomarket — Design System
   Industrial · Trust-first · Refined
   ============================================= */

:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --text: #141a22;
  --text-secondary: #4a5668;
  --text-muted: #7a8494;
  --brand: #1a7a4c;
  --brand-hover: #156940;
  --brand-dark: #0f4d31;
  --brand-light: #dcefe4;
  --brand-subtle: #f0f7f3;
  --border: #d4dbe4;
  --border-light: #e8edf2;
  --shadow-xs: 0 1px 2px rgba(15, 35, 55, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 35, 55, 0.06);
  --shadow: 0 4px 16px rgba(15, 35, 55, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 35, 55, 0.12);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --container: 1240px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-ring: rgba(15, 77, 49, 0.14);
  --hero-glow: rgba(26, 122, 76, 0.12);
  --font-display: "Outfit", system-ui, sans-serif;
  --z-grain: 50;
  --z-header: 100;
  --z-sticky-call: 1100;
  --z-modal: 1200;
  --z-lightbox: 1300;
  --z-skip: 2000;
  --skeuo-primary-top: #38a56a;
  --skeuo-primary-mid: #1a7a4c;
  --skeuo-primary-bottom: #125a38;
  --skeuo-primary-edge: #0a4a2e;
  --skeuo-primary-shadow: rgba(10, 74, 46, 0.45);
  --skeuo-surface-top: #ffffff;
  --skeuo-surface-mid: #eef2f0;
  --skeuo-surface-bottom: #d8e4dc;
  --skeuo-surface-edge: #b5c9bb;
  --skeuo-recess-top: #c8d2db;
  --skeuo-recess-bottom: #f4f6f8;
}

::selection {
  background: var(--brand-light);
  color: var(--brand-dark);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background-image:
    radial-gradient(
      880px 360px at -6% -8%,
      rgba(26, 122, 76, 0.07),
      transparent 58%
    ),
    radial-gradient(
      620px 300px at 108% 0%,
      rgba(20, 90, 58, 0.05),
      transparent 54%
    );
  background-repeat: no-repeat;
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn-secondary,
  .btn-quiet,
  .lang-btn,
  .choice-btn,
  .modal-close,
  .menu-toggle,
  .sticky-call-btn {
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .btn-secondary:hover,
  .btn-secondary:active,
  .hero-cta-btn-primary:hover,
  .hero-cta-btn-primary:active,
  .sticky-call-btn:hover,
  .sticky-call-btn:active {
    transform: none;
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--page-bg-offset-top, var(--header-h));
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

body::before {
  z-index: -2;
  opacity: 1;
  background-image:
    linear-gradient(rgba(14, 20, 28, 0.46), rgba(14, 20, 28, 0.46)),
    var(--page-bg-current);
}

body::after {
  z-index: -1;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  background-image:
    linear-gradient(rgba(14, 20, 28, 0.46), rgba(14, 20, 28, 0.46)),
    var(--page-bg-next);
}

body.is-bg-fading::after {
  opacity: 1;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-hover);
}

img {
  max-width: 100%;
  height: auto;
}

ol {
  padding: 0 20px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ===== Layout ===== */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.48rem 0.7rem;
  border-radius: var(--radius-xs);
  background: #10161c;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border-light);
  transition:
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 26px rgba(18, 30, 44, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  min-height: var(--header-h);
}

.green-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 40%, var(--brand));
}

.header-right {
  gap: 0.65rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.logo {
  max-width: 200px;
  height: auto;
  transition: opacity 0.2s var(--ease);
}

.logo-link:hover .logo {
  opacity: 0.8;
}

/* ===== Navigation ===== */

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: min(100%, 70rem);
  padding: 0.1rem 0;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.38rem 0.62rem;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--brand-dark);
  background: var(--brand-light);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(26, 122, 76, 0.22);
  text-decoration: none;
}

/* ===== Language Switch ===== */

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #b8c4ce;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(180deg, var(--skeuo-recess-top), var(--skeuo-recess-bottom));
  box-shadow:
    inset 0 2px 5px rgba(15, 35, 55, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.34rem 0.68rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: calc(var(--radius-xs) + 1px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    background 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    transform 0.12s var(--ease),
    color 0.15s var(--ease);
}

.lang-btn + .lang-btn {
  border-left: 0;
}

.lang-btn:hover:not([aria-pressed="true"]) {
  background: linear-gradient(180deg, #f8fafb, #e8edf1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 35, 55, 0.08);
}

body[data-lang-ready="true"] .lang-btn[aria-pressed="true"] {
  color: #fff;
  border-color: var(--skeuo-primary-edge);
  background: linear-gradient(
    180deg,
    var(--skeuo-primary-top) 0%,
    var(--skeuo-primary-mid) 52%,
    var(--skeuo-primary-bottom) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 2px 0 var(--skeuo-primary-edge),
    0 3px 6px var(--skeuo-primary-shadow);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

body[data-lang-ready="true"] .lang-btn[aria-pressed="true"]:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.22),
    0 1px 0 var(--skeuo-primary-edge);
}

/* ===== Mobile menu toggle ===== */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--skeuo-surface-edge);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    180deg,
    var(--skeuo-surface-top) 0%,
    var(--skeuo-surface-mid) 55%,
    var(--skeuo-surface-bottom) 100%
  );
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 #c5d0c8,
    0 3px 6px rgba(15, 35, 55, 0.12);
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease);
}

.menu-toggle:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 3px 0 #c5d0c8,
    0 5px 10px rgba(15, 35, 55, 0.14);
}

.menu-toggle:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(15, 35, 55, 0.14),
    0 1px 0 #c5d0c8;
}

.menu-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.menu-toggle-icon::before {
  top: -6px;
}

.menu-toggle-icon::after {
  top: 6px;
}

/* ===== Main ===== */

main {
  padding-block: 2rem 3rem;
  flex: 1 0 auto;
}

.home-layout {
  display: grid;
  gap: 1rem;
}

.page-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.home-left,
.home-right {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* ===== Typography ===== */

h1 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  text-wrap: balance;
  color: var(--text);
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.page-description {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page-description address {
  display: inline;
  font-style: normal;
}

/* ===== Hero ===== */

.hero {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(240, 247, 243, 0.88) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 68%);
  pointer-events: none;
}

.hero p {
  max-width: 65ch;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-lead {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  max-width: 58ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.hero-cta-btn-primary {
  flex: 1 1 auto;
  min-width: min(100%, 14rem);
  font-size: 1.08rem;
  font-weight: 700;
  padding: 0.95rem 1.75rem;
  letter-spacing: 0.01em;
  border-bottom-width: 4px;
  background: linear-gradient(
    180deg,
    #42b872 0%,
    var(--skeuo-primary-mid) 42%,
    #0f5535 100%
  );
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 0 rgba(0, 0, 0, 0.14),
    0 4px 0 var(--skeuo-primary-edge),
    0 8px 22px var(--skeuo-primary-shadow),
    0 0 0 4px rgba(56, 165, 106, 0.22);
}

.hero-cta-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.48),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1),
    0 5px 0 var(--skeuo-primary-edge),
    0 12px 26px var(--skeuo-primary-shadow),
    0 0 0 4px rgba(56, 165, 106, 0.3);
}

.hero-cta-btn-primary:active {
  transform: translateY(2px);
}

.hero-cta-btn-secondary {
  flex: 0 1 auto;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.6rem 1.05rem;
  opacity: 0.96;
}

@media (min-width: 520px) {
  .hero-cta-row {
    gap: 0.75rem;
  }

  .hero-cta-btn-primary {
    flex: 0 1 auto;
  }
}

.home-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.home-service-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.home-service-link:hover {
  border-color: rgba(26, 122, 76, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}

.home-service-link strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.home-service-link span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-services {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.hero-services li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.hero-services li::marker {
  color: var(--brand);
}

.home-about-title {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
}

.home-about p + p {
  margin-top: 0.85rem;
}

.hero-action {
  margin: 0;
  display: inline-flex;
}

.hero-action + .hero-action {
  margin-left: 0;
}

.hero-cta-btn {
  border-radius: calc(var(--radius-sm) + 2px);
}

/* ===== Content Cards ===== */

.content-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.72)
  );
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
}

@supports not (
  (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))
) {
  .content-card {
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 767px) {
  .content-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.94);
  }

  .home-right .content-card,
  .home-about {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }
}

/* ===== Buttons (skeuomorphic) ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--skeuo-primary-edge);
  border-bottom-width: 3px;
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  background: linear-gradient(
    180deg,
    var(--skeuo-primary-top) 0%,
    var(--skeuo-primary-mid) 48%,
    var(--skeuo-primary-bottom) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 3px 0 var(--skeuo-primary-edge),
    0 5px 12px var(--skeuo-primary-shadow);
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease),
    filter 0.15s var(--ease);
}

.btn:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 4px 0 var(--skeuo-primary-edge),
    0 8px 16px var(--skeuo-primary-shadow);
}

.btn:active {
  transform: translateY(2px);
  filter: brightness(0.96);
  border-bottom-width: 1px;
  background: linear-gradient(
    180deg,
    var(--skeuo-primary-bottom) 0%,
    var(--skeuo-primary-mid) 100%
  );
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(0, 0, 0, 0.08),
    0 1px 0 var(--skeuo-primary-edge);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.btn-secondary {
  color: var(--brand-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  border: 1px solid var(--skeuo-surface-edge);
  border-bottom-width: 3px;
  background: linear-gradient(
    180deg,
    var(--skeuo-surface-top) 0%,
    var(--skeuo-surface-mid) 52%,
    var(--skeuo-surface-bottom) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 77, 49, 0.06),
    0 3px 0 #b0c4b6,
    0 5px 10px rgba(17, 82, 52, 0.14);
}

.btn-secondary:hover {
  color: var(--brand-dark);
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 0 #b0c4b6,
    0 7px 14px rgba(17, 82, 52, 0.16);
}

.btn-secondary:active {
  color: var(--brand-dark);
  background: linear-gradient(
    180deg,
    var(--skeuo-surface-bottom) 0%,
    var(--skeuo-surface-mid) 100%
  );
  box-shadow:
    inset 0 3px 5px rgba(15, 77, 49, 0.12),
    0 1px 0 #b0c4b6;
}

.btn-quiet {
  color: var(--text-secondary);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid #b8c4ce;
  border-bottom-width: 2px;
  background: linear-gradient(180deg, #e2e8ee 0%, #f5f7f9 100%);
  box-shadow:
    inset 0 2px 5px rgba(15, 35, 55, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-quiet:hover {
  color: var(--text);
  background: linear-gradient(180deg, #d8e0e8 0%, #f0f3f6 100%);
  box-shadow:
    inset 0 2px 4px rgba(15, 35, 55, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.95);
}

.btn-quiet:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 6px rgba(15, 35, 55, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ===== Contact Actions ===== */

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-phone-fallback {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.hours-row {
  margin: 0 0 0.35rem;
  display: grid;
  grid-template-columns: 7ch 1fr;
  gap: 0.5rem;
  align-items: start;
}

.hours-day {
  font-weight: 600;
}

.hours-time {
  text-align: left;
}

/* ===== Cards Grid ===== */

.cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* ===== Tables ===== */

.table-wrap {
  overflow-x: auto;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface);
}

.sheet-embed-frame {
  width: 100%;
  height: 960px;
  border: 0;
  background: var(--surface);
  display: block;
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.88rem;
}

th,
td {
  padding: 0.65rem 0.6rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
}

.sheet-image-cell {
  min-width: 200px;
}

.sheet-table-image {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.sheet-table-image-trigger {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: zoom-in;
}

.sheet-table-image-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sheet-image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: var(--z-lightbox);
}

.sheet-image-lightbox-backdrop[hidden] {
  display: none;
}

.sheet-image-lightbox-panel {
  position: relative;
  max-width: 94vw;
  max-height: 94vh;
  display: grid;
  place-items: center;
}

.sheet-image-lightbox-close {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #3a4554;
  border-bottom-width: 2px;
  border-radius: 999px;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #4a5668 0%, #1e2836 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 0 #121820,
    0 4px 10px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease);
}

.sheet-image-lightbox-close:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.35),
    0 1px 0 #121820;
}

.sheet-image-lightbox-image {
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

th {
  background: var(--brand-subtle);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  z-index: 2;
}

tbody tr {
  transition: background 0.15s var(--ease);
}

tbody tr:hover {
  background: #f8f9fb;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even):not(.sheet-section-row):not(.sheet-subheader-row) {
  background: #fcfdff;
}

/*.sheet-data-table .sheet-section-row th {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-bottom: 2px solid var(--brand);
  padding: 0.8rem;
}*/

.sheet-data-table .sheet-subheader-row th {
  background: var(--brand-subtle);
  color: var(--text);
  font-weight: 600;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
}

.table-wrap-loading {
  min-height: 320px;
}

.table-skeleton {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.table-skeleton-row {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf1f5 20%, #f7f9fb 38%, #edf1f5 56%);
  background-size: 240% 100%;
  animation: tableSkeletonPulse 1.2s linear infinite;
}

.table-skeleton-row:nth-child(1) {
  width: 92%;
}

.table-skeleton-row:nth-child(2) {
  width: 88%;
}

.table-skeleton-row:nth-child(3) {
  width: 95%;
}

.table-skeleton-row:nth-child(4) {
  width: 86%;
}

.table-skeleton-row:nth-child(5) {
  width: 90%;
}

.table-skeleton-row:nth-child(6) {
  width: 84%;
}

.table-skeleton-row:nth-child(7) {
  width: 74%;
}

@keyframes tableSkeletonPulse {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -50% 0;
  }
}

/* ===== Status / Loading ===== */

.status {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.status.error {
  color: #b91c3c;
}

.status.success {
  color: var(--brand-dark);
}

/* ===== Modals ===== */

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 24, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: var(--z-modal);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(660px, 100%);
  max-height: min(90vh, 700px);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #b8c4ce;
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, #fff 0%, #e8edf1 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 #c5ced6,
    0 3px 5px rgba(15, 35, 55, 0.1);
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease),
    color 0.15s var(--ease);
}

.modal-close:hover {
  color: var(--text);
}

.modal-close:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(15, 35, 55, 0.14),
    0 1px 0 #c5ced6;
}

.modal-content {
  overflow-y: auto;
  padding: 1.5rem;
  line-height: 1.7;
}

.modal-content p {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
}

/* ===== Forms ===== */

.rental-form {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
}

.form-field legend {
  margin-bottom: 0.45rem;
  padding: 0;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
}

.choice-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.choice-option {
  position: relative;
}

.choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  border: 1px solid #b8c4ce;
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.65rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #e2e8ee 0%, #f6f8fa 100%);
  box-shadow:
    inset 0 2px 5px rgba(15, 35, 55, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease),
    color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.choice-btn:hover {
  color: var(--text);
  border-color: #9fb0a8;
}

.choice-input:checked + .choice-btn {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid var(--skeuo-primary-edge);
  border-bottom-width: 3px;
  background: linear-gradient(
    180deg,
    var(--skeuo-primary-top) 0%,
    var(--skeuo-primary-mid) 52%,
    var(--skeuo-primary-bottom) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 var(--skeuo-primary-edge),
    0 5px 10px var(--skeuo-primary-shadow);
}

.choice-option:active .choice-btn {
  transform: translateY(1px);
}

.choice-input:focus-visible + .choice-btn {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 122, 76, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-status {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-status.success {
  color: var(--brand-dark);
}

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

.rental-form .btn:disabled,
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.25);
  border-bottom-width: 1px;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.08),
    0 1px 0 #c5ced6;
}

.rental-form .btn:disabled:hover,
.btn:disabled:hover {
  transform: none;
  filter: grayscale(0.25);
}

/* ===== Map ===== */

.map-frame-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ===== Sticky Call Button ===== */

.sticky-call-wrap {
  position: fixed;
  right: 14rem;
  bottom: 1.25rem;
  z-index: var(--z-sticky-call);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.5rem;
}

.sticky-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--skeuo-primary-edge);
  border-bottom-width: 4px;
  border-radius: 999px;
  width: 5rem;
  height: 5rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  justify-content: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  background: radial-gradient(
      circle at 32% 28%,
      #45b575 0%,
      var(--skeuo-primary-mid) 42%,
      var(--skeuo-primary-bottom) 100%
    );
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    0 4px 0 var(--skeuo-primary-edge),
    0 10px 22px var(--skeuo-primary-shadow);
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.15s var(--ease),
    filter 0.15s var(--ease);
}

.sticky-call-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.12),
    0 5px 0 var(--skeuo-primary-edge),
    0 14px 28px var(--skeuo-primary-shadow);
}

.sticky-call-btn:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  box-shadow:
    inset 0 4px 8px rgba(0, 0, 0, 0.28),
    0 2px 0 var(--skeuo-primary-edge);
}

.sticky-call-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.sticky-call-number {
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  position: relative;
  left: 3rem;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 0 2.25rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.company-footer {
  display: grid;
  gap: 0.35rem 2rem;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 720px) {
  .company-footer {
    grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
    text-align: left;
    align-items: start;
  }
}

.company-footer p {
  margin: 0;
  line-height: 1.55;
}

.company-footer p:first-child {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.company-footer a {
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s var(--ease) var(--reveal-delay, 0ms),
    transform 0.45s var(--ease) var(--reveal-delay, 0ms);
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1040px) {
  :root {
    --container: 1440px;
  }

  .container {
    width: min(100% - 2.5rem, var(--container));
  }

  .home-layout {
    grid-template-columns: minmax(0, 1.85fr) minmax(380px, 1fr);
    gap: 1.35rem;
    align-items: start;
  }

  .home-left {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }

  .home-left .hero {
    position: relative;
  }
}

@media (min-width: 1280px) {
  :root {
    --container: 1520px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr);
    gap: 1.5rem;
  }
}

/* ===== Responsive ===== */

@media (max-width: 800px) {
  .site-header {
    padding-bottom: 0;
  }

  .green-line {
    bottom: 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    height: auto;
    position: relative;
  }

  .logo {
    width: 190px;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    right: 0;
    top: 0.35rem;
  }

  .header-right {
    width: 100%;
    align-items: stretch;
    padding-top: 0.4rem;
  }

  .site-nav {
    gap: 0.2rem;
  }

  .site-nav,
  .lang-switch {
    display: none;
    width: 100%;
  }

  .header-inner.mobile-menu-open .site-nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding-top: 0.45rem;
  }

  .header-inner.mobile-menu-open .header-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "nav"
      "lang";
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.55rem;
  }

  .header-inner.mobile-menu-open .site-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    text-align: left;
    text-transform: none;
    height: auto;
    padding: 0.38rem 0.6rem;
    border: 0;
    border-radius: var(--radius-xs);
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .header-inner.mobile-menu-open .lang-switch {
    grid-area: lang;
    display: inline-flex;
    width: auto;
    align-self: center;
    justify-self: start;
    margin-top: 0;
  }

  .sticky-call-wrap {
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
    left: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
  }

  .header-inner.mobile-menu-open .lang-btn {
    min-width: 50px;
    text-align: center;
  }

  .hero {
    padding: 1.5rem;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-cta-btn-primary {
    min-width: 0;
  }

  .home-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
  }

  .hero-cta-btn-primary {
    font-size: 1.05rem;
    padding: 0.9rem 1.25rem;
  }

  .hero-cta-btn-secondary {
    font-size: 0.84rem;
    padding: 0.72rem 1rem;
  }

  .sheet-image-cell {
    min-width: 110px;
  }

  .sheet-table-image {
    width: 80px;
    height: 80px;
  }

  .sticky-call-btn {
    width: 3.2rem;
    height: 3.2rem;
  }

  .sticky-call-btn svg {
    width: 20px;
    height: 20px;
  }

  .content-card {
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  main {
    padding-block: 1.25rem 2rem;
  }

  .company-footer {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .header-inner.mobile-menu-open .site-nav {
    grid-template-columns: 1fr;
  }
}
