/* ==========================================================================
   SEZAM — умные замки в Алматы
   ========================================================================== */

/* Self-hosted Inter variable font: one file per script, no external request. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999;
  --gray-600: #666;
  --gray-800: #333;
  --accent: #c9a962;
  --accent-dark: #a8894a;
  --sale: #d63b3b;
  --whatsapp: #25d366;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Utility elements toggled from script must win over layout display rules. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  padding: 0.75rem 1.25rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 0;
}

/* Analytics fallbacks shown only to browsers without JavaScript. */
.counter-pixel {
  position: absolute;
  left: -9999px;
  border: 0;
  visibility: hidden;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: padding 0.3s ease;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin-left: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav a:hover,
.nav a.active {
  opacity: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo:hover img {
  transform: scale(1.03);
}

.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  padding: 4rem 0 4rem max(4vw, 2rem);
  max-width: 640px;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.75;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 70vh;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, transparent 40%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #1eb955;
  transform: translateY(-1px);
}

.btn-social {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--black);
}

.btn-social:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-gray {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--gray-600);
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.feature {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  font-size: 1.5rem;
}

.section-dark .feature-icon {
  background: rgba(255, 255, 255, 0.08);
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.section-dark .feature p {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Catalogue ---------- */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.catalog-sort label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
}

.catalog-sort select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 11.5rem;
  padding: 0.625rem 2.25rem 0.625rem 1rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--black);
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E")
    no-repeat right 0.875rem center;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.catalog-sort select:hover,
.catalog-sort select:focus {
  border-color: var(--black);
  outline: none;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.catalog-empty {
  text-align: center;
  color: var(--gray-600);
  padding: 2.5rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 1.5rem;
}

.product-brand {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
}

.product-price-sale {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-price-sale del {
  color: var(--gray-400);
  font-size: 0.85em;
  font-weight: 400;
}

.product-price-sale .price-now {
  color: var(--sale);
  font-weight: 700;
}

.sale-badge {
  background: var(--sale);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}

.product-card:hover .product-link {
  opacity: 1;
  transform: translateY(0);
}

.product-link::after {
  content: "→";
  transition: transform var(--transition);
}

.product-card:hover .product-link::after {
  transform: translateX(4px);
}

/* ---------- Long-form copy ---------- */
.seo-text {
  max-width: 820px;
}

.seo-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.seo-text h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.seo-text p {
  color: var(--gray-600);
  line-height: 1.75;
}

/* ---------- FAQ ---------- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-400);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item p {
  margin-top: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 8rem 0;
  background: var(--gray-100);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.cta p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: var(--black);
  color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--gray-800);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.6;
  max-width: 280px;
}

.footer-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.5;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  opacity: 0.5;
  gap: 1rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.breadcrumbs a {
  color: var(--gray-600);
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--black);
}

.breadcrumbs [aria-current="page"] {
  color: var(--black);
  font-weight: 500;
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--gray-400);
}

/* ---------- Product page ---------- */
.product-page {
  padding-top: var(--header-h);
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 2rem 0 4rem;
  align-items: start;
}

.product-gallery-main {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  cursor: zoom-in;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-gallery-thumbs button {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all var(--transition);
}

.product-gallery-thumbs button.active,
.product-gallery-thumbs button:hover {
  border-color: var(--black);
  opacity: 1;
}

.product-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info .product-brand {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.product-info h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.product-info .product-price {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.product-summary {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.product-actions .btn-primary {
  background: var(--black);
  color: var(--white);
}

.product-actions .btn-primary:hover {
  background: var(--gray-800);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.875rem;
  color: var(--gray-600);
}

.product-meta > div {
  display: flex;
  gap: 0.5rem;
}

.product-meta dt {
  color: var(--black);
  font-weight: 600;
}

.product-meta dt::after {
  content: ":";
}

.product-details {
  padding: 4rem 0 6rem;
  background: var(--gray-50);
}

.product-description {
  max-width: 860px;
}

.product-description h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2.5rem 0 1.25rem;
}

.product-description h2:first-child {
  margin-top: 0;
}

.product-description h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111;
  margin: 1.75rem 0 0.5rem;
}

.product-description p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.memory-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--gray-800);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
}

.spec-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table tr:nth-child(even) {
  background-color: #fafafc;
}

.spec-table th,
.spec-table td {
  padding: 0.875rem 1.25rem;
  vertical-align: top;
  line-height: 1.5;
  font-size: 0.9375rem;
  text-align: left;
}

.spec-table th {
  width: 45%;
  color: var(--gray-600);
  font-weight: 500;
}

.spec-table td {
  color: #111;
  font-weight: 600;
}

.related-products {
  padding: 4rem 0 6rem;
}

.related-products h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.not-found {
  text-align: center;
  padding: 8rem 0;
}

.not-found h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.not-found .btn-primary {
  background: var(--black);
  color: var(--white);
}

/* ---------- Catalogue index ---------- */
.catalog-index {
  padding: var(--header-h) 0 5rem;
}

.catalog-index h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 1rem 0;
}

.catalog-index-lead {
  color: var(--gray-600);
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.catalog-index-lead a {
  text-decoration: underline;
}

.catalog-index h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.catalog-index-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.5rem 2rem;
}

.catalog-index-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}

