/* ============================================================
   EuroHydra Connect — собственные стили (PHP-версия)
   Дизайн перенесён 1-в-1 с Next.js-версии (CSS-переменные те же)
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: GeistSans;
  src: url('../fonts/Geist_Variable-s.p.0tfjw0g40zzvd.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}
@font-face {
  font-family: GeistMono;
  src: url('../fonts/GeistMono_Variable.p.0f6hsxe9py8pr.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
}

/* ---------- Переменные (как в :root оригинального сайта) ---------- */
:root {
  --background: #fff;
  --foreground: #17212b;
  --card: #fff;
  --card-foreground: #17212b;
  --popover: #fff;
  --popover-foreground: #17212b;
  --primary: #005a97;
  --primary-foreground: #fff;
  --secondary: #f2f3f4;
  --secondary-foreground: #17212b;
  --surface-panel: #f7f8f9;
  --surface-raised: #fff;
  --muted: #f2f3f4;
  --muted-foreground: #4f565c;
  --accent: #eef6fb;
  --accent-foreground: #003f6b;
  --destructive: #ff1f2d;
  --border: #d9dee3;
  --border-strong: #c3cbd3;
  --input: #d9dee3;
  --ring: #005a97;
  --focus-ring: #005a97;
  --focus-ring-offset: 0.1875rem;
  --control-height-xs: 2.25rem;
  --control-height-sm: 2.5rem;
  --control-height-md: 2.75rem;
  --control-height-lg: 3rem;
  --control-radius: var(--radius);
  --container-page: 76rem;
  --container-text: 46rem;
  --container-readable: 50rem;
  --motion-fast: 0.14s;
  --motion-medium: 0.18s;
  --motion-ease: cubic-bezier(0.2, 0, 0.2, 1);
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --brand-blue: #005a97;
  --brand-blue-dark: #003f6b;
  --brand-red: #ff1f2d;
}

/* ---------- Базовые ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: GeistSans, GeistSans Fallback, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}
.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
main {
  flex: 1;
}
.container {
  width: 100%;
  max-width: var(--container-page);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  transform: translateY(-200%);
  border-radius: var(--control-radius);
  background: var(--primary);
  padding: 0.625rem 1rem;
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
  transition: transform var(--motion-fast) var(--motion-ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(217, 222, 227, 0.8);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo {
  display: flex;
  align-items: center;
  min-height: var(--control-height-lg);
  max-width: min(14rem, 52vw);
}
.logo img {
  width: auto;
  height: 2.5rem;
  object-fit: contain;
}
@media (min-width: 40rem) {
  .logo img {
    height: 2.75rem;
  }
  .logo {
    max-width: 16rem;
  }
}
.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 48rem) {
  .main-nav {
    display: flex;
  }
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-md);
  border: 1px solid transparent;
  border-radius: min(var(--radius-md), 12px);
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}
.nav-link:hover {
  background: var(--muted);
  color: var(--foreground);
  text-decoration: none;
}
.nav-link.active {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* ---------- Страница контактов (OSLHOG) ---------- */
.contact-page {
  background: linear-gradient(180deg, rgba(242, 243, 244, 0.78) 0%, #fff 28%), var(--background);
}
.contact-hero {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}
@media (min-width: 64rem) {
  .contact-hero {
    padding: 5rem 2rem 2.5rem;
  }
}
.contact-hero-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 64rem) {
  .contact-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
    align-items: end;
  }
}
.contact-hero-copy {
  max-width: var(--container-text);
  display: grid;
  gap: 1rem;
}
.contact-hero-copy h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: 0;
}
.contact-hero-copy p,
.quick-contact p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.quick-contact {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  align-self: end;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  box-shadow: 0 1rem 3rem rgba(23, 33, 43, 0.08);
}
@media (min-width: 64rem) {
  .quick-contact {
    padding: 1.25rem;
  }
}
.quick-contact svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-blue);
}
.contact-content {
  max-width: var(--container-page);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  padding: 0 1.25rem 4rem;
}
@media (min-width: 64rem) {
  .contact-content {
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1fr);
    align-items: start;
    padding-inline: 2rem;
  }
}
.contact-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 1rem 3rem rgba(23, 33, 43, 0.06);
}
@media (min-width: 64rem) {
  .contact-details {
    padding: 1.25rem;
  }
}
.section-heading {
  display: grid;
  gap: 0.35rem;
}
.section-heading span {
  color: var(--brand-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}
.detail-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.detail-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.8);
  color: var(--foreground);
  text-decoration: none;
}
a.detail-item {
  transition: border-color 0.16s, background-color 0.16s, color 0.16s;
}
a.detail-item:hover {
  background: var(--accent);
  color: var(--brand-blue-dark);
  border-color: rgba(0, 90, 151, 0.3);
  text-decoration: none;
}
.detail-item svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  flex: none;
  color: var(--brand-blue);
}
.detail-item span {
  display: grid;
  gap: 0.25rem;
}
.detail-item strong {
  font-size: 0.875rem;
}
.detail-item span span {
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-md);
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  background: #004d82;
}
.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: rgba(0, 90, 151, 0.3);
  background: var(--accent);
  color: var(--accent-foreground);
}

