/*
Theme Name: Люксконтур
Theme URI: https://luxcontur.by
Author: Люксконтур
Description: Тёмная тема интернет-магазина окон и дверей с поддержкой WooCommerce.
Version: 1.6.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: luxcontur
*/

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-card: #161616;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --gold-dark: #a07c1a;
  --gold-grad: linear-gradient(180deg, #f0e0a8 0%, #c9a227 48%, #8d6a14 100%);
  --text: #f5f5f5;
  --muted: #b8b3a8;
  --line: rgba(201, 162, 39, 0.35);
  --radius: 10px;
  --header-h: 88px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(141, 106, 20, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  border-radius: 999px;
  transition: 0.25s ease;
}

.btn:hover {
  background: var(--gold-grad);
  color: #111;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.28);
}

.btn-solid {
  background: var(--gold-grad);
  color: #111;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.22);
}

.btn-solid:hover {
  filter: brightness(1.08);
  color: #000;
}

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

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  min-width: 0;
}

.brand span {
  min-width: 0;
}

.nav-cta {
  display: none;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
  background: transparent;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #ddd;
  font-size: 14px;
  font-weight: 600;
}

.site-nav .current-menu-item > a,
.site-nav a:hover {
  color: var(--gold-light);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  line-height: 1.25;
}

.header-phones a {
  color: #fff;
  font-weight: 600;
}

.header-cta {
  white-space: nowrap;
}

.header-phones span {
  color: var(--gold);
  font-size: 11px;
  margin-left: 6px;
  font-weight: 500;
}

.cart-link,
.cart-count {
  display: none;
}

button.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50% !important;
  background: rgba(201, 162, 39, 0.08);
  box-shadow: inset 0 0 0 1px rgba(240, 224, 168, 0.45);
  color: var(--gold-light);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  background-clip: padding-box;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.is-open .nav-toggle {
  background: var(--gold-grad);
  color: #111;
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.22);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
  transition: transform 0.25s ease, top 0.25s ease, background 0.25s ease;
}

.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;
}

.is-open .nav-toggle span {
  background: transparent;
}

.is-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.is-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding: 18px 0 12px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: 8%;
  top: -120px;
  background: radial-gradient(circle, rgba(240, 224, 168, 0.2), transparent 68%);
  pointer-events: none;
}

.hero-frame {
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #070707;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 80px rgba(201, 162, 39, 0.12);
  overflow: hidden;
}

.hero-banner {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 17px;
  background: #070707;
}

.hero-banner img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.62) 38%, rgba(8, 6, 0, 0.18) 72%, rgba(201, 162, 39, 0.12) 100%),
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  max-width: 640px;
}

.hero-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(240, 224, 168, 0.35);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  background: linear-gradient(180deg, #fff6d4 0%, #e8d48b 42%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .hero-lead {
  margin: 0 0 22px;
  color: #e8e4da;
  font-size: 17px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
}

.hero-stats li {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  color: #fff;
  font-size: 14px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 961px) {
  .hero-banner,
  .hero-banner img {
    height: 560px;
  }

  .hero-copy {
    left: 48px;
    bottom: 48px;
  }
}

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

.section-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 640px;
}

.lux-archive-intro {
  margin: 12px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
}

.offer {
  background: linear-gradient(180deg, #16120a 0%, #111111 55%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offer-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid rgba(240, 224, 168, 0.28);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.12) 0%, #161616 36%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.offer-icon {
  width: 56px;
  height: 56px;
  color: var(--gold);
}

.offer-box h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.offer-box p {
  margin: 0;
  color: var(--muted);
}

.highlight {
  color: var(--gold-light);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  color: inherit;
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card .card-media {
  display: block;
  overflow: hidden;
  height: 260px;
  background: #0a0a0a;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.category-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.07), transparent 42%);
}

.category-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--gold-light);
}

.category-card p {
  margin: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}

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

.step {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), #111 38%);
}

.step-num {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.benefit {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), var(--bg-card) 36%);
}

.benefit h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--gold-light);
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.ig-head .section-lead {
  margin-bottom: 0;
}

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

.ig-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111;
}

.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.ig-card:hover {
  border-color: var(--gold);
}

.ig-card:hover img {
  transform: scale(1.05);
}

.ig-card__badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}

.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts-list li {
  margin: 0 0 12px;
}

.contacts-list a {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.unp {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.request-form {
  display: grid;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid rgba(240, 224, 168, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), var(--bg-card) 32%);
}

.request-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.request-form input,
.request-form select {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  padding: 12px 16px;
  font: inherit;
}

.request-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 56px;
  background: #0e0e0e 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='%23e8d48b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 24px center;
  background-size: 12px 8px;
}

.request-form textarea {
  width: 100%;
  background: #0e0e0e;
  border: 1px solid var(--line);
  color: #fff;
  padding: 12px 16px;
  font: inherit;
  border-radius: 18px;
  min-height: 110px;
  resize: vertical;
}

.request-form .btn {
  justify-self: start;
}

.request-form label[hidden],
.request-item-label[hidden] {
  display: none !important;
}

.request-form--modal {
  padding: 0;
  border: 0;
  background: transparent;
}

.request-form .hp-field {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 0;
  font-size: 14px;
}

.form-ok {
  color: var(--gold-light);
}

.form-error {
  color: #e8a0a0;
}

.site-main {
  min-height: 50vh;
}

.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content-area {
  padding: 40px 0 72px;
}

.empty-catalog {
  text-align: center;
  padding: 72px 24px;
  border: 1px solid rgba(240, 224, 168, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.08), var(--bg-elev) 36%);
}

.empty-catalog h2 {
  margin: 0 0 10px;
  color: var(--gold-light);
}

.empty-catalog p {
  margin: 0 0 22px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: #070707;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-inner > div:first-child {
  display: grid;
  gap: 6px;
  max-width: 640px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .unp {
  display: inline-block;
  margin-top: 16px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  padding: 10px 16px;
  min-width: 180px;
}

@media (max-width: 960px) {
  :root {
    --header-h: 72px;
  }

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

  .site-header {
    padding: 8px 0 0;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 56px auto;
    align-items: center;
    gap: 0 12px;
    min-height: 0;
    padding: 0;
  }

  .brand {
    order: 1;
  }

  .header-tools {
    order: 2;
    gap: 0;
    align-self: center;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 12px;
    pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.25s ease, padding 0.3s ease;
  }

  .is-open .site-nav {
    max-height: 480px;
    opacity: 1;
    padding: 8px 12px 24px;
    pointer-events: auto;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tag {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: inline-flex;
    margin: 18px 0 0;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    flex: 0 0 44px;
    margin: 0;
    border: 0;
    border-radius: 50% !important;
    overflow: hidden;
  }

  .header-phones {
    display: none;
  }

  .category-grid,
  .steps,
  .benefits,
  .ig-grid,
  .contacts-grid,
  .offer-box,
  .ig-head {
    grid-template-columns: 1fr;
  }

  .ig-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ig-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-banner,
  .hero-banner img {
    height: 540px;
    min-height: 540px;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-copy .hero-lead {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hero-stats {
    gap: 12px 18px;
  }
}

body.modal-open {
  overflow: hidden;
}

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

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.request-modal__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid rgba(240, 224, 168, 0.28);
  border-radius: 16px;
  padding: 28px 24px 24px;
  z-index: 1;
}

.request-modal__dialog h2 {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 26px;
}

.request-modal__lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.request-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.request-form .request-item-label input {
  background: #0e0e0e;
  color: var(--muted);
}
