:root {
  --ink: #17211d;
  --muted: #62706a;
  --line: #dce7ed;
  --paper: #f7fbfd;
  --surface: #ffffff;
  --blue: #128bb7;
  --blue-dark: #0b6689;
  --orange: #f68b1f;
  --yellow: #ffd166;
  --shadow: 0 20px 60px rgba(18, 58, 79, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
a.button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 251, 253, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.section-heading span,
.distributor-band span,
.contact-copy span,
.quote-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 800;
}

.nav a:hover {
  color: var(--ink);
  background: #e9f4f8;
}

.social-links {
  display: flex;
  gap: 6px;
}

.social-links a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-button,
.button,
.whatsapp-link,
.icon-button,
.category-button,
.sublevel-button,
.add-button,
.qty-button {
  border: 0;
  cursor: pointer;
}

.quote-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: #25d366;
  border-radius: 8px;
  font-weight: 900;
}

.quote-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border-radius: 999px;
  font-size: 0.82rem;
}

.header-logo {
  width: clamp(140px, 18vw, 250px);
  height: 52px;
  object-fit: contain;
  object-position: right center;
}

.hero {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #f7fbfd url("assets/front-page-4.png?v=2026-05-19-v2") center top / contain no-repeat;
  color: #fff;
}

.hero-copy {
  max-width: 820px;
}

.status-pill {
  display: inline-flex;
  padding: 8px 12px;
  color: #17211d;
  background: var(--orange);
  border-radius: 999px;
  font-weight: 900;
}

.hero h1 {
  margin: 18px 0 8px;
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.92;
}

.brand-slogan {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: clamp(1.05rem, 2.5vw, 1.7rem);
  font-weight: 900;
  text-transform: uppercase;
}

.hero p {
  max-width: 740px;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding: 10px;
  background: rgba(4, 28, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

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

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: #17211d;
  background: #fff;
}

.button.whatsapp {
  color: #fff;
  background: #25d366;
}

.quick-info {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.quick-info div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
}

.quick-info span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured,
.about-company,
.catalog-section,
.market-section,
.distributor-band,
.contact-section {
  padding: 56px clamp(18px, 4vw, 56px);
}

.section-heading {
  margin-bottom: 24px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.split-heading p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

h2 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-card,
.catalog-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(18, 58, 79, 0.07);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.catalog-card img {
  width: calc(100% + 32px);
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: -16px -16px 14px;
  object-fit: cover;
}

.featured-card div,
.catalog-card {
  padding: 16px;
}

.featured-card h3,
.catalog-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.featured-card p,
.catalog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.featured-card.promo-card img {
  height: 360px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f3f7fa;
}

.featured-card.promo-card h3 {
  font-size: 1.12rem;
}

.featured-card.promo-card .price {
  font-size: 1.18rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.meta-row span {
  padding: 4px 8px;
  color: #315363;
  background: #eef6fa;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.price {
  color: var(--orange);
  font-weight: 900;
}

.add-button {
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog-main {
  min-width: 0;
}

.category-panel {
  position: sticky;
  top: 96px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  text-align: left;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.category-button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.sublevel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sublevel-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.sublevel-button.active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.catalog-items {
  display: grid;
  gap: 26px;
}

.category-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.category-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 18px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(18, 58, 79, 0.1);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.catalog-card p {
  flex: 1;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 8px;
  color: #17211d;
  background: #e9f6fb;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-company,
.market-section {
  background: #fff;
}

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

.market-grid article {
  min-height: 190px;
  padding: 20px;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-grid h3 {
  margin: 0 0 10px;
}

.market-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.distributor-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  background: #123f54;
  color: #fff;
}

.distributor-band span,
.distributor-band p {
  color: rgba(255, 255, 255, 0.76);
}

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

.clip-card {
  display: grid;
  gap: 10px;
}

.clip-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.clip-button img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.service-list article {
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.service-list h3 {
  margin: 0 0 8px;
}

.service-list p {
  margin: 0;
  line-height: 1.5;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.contact-image {
  min-height: 420px;
  background: url("https://images.unsplash.com/photo-1563453392212-326f5e854473?auto=format&fit=crop&w=1200&q=85") center / cover;
  border-radius: 8px;
}

.contact-copy p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.contact-copy .phone-line {
  color: var(--blue);
  font-weight: 900;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(430px, 100vw);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.quote-drawer.open {
  transform: translateX(0);
}

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.quote-header h2 {
  font-size: 2rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: #e9f4f8;
  border-radius: 8px;
  font-size: 1.6rem;
  line-height: 1;
}

.quote-items {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 16px 0;
}

.quote-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  background: #f5fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-line h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.quote-line p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.quote-empty {
  margin: 18px 0;
  padding: 20px;
  color: var(--muted);
  background: #f5fbfd;
  border: 1px dashed #bfd4c9;
  border-radius: 8px;
  text-align: center;
}

.quote-summary {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quote-summary div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.quote-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout {
  width: 100%;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(12, 27, 22, 0.42);
}

.backdrop.open {
  display: block;
}

.bot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
}

.bot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px 0 10px;
  color: #fff;
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
}

.bot-toggle img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

.bot-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: none;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bot-panel.open {
  display: block;
}

.bot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #fff;
  background: #123f54;
}

.bot-header img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.bot-header .icon-button {
  margin-left: auto;
}

.bot-header span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bot-messages {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
}

.bot-message {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.35;
}

.bot-message.bot {
  color: var(--ink);
  background: #e9f4f8;
}

.bot-message.user {
  justify-self: end;
  color: #fff;
  background: var(--blue);
}

.bot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.bot-quick-actions button,
.bot-quick-actions a {
  min-height: 36px;
  padding: 0 10px;
  color: var(--ink);
  background: #eef6fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.bot-quick-actions a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}

.bot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.bot-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.bot-form button {
  min-height: 42px;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .header-logo {
    width: 150px;
  }

  .nav a {
    padding-inline: 8px;
  }
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 4;
    width: 100%;
  }

  .social-links {
    order: 3;
    width: 100%;
    overflow: auto;
  }

  .header-logo {
    margin-left: auto;
  }

  .hero,
  .distributor-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-info {
    margin-top: 34px;
  }

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
    overflow: auto;
  }

  .category-list {
    display: flex;
    padding-bottom: 4px;
  }

  .category-button {
    white-space: nowrap;
  }

  .split-heading {
    display: block;
  }

  .split-heading p {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand small {
    display: none;
  }

  .header-logo {
    order: 2;
    width: 120px;
    height: 42px;
  }

  .quote-button {
    order: 3;
  }

  .whatsapp-link {
    order: 3;
    min-height: 40px;
    padding-inline: 10px;
  }

  .quote-button span {
    display: none;
  }

  .hero {
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding-top: 0;
    background-size: contain;
  }

  .hero-actions {
    width: 100%;
  }

  .featured-grid,
  .catalog-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .featured-card.promo-card img {
    height: 300px;
  }

  .category-banner {
    aspect-ratio: 16 / 10;
  }

  .contact-image {
    min-height: 290px;
  }
}