/* ---------- Лоадер на кнопке отправки (форма заявок) ---------- */
.btn.is-loading {
  cursor: progress;
  opacity: 0.85;
}
.btn .spinner {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
  vertical-align: -0.125em;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Поиск по каталогу (как в статической версии) ---------- */
.catalog-search {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  align-items: end;
  gap: 1rem;
  padding: 1rem;
  display: grid;
  margin-bottom: 1.5rem;
}
@media (min-width: 48rem) {
  .catalog-search {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.25rem;
  }
}
.catalog-search-field {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}
.catalog-search-field > span {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.search-input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height-md);
  border: 1px solid var(--input);
  border-radius: var(--control-radius);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
  outline: none;
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}
.search-input::placeholder {
  color: var(--muted-foreground);
}
.search-input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(0, 90, 151, 0.25);
}
.catalog-search-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  display: flex;
}
.search-results {
  position: absolute;
  top: calc(100% - 0.5rem);
  left: 1rem;
  right: 1rem;
  z-index: 50;
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1.5rem 3.5rem rgba(23, 33, 43, 0.18);
  max-height: 22rem;
  overflow-y: auto;
}
.search-results.is-open {
  display: block;
}
.search-result-empty {
  padding: 0.875rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.search-result-item {
  display: grid;
  gap: 0.125rem;
  padding: 0.625rem 1rem;
  text-decoration: none;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child {
  border-bottom: 0;
}
.search-result-item:hover {
  background: var(--accent);
}
.search-result-item strong {
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.search-result-item span {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- Попап заявки со страницы товара ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(23, 33, 43, 0.55);
  backdrop-filter: blur(2px);
}
.modal-overlay.is-open {
  display: flex;
}
.modal {
  position: relative;
  width: min(100%, 38rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: 0 2rem 5rem rgba(23, 33, 43, 0.3);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: var(--foreground);
  border-color: var(--border-strong);
}
.modal-product {
  display: grid;
  gap: 0.25rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-panel);
}
.modal-product strong {
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.4;
}
.modal-product span {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---------- Форма (RQ-Cuq) ---------- */
.inquiry-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  box-shadow: 0 1rem 3rem rgba(23, 33, 43, 0.06);
}
@media (min-width: 64rem) {
  .inquiry-form {
    padding: 1.25rem;
  }
}
.inquiry-form .section-heading span {
  color: var(--brand-blue-dark);
}
.inquiry-fieldset {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.field-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}
.field-label,
.consent-label {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
}
.required {
  color: var(--brand-red);
}
.field-input,
.field-textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height-md);
  border: 1px solid var(--input);
  border-radius: var(--control-radius);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--muted-foreground);
}
.field-input:focus-visible,
.field-textarea:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(0, 90, 151, 0.25);
}
.field-textarea {
  min-height: 8rem;
  resize: vertical;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: var(--control-height-md);
  padding-block: 0.25rem;
  line-height: 1.55;
  cursor: pointer;
}
.consent-label input {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}
.consent-label a {
  color: var(--brand-blue-dark);
  font-weight: 700;
}
.consent-label.error {
  color: var(--destructive);
}
.consent-label.error input {
  outline: 2px solid var(--destructive);
  outline-offset: 2px;
  border-radius: 3px;
}
.form-note {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}
.form-actions {
  display: grid;
  align-items: start;
  gap: 0.75rem;
}
.field-error {
  color: var(--destructive);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
}
.status-message {
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.8);
}
.status-message strong {
  color: var(--foreground);
  font-size: 0.9375rem;
}
.status-message span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}
.status-success {
  background: var(--accent);
  border-color: rgba(0, 90, 151, 0.24);
}
.status-error {
  background: rgba(255, 31, 45, 0.07);
  border-color: rgba(255, 31, 45, 0.28);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(217, 222, 227, 0.8);
  background: var(--surface-panel);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(9rem, 0.6fr) minmax(14rem, 0.8fr);
  }
}
.footer-brand {
  display: grid;
  gap: 0.75rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  min-height: var(--control-height-md);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
}
.footer-logo:hover {
  text-decoration: none;
}
.footer-logo-badge {
  display: flex;
  width: 2rem;
  height: 2rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
}
.footer-tagline {
  max-width: 34rem;
  margin: 0;
  line-height: 1.5;
}
.footer-reg {
  margin: 0;
  line-height: 1.5;
}
.footer-nav,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}
.footer-heading {
  margin: 0 0 0.25rem;
  color: var(--foreground);
  font-weight: 500;
}
.footer-nav a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height-md);
  min-width: var(--control-height-md);
  width: fit-content;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}
