/* ---------------------------------------------------------------------
   TerraStone — «Фабрика столешниц»
   Токены: почти чёрный + латунь/медь как искра реза, техническая типографика.
--------------------------------------------------------------------- */
:root {
  --ink:        #0A0A0B;   /* фон страницы */
  --panel:      #151516;   /* карточки, шапка */
  --panel-2:    #1D1D1F;   /* чуть светлее панель (hover, инпуты) */
  --line:       #2A2A2C;   /* тонкие разделители */
  --paper:      #EDEAE3;   /* тёплый белый — основной текст */
  --steel:      #9A9A96;   /* приглушённый вторичный текст */
  --brass:      #C9974B;   /* акцент — латунь / искра */
  --brass-deep: #A97B36;
  --gold:       #F3C623;   /* фирменный жёлтый — цвет логотипа */
  --danger:     #C0503E;
  --ok:         #7C9B6B;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 3px;
  --shadow-card: 0 1px 0 rgba(0,0,0,0.4), 0 12px 28px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 8px;
}

p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------ Header -------------------------------- */

.site-header { background: var(--panel); }
.header-rule {
  height: 3px;
  background: repeating-linear-gradient(
    90deg, var(--brass) 0 18px, transparent 18px 26px
  );
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}

.logo { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.logo-mark { color: var(--gold); flex-shrink: 0; }
.logo-mark-lg { display: block; margin: 0 auto 12px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-word {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.logo-word strong { font-weight: 700; }
.logo-text small {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--steel);
  font-weight: 500;
  margin-top: 1px;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
}
.search-form {
  display: flex;
  width: 100%;
}
.search-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--panel-2);
  color: var(--paper);
}
.search-form input::placeholder { color: var(--steel); }
.search-form input:focus { outline: none; border-color: var(--brass); }
.search-form button {
  padding: 10px 18px;
  border: none;
  background: var(--brass);
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.search-form button:hover { background: var(--brass-deep); }

/* Выпадающие подсказки поиска */
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 60;
  max-height: 380px;
  overflow-y: auto;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: var(--paper);
}
.suggestion-item:first-child { border-top: none; }
.suggestion-item:hover,
.suggestion-item.suggestion-item-active { background: var(--panel); }
.suggestion-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--ink);
}
.suggestion-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.suggestion-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--steel);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-price { font-family: var(--font-mono); color: var(--brass); font-weight: 600; }
.suggestion-empty { padding: 16px 14px; text-align: center; font-size: 13px; color: var(--steel); }
.suggestion-viewall {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--brass);
  border-top: 1px solid var(--line);
}
.suggestion-viewall:hover { background: var(--panel); }

.header-nav { display: flex; gap: 18px; font-size: 13px; white-space: nowrap; align-items: center; }
.header-nav a { color: var(--paper); border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.header-phone { font-family: var(--font-mono); color: var(--steel) !important; border-bottom: none !important; }

.lang-switch { display: flex; align-items: center; gap: 2px; margin-right: 4px; }
.lang-btn {
  padding: 4px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--steel) !important;
  border-bottom: none !important;
}
.lang-btn:hover { color: var(--paper) !important; }
.lang-btn-active { background: var(--brass); color: var(--ink) !important; }
.lang-btn-active:hover { color: var(--ink) !important; }

/* ------------------------------ Header tabs ----------------------------*/

.tab-nav { display: flex; gap: 8px; flex-shrink: 0; }
.tab-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--paper);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.tab-btn:hover { border-color: var(--brass); color: var(--brass); }
.tab-btn-active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.tab-btn-active:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: var(--ink); }

/* ------------------------------- Hero ----------------------------------*/

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(201,151,75,0.12), transparent 55%),
    var(--ink);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner { padding: 72px 24px 40px; max-width: 780px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 16px;
}
.eyebrow::before { content: "●"; font-size: 8px; color: var(--brass); }

.hero h1 {
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: 0.01em;
}
.hero-sub { color: var(--steel); font-size: 16px; max-width: 520px; margin-top: 16px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* декоративная "линейка" — метафора точного раскроя */
.hero-ruler {
  height: 22px;
  background-image: repeating-linear-gradient(
    90deg, var(--line) 0 1px, transparent 1px 40px
  );
  background-position: 0 bottom;
  border-top: 1px solid var(--line);
  opacity: 0.7;
}

/* --------------------------- Features strip ----------------------------*/

.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin: 0 auto 48px;
  border: 1px solid var(--line);
}
.feature {
  background: var(--panel);
  padding: 24px 20px;
}
.feature-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--brass);
  margin-bottom: 8px;
}
.feature p { color: var(--steel); font-size: 13px; margin: 0; }

/* --------------------------- Category chips ---------------------------*/

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--steel);
  background: var(--panel);
}
.chip:hover { border-color: var(--brass); color: var(--brass); }
.chip-active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
  font-weight: 600;
}