.catalog-index-list a:hover {
  color: var(--black);
}

/* ---------- About page ---------- */
.about-page {
  padding-top: var(--header-h);
}

.about-intro {
  max-width: 800px;
  margin: 2.5rem auto;
  text-align: center;
}

.about-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.about-years {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.about-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.about-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.about-actions .btn-primary {
  background: var(--black);
  color: var(--white);
}

.about-body {
  padding-bottom: 5rem;
  background: var(--gray-50);
}

.about-body .container {
  max-width: 900px;
}

.about-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  border-radius: 12px;
  margin: 3rem 0;
}

.about-facts strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.0625rem;
}

.about-facts li {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-text h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.about-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ---------- Brands page ---------- */
.brands-page {
  padding-top: var(--header-h);
}

.brands-header {
  max-width: 800px;
  margin: 2.5rem auto;
  text-align: center;
}

.brands-header h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.brands-description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.brands-section {
  padding: 1rem 0 5rem;
}

.brands-container {
  max-width: 1000px;
  margin: 0 auto;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.brand-card-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.brand-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.brand-card-logo {
  height: 48px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.brand-card-logo img {
  max-height: 100%;
  max-width: 150px;
  width: auto;
  object-fit: contain;
}

.brand-card-item h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.brand-card-text {
  color: var(--gray-600);
  line-height: 1.65;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.brand-card-link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--gray-200);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: border-color var(--transition);
}

.brand-card-link:hover {
  border-color: var(--black);
}

.brands-action {
  text-align: center;
  margin-top: 2.5rem;
}

.brands-action .btn-primary {
  background: var(--black);
  color: var(--white);
}

/* ---------- Lightbox ---------- */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-image {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
  z-index: 10001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.75rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  color: var(--white);
  font-size: 0.9375rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ---------- Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 1.25rem 4vw 2rem;
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 50vh;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, transparent 60%, var(--black) 100%);
  }

  .features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .cta {
    padding: 5rem 0;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo img {
    height: 42px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
  }

  .product-card-image {
    aspect-ratio: 1 / 1;
    padding: 0.5rem;
  }

  .product-card-body {
    padding: 10px;
  }

  .product-card-body h3 {
    font-size: 14px;
    line-height: 1.3;
    margin: 4px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 15px;
    font-weight: 700;
  }

  .product-link {
    display: none;
  }

  .brand-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .catalog-toolbar {
    align-items: stretch;
    margin-bottom: 2rem;
  }

  .catalog-sort {
    justify-content: space-between;
  }

  .catalog-sort select {
    flex: 1;
    min-width: 0;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .product-gallery-main img {
    border-radius: 12px;
    max-height: 350px;
  }

  .product-gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 10px;
  }

  .product-gallery-thumbs button {
    flex: 0 0 60px;
    height: 60px;
  }

  .product-info h1 {
    font-size: 22px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
  }

  .spec-table {
    font-size: 13px;
  }

  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding: 0.875rem 0.875rem 0.2rem;
    color: var(--gray-400);
    font-size: 0.8125rem;
  }

  .spec-table td {
    padding: 0.2rem 0.875rem 0.875rem;
    font-size: 0.9375rem;
  }

  .lightbox-image {
    max-width: 95vw;
    max-height: 75vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
  }

  .about-facts {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    width: 90%;
    margin: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .catalog-index-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