.footer-email {
  gap: 0.5rem;
  color: var(--primary) !important;
}
.footer-email svg {
  flex: none;
  width: 1rem;
  height: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(217, 222, 227, 0.8);
}
.footer-bottom .container {
  display: flex;
  min-height: var(--control-height-md);
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ---------- Общие компоненты страниц (hero, секции) ---------- */
.page {
  background: linear-gradient(180deg, rgba(242, 243, 244, 0.78) 0%, #fff 28%), var(--background);
}
.page-hero {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1.5rem;
}
@media (min-width: 64rem) {
  .page-hero { padding: 4.5rem 2rem 2rem; }
}
.page-hero h1 {
  margin: 0 0 0.75rem;
  color: var(--foreground);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}
.page-hero .lead {
  margin: 0;
  max-width: var(--container-text);
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.page-section {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
@media (min-width: 64rem) {
  .page-section { padding-inline: 2rem; }
}
.section-label {
  color: var(--brand-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-title {
  margin: 0.25rem 0 1rem;
  color: var(--foreground);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}
.section-desc {
  margin: 0 0 1.5rem;
  max-width: var(--container-text);
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ---------- Главная: hero (по оригиналу Next.js: heroInner/heroCopy/heroShowcase/heroVisual) ---------- */
.home-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #fffffff5 0%, #f7fafcf0 56%, #eef6fbb8 100%),
    linear-gradient(180deg, #f2f3f4b8 0%, #fff 72%), var(--background);
  position: relative;
  overflow: hidden;
}
.home-hero:before {
  content: "";
  pointer-events: none;
  background-image: linear-gradient(#005a9712 1px, #0000 1px),
    linear-gradient(90deg, #005a9712 1px, #0000 1px);
  background-position: 50%;
  background-size: 3rem 3rem;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(120deg, #0000 0%, #000 48% 100%);
  mask-image: linear-gradient(120deg, #0000 0%, #000 48% 100%);
}
.home-hero-inner {
  z-index: 1;
  max-width: var(--container-page);
  gap: 2.25rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  position: relative;
}
.home-hero-copy {
  align-content: center;
  gap: 1.125rem;
  min-width: 0;
  display: grid;
}
.home-hero-eyebrow {
  border-radius: var(--radius-sm);
  width: fit-content;
  color: var(--brand-blue-dark);
  text-transform: uppercase;
  background: #ffffffbd;
  border: 1px solid #005a9729;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 720;
  line-height: 1.35;
}
.home-hero-copy h1 {
  margin: 0;
  max-width: var(--container-readable);
  color: var(--foreground);
  letter-spacing: 0;
  font-size: 2.5rem;
  font-weight: 650;
  line-height: 1.04;
}
.home-hero-copy p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.75;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 42rem;
  margin: 0;
  display: grid;
}
.hero-stats div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffffdb;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem;
  display: grid;
}
.hero-stats dt {
  color: var(--brand-blue);
  font-size: 1.75rem;
  font-weight: 720;
  line-height: 1;
}
.hero-stats dd {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
}
.home-hero-showcase {
  min-width: 0;
  display: grid;
}
.home-hero-showcase:before {
  content: none;
}
.home-hero-visual {
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-panel);
  min-height: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1.5rem 4rem #17212b1f;
}
.home-hero-visual:before,
.home-hero-visual:after {
  z-index: 1;
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.home-hero-visual:before {
  background: linear-gradient(#0000 42%, #17212b6b 100%),
    linear-gradient(90deg, #005a972e 1px, #0000 1px) 0 0/4.75rem 4.75rem,
    linear-gradient(#005a9724 1px, #0000 1px) 0 0/4.75rem 4.75rem;
}
.home-hero-visual:after {
  border-radius: calc(var(--radius-md) * 0.75);
  border: 1px solid #ffffff6b;
  border-left: 0;
  inset: 1rem;
}
.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
@media (min-width: 42rem) {
  .home-hero-actions,
  .hero-stats {
    flex-wrap: wrap;
    align-items: center;
    display: flex;
  }
  .hero-stats div {
    min-width: 8.5rem;
    padding: 0.875rem;
  }
  .hero-stats dt {
    font-size: 2rem;
  }
  .hero-stats dd {
    font-size: 0.875rem;
  }
  .home-hero-actions a {
    width: auto;
  }
}
@media (min-width: 48rem) {
  .home-hero-inner {
    padding: 4.5rem 2rem;
  }
  .home-hero-copy h1 {
    font-size: 3.375rem;
  }
}
@media (min-width: 64rem) {
  .home-hero {
    min-height: min(42rem, 100dvh - 4.5rem);
  }
  .home-hero-inner {
    min-height: inherit;
    grid-template-columns: minmax(0, 0.54fr) minmax(0, 0.46fr);
    align-items: center;
    gap: 0;
    padding-block: 5rem;
    position: static;
  }
  .home-hero-copy {
    z-index: 3;
    max-width: 45rem;
    position: relative;
  }
  .home-hero-copy h1 {
    max-width: 44rem;
    font-size: clamp(3.25rem, 5vw, 3.875rem);
  }
  .home-hero-showcase {
    inset-block: 0;
    z-index: 0;
    width: min(70rem, 68vw);
    max-width: none;
    position: absolute;
    right: 0;
  }
  .home-hero-showcase:before {
    z-index: 2;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, #f7fafc 0%, #f7fafcf5 28%, #f7fafcc7 43%, #f7fafc61 58%, #0000 76%);
    display: block;
    position: absolute;
    inset: 0;
  }
  .home-hero-visual {
    border-block: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-shadow: none;
    border-right: 0;
    border-radius: 0;
  }
  .home-hero-visual:before {
    background: linear-gradient(#17212b1f 0%, #0000 34%, #17212b57 100%),
      linear-gradient(90deg, #ffffff3d 1px, #0000 1px) 0 0/4.75rem 4.75rem,
      linear-gradient(#ffffff2e 1px, #0000 1px) 0 0/4.75rem 4.75rem;
  }
  .home-hero-visual:after {
    background: linear-gradient(90deg, #005a971f 0%, #0000 22%, #005a971f 100%);
    border: 0;
    border-radius: 0;
    inset: 0;
  }
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.stat-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0.5rem 1.5rem rgba(23, 33, 43, 0.05);
}
.stat-item strong {
  display: block;
  color: var(--brand-blue);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}
.stat-item span {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

/* ---------- Главная: секции (product-range, about, service, markets, inquiry) ---------- */
.product-range,
.about-preview,
.service,
.markets,
.inquiry-band {
  max-width: var(--container-page);
  gap: 1.5rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
  display: grid;
}
.section-header,
.about-copy,
.service-copy {
  gap: 0.75rem;
  display: grid;
}
.section-header > span,
.about-copy > span,
.service-copy > span,
.inquiry-band span {
  width: fit-content;
  color: var(--brand-blue-dark);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}
.section-header h2,
.about-copy h2,
.service-copy h2,
.inquiry-band h2 {
  color: var(--foreground);
  letter-spacing: 0;
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.16;
}
.section-header p,
.about-copy p,
.service-copy p,
.service-item p,
.market-item p,
.inquiry-band p {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}
/* range (категории на главной) */
.range-grid {
  gap: 1rem;
  display: grid;
}
.range-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  min-width: 0;
  color: inherit;
  transition: border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
  text-decoration: none;
  display: grid;
  overflow: hidden;
}
.range-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.range-card:hover {
  border-color: #005a9757;
  transform: translateY(-1px);
  box-shadow: 0 1rem 2.5rem #17212b14;
}
.range-image {
  aspect-ratio: 16/10;
  background: var(--surface-panel);
  min-height: 10rem;
  position: relative;
}
.range-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.range-content {
  gap: 0.625rem;
  padding: 1rem 1rem 0;
  display: grid;
}
.range-content h3,
.service-item h3,
.market-item h3 {
  color: var(--foreground);
  letter-spacing: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.range-content p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.range-content span {
  background: var(--accent);
  width: fit-content;
  color: var(--brand-blue-dark);
  border-radius: 999px;
  padding: 0.1875rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
}
.range-action {
  min-height: var(--control-height-md);
  color: var(--brand-blue);
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 1rem 1rem;
  font-size: 0.9375rem;
  font-weight: 650;
  display: flex;
}
.range-action svg {
  width: 1rem;
  height: 1rem;
}
/* about */
.about-preview {
  align-items: center;
  gap: 2rem;
  padding-block: 4rem;
}
.about-copy p {
  max-width: 42rem;
}
.about-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
}
.about-highlights {
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  display: grid;
}
.about-highlights div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-panel);
  gap: 0.25rem;
  min-width: 0;
  padding: 0.875rem;
  display: grid;
}
.about-highlights dt {
  color: var(--brand-blue);
  font-size: 1.5rem;
  font-weight: 720;
  line-height: 1;
}
.about-highlights dd {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.about-media {
  aspect-ratio: 4/3;
  box-shadow: 0 1.75rem 4.5rem #17212b1f;
}
.about-media,
.markets-media {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-panel);
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.about-media img,
.markets-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* service */
.service {
  border-block: 1px solid var(--border);
  background: var(--surface-panel);
  max-width: none;
}
.service-copy,
.service-grid {
  max-width: var(--container-page);
  width: 100%;
  margin: 0 auto;
}
.service-grid {
  gap: 1rem;
  display: grid;
}
.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  gap: 0.75rem;
  padding: 1rem;
  display: grid;
}
.service-item svg {
  color: var(--brand-blue);
  width: 1.25rem;
  height: 1.25rem;
}
/* markets */
.markets-layout {
  gap: 1.25rem;
  min-width: 0;
  display: grid;
}
.markets-media {
  aspect-ratio: 16/9;
  z-index: 0;
  min-width: 0;
}
.markets-media:after {
  content: "";
  pointer-events: none;
  background: linear-gradient(#0000 45%, #17212b2e 100%),
    linear-gradient(90deg, #005a971f 1px, #0000 1px) 0 0/4.5rem 4.5rem,
    linear-gradient(#005a9717 1px, #0000 1px) 0 0/4.5rem 4.5rem;
  position: absolute;
  inset: 0;
}
.market-grid {
  gap: 1rem;
  display: grid;
}
.market-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  gap: 0.75rem;
  padding: 1rem;
  display: grid;
}
.market-item svg {
  color: var(--brand-blue);
  width: 1.25rem;
  height: 1.25rem;
}
/* inquiry */
.inquiry-band {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fffffff0, #eef6fbe0), var(--surface-panel);
  width: min(calc(100% - 2.5rem), calc(var(--container-page) - 2.5rem));
  align-items: start;
  margin-bottom: 4rem;
  padding: 1.25rem;
  box-shadow: 0 1rem 2.5rem #17212b12;
}
.inquiry-band p {
  max-width: 48rem;
}
.inquiry-band > div:first-child {
  gap: 0.625rem;
  min-width: 0;
  display: grid;
}
.inquiry-actions {
  gap: 0.75rem;
  display: grid;
  justify-content: start;
  min-width: 0;
}
.inquiry-actions a {
  width: 100%;
}
@media (min-width: 42rem) {
  .about-actions,
  .inquiry-actions {
    flex-wrap: wrap;
    align-items: center;
    display: flex;
  }
  .about-highlights div {
    flex: 9rem;
    min-width: 9rem;
  }
  .inquiry-actions a {
    width: auto;
  }
}
@media (min-width: 48rem) {
  .product-range,
  .about-preview,
  .markets {
    padding-inline: 2rem;
  }
  .section-header,
  .inquiry-band {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
  .section-header > span,
  .about-copy > span,
  .service-copy > span {
    grid-column: 1/-1;
  }
  .about-copy > span {
    grid-column: auto;
  }
  .range-grid,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inquiry-band {
    width: min(calc(100% - 4rem), calc(var(--container-page) - 4rem));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.5rem;
  }
  .inquiry-actions {
    justify-content: end;
  }
}
@media (min-width: 64rem) {
  .about-preview,
  .service {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  }
  .about-media {
    min-height: 24rem;
  }
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .markets-layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .markets-media {
    aspect-ratio: auto;
    width: 100%;
    min-height: 28rem;
  }
  .markets-layout .market-grid {
    z-index: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
  }
  .range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Карточки категорий ---------- */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.category-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  color: var(--foreground);
  min-width: 0;
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
  box-shadow: 0 0.5rem 1.5rem rgba(23, 33, 43, 0.05);
}
.category-card:hover {
  border-color: rgba(0, 90, 151, 0.35);
  box-shadow: 0 1rem 2.5rem rgba(23, 33, 43, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}
.category-card-media {
  aspect-ratio: 16 / 9;
  background: var(--surface-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card-body {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.125rem 1.25rem;
}
.category-card-body h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.category-card-body p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}
.category-card-meta {
  color: var(--brand-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Карточка товара ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.125rem;
  text-decoration: none;
  color: var(--foreground);
  min-width: 0;
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
  box-shadow: 0 0.5rem 1.5rem rgba(23, 33, 43, 0.05);
}
.product-card:hover {
  border-color: rgba(0, 90, 151, 0.35);
  box-shadow: 0 1rem 2.5rem rgba(23, 33, 43, 0.1);
  text-decoration: none;
}
.product-card h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-card .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* ---------- Бейджи ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  padding: 0.125rem 0.625rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-brand {
  background: var(--accent);
  border-color: rgba(0, 90, 151, 0.24);
  color: var(--brand-blue-dark);
}
.badge-planned {
  background: rgba(255, 31, 45, 0.07);
  border-color: rgba(255, 31, 45, 0.28);
  color: var(--destructive);
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
@media (min-width: 64rem) {
  .breadcrumbs { padding-inline: 2rem; }
}
.breadcrumbs a {
  color: var(--brand-blue);
}
.breadcrumbs .sep {
  color: var(--border-strong);
}

/* ---------- Таблица характеристик ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.spec-table th,
.spec-table td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 40%;
  color: var(--muted-foreground);
  font-weight: 600;
}
.spec-table td {
  color: var(--foreground);
}
.spec-group {
  margin: 0 0 1.25rem;
}
.spec-group h3 {
  margin: 0 0 0.5rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 650;
}

/* ---------- Списки (feature/market) ---------- */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.feature-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.125rem;
  box-shadow: 0 0.5rem 1.5rem rgba(23, 33, 43, 0.05);
}
.feature-item h3 {
  margin: 0 0 0.375rem;
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 650;
}
.feature-item p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.55;
}
.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--foreground);
  line-height: 1.55;
}
.check-list li::before {
  content: "✓";
  color: var(--brand-blue);
  font-weight: 700;
  flex: none;
}

/* ---------- CTA-блок ---------- */
.cta-block {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
@media (min-width: 64rem) {
  .cta-block { padding-inline: 2rem; }
}
.cta-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 1rem 3rem rgba(23, 33, 43, 0.08);
}
@media (min-width: 48rem) {
  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
.cta-inner h2 {
  margin: 0 0 0.375rem;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.2;
}
.cta-inner p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Страницы политик ---------- */
.policy-body {
  max-width: var(--container-readable);
}
.policy-body .note {
  border-left: 3px solid var(--brand-blue);
  background: var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.875rem 1rem;
  color: var(--accent-foreground);
  line-height: 1.6;
}
.policy-body h2 {
  margin: 1.75rem 0 0.5rem;
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 650;
}
.policy-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.policy-body li {
  line-height: 1.6;
  color: var(--foreground);
}
.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Detail-страница товара ---------- */
.product-detail {
  display: grid;
  gap: 1.5rem;
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
@media (min-width: 64rem) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
    padding-inline: 2rem;
  }
}
.product-detail-main {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.product-detail-main h1 {
  margin: 0.5rem 0 0;
  color: var(--foreground);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-detail-main .lead {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-detail-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}
.info-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.125rem;
  display: grid;
  gap: 0.875rem;
  box-shadow: 0 0.5rem 1.5rem rgba(23, 33, 43, 0.05);
}

/* ---------- About page hero (aligned with original Next.js about page) ---------- */
.about-hero {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
  display: grid;
  gap: 1.5rem;
}
.about-hero-copy {
  max-width: var(--container-readable);
  gap: 1rem;
  display: grid;
}
.about-hero-copy h1 {
  margin: 0;
  color: var(--foreground);
  letter-spacing: 0;
  font-size: 2.25rem;
  font-weight: 650;
  line-height: 1.05;
}
.about-hero-copy p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}
.about-actions {
  gap: 0.75rem;
  margin-top: 0.25rem;
  display: grid;
}
.about-actions .btn {
  width: 100%;
}
.about-company-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  gap: 1rem;
  padding: 1rem;
  display: grid;
  box-shadow: 0 1rem 3rem #17212b0f;
}
.about-panel-head {
  gap: 0.25rem;
  display: grid;
}
.about-panel-head span {
  color: var(--brand-blue-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.about-panel-head h2 {
  margin: 0;
  color: var(--foreground);
  letter-spacing: 0;
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
}
.about-detail-list {
  gap: 0.75rem;
  display: grid;
}
.about-detail-item {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.8);
  color: var(--foreground);
  gap: 0.875rem;
  padding: 0.875rem;
  text-decoration: none;
  display: flex;
  transition: border-color var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}
.about-detail-item:hover {
  background: var(--accent);
  color: var(--brand-blue-dark);
  border-color: rgba(0, 90, 151, 0.3);
  text-decoration: none;
}
.about-detail-item svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  flex: none;
  color: var(--brand-blue);
}
.about-detail-item span {
  display: grid;
  gap: 0.25rem;
}
.about-detail-item strong {
  font-size: 0.875rem;
}
.about-detail-item span span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 64rem) {
  .about-hero {
    padding: 5rem 2rem 2.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.38fr);
    align-items: start;
  }
  .about-hero-copy h1 {
    font-size: 3.5rem;
  }
  .about-company-panel {
    padding: 1.25rem;
  }
  .about-actions {
    flex-wrap: wrap;
    align-items: center;
    display: flex;
  }
  .about-actions .btn {
    width: auto;
  }
}

/* ---------- News (главная + страница) ---------- */
.news-home,
.partners {
  max-width: var(--container-page);
  gap: 1.5rem;
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
  display: grid;
}
.news-grid {
  gap: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  min-width: 0;
  color: inherit;
  transition: border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
  text-decoration: none;
  display: grid;
  gap: 0.625rem;
  padding: 1.125rem;
  align-content: start;
}
.news-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.news-card:hover {
  border-color: #005a9757;
  transform: translateY(-1px);
  box-shadow: 0 1rem 2.5rem #17212b14;
}
.news-card-date {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}
.news-card h3,
.news-card h2 {
  color: var(--foreground);
  letter-spacing: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.news-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}
.news-card-more {
  color: var(--brand-blue-dark);
  font-size: 0.875rem;
  font-weight: 600;
}
.news-all-link {
  margin: 0;
}
.news-list {
  display: grid;
  gap: 1rem;
}
.news-article {
  max-width: 46rem;
  display: grid;
  gap: 1rem;
}
.news-excerpt {
  color: var(--foreground);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
}
.news-body {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}
.news-back {
  margin: 1.25rem 0 0;
}
.news-date {
  color: var(--muted-foreground);
}

/* ---------- Partners (главная) ---------- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.partner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 1rem 1.5rem;
  transition: border-color var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}
.partner-logo:hover {
  border-color: #005a9757;
  box-shadow: 0 0.75rem 2rem #17212b14;
}
.partner-logo img {
  max-height: 4rem;
  width: auto;
  height: auto;
}

/* ---------- Админка: Edit Category + модалка ---------- */
.page-hero,
.product-detail-main {
  position: relative;
}
.category-admin-bar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  margin: 0;
}
@media (max-width: 39.99rem) {
  .category-admin-bar {
    top: 0.5rem;
    right: 0.5rem;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-backdrop[hidden] {
  display: none;
}
.modal {
  width: 100%;
  max-width: 30rem;
  max-height: 90vh;
  overflow: auto;
  background: var(--card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 12px);
  padding: 1.5rem;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.25);
  display: grid;
  gap: 0.875rem;
}
.modal h2 {
  margin: 0;
  color: var(--foreground, #0f172a);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
}
.modal .lead {
  margin: 0;
  color: var(--muted-foreground, #64748b);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- Product gallery (товар) ---------- */
.product-gallery {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.product-gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-gallery-thumb {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.7);
  background: var(--card);
  padding: 0.25rem;
  cursor: pointer;
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  transition: border-color var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}
.product-gallery-thumb:hover {
  border-color: #005a9757;
  box-shadow: 0 0.4rem 1rem #17212b14;
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.5);
}

/* ---------- Admin notice (saved/error) с крестиком ---------- */
.admin-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-notice-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  padding: 0 0.25rem;
  opacity: 0.7;
  transition: opacity var(--motion-fast) var(--motion-ease);
}
.admin-notice-close:hover {
  opacity: 1;
}

/* ---------- Чип авторизованного админа в шапке ---------- */
.nav-admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
.nav-admin-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
  text-decoration: none;
}
.nav-admin-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand-blue-dark, #1e3a8a);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.nav-admin-name {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 48rem) {
  .nav-admin-name { display: none; }
  .nav-admin-chip { padding: 0.25rem; }
}

/* ---------- Кастомное поле выбора файла (англ. подписи, без браузерных) ---------- */
.file-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  cursor: pointer;
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.file-btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height-md);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: min(var(--radius-md), 12px);
  background: var(--muted);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color var(--motion-fast) var(--motion-ease);
}
.file-field:hover .file-btn { background: var(--accent); }
.file-name {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-name.is-set { color: var(--foreground); font-weight: 500; }