.category-row-sub { margin-top: -14px; padding-left: 4px; }
.chip-sub { font-size: 12px; padding: 5px 12px; border-style: dashed; }

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 28px;
  padding-left: 4px;
}
.chip-color { display: inline-flex; align-items: center; gap: 6px; }
.chip-color-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
  flex-shrink: 0;
}
.chip-color-white { background: #f5f5f0; }
.chip-color-black { background: #1a1a1a; }
.chip-color-gray { background: #8c8c8c; }
.chip-color-beige { background: #d8c4a0; }
.chip-color-brown { background: #6b4a30; }
.chip-color-blue { background: #3562b8; }
.chip-color-green { background: #4c8a5a; }
.chip-color-multicolor { background: linear-gradient(135deg, #d8c4a0 0%, #6b4a30 35%, #f5f5f0 70%, #3562b8 100%); }
.chip-color.chip-active .chip-color-dot { border-color: rgba(0,0,0,0.35); }

.results-note { color: var(--steel); font-size: 14px; margin-bottom: 16px; }

/* ----------------------------- Product grid ----------------------------*/

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.product-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
  /* фирменный "срез плиты" — скошенный верхний угол карточки */
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.product-card:hover { transform: translateY(-3px); border-color: var(--brass); }

.product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--panel-2);
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 9px;
  font-size: 11px; font-weight: 600;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
}
.badge-out { border-color: var(--danger); color: var(--danger); }

.product-card-body { padding: 14px 16px 18px; }
.product-card-category {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brass); font-weight: 500;
}
.product-card-body h3 {
  font-size: 17px; margin: 8px 0 8px; text-transform: none;
}
.price { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--paper); }
.price span { font-family: var(--font-body); font-size: 12px; color: var(--steel); font-weight: 400; }
.price-lg { font-size: 30px; margin: 12px 0; }

/* Карточка товара SileStone: две цены (12мм / 20мм) вместо одной */
.price-dual {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
}

/* ------------------------------ Empty state -----------------------------*/

.empty-state { text-align: center; padding: 60px 20px; color: var(--steel); }

/* ---------------------------- Product detail ----------------------------*/

.back-link {
  display: inline-block;
  margin: 24px 0 16px;
  font-size: 13px;
  color: var(--steel);
  border-bottom: 1px solid var(--line);
}
.back-link:hover { color: var(--brass); border-color: var(--brass); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
.product-detail-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.product-detail-info h1 { font-size: 30px; margin-top: 6px; text-transform: none; }
.product-description { color: var(--steel); font-size: 15px; margin: 18px 0 24px; }

/* Две цены SileStone на детальной странице товара */
.price-options { display: flex; gap: 12px; margin: 14px 0 16px; }
.price-option {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.price-option-label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  color: var(--steel);
  margin-bottom: 6px;
}
.price-option-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 19px;
  color: var(--brass);
}
.price-option-value small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--steel);
  margin-top: 2px;
}

.stock-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 4px;
  border: 1px solid transparent;
}
.stock-in { background: rgba(124,155,107,0.12); color: var(--ok); border-color: rgba(124,155,107,0.3); }
.stock-out { background: rgba(192,80,62,0.12); color: var(--danger); border-color: rgba(192,80,62,0.3); }

.color-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin: 6px 0 4px 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--steel);
}

.related-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

.portfolio-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.portfolio-section h2 { margin-bottom: 16px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--panel-2);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.portfolio-item:hover img { transform: scale(1.05); }

/* --------------------------------- Buttons -------------------------------*/

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--paper); }
.btn-secondary:hover { border-color: var(--brass); color: var(--brass); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--ink); }
.btn-small { padding: 7px 14px; font-size: 11px; }
.btn-full { width: 100%; text-align: center; }

/* -------------------------------- Auth card ------------------------------*/

.auth-wrap { display: flex; justify-content: center; padding: 64px 24px; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.auth-sub { color: var(--steel); font-size: 14px; margin-bottom: 24px; }
.auth-form { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.auth-form label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel); }
.auth-form input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 12px;
  background: var(--panel-2);
  color: var(--paper);
}
.auth-form input:focus { outline: none; border-color: var(--brass); }
.auth-card .back-link { margin-top: 20px; }

/* -------------------------------- Flash ----------------------------------*/

.flash-stack { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}
.flash-success { background: rgba(124,155,107,0.1); color: var(--ok); border-color: rgba(124,155,107,0.3); }
.flash-error { background: rgba(192,80,62,0.1); color: var(--danger); border-color: rgba(192,80,62,0.3); }

/* ------------------------------ Admin dashboard ---------------------------*/

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 40px 24px 16px;
}

