:root {
  --ink: #14161a;
  --panel: #1c2128;
  --panel-2: #252b34;
  --accent: #0e8a80;
  --accent-2: #12a89c;
  --warm: #e07a2f;
  --paper: #f6f3ec;
  --paper-2: #fffdf8;
  --muted: #5c616a;
  --line: #dcd6c8;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(20, 22, 26, 0.12);
  --radius: 18px;
  --header-h: 88px;
  --font-display: "Barlow", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

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

/* Top bar */
.topbar {
  background: var(--ink);
  color: #ece8de;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 38px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.topbar a:hover {
  color: var(--accent-2);
}

.topbar-phones,
.topbar-address {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-note {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.partner-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.partner-logo img {
  height: 38px;
  width: auto;
}

.nav a,
.nav-drop > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 10px;
}

.nav a:hover,
.nav a.active,
.nav-drop:hover > span,
.nav-drop > a.active {
  background: #ece7db;
  color: var(--accent);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 250px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 30;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  display: grid;
}

.nav-drop-menu a {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 10%, rgba(14, 138, 128, 0.28), transparent 28%),
    linear-gradient(160deg, #14161a 0%, #1e2730 54%, #12363a 100%);
  color: #f6f3ec;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--paper));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 96px;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 14ch;
  color: #fff;
}

.hero p {
  color: #d8d2c6;
  font-size: 18.5px;
  max-width: 52ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0b746c;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  background: #0d1114;
}

.hero-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 60%;
}

/* Brand logos */
.brand-strip {
  padding: 12px 0 64px;
}

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

.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 48ch;
}

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

.brand-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 240px;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.brand-logo {
  width: 140px;
  height: 100px;
  display: grid;
  place-items: center;
}

.brand-logo img {
  max-height: 92px;
  max-width: 140px;
  width: 100%;
  object-fit: contain;
}

.brand-card strong {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
}

/* Content */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.seo-block h1,
.seo-block h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.lede {
  font-size: 20px;
  color: #3b4048;
  max-width: 68ch;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel.dark {
  background: var(--panel);
  color: #f3efe6;
  border-color: transparent;
}

.panel.dark p,
.panel.dark li {
  color: #d5d0c5;
}

.feature-grid,
.box-grid,
.card-grid,
.gallery-grid {
  display: grid;
  gap: 20px;
}

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

.box-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

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

.feature-card,
.part-box,
.info-card,
.gallery-card,
.product-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(20, 22, 26, 0.05);
}

.part-box {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease;
}

.part-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.part-box .icon,
.feature-card .icon,
.gallery-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e7f4f2;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-display);
}

.part-box h2,
.feature-card h3,
.info-card h3 {
  font-size: 26px;
}

.part-box p,
.feature-card p {
  color: var(--muted);
  flex: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ece7db;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge.green { background: #d8efe8; color: #0b5f58; }
.badge.orange { background: #f8e3d0; color: #9a4b12; }
.badge.blue { background: #dce8f8; color: #1d4f91; }

.page-hero {
  padding: 56px 0 24px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Search */
.search-page {
  padding: 28px 0 72px;
}

.search-wrap {
  display: grid;
  gap: 16px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-bar input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.filter-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-card .btn,
.part-box .btn {
  margin-top: 12px;
  align-self: flex-start;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.product-actions .btn {
  margin-top: 0;
  white-space: nowrap;
}

.product-actions .btn-line {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
}

.product-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 4px;
}

.product-list:empty {
  display: none;
}

.product-list .empty-state {
  border: 0;
  box-shadow: none;
}

.product-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  letter-spacing: 0;
  line-height: 1.35;
}

.product-row .meta {
  margin: 0;
}

.product-row .product-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pager button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.pager button.active,
.pager button:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Gallery */
.gallery-card {
  min-height: 210px;
  background:
    linear-gradient(180deg, rgba(20, 22, 26, 0.05), rgba(20, 22, 26, 0.55)),
    var(--card-bg, #2b333d);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-card h3 {
  margin: 0;
}

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

.gallery-shot {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
  min-height: 220px;
}

.gallery-shot img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-shot:hover img {
  transform: scale(1.04);
}

.gallery-shot {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 12, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, calc(100vw - 96px));
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-btn {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  font-size: 32px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #ece8de;
  margin: 0;
  font-size: 14px;
  text-align: center;
  max-width: 80ch;
}

body.lightbox-open {
  overflow: hidden;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.map-frame {
  min-height: 360px;
  border: 0;
  width: 100%;
  border-radius: 18px;
  filter: grayscale(0.15);
}

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

.contact-list a,
.contact-list div {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d9d4c8;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer a:hover {
  color: var(--accent-2);
}

.site-footer h3 {
  color: #fff;
  font-size: 18px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  font-size: 13px;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 40;
  font-weight: 800;
  font-family: var(--font-display);
}

.prose {
  max-width: 76ch;
}

.prose h2 {
  margin-top: 1.4em;
  font-size: 30px;
}

.prose h3 {
  margin-top: 1.2em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .brand-grid,
  .feature-grid,
  .box-grid,
  .card-grid,
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid,
  .photo-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(38px + var(--header-h));
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-drop-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 8px;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .brand-grid,
  .feature-grid,
  .box-grid,
  .card-grid,
  .stat-row,
  .search-bar {
    grid-template-columns: 1fr;
  }

  .product-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-row .product-actions {
    justify-content: flex-start;
  }

  .hero-photo img {
    height: 260px;
  }

  .partner-logo img {
    height: 30px;
  }

  .nav {
    margin-left: 0;
  }

  .photo-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox img {
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 120px);
  }

  .hero {
    text-align: left;
  }
}
