:root {
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --radius: 24px;
  --shadow: 0 18px 50px rgba(17, 24, 39, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--dark); background: #fff; }
a { text-decoration: none; }

.site-header { box-shadow: 0 6px 20px rgba(17,24,39,.04); }
.navbar { min-height: 74px; }
.navbar > .container { justify-content: space-between; gap: 20px; }
.navbar-collapse { flex: 1; }
.navbar-nav { margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; letter-spacing: -.04em; color: var(--dark); }
.brand:hover { color: var(--dark); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--dark); font-size: 14px; letter-spacing: .08em; }
.brand-text { font-size: 24px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang-switch button { border: 0; background: transparent; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.lang-switch button.active { background: var(--dark); color: #fff; }

.section-spacing { padding: 86px 0; }
.section-title { margin: 0; font-weight: 950; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.06em; line-height: .98; }
.section-desc { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.eyebrow { display: inline-flex; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 900; color: rgba(255,255,255,.72); }
.eyebrow.text-dark { color: var(--muted) !important; }

.hero-section, .hero-slider, .hero-slider .slick-list, .hero-slider .slick-track, .hero-slide { min-height: 650px; }
.hero-slide { position: relative; display: flex !important; align-items: stretch; background-image: var(--hero-bg); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.34), rgba(0,0,0,.68)); }
.hero-content { position: relative; z-index: 2; color: #fff; }
.min-vh-hero { min-height: 650px; }
.hero-logo-card { display: inline-flex; align-items: center; gap: 20px; padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(255,255,255,.10); backdrop-filter: blur(14px); box-shadow: 0 22px 80px rgba(0,0,0,.25); }
.hero-logo-mark { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 24px; background: #fff; color: #111827; font-size: 30px; font-weight: 950; letter-spacing: -.04em; }
.hero-logo-title { font-size: 28px; font-weight: 950; letter-spacing: -.04em; }
.hero-logo-subtitle { color: rgba(255,255,255,.68); font-weight: 700; }
.hero-copy h1, .hero-copy h2 { margin: 0; font-size: clamp(42px, 6vw, 76px); font-weight: 950; letter-spacing: -.07em; line-height: .95; }
.hero-copy p { max-width: 720px; margin: 24px 0; font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.82); }
.slick-prev, .slick-next { z-index: 8; width: 42px; height: 42px; }
.slick-prev { left: 22px; }
.slick-next { right: 22px; }
.slick-prev:before, .slick-next:before { font-size: 42px; }
.slick-dots { bottom: 18px; }
.slick-dots li button:before { color: #fff; opacity: .45; }
.slick-dots li.slick-active button:before { opacity: 1; color: #fff; }

.search-box { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.form-control, .form-select, .selectize-input { border-color: var(--line); border-radius: 14px !important; }
.form-control:focus, .form-select:focus, .selectize-input.focus { border-color: #111827; box-shadow: 0 0 0 .2rem rgba(17,24,39,.08); }

.top-company-slider { margin: 0 -12px; }
.top-company-slider .slick-slide { padding: 0 12px; height: auto; }
.top-company-slider .slick-track { display: flex !important; }
.top-company-slider .slick-slide > div, .top-card { height: 100%; }
.top-card { display: flex !important; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(17,24,39,.07); }
.top-card-image { min-height: 190px; background-size: cover; background-position: center; }
.top-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.top-card h3 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -.04em; }
.top-card p { margin: 12px 0 16px; color: var(--muted); line-height: 1.5; }

.supplier-list { display: grid; gap: 22px; }
.supplier-card { display: grid; grid-template-columns: 330px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(17,24,39,.06); }
.supplier-image { min-height: 260px; background-size: cover; background-position: center; }
.supplier-body { display: flex; flex-direction: column; padding: 26px; }
.supplier-body h3 { margin: 0; font-size: 28px; font-weight: 950; letter-spacing: -.05em; }
.supplier-meta { margin: 5px 0 0; color: var(--muted); }
.status-badge { display: inline-flex; align-items: center; align-self: start; padding: 8px 12px; border-radius: 999px; background: #111827; color: #fff; font-size: 12px; font-weight: 900; }
.status-badge.soft { background: #e5e7eb; color: #111827; }
.status-badge.muted { background: #f3f4f6; color: #6b7280; }
.supplier-body > p { margin: 16px 0; color: #4b5563; line-height: 1.6; }
.supplier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.supplier-grid div { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f9fafb; color: #4b5563; font-size: 14px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span, .tag-pill { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 800; }
.tag-pill { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.empty-state { margin-top: 24px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); background: #fff; }

.stats-box { padding: 48px; border-radius: 34px; color: #fff; background: #111827; box-shadow: var(--shadow); }
.stat-number { font-size: clamp(40px, 6vw, 72px); font-weight: 950; line-height: 1; letter-spacing: -.06em; }
.stat-label { margin-top: 10px; color: rgba(255,255,255,.64); font-weight: 800; }

.pricing-card { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 100%; padding: 28px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(17,24,39,.06); transition: transform .18s ease, box-shadow .18s ease; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card-featured { border-color: #111827; }
.save-badge { position: absolute; top: 20px; right: 20px; padding: 7px 10px; border-radius: 999px; background: #111827; color: #fff; font-size: 12px; font-weight: 900; }
.pricing-label { font-weight: 900; color: var(--muted); }
.pricing-price { margin-top: 12px; font-size: 58px; font-weight: 950; letter-spacing: -.07em; line-height: 1; }
.pricing-period { margin-bottom: 16px; color: var(--muted); font-weight: 800; }
.pricing-desc { display: block; color: #4b5563; line-height: 1.5; }
.pricing-card ul { margin: 22px 0; padding-left: 18px; color: #4b5563; line-height: 1.9; }
.price-note { margin-top: 24px; color: var(--muted); font-weight: 800; }

.site-footer { padding: 56px 0; background: #111827; color: #fff; }
.footer-card { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.footer-image { min-height: 220px; border-radius: var(--radius); background-size: cover; background-position: center; }
.footer-copy p { max-width: 720px; color: rgba(255,255,255,.72); line-height: 1.6; }
.footer-brand { color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-brand .brand-mark { background: #fff; color: #111827; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.footer-links a { color: rgba(255,255,255,.72); font-weight: 800; }
.footer-copy small { color: rgba(255,255,255,.45); }

.modal-content { border: 0; border-radius: 26px; overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--line); padding: 22px 26px; }
.modal-body { padding: 26px; }
.modal-footer { border-top: 1px solid var(--line); padding: 18px 26px; }
.calc-box, .company-info-card, .article-card, .contact-card, .locked-box { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(17,24,39,.05); }
.calc-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #4b5563; }
.calc-row.total { margin-top: 4px; border-bottom: 0; font-size: 20px; font-weight: 950; color: #111827; }
.locked-box { background: #f9fafb; color: #4b5563; }

.company-hero { background: #111827; }
.company-gallery, .company-gallery .slick-list, .company-gallery .slick-track, .company-slide { min-height: 560px; }
.company-slide { position: relative; background-size: cover; background-position: center; }
.company-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.2), rgba(0,0,0,.62)); }
.company-slide-content { position: relative; z-index: 2; display: flex; align-items: center; min-height: 560px; color: #fff; }
.company-slide-content h1, .company-slide-content h2 { margin: 0; max-width: 820px; font-size: clamp(42px, 6vw, 76px); line-height: .96; font-weight: 950; letter-spacing: -.07em; }
.company-slide-content p { max-width: 650px; margin: 22px 0; color: rgba(255,255,255,.82); font-size: 20px; line-height: 1.5; }
.company-simple-hero { padding: 94px 0; color: #fff; background-image: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.38)), url('../img/company-flight.svg'); background-size: cover; background-position: center; }
.company-simple-hero h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 6vw, 76px); line-height: .95; font-weight: 950; letter-spacing: -.07em; }
.company-simple-hero p { max-width: 720px; margin: 22px 0; color: rgba(255,255,255,.82); font-size: 20px; }
.breadcrumb-lite { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: #6b7280; font-weight: 750; }
.breadcrumb-lite a { color: #111827; }
.meta-chip { height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f9fafb; color: #4b5563; }
.article-card { line-height: 1.7; color: #374151; }
.article-card p { margin-bottom: 16px; }
.product-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 32px rgba(17,24,39,.06); }
.product-image { min-height: 170px; background-size: cover; background-position: center; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.product-body h3 { font-size: 20px; font-weight: 950; letter-spacing: -.04em; }
.product-body p { color: var(--muted); }
.product-specs { display: grid; gap: 8px; margin: 12px 0 18px; }
.product-specs div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.product-specs span { color: #6b7280; }
.product-card .btn { margin-top: auto; }
.contact-avatar { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 20px; background: #111827; color: #fff; font-weight: 950; }
.contact-list { display: grid; gap: 10px; margin-top: 22px; }
.contact-list a, .contact-list > span { display: flex; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #f9fafb; }
.contact-list span span, .contact-list a span { color: #6b7280; }
.contact-list strong { text-align: right; }
.plan-rules { display: grid; gap: 14px; }
.plan-rule { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.plan-rule strong { display: block; font-size: 18px; }
.plan-rule span { color: var(--muted); }

@media (max-width: 991px) {
  .supplier-card { grid-template-columns: 1fr; }
  .supplier-image { min-height: 220px; }
  .supplier-grid { grid-template-columns: 1fr; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .footer-card { grid-template-columns: 1fr; }
  .hero-logo-card { margin-top: 40px; }
}
@media (max-width: 575px) {
  .section-spacing { padding: 58px 0; }
  .hero-section, .hero-slider, .hero-slider .slick-list, .hero-slider .slick-track, .hero-slide, .min-vh-hero { min-height: 740px; }
  .hero-copy p, .company-slide-content p, .company-simple-hero p { font-size: 17px; }
  .hero-logo-card { padding: 16px; }
  .hero-logo-mark { width: 70px; height: 70px; border-radius: 18px; }
  .stats-box { padding: 28px 18px; }
  .contact-list a, .contact-list > span { flex-direction: column; }
  .contact-list strong { text-align: left; }
}
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.lang-switch a.active { background: var(--dark); color: #fff; }
.hero-slider, .company-gallery { position: relative; overflow: hidden; }
.hero-slider .hero-slide, .company-gallery .company-slide { display: none !important; }
.hero-slider .hero-slide.active, .company-gallery .company-slide.active { display: flex !important; }
.slider-arrow { position: absolute; top: 50%; z-index: 9; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(17,24,39,.86); color: #fff; font-size: 36px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 34px rgba(17,24,39,.18); }
.slider-prev { left: 22px; }
.slider-next { right: 22px; }
.top-company-slider { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 0 0 12px; scrollbar-width: none; }
.top-company-slider::-webkit-scrollbar { display: none; }
.top-company-slider > .top-card { scroll-snap-align: start; min-width: 0; }
.top-card .card-actions { gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
.top-card .btn { padding: 8px 12px; font-size: 14px; }
.tag-list a, .tag-list span, .tag { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 12px; font-weight: 800; text-decoration: none; }
.tag-list a:hover, .tag:hover { background: #e5e7eb; color: #111827; }
.supplier-card.company-red { border: 2px solid #ef4444; }
.supplier-card.company-blue { border: 2px solid #2563eb; }
.supplier-card.company-gold { border: 2px solid #eab308; }
.request-line { color: var(--muted); margin-top: 0 !important; }
.modal { display: none; position: fixed; inset: 0; z-index: 1000; padding: 18px; overflow: auto; background: rgba(17,24,39,.72); }
.modal.active { display: block; }
.modal-dialog { width: min(920px, 100%); margin: 40px auto; }
.modal-lg { width: min(780px, 100%); }
.modal-xl { width: min(1120px, 100%); }
.modal-dialog-centered { min-height: calc(100vh - 80px); display: flex; align-items: center; }
.modal-dialog-scrollable .modal-content { max-height: none; overflow: visible; }
.modal-content { background: #fff; box-shadow: 0 24px 90px rgba(0,0,0,.24); }
.btn-close { width: 38px; height: 38px; border: 0; border-radius: 999px; background: #f3f4f6; position: relative; cursor: pointer; flex: 0 0 auto; }
.btn-close::before, .btn-close::after { content: ""; position: absolute; width: 16px; height: 2px; left: 11px; top: 19px; background: #111827; }
.btn-close::before { transform: rotate(45deg); }
.btn-close::after { transform: rotate(-45deg); }
.hidden { display: none !important; }
.selectize-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #f9fafb; }
.tag-choice { margin: 0; }
.tag-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tag-choice span { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 850; cursor: pointer; }
.tag-choice input:checked + span { background: #111827; color: #fff; border-color: #111827; }
.form-result { margin-top: 14px; font-weight: 850; }
.form-result.ok { color: #047857; }
.form-result.bad { color: #b91c1c; }
.payment-box { border-top: 1px solid var(--line); }
.payment-summary { display: grid; gap: 10px; margin: 16px 0; }
.payment-summary div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #f9fafb; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-box { margin-top: 18px; }
.qr-box img { width: 190px; height: 190px; object-fit: cover; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: block; margin-bottom: 14px; }
.fs-company { font-size: clamp(32px, 4vw, 48px); }
.breadcrumb-lite.dark, .breadcrumb-lite.dark a { color: #fff; }
.manager-mini { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.manager-photo { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; }
.product-specs strong { white-space: pre-line; text-align: right; }
.error-page, .maintenance-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left,#dbeafe,#fff 42%,#f8fafc); }
.error-card, .maintenance-card, .message-card { width: min(680px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.error-code { font-size: 86px; line-height: 1; font-weight: 950; letter-spacing: -.08em; color: #2563eb; }
.error-card h1, .maintenance-card h1 { margin: 10px 0 12px; font-size: clamp(28px, 5vw, 46px); font-weight: 950; letter-spacing: -.06em; }
.admin-body { background: #f6f8fc; }
.admin-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-shell aside { background: #0f172a; color: #fff; padding: 22px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-shell main { padding: 28px; min-width: 0; }
.admin-logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 950; margin-bottom: 18px; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav a { color: rgba(255,255,255,.72); padding: 10px 12px; border-radius: 12px; font-weight: 850; }
.admin-nav a.active, .admin-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.admin-card, .admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 12px 34px rgba(17,24,39,.06); }
.admin-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.admin-card strong { display: block; font-size: 42px; letter-spacing: -.06em; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.admin-table th { text-align: left; background: #f8fafc; }
.admin-form { display: grid; gap: 14px; max-width: 920px; }
.admin-form label { display: grid; gap: 6px; font-weight: 850; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1199px) { .top-company-slider { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 767px) { .top-company-slider { grid-auto-columns: 100%; } .slider-arrow { display: none; } .admin-shell { grid-template-columns: 1fr; } .admin-shell aside { position: relative; height: auto; } .admin-cards { grid-template-columns: 1fr; } }
.top-company-slider-wrap { position: relative; }
.card-prev { left: -6px; }
.card-next { right: -6px; }
.top-company-slider-wrap .slider-arrow { top: 45%; }
.admin-brand { color: #fff; margin-bottom: 18px; }
.admin-brand .brand-mark { background: #fff; color: #111827; }
.admin-shell aside nav { display: grid; gap: 6px; margin-top: 18px; }
.admin-nav-link { color: rgba(255,255,255,.72); padding: 10px 12px; border-radius: 12px; font-weight: 850; }
.admin-nav-link.active, .admin-nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.admin-head h1, .admin-head h2 { margin: 0; font-weight: 950; letter-spacing: -.05em; }
.admin-form-actions, .admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow: auto; border-radius: 18px; box-shadow: 0 12px 34px rgba(17,24,39,.06); }
@media (max-width: 767px) { .admin-head { align-items: flex-start; flex-direction: column; } }

.section-head.text-center .section-desc { margin-left: auto; margin-right: auto; text-align: center; }

.cookie-toast{position:fixed;right:16px;bottom:16px;z-index:1200;display:none;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#111827;color:#fff;box-shadow:var(--shadow);max-width:420px;width:calc(100% - 32px)}
.cookie-toast.show{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.cookie-toast .btn{padding:8px 12px}

@media (max-width: 767px) { .cookie-toast{left:16px;right:16px;max-width:none;width:auto;} }

/* Human admin */
.ha-dashboard{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.ha-stat{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 12px 34px rgba(17,24,39,.06)}.ha-stat strong{display:block;font-size:42px;line-height:1;font-weight:950}.ha-stat span{color:#6b7280;font-weight:850}.ha-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;margin-bottom:18px;box-shadow:0 12px 34px rgba(17,24,39,.06)}.ha-panel h2{margin:0 0 18px;font-weight:950;letter-spacing:-.04em}.ha-panel h3{font-size:16px;font-weight:950;margin:16px 0 10px}.ha-form{display:block;max-width:none}.ha-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ha-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ha-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.ha-tabs{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ha-field{display:grid;gap:6px;font-weight:850;margin-bottom:12px}.ha-field span,.ha-label{font-weight:900;color:#111827}.ha-hint{color:#6b7280;font-weight:600}.ha-check{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#f9fafb;font-weight:850;margin:0 8px 8px 0}.ha-check input{width:18px;height:18px}.ha-check-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.ha-image-field{display:grid;gap:10px;margin:12px 0}.ha-image-preview{width:100%;max-width:340px;aspect-ratio:16/9;object-fit:cover;border-radius:18px;border:1px solid var(--line);background:#f8fafc}.ha-image-empty{width:100%;max-width:340px;aspect-ratio:16/9;display:grid;place-items:center;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#64748b;font-weight:850}.ha-subcard{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px}.ha-subcard summary{cursor:pointer;font-weight:950;font-size:18px}.ha-repeat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ha-chip-grid{display:flex;flex-wrap:wrap;gap:10px}.ha-chip input{position:absolute;opacity:0}.ha-chip span{display:inline-flex;padding:9px 13px;border-radius:999px;border:1px solid var(--line);background:#fff;font-weight:850;cursor:pointer}.ha-chip input:checked+span{background:#111827;color:#fff}.ha-savebar{position:sticky;bottom:0;z-index:30;display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:rgba(246,248,252,.92);border-top:1px solid var(--line);padding:16px 0;margin-top:18px;backdrop-filter:blur(8px)}.ha-company-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ha-company-card{display:grid;grid-template-columns:180px 1fr;gap:16px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 12px 34px rgba(17,24,39,.06)}.ha-company-card img{width:180px;height:128px;object-fit:cover;border-radius:16px;background:#f8fafc}.ha-company-card h3{font-weight:950;margin:0 0 6px}.ha-company-card p{color:#6b7280;margin:0 0 10px}.ha-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.ha-badges span{font-size:12px;font-weight:850;padding:6px 9px;border-radius:999px;background:#f3f4f6}.ha-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ha-media-card{display:grid;gap:10px;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:14px}.ha-media-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:14px;background:#fff}.ha-request-list{display:grid;gap:12px}.ha-request{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:14px}.ha-request strong{display:block;font-size:18px}.ha-request span{font-weight:850;color:#2563eb}.ha-request p{margin:6px 0;color:#374151}.ha-request small{white-space:pre-wrap;color:#6b7280}.ha-head-actions{margin-bottom:18px}.ha-actions{display:flex;gap:10px;flex-wrap:wrap}.ha-muted{color:#6b7280;font-weight:750}@media(max-width:1199px){.ha-dashboard,.ha-media-grid{grid-template-columns:repeat(2,1fr)}.ha-company-grid,.ha-repeat-grid{grid-template-columns:1fr}}@media(max-width:767px){.ha-dashboard,.ha-grid-2,.ha-grid-3,.ha-grid-4,.ha-tabs,.ha-media-grid{grid-template-columns:1fr}.ha-company-card{grid-template-columns:1fr}.ha-company-card img{width:100%;height:auto}.ha-savebar{position:static}.admin-shell main{padding:16px}}

/* Human admin/payment modal centering fix */
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal.active .modal-dialog { margin: 0 auto; }
.modal-dialog-centered { min-height: auto; }
@media (max-height: 760px) { .modal.active { align-items: flex-start; } .modal.active .modal-dialog { margin: 18px auto; } }

/* admin v3 */
.ha-panel.ha-collapsed > :not(h2){display:none!important}.ha-panel h2{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px}.ha-panel h2::after{content:'＋';font-size:18px;color:#64748b}.ha-panel:not(.ha-collapsed) h2::after{content:'−'}.ha-no-collapse > :not(h2){display:revert!important}.ha-codebox{white-space:pre-wrap;background:#0f172a;color:#e5e7eb;border-radius:16px;padding:14px;font-size:13px;overflow:auto}.ha-config-table{width:100%;border-collapse:collapse}.ha-config-table td{border-bottom:1px solid var(--line);padding:8px 10px;vertical-align:top}.ha-config-table td:first-child{font-weight:900}.payment-manager-card{display:flex;align-items:center;gap:14px;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f9fafb}.payment-manager-card img{width:128px;height:128px;object-fit:cover;border-radius:14px;background:#fff;border:1px solid var(--line)}.ha-template-grid{display:grid;gap:14px}.ha-template-card textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.ha-danger-link{color:#b91c1c!important;border-color:#fecaca!important}.modal.active{display:flex;align-items:center;justify-content:center}.modal.active .modal-dialog{margin:0 auto}@media(max-height:760px){.modal.active{align-items:flex-start}.modal.active .modal-dialog{margin:18px auto}}


/* v4 fixes */
body.modal-open{overflow:hidden!important}.modal{overflow:hidden!important}.modal.active{display:flex!important;align-items:center;justify-content:center}.modal-dialog{max-height:calc(100vh - 36px);display:flex;align-items:stretch}.modal-content{max-height:calc(100vh - 36px);display:flex;flex-direction:column}.modal-body{overflow:auto}.modal-footer,.modal-header{flex:0 0 auto}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 36px)!important;overflow:hidden!important}.modal-dialog-scrollable .modal-body{overflow:auto!important}.brand:hover .brand-text,.admin-brand:hover .brand-text{color:inherit!important}.cookie-toast #cookieInfoLink{color:inherit!important;text-decoration:underline;padding:0}.fpv-pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:24px}.fpv-pagination a{display:inline-flex;min-width:38px;height:38px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;background:#fff;color:#111827;font-weight:900}.fpv-pagination a.active{background:#111827;color:#fff}.ha-stat{display:block;text-decoration:none;color:inherit}.ha-stat:hover{color:inherit;transform:translateY(-1px)}.ha-config-form .ha-config-row{display:grid;grid-template-columns:260px 1fr;gap:14px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line)}.ha-config-form .ha-config-label{font-weight:950}.ha-config-form .ha-config-key{display:block;color:#64748b;font-size:12px;margin-top:2px}.ha-wysiwyg{border:1px solid var(--line);border-radius:16px;background:#fff;margin-bottom:14px;overflow:hidden}.ha-wysiwyg-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:10px;border-bottom:1px solid var(--line);background:#f8fafc}.ha-wysiwyg-editor{min-height:240px;padding:14px;outline:none}.ha-wysiwyg-editor img{max-width:100%;height:auto;border-radius:12px}.ha-wysiwyg textarea{display:none}.ha-open-company{margin-left:auto}.ha-template-vars{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:12px;margin-bottom:12px;color:#374151}.ha-template-vars code{display:inline-block;margin:2px 4px 2px 0;background:#e5e7eb;border-radius:999px;padding:3px 7px}.admin-brand:hover,.admin-brand:hover .brand-text{color:inherit!important}
@media(max-width:767px){.ha-config-form .ha-config-row{grid-template-columns:1fr}.modal-dialog{max-height:calc(100vh - 20px)}.modal-content{max-height:calc(100vh - 20px)}}


/* v5: hero logo card removed from main slider */
.hero-section .hero-logo-card { display: none !important; }
.hero-section .hero-copy { max-width: 860px; }


/* v6 modal/scroll/payment fixes */
body.modal-open { overflow: hidden !important; }
.modal {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 24px !important;
}
.modal.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.modal-dialog {
  margin: auto !important;
  width: min(920px, 100%) !important;
  max-height: calc(100vh - 48px) !important;
  display: flex !important;
  align-items: stretch !important;
}
.modal-lg { width: min(780px, 100%) !important; }
.modal-xl { width: min(1120px, 100%) !important; }
.modal-dialog-centered { min-height: auto !important; }
.modal-content {
  max-height: calc(100vh - 48px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.modal-header,
.modal-footer { flex: 0 0 auto !important; }
.modal-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
}
#paymentModal .modal-dialog {
  width: min(440px, 100%) !important;
  margin: auto !important;
}
#paymentModal .payment-manager-card {
  display: block !important;
  text-align: center !important;
}
#paymentModal .payment-manager-card img,
.payment-manager-card img#paymentQr {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 360px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 12px !important;
}
@media (max-height: 720px) {
  .modal.active { align-items: flex-start !important; }
  .modal-dialog { margin: 0 auto !important; }
}


/* v7 admin inquiry forwarding and template variables */
.ha-request-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:8px}
.ha-request-head>div{display:flex;flex-direction:column;gap:4px}
.ha-inline-forward{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:end;margin-top:12px;padding-top:12px;border-top:1px solid rgba(15,23,42,.12)}
.ha-inline-forward label{display:flex;flex-direction:column;gap:4px;font-weight:700}
.ha-badge{display:inline-flex;width:max-content;padding:2px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12px;font-weight:800}
.ha-template-vars{border:1px solid rgba(15,23,42,.12);background:#f8fafc;border-radius:14px;padding:12px;margin-bottom:12px}
.ha-var-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px 14px;margin:8px 0}
.ha-var-list div{display:flex;gap:8px;align-items:flex-start}
.ha-var-list code{white-space:nowrap;font-weight:800}
.ha-var-list span{color:#64748b;font-size:13px}
@media(max-width:720px){.ha-inline-forward{grid-template-columns:1fr}.ha-request-head{flex-direction:column}}

/* v8: Bootstrap-like modal behavior, sliders, managers, Summernote editor */
.modal.show { display:flex !important; align-items:center; justify-content:center; }
.modal-backdrop.fpv-backdrop { position:fixed; inset:0; z-index:999; background:rgba(17,24,39,.72); }
.modal.show { z-index:1000; }
.modal-dialog { pointer-events:auto; }
.touch-slider, .touch-slider * { -webkit-user-select:none; user-select:none; }
.manager-slider { position:relative; overflow:hidden; }
.manager-slides { position:relative; min-height:260px; }
.manager-card-slide { display:none; }
.manager-card-slide.active, .manager-card-slide.is-active { display:block; }
.manager-slider-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:10px; }
.manager-locale { display:inline-flex; margin-top:6px; padding:3px 8px; border-radius:999px; background:#eef2ff; color:#1d4ed8; font-weight:900; font-size:12px; }
.ha-summernote { border:1px solid var(--line); border-radius:16px; background:#fff; margin-bottom:14px; overflow:hidden; }
.ha-summernote textarea { display:none; }
.ha-summernote .ha-wysiwyg-toolbar { background:#f3f4f6; border-bottom:1px solid var(--line); }
.ha-summernote .summernote-lite { min-height:320px; padding:16px; outline:none; line-height:1.6; }
.ha-summernote .summernote-lite img { max-width:100%; height:auto; border-radius:12px; display:block; margin:12px 0; }


/* v10: proper Summernote-style WYSIWYG editor for Factory review */
.ha-summernote-field > span{display:block;margin-bottom:8px}
.ha-summernote.note-editor{border:1px solid var(--line);border-radius:16px;background:#fff;margin-bottom:10px;overflow:hidden;box-shadow:0 6px 18px rgba(17,24,39,.04)}
.ha-summernote .note-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border-bottom:1px solid var(--line);background:#f3f4f6;position:sticky;top:0;z-index:2}
.ha-summernote .note-btn-group{display:inline-flex;gap:5px;align-items:center;padding-right:8px;border-right:1px solid #d9dee8}
.ha-summernote .note-btn-group:last-child{border-right:0}
.ha-summernote .note-format{height:34px;min-width:135px;border-radius:999px;font-weight:800;background:#fff}
.ha-summernote .note-toolbar .btn{border-radius:999px;font-weight:900;line-height:1;min-height:34px;padding:.42rem .72rem;background:#fff}
.ha-summernote .note-toolbar .btn.active{background:#111827;color:#fff}
.ha-summernote .note-editing-area{position:relative;background:#fff}
.ha-summernote .note-editable{min-height:360px;max-height:62vh;overflow:auto;padding:22px;outline:none;line-height:1.7;font-weight:650;color:#111827;background:#fff}
.ha-summernote .note-editable:empty:before{content:'Введите текст статьи или вставьте изображение…';color:#9ca3af;font-weight:700}
.ha-summernote .note-editable h2{font-size:28px;line-height:1.25;margin:18px 0 10px;font-weight:950}
.ha-summernote .note-editable h3{font-size:22px;line-height:1.3;margin:16px 0 8px;font-weight:950}
.ha-summernote .note-editable p{margin:0 0 12px}.ha-summernote .note-editable ul,.ha-summernote .note-editable ol{padding-left:28px;margin:0 0 12px}.ha-summernote .note-editable li{margin:5px 0}
.ha-summernote .note-editable blockquote{border-left:4px solid #111827;margin:14px 0;padding:8px 14px;background:#f8fafc;border-radius:0 12px 12px 0;color:#374151}
.ha-summernote .note-editable figure{margin:16px 0}.ha-summernote .note-editable figcaption{color:#6b7280;font-size:13px;margin-top:6px;min-height:18px}
.ha-summernote .note-editable img{max-width:100%;height:auto;border-radius:14px;display:block;margin:12px 0;border:1px solid var(--line)}
.ha-summernote .note-codable{display:none;min-height:360px;max-height:62vh;border:0;border-radius:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;line-height:1.55;padding:18px;background:#0f172a;color:#e5e7eb;resize:vertical}
.ha-summernote.is-code-mode .note-editable{display:none}.ha-summernote.is-code-mode .note-codable{display:block}.ha-summernote-target{display:none!important}
.ha-summernote .note-statusbar{border-top:1px solid var(--line);background:#f8fafc;color:#64748b;font-size:12px;padding:7px 12px;font-weight:750}
.ha-summernote.is-dragover .note-editable{outline:3px dashed #2563eb;outline-offset:-10px;background:#eff6ff}
@media(max-width:767px){.ha-summernote .note-toolbar{position:static}.ha-summernote .note-editable,.ha-summernote .note-codable{min-height:280px;max-height:none}.ha-summernote .note-btn-group{border-right:0;padding-right:0}.ha-summernote .note-format{width:100%}}


/* v11: readable email template variable list */
.ha-template-vars {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.ha-template-vars-title {
  font-weight: 950;
  margin-bottom: 6px;
  color: #111827;
}
.ha-template-vars-note {
  color: #475569;
  font-size: 13px;
  margin: 0 0 10px;
}
.ha-var-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.ha-var-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}
.ha-var-desc {
  color: #334155;
  font-size: 13px;
  line-height: 1.25;
}
.ha-var-token {
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  padding: 5px 8px;
  cursor: pointer;
}
.ha-var-token:hover {
  background: #0f172a;
  color: #fff;
}
.ha-var-token-raw {
  background: #0f766e;
}
.ha-template-card textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


/* v12 modal scrolling and submit state */
.modal.active,.modal.show{display:flex!important;align-items:center;justify-content:center;overflow:hidden!important;padding:12px!important;}
.modal-dialog{max-height:calc(100dvh - 24px)!important;margin:0 auto!important;display:flex!important;align-items:stretch!important;}
.modal-content{max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
.modal-body{overflow-y:auto!important;min-height:0!important;max-height:none!important;}
.modal-header,.modal-footer{flex:0 0 auto!important;}
@media(max-height:760px){.modal.active,.modal.show{align-items:flex-start!important}.modal-dialog{margin:0 auto!important}}
#buyerRequestForm.is-submitting .modal-body > :not(.form-result),
#placementForm.is-submitting .modal-body > :not(.form-result){opacity:.45;pointer-events:none;}
#buyerRequestForm.is-done .modal-body > :not(.form-result){display:none!important;}
#buyerRequestForm.is-done .modal-footer{display:none!important;}
.form-result{margin-top:16px;font-weight:800;}
.form-result.ok{color:#047857}.form-result.bad{color:#b91c1c}
.product-stock{display:flex;justify-content:space-between;gap:10px;margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#f9fafb;font-size:14px}.product-stock strong{font-weight:950}.product-stock.out-of-stock strong{color:#b91c1c}.product-stock.in-stock strong{color:#047857}
/* v12 stronger submit state: show only process/result text */
#buyerRequestForm.is-submitting .modal-body > :not(.form-result),
#placementForm.is-submitting .modal-body > :not(.form-result){display:none!important;}
#buyerRequestForm.is-submitting .modal-footer,
#placementForm.is-submitting .modal-footer{display:none!important;}


/* v13 fixes: modal scroll, tariff modal, separate label badges */
.company-label-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-start}
.company-label-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#111827;color:#fff;font-weight:900;font-size:12px;line-height:1;white-space:nowrap}
.company-label-badges.small-badges .company-label-badge{font-size:12px;padding:5px 9px;background:#f3f4f6;color:#111827;border:1px solid var(--line)}
.modal.active,.modal.show{display:flex!important;align-items:center;justify-content:center;overflow:hidden!important;padding:12px!important}
.modal-dialog{max-height:calc(100dvh - 24px)!important;margin:0 auto!important;display:flex!important;align-items:stretch!important}
.modal-content{max-height:calc(100dvh - 24px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.modal-header,.modal-footer{flex:0 0 auto!important}
.modal-body{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important}
@media(max-height:760px){.modal.active,.modal.show{align-items:flex-start!important}.modal-dialog{margin:0 auto!important}}

.ha-nav a:last-child{margin-top:12px}


/* v14: buyer product request notice */
#buyerStockNotice{margin-top:-.5rem;margin-bottom:1rem;font-weight:700}

/* v15: Bootstrap-aligned company page visual fixes */
.company-info-card .company-label-badges {
  margin-top: 18px;
}
.company-label-badge.badge {
  min-height: 28px;
  padding: .42rem .7rem;
  border: 0;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}
.company-label-badge.text-bg-primary { background-color: var(--bs-primary, #0d6efd) !important; color: #fff !important; }
.company-label-badge.text-bg-warning { background-color: var(--bs-warning, #ffc107) !important; color: #111827 !important; }
.company-label-badge.text-bg-success { background-color: var(--bs-success, #198754) !important; color: #fff !important; }
.contact-card .contact-list.list-group {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.contact-card .contact-list .list-group-item {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: #f9fafb;
  padding: 12px;
}
.contact-card .contact-list .list-group-item + .list-group-item {
  margin-top: 0;
}
.contact-card .contact-list .list-group-item span {
  color: #6b7280;
}
.contact-card .contact-list .list-group-item strong {
  text-align: right;
  color: #020617;
}
.product-card.card {
  border-color: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card .product-body.card-body {
  display: flex;
  flex-direction: column;
}
.product-card .product-stock {
  order: 20;
}
.product-card .btn {
  order: 10;
}
.product-specs { display: none !important; }


/* v16 — Bootstrap normalization.
   Keep site-specific cards/sections, but use Bootstrap Modal/Toast layout and scroll behavior. */
.modal {
  --bs-modal-zindex: 1055;
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--bs-modal-zindex) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  background: transparent !important;
}
.modal.show {
  display: block !important;
}
.modal.fade .modal-dialog {
  transition: transform .3s ease-out !important;
  transform: translate(0,-50px) !important;
}
.modal.show .modal-dialog {
  transform: none !important;
}
.modal-dialog {
  position: relative !important;
  width: auto !important;
  max-width: 500px !important;
  margin: .5rem auto !important;
  display: block !important;
  align-items: initial !important;
  max-height: none !important;
  pointer-events: none !important;
}
.modal-dialog-centered {
  display: flex !important;
  align-items: center !important;
  min-height: calc(100% - 1rem) !important;
}
.modal-dialog-scrollable {
  height: calc(100% - 1rem) !important;
}
.modal-dialog-scrollable .modal-content {
  max-height: 100% !important;
  overflow: hidden !important;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto !important;
}
.modal-sm { max-width: 300px !important; }
.modal-lg { max-width: 800px !important; }
.modal-xl { max-width: 1140px !important; }
.modal-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-height: calc(100vh - 1rem) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  background-color: #fff !important;
  background-clip: padding-box !important;
  border: 1px solid rgba(0,0,0,.2) !important;
  border-radius: .75rem !important;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
.modal-header {
  display: flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 1rem 1rem !important;
  border-bottom: 1px solid #dee2e6 !important;
}
.modal-body {
  position: relative !important;
  flex: 1 1 auto !important;
  padding: 1rem !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
.modal-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .5rem !important;
  padding: .75rem !important;
  border-top: 1px solid #dee2e6 !important;
}
.modal-backdrop {
  z-index: 1050 !important;
}
.modal-backdrop.show {
  opacity: .5 !important;
}
body.modal-open {
  overflow: hidden !important;
  padding-right: var(--bs-scrollbar-width, 0) !important;
}
.toast-container {
  z-index: 1080 !important;
}
.toast {
  border-radius: .75rem !important;
  background-color: rgba(255,255,255,.98) !important;
  color: #111827 !important;
}
.toast .toast-body {
  padding: .75rem !important;
}
.cookie-toast {
  display: none !important;
}

/* Submit states stay Bootstrap-friendly, without hiding scroll containers. */
#buyerRequestForm.is-submitting .modal-body > :not(.form-result),
#placementForm.is-submitting .modal-body > :not(.form-result) {
  opacity: .45;
  pointer-events: none;
}
#buyerRequestForm.is-done .modal-body > :not(.form-result),
#placementForm.is-done .modal-body > :not(.form-result),
#buyerRequestForm.is-submitting .modal-footer,
#placementForm.is-submitting .modal-footer {
  display: none !important;
}

@media (min-width: 576px) {
  .modal-dialog { max-width: 500px !important; margin: 1.75rem auto !important; }
  .modal-dialog-centered { min-height: calc(100% - 3.5rem) !important; }
  .modal-dialog-scrollable { height: calc(100% - 3.5rem) !important; }
  .modal-sm { max-width: 300px !important; }
}
@media (min-width: 992px) {
  .modal-lg, .modal-xl { max-width: 800px !important; }
}
@media (min-width: 1200px) {
  .modal-xl { max-width: 1140px !important; }
}


/* v17 — strict Bootstrap behavior fixes */
.modal {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: transparent !important;
}
.modal-dialog {
  max-height: none !important;
}
.modal-dialog-scrollable {
  height: calc(100% - 1rem) !important;
}
.modal-dialog-scrollable .modal-content {
  max-height: 100% !important;
  overflow: hidden !important;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto !important;
}
.modal-content > form {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  max-height: inherit !important;
  overflow: hidden !important;
}
.modal-content > form > .modal-body {
  overflow-y: auto !important;
  min-height: 0 !important;
}
.modal-content > form > .modal-footer {
  flex: 0 0 auto !important;
}
.modal-body {
  min-height: 0 !important;
  overflow-y: auto !important;
}
.modal-xl {
  max-width: 1140px !important;
}
.modal-lg {
  max-width: 800px !important;
}
.modal .btn-close {
  box-sizing: content-box !important;
  width: 1em !important;
  height: 1em !important;
  padding: .25em .25em !important;
  color: #000 !important;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
  border: 0 !important;
  border-radius: .25rem !important;
  opacity: .5 !important;
  position: static !important;
  flex: 0 0 auto !important;
}
.modal .btn-close::before,
.modal .btn-close::after {
  content: none !important;
  display: none !important;
}
.modal .btn-close:hover {
  opacity: .75 !important;
}
.cookie-toast {
  display: none !important;
}
.toast-container {
  z-index: 1080 !important;
}
.toast {
  background-color: #fff !important;
  color: #212529 !important;
}

/* Admin panels use Bootstrap Collapse, not ha-collapsed display hacks. */
.ha-panel.ha-collapsed > :not(h2) {
  display: revert !important;
}
.ha-panel h2 {
  cursor: default !important;
}
.ha-panel h2::after,
.ha-panel:not(.ha-collapsed) h2::after {
  content: none !important;
}
.ha-panel-collapse {
  margin-top: 18px;
}
.ha-panel h2 .btn {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Company labels are separate Bootstrap badges, never a meta-chip field. */
.company-label-badges {
  margin-top: .75rem !important;
}
.company-label-badges .badge {
  font-size: .8rem;
  padding: .45rem .65rem;
}

/* Keep modal content scrollable on small screens. */
@media (max-height: 760px) {
  .modal-dialog-centered {
    align-items: center !important;
  }
  .modal-dialog-scrollable {
    height: calc(100% - 1rem) !important;
  }
}
@media (min-width: 576px) {
  .modal-dialog-scrollable {
    height: calc(100% - 3.5rem) !important;
  }
}


/* v18 — Bootstrap-first cleanup */
.fpv-hero-item,
.fpv-company-gallery-item {
  min-height: 640px;
  background-size: cover;
  background-position: center;
}
.fpv-company-gallery-item {
  min-height: 560px;
}

/* Retire custom slider buttons/classes; Bootstrap carousel controls are used. */
.slider-arrow,
.slick-prev,
.slick-next,
.card-prev,
.card-next,
.slider-prev,
.slider-next {
  display: none !important;
}
.hero-slide,
.company-slide,
.slider-slide {
  display: block;
}

/* Company labels are plain Bootstrap badges. */
.company-label-badge,
.company-label-badges {
  all: unset;
}
.company-label-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
}

/* Admin panels: Bootstrap card/collapse appearance, not custom big h2 blocks. */
.ha-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 1rem !important;
  box-shadow: none !important;
}
.ha-panel.card {
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: .75rem !important;
  padding: 0 !important;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}
.ha-panel h2,
.ha-panel.card > h2.card-header {
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  cursor: default !important;
}
.ha-panel h2::after,
.ha-panel:not(.ha-collapsed) h2::after {
  content: none !important;
}
.ha-panel.ha-collapsed > :not(h2) {
  display: revert !important;
}
.ha-no-collapse > :not(h2) {
  padding: 1rem !important;
}
.ha-panel-collapse,
.ha-panel .card-body {
  margin-top: 0 !important;
}

/* Bootstrap native modal close button; no pseudo-element custom cross. */
.modal .btn-close {
  box-sizing: content-box !important;
  width: 1em !important;
  height: 1em !important;
  padding: .25em .25em !important;
  color: #000 !important;
  background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat !important;
  border: 0 !important;
  border-radius: .25rem !important;
  opacity: .5 !important;
  position: static !important;
}
.modal .btn-close::before,
.modal .btn-close::after {
  content: none !important;
  display: none !important;
}

/* Ensure Bootstrap scrollable modal works for forms. */
.modal-dialog-scrollable .modal-content,
.modal-dialog-scrollable .modal-content > form {
  max-height: 100% !important;
  overflow: hidden !important;
}
.modal-dialog-scrollable .modal-content > form {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
.modal-dialog-scrollable .modal-body {
  overflow-y: auto !important;
}
.modal-dialog-scrollable .modal-content > form > .modal-body {
  min-height: 0 !important;
  overflow-y: auto !important;
}


/* v19 — final Bootstrap-focused corrections */
.supplier-card .badge.rounded-pill,
.company-info-card .badge.rounded-pill,
.company-label-badges .badge.rounded-pill {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: .35em .65em !important;
  border-radius: 50rem !important;
  font-size: .75rem !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.company-label-badge {
  all: revert !important;
}
.company-label-badges {
  all: revert !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
}
@media (max-width: 991.98px) {
  .navbar > .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .75rem !important;
  }
  .navbar-brand {
    order: 1;
  }
  .navbar-toggler {
    order: 2;
    margin-left: auto !important;
  }
  .navbar-collapse {
    order: 3;
    flex-basis: 100% !important;
    width: 100% !important;
    margin-top: .75rem !important;
  }
  .navbar-nav {
    align-items: flex-start !important;
    margin-left: 0 !important;
    gap: .25rem !important;
  }
  .navbar-nav .nav-item,
  .navbar-nav .nav-link {
    width: 100%;
  }
}
.top-company-carousel .carousel-control-prev,
.top-company-carousel .carousel-control-next {
  width: 3rem;
}
@media (min-width: 768px) {
  .top-company-carousel .carousel-inner {
    display: flex;
    gap: 1rem;
  }
  .top-company-carousel .carousel-item {
    display: block;
    flex: 0 0 calc(50% - .5rem);
    margin-right: 0;
  }
}
@media (min-width: 1200px) {
  .top-company-carousel .carousel-item {
    flex-basis: calc(33.333% - .67rem);
  }
}
.fpv-hero-item,
.fpv-company-gallery-item {
  background-size: cover;
  background-position: center;
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


/* v20 search/payment/hero fixes */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next,
#companyGalleryCarousel .carousel-control-prev,
#companyGalleryCarousel .carousel-control-next {
  pointer-events: none;
}
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon,
#companyGalleryCarousel .carousel-control-prev-icon,
#companyGalleryCarousel .carousel-control-next-icon {
  pointer-events: auto;
}
#heroCarousel .container,
#companyGalleryCarousel .container {
  position: relative;
  z-index: 3;
}
#heroCarousel .btn,
#companyGalleryCarousel .btn {
  position: relative;
  z-index: 4;
}
.supplier-image {
  display: block;
}
.product-search-list .supplier-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}


/* v21: fixed Top companies slider.
   Bootstrap carousel is single-item by design; this block uses a native scroll-snap strip
   so several cards are visible when viewport width allows it. */
.top-company-slider-wrap {
  position: relative;
  width: 100%;
  padding: 0 3.25rem;
}

.top-company-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .25rem .25rem 1rem;
  scrollbar-width: thin;
}

.top-company-card {
  scroll-snap-align: start;
  min-height: 100%;
}

.top-company-card .card-body {
  min-height: 300px;
}

.top-scroll-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-scroll-prev {
  left: 0;
}

.top-scroll-next {
  right: 0;
}

/* Kill old broken multi-item carousel overrides for this block */
.top-company-carousel,
.top-company-carousel .carousel-inner,
.top-company-carousel .carousel-item {
  display: initial;
  flex: initial;
  gap: initial;
}

@media (min-width: 768px) {
  .top-company-strip {
    grid-auto-columns: calc((100% - 1.25rem) / 2);
  }
}

@media (min-width: 1200px) {
  .top-company-strip {
    grid-auto-columns: calc((100% - 2.5rem) / 3);
  }
}

@media (min-width: 1500px) {
  .top-company-strip {
    grid-auto-columns: calc((100% - 3.75rem) / 4);
  }
}

@media (max-width: 575.98px) {
  .top-company-slider-wrap {
    padding: 0;
  }

  .top-scroll-btn {
    display: none;
  }

  .top-company-strip {
    grid-auto-columns: minmax(78vw, 1fr);
  }
}


/* v22 layout cleanup */

/* Серый фон секций на всю ширину viewport, даже если родитель/контейнер ограничен */
.section-spacing.bg-light,
.search-section.bg-light,
#suppliers.bg-light,
#pricing.bg-light,
section.bg-light {
  position: relative;
  isolation: isolate;
}

.section-spacing.bg-light::before,
.search-section.bg-light::before,
#suppliers.bg-light::before,
#pricing.bg-light::before,
section.bg-light::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: inherit;
  z-index: -1;
}

/* Top companies: без горизонтальной прокрутки страницы */
html,
body {
  overflow-x: hidden;
}

.top-company-slider-wrap {
  overflow: hidden;
}

.top-company-strip {
  overflow-x: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.top-company-strip::-webkit-scrollbar {
  display: none;
}

.top-company-card {
  max-width: 100%;
}

/* Мобильный navbar: ссылки и кнопки по центру, ссылки жирные */
@media (max-width: 991.98px) {
  .navbar-collapse {
    text-align: center;
  }

  .navbar-nav {
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  .navbar-nav .nav-item,
  .navbar-nav .nav-link {
    width: auto !important;
    text-align: center;
  }

  .navbar-nav .nav-link {
    font-weight: 700;
  }

  .navbar-nav .btn,
  .navbar-nav .lang-switch {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .navbar-brand {
    font-weight: 900;
  }
}


/* v23 extra requested fixes */
.navbar-nav .nav-link {
  font-weight: 700;
}
.partner-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .5rem 0 1rem;
}
.partner-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  display: grid;
  gap: .5rem;
  text-align: center;
  color: var(--dark);
  text-decoration: none;
}
.partner-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: .75rem;
  border: 1px solid var(--line);
  background: #fff;
}
.partner-card span {
  font-weight: 700;
  font-size: .9rem;
}
.toast .btn-link {
  text-decoration: none !important;
}
#cookieToast .btn-dark {
  background: #111827 !important;
  border-color: #111827 !important;
}
.form-result {
  margin-top: 1rem;
}
.form-result.ok,
.form-result.bad {
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-weight: 600;
}
.form-result.ok {
  color: #0f5132;
  background-color: #d1e7dd;
  border: 1px solid #badbcc;
}
.form-result.bad {
  color: #842029;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
}
.modal-body > .form-result:only-child {
  margin: 0;
}
.admin-shell {
  min-height: 100vh;
}
.admin-shell aside {
  min-height: 100vh !important;
  height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  align-self: start;
}


/* v24 completion fixes */
.form-result.ok,
.form-result.bad {
  display: block;
  margin-top: 1rem;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-weight: 600;
}
.form-result.ok {
  color: var(--bs-success-text-emphasis, #0f5132);
  background-color: var(--bs-success-bg-subtle, #d1e7dd);
  border: 1px solid var(--bs-success-border-subtle, #badbcc);
}
.form-result.bad {
  color: var(--bs-danger-text-emphasis, #842029);
  background-color: var(--bs-danger-bg-subtle, #f8d7da);
  border: 1px solid var(--bs-danger-border-subtle, #f5c2c7);
}
#buyerRequestForm.is-done .modal-body > :not(.form-result),
#placementForm.is-done .modal-body > :not(.form-result) {
  display: none !important;
}


/* v25 fixes */
.form-result:empty {
  display: none !important;
}

.form-result.ok,
.form-result.bad {
  margin-top: 0 !important;
}

#partners {
  width: 100%;
}

#partners .container {
  max-width: 100%;
  padding-left: clamp(16px, 5vw, 72px);
  padding-right: clamp(16px, 5vw, 72px);
}

.partner-strip {
  width: 100%;
}

.partner-card {
  flex: 0 0 clamp(120px, 14vw, 180px);
}

/* Admin aside must not end mid-page */
.admin-body {
  min-height: 100vh;
}

.admin-shell {
  min-height: 100vh !important;
  align-items: stretch !important;
}

.admin-shell aside {
  min-height: 100vh !important;
  height: 100vh !important;
  max-height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.admin-shell main {
  min-height: 100vh !important;
}

/* Company hero labels are Bootstrap badges, readable on image */
.company-hero .badge,
.company-simple-hero .badge {
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.18);
}


/* v26: logging table/modal fix */
.ha-email-preview {
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: #fff;
}

.ha-panel .table {
  margin-bottom: 0;
}

.ha-panel .table-responsive + h3,
.ha-panel h3.mt-4 {
  margin-top: 1.5rem !important;
}

.ha-panel td code {
  white-space: pre-wrap;
  word-break: break-word;
}

.ha-panel .table td,
.ha-panel .table th {
  vertical-align: middle;
}


/* v28: admin aside по высоте всей страницы, не только окна */
.admin-shell {
  min-height: 100vh !important;
  align-items: stretch !important;
}

.admin-shell aside {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  align-self: stretch !important;
  position: relative !important;
  top: auto !important;
  overflow: visible !important;
}

/* Липким делаем содержимое aside, а не сам фон панели */
.admin-shell aside > * {
  position: sticky;
  top: 22px;
}

@media (max-width: 991.98px) {
  .admin-shell aside {
    min-height: auto !important;
  }

  .admin-shell aside > * {
    position: static;
  }
}


/* v29: send mail template variable fields */
#mailVarsBox {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}
#mailVarsBox h3 {
  margin-top: 0;
}


/* v31: partners full-width carousel */
#partners {
  width: 100%;
}

#partners .container-fluid {
  max-width: 100%;
}

.partner-carousel {
  position: relative;
  width: 100%;
  padding: 0 3.25rem;
}

.partner-strip {
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .25rem 1.25rem;
  scrollbar-width: none;
}

.partner-strip::-webkit-scrollbar {
  display: none;
}

.partner-card {
  scroll-snap-align: start;
  display: grid;
  gap: .5rem;
  text-align: center;
  color: var(--dark);
  text-decoration: none;
  min-width: 0;
}

.partner-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: .75rem;
  border: 1px solid var(--line);
  background: #fff;
}

.partner-card span {
  font-weight: 700;
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-scroll-btn {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  font-size: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.partner-scroll-prev {
  left: 0;
}

.partner-scroll-next {
  right: 0;
}

@media (min-width: 576px) {
  .partner-strip {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 992px) {
  .partner-strip {
    grid-auto-columns: calc((100% - 3rem) / 4);
  }
}

@media (min-width: 1400px) {
  .partner-strip {
    grid-auto-columns: calc((100% - 5rem) / 6);
  }
}

@media (max-width: 575.98px) {
  .partner-carousel {
    padding: 0;
  }

  .partner-scroll-btn {
    display: none;
  }

  .partner-strip {
    grid-auto-columns: minmax(70vw, 1fr);
  }
}


/* v32: send mail template vars */
#mailVarsBox {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}
#mailVarsBox h3 {
  margin-top: 0;
}


/* v33: email templates collapsed by default */
#emailTemplatesAccordion .accordion-item {
  border-color: var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}

#emailTemplatesAccordion .accordion-button {
  font-weight: 800;
}

#emailTemplatesAccordion .accordion-button:not(.collapsed) {
  color: #111827;
  background: #f8fafc;
  box-shadow: none;
}

#emailTemplatesAccordion .accordion-body {
  background: #fff;
}


/* v34: supplier labels */
.supplier-labels {
  display: block !important;
  text-align: right;
  max-width: 100%;
}

.supplier-labels .badge {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  .supplier-labels {
    text-align: left;
  }
}


/* v43: equal company action buttons */
.company-actions-wrap {
  width: 100%;
}
.company-actions-wrap .company-action-btn {
  flex: 1 1 0;
  width: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.company-actions-wrap .company-action-btn:only-child {
  width: 100%;
  flex-basis: 100%;
}
.top-company-card .company-actions-wrap {
  align-items: stretch;
}

/* v50: payment modal summary and QR-only block */
.payment-lines { display: grid; gap: 10px; }
.payment-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.payment-lines > div.total { border-bottom: 0; font-size: 18px; font-weight: 950; }
.payment-qr-only { display: grid; place-items: center; padding: 16px; }
.payment-qr-only img { max-width: 100%; height: auto; display: block; }


/* v52: clean payment modal layout */
#paymentModal .modal-body {
  padding: 30px;
}
#paymentModal .payment-summary.payment-lines {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}
#paymentModal .payment-summary.payment-lines .payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fafb;
  color: #111827;
}
#paymentModal .payment-line-label {
  display: block;
  min-width: 0;
  color: #4b5563;
  font-weight: 750;
  line-height: 1.35;
}
#paymentModal .payment-line-value {
  flex: 0 0 auto;
  color: #111827;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}
#paymentModal .payment-summary.payment-lines .payment-line.total {
  background: #fff;
  border-color: #d1d5db;
}
#paymentModal .payment-summary.payment-lines .payment-line.total .payment-line-label,
#paymentModal .payment-summary.payment-lines .payment-line.total .payment-line-value {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}
#paymentModal .payment-qr-card {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 16px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f9fafb;
}
#paymentModal .payment-qr-card img {
  display: block;
  width: min(100%, 360px);
  max-height: 360px;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
#paymentModal .payment-actions {
  margin-top: 16px;
}
#paymentModal .payment-actions .btn {
  padding: 14px 18px;
}
@media (max-width: 575.98px) {
  #paymentModal .modal-body {
    padding: 20px;
  }
  #paymentModal .payment-summary.payment-lines .payment-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  #paymentModal .payment-line-value {
    width: 100%;
    text-align: left;
  }
}


/* v54: admin template sections */
.ha-admin-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 12px 34px rgba(17,24,39,.06);
}
.ha-section-title {
  margin: 0 0 14px;
  font-weight: 950;
  letter-spacing: -.03em;
}
.ha-email-preview {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}


/* v58: logs tabs and pagination */
.ha-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}
.ha-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 850;
  text-decoration: none;
}
.ha-tab-link:hover {
  background: #f3f4f6;
  color: #111827;
}
.ha-tab-link.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.ha-tab-panel {
  margin-top: 12px;
}
.ha-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.ha-pagination .disabled {
  pointer-events: none;
  opacity: .45;
}
.ha-page-gap {
  color: #6b7280;
  font-weight: 850;
  padding: 0 4px;
}


/* v60: company admin status/tariff badges */
.ha-badge-success,
.ha-badge-danger,
.ha-badge-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid transparent;
}
.ha-badge-success {
  color: #047857;
  background: #d1fae5;
  border-color: #a7f3d0;
}
.ha-badge-danger {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}
.ha-badge-blue {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

/* v61: company unpaid preview */
.company-label-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.company-preview-note {
  display: inline-block;
  max-width: 720px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(254, 226, 226, .92);
  color: #7f1d1d;
  font-weight: 800;
}
.payment-preview-box {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.payment-preview-box span {
  color: #6b7280;
  font-weight: 750;
}
.payment-preview-box strong {
  color: #111827;
  font-size: 22px;
  font-weight: 950;
}
.preview-placeholder {
  border: 1px dashed #fca5a5;
  background: #fff7f7;
  color: #7f1d1d;
}

/* v62: clients database */
.ha-clients-table tbody tr[data-href] {
  cursor: pointer;
}
.ha-clients-table tbody tr[data-href]:hover {
  background: #eef2ff;
}

/* v63: placement preview URL inline */
.ha-preview-url {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f9fafb;
  color: #991b1b;
  border: 1px solid #fecaca;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* v64: footer alignment fix */
.footer-card-no-image {
  grid-template-columns: 1fr;
}
.footer-card-no-image .footer-copy {
  max-width: 100%;
}
.site-footer .container {
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767.98px) {
  .footer-card {
    grid-template-columns: 1fr;
  }
}

/* v66: company preview payment block like payment modal */
.company-payment-preview-lines {
  margin: 18px 0;
}
.company-payment-preview-qr {
  margin-top: 16px;
}
.company-payment-preview-qr img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* v68: company cards edit by image */
.ha-company-image-link {
  display: block;
  text-decoration: none;
}
.ha-company-image-link img {
  transition: transform .18s ease, filter .18s ease;
}
.ha-company-image-link:hover img {
  transform: scale(1.015);
  filter: brightness(.94);
}


/* v80: touch scroll for top-company-strip */
.top-company-strip {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth;
  touch-action: pan-x !important;
  cursor: grab;
}
.top-company-strip.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.top-company-strip > .top-company-card {
  flex: 0 0 auto;
}
@media (hover: none) and (pointer: coarse) {
  .top-scroll-btn {
    display: none !important;
  }
}


/* v80: mobile language switch near toggler */
.lang-switch-mobile {
  order: 2;
  margin-left: auto;
}
@media (max-width: 991.98px) {
  .navbar-toggler {
    order: 3;
    margin-left: 0 !important;
  }
  .navbar-brand {
    order: 1;
  }
}


/* v83 targeted fixes */
@media (max-width: 767px) {
  .admin-shell aside {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050;
    height: auto !important;
    max-height: none !important;
    padding: 14px 16px !important;
  }
  .admin-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 950;
  }
  .admin-shell aside nav {
    display: none !important;
    margin-top: 12px !important;
  }
  .admin-shell aside.admin-nav-open nav {
    display: grid !important;
  }
  .admin-brand {
    margin-bottom: 0 !important;
  }
}
@media (min-width: 768px) {
  .admin-menu-toggle { display: none !important; }
}

.top-company-strip {
  -webkit-overflow-scrolling: touch !important;
  touch-action: auto !important;
  overscroll-behavior-x: contain;
}
.top-company-strip.is-dragging {
  cursor: grabbing;
  user-select: none;
}


/* v84: top companies must not block vertical mobile scroll */
.top-company-strip {
  touch-action: pan-y !important;
  overscroll-behavior-x: auto !important;
}
.top-company-strip,
.top-company-strip * {
  -webkit-user-select: auto;
  user-select: auto;
}
@media (pointer: coarse) {
  .top-company-strip {
    scroll-snap-type: none !important;
  }
}


/* v86: subtle themed parallax background */
.site-parallax {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .42;
}
.site-parallax::before {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  right: -18vw;
  top: 12vh;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(37,99,235,.12), transparent 44%),
    repeating-radial-gradient(circle at 50% 50%, rgba(15,23,42,.10) 0 1px, transparent 1px 34px);
  transform: translate3d(0, calc(var(--parallax-y, 0px) * .16), 0);
}
.site-parallax::after {
  content: "";
  position: absolute;
  left: -14vw;
  bottom: 10vh;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(245,184,59,.10), transparent 50%),
    repeating-linear-gradient(35deg, transparent 0 14px, rgba(15,23,42,.07) 14px 15px);
  transform: translate3d(0, calc(var(--parallax-y, 0px) * -.10), 0);
}
.parallax-orbit {
  position: absolute;
  display: block;
  border: 1px dashed rgba(15,23,42,.12);
  border-radius: 50%;
  transform: translate3d(0, calc(var(--parallax-y, 0px) * .10), 0) rotate(-12deg);
}
.parallax-orbit-a {
  width: 680px;
  height: 180px;
  left: 8vw;
  top: 18vh;
}
.parallax-orbit-b {
  width: 520px;
  height: 140px;
  right: 8vw;
  bottom: 16vh;
  transform: translate3d(0, calc(var(--parallax-y, 0px) * -.12), 0) rotate(18deg);
}
.parallax-drone {
  position: absolute;
  right: 12vw;
  top: 34vh;
  width: 78px;
  height: 78px;
  opacity: .22;
  transform: translate3d(0, calc(var(--parallax-y, 0px) * .20), 0) rotate(12deg);
}
.parallax-drone::before,
.parallax-drone::after {
  content: "";
  position: absolute;
  inset: 35px 4px;
  background: rgba(15,23,42,.32);
  border-radius: 999px;
}
.parallax-drone::after {
  transform: rotate(90deg);
}
.site-header,
main,
.site-footer,
.modal,
.cookie-toast {
  position: relative;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .site-parallax { opacity: .28; }
  .parallax-orbit-a { left: -180px; top: 22vh; }
  .parallax-orbit-b { right: -180px; bottom: 24vh; }
  .parallax-drone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-parallax,
  .site-parallax::before,
  .site-parallax::after,
  .parallax-orbit,
  .parallax-drone { transform: none !important; }
}


/* v87: unpaid demo company notice below slider */
.company-preview-under-slider {
  padding: 18px 0;
  background: #fff7f7;
  border-bottom: 1px solid #fecaca;
}
.company-preview-under-slider .company-preview-note {
  display: grid;
  gap: 4px;
  max-width: none;
  width: 100%;
  margin: 0;
  color: #7f1d1d;
}
.company-preview-under-slider .company-preview-note strong {
  font-weight: 950;
}
.company-preview-under-slider .company-preview-note span,
.company-preview-under-slider .company-preview-note small {
  display: block;
}

/* Payeer checkout handoff */
.payment-provider-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #bae6fd;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
}
.payment-provider-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(2, 132, 199, .2);
}
.payment-provider-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.payment-provider-copy strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}
.payment-provider-copy span {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.payment-provider-secure {
  padding: 7px 10px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.payment-page-provider {
  margin: 22px 0;
}
.company-payment-provider {
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 18px;
}
.payment-inline-state {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, .14), transparent 42%),
    #f8fafc;
}
.payment-inline-qr {
  width: min(260px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}
.payment-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}
.payment-status-pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, .4);
  animation: payment-status-pulse 1.8s ease-out infinite;
}
@keyframes payment-status-pulse {
  70% { box-shadow: 0 0 0 9px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}
@media (max-width: 575.98px) {
  .payment-provider-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .payment-provider-secure {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