.admin-table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 48px; }
.admin-table-head, .admin-table-row {
  display: grid;
  grid-template-columns: 64px 1.6fr 1fr 1.2fr 1fr 1.4fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
}
.admin-table-head {
  background: var(--panel-2);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table-row { border-top: 1px solid var(--line); font-size: 14px; }
.admin-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.admin-name { font-weight: 600; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions form { margin: 0; }
.price-stack { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: 12px; }

.admin-table-leads .admin-table-head,
.admin-table-leads .admin-table-row {
  grid-template-columns: 1fr 1.2fr 1.2fr 1.3fr 1.2fr 1.6fr 0.8fr;
}

/* -------------------------------- Forms -----------------------------------*/

.form-wrap { max-width: 640px; padding-bottom: 64px; }
.product-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel); }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--panel-2);
  color: var(--paper);
}
.form-row input[type="file"] { color: var(--steel); font-size: 13px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brass); }
.form-row-checkbox { flex-direction: row; align-items: center; gap: 8px; }
.form-preview { margin-top: 10px; width: 140px; border-radius: var(--radius); display: block; border: 1px solid var(--line); }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-hint { margin: -10px 0 0; font-size: 12px; color: var(--steel); }

.color-row-inline { display: flex; gap: 10px; align-items: center; }
.color-row-inline select { flex: 1; }
.color-row-inline .btn-small { white-space: nowrap; flex-shrink: 0; }
#detect-color-status:empty { display: none; }

.examples-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.examples-section h2 { margin-bottom: 4px; }
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.examples-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
}
.examples-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.examples-item form { margin: 8px; }
.examples-upload-form { display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; }
.examples-upload-form .form-row { flex: 1; margin: 0; }

/* ------------------------------- About page --------------------------------*/

.about-hero { padding: 56px 24px 8px; max-width: 780px; }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 24px;
  padding: 40px 24px 64px;
  align-items: start;
}

.contact-card, .map-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.contact-list { list-style: none; margin: 20px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass);
}
.contact-value { font-size: 15px; color: var(--paper); }
a.contact-value:hover { color: var(--brass); }

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 20px 0 14px;
}
.map-card .back-link { margin: 0; }

/* ------------------------------- Services page ------------------------------*/

.free-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 8px 0 40px;
}
.free-banner-item { background: var(--panel); padding: 28px 26px; }
.free-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.free-banner-item h3 { font-size: 17px; margin: 0 0 6px; }
.free-banner-item p { color: var(--steel); font-size: 14px; margin: 0; }

.services-section { padding-bottom: 64px; }

.service-category { margin-bottom: 32px; }
.service-category h2 {
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.service-table { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.service-row:first-child { border-top: none; }
.service-name { color: var(--paper); }
.service-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brass);
  white-space: nowrap;
}
.service-unit { font-family: var(--font-body); font-weight: 400; color: var(--steel); font-size: 12px; }

.services-note { color: var(--steel); font-size: 13px; max-width: 620px; margin: 8px 0 24px; }

/* -------------------------------- Modal -----------------------------------*/

body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.active { opacity: 1; }

.modal-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
  transform: translateY(10px);
  transition: transform 0.15s ease;
}
.modal-overlay.active .modal-card { transform: translateY(0); }
.modal-card .logo-mark-lg { margin: 0 auto 16px; }
.modal-card h2 { font-size: 20px; margin: 0 0 8px; }

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--steel);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--brass); }

.modal-text { color: var(--steel); font-size: 14px; margin: 0 0 20px; }

.modal-phone {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 18px;
}
.modal-phone:hover { color: var(--brass); }

.modal-card { max-width: 400px; }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
  color: var(--steel);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.lead-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.lead-form .form-row { gap: 5px; }
.lead-form .form-row label { font-size: 11px; }
.lead-form textarea { resize: vertical; min-height: 44px; }

.lead-form-message {
  margin: 2px 0 0;
  font-size: 13px;
  text-align: center;
}
.lead-form-message-pending { color: var(--steel); }
.lead-form-message-success { color: var(--ok); }
.lead-form-message-error { color: var(--danger); }

/* --------------------------------- Footer ----------------------------------*/

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--panel); }
.footer-top { padding: 40px 24px 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-word { font-family: "Fraunces", Georgia, serif; font-size: 18px; color: var(--paper); }
.footer-brand .logo-word strong { font-weight: 700; }
.footer-tagline { color: var(--steel); font-size: 14px; margin-top: 8px; max-width: 420px; }
.footer-inner {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--steel);
}
.footer-hint code {
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--brass);
  font-family: var(--font-mono);
}

/* --------------------------------- Responsive -------------------------------*/

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .tab-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .search-wrap { order: 4; max-width: none; width: 100%; }
  .hero h1 { font-size: 40px; }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .admin-table-head { display: none; }
  .admin-table-row { grid-template-columns: 1fr; text-align: left; }
  .admin-table-leads .admin-table-row { grid-template-columns: 1fr; text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .free-banner { grid-template-columns: 1fr; }
}
