:root {
  --bg-deep: #07173a;
  --bg-mid: #0c2050;
  --bg-card: #122c66;
  --accent: #5fd3ff;
  --accent-strong: #00bfff;
  --text-light: #ffffff;
  --text-body: #d8e1f5;
  --text-muted: #a8b8d8;
  --border: rgba(95, 211, 255, 0.25);
}

html {
  font-size: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-deep);
  color: var(--text-light);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ HEADER ============ */
header {
  background-color: var(--bg-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

body.home header,
body.inner header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  border-bottom: none;
}

body.home .hero {
  padding-top: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.85rem;
}

.lang-switch {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.lang-switch a {
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.lang-switch a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lang-switch a:hover {
  color: var(--text-light);
}

.lang-sep {
  opacity: 0.4;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  transition: background-color 0.2s, border-color 0.2s;
}

.phone-link:hover {
  background-color: rgba(95, 211, 255, 0.12);
  border-color: var(--accent);
}

.btn-feedback {
  padding: 10px 22px;
  border: 1px solid var(--accent);
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.btn-feedback:hover {
  background-color: rgba(95, 211, 255, 0.15);
}

.mainbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 12px;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  display: inline-block;
  width: 308px;
  height: 36px;
  background-image: url("/assets/logo-text.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
}

body.home .logo {
  visibility: hidden;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 22px;
}

nav.main-nav > ul > li {
  display: flex;
  align-items: center;
}

nav.main-nav a {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-light);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1.2;
}

nav.main-nav a:hover {
  color: var(--accent);
}

nav.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Dropdown menus */
nav .has-dropdown {
  position: relative;
}

nav .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

nav .caret {
  font-size: 0.65rem;
  transition: transform 0.2s;
  opacity: 0.7;
}

nav .has-dropdown:hover .caret,
nav .has-dropdown:focus-within .caret {
  transform: rotate(180deg);
}

nav.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  min-width: 240px;
  background-color: rgba(12, 32, 80, 0.97);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  padding: 0;
  list-style: none;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out, padding 0.3s ease-out;
  z-index: 100;
  backdrop-filter: blur(8px);
  display: block;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
}

nav.main-nav .dropdown li {
  display: block;
  width: 100%;
}

nav .has-dropdown:hover .dropdown,
nav .has-dropdown:focus-within .dropdown {
  max-height: 400px;
  opacity: 1;
  padding: 6px 0;
}

nav .dropdown li {
  list-style: none;
}

nav .dropdown a {
  display: block;
  padding: 8px 18px;
  color: var(--text-body);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-left: 3px solid transparent;
  white-space: normal;
  text-align: left;
  border-bottom: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

nav .dropdown a:hover,
nav .dropdown a.is-active {
  background-color: rgba(95, 211, 255, 0.1);
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--bg-deep);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(7, 23, 58, 0) 0%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 0 60px;
  text-align: center;
}

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

.hero-tagline {
  position: absolute;
  top: 45%;
  left: 29%;
  transform: translateX(-50%);
  width: 22%;
  margin: 0;
  color: var(--text-light);
  font-size: 0.8rem;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.6);
  line-height: 1.35;
}

.hero-since {
  position: absolute;
  top: 48%;
  left: 9.1%;
  transform: translateX(-50%);
  margin: 0;
  color: var(--accent);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 3px;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.6);
}

.hero-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--bg-deep);
  padding: 14px 32px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  border-radius: 2px;
  transition: background-color 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background-color: var(--text-light);
  transform: translateY(-2px);
}

/* ============ CATALOG ============ */
.catalog {
  position: relative;
  padding: 40px 0 80px;
  margin-top: -80px;
  background-color: var(--bg-deep);
  overflow: hidden;
}

.catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/uz-watermark.svg");
  background-repeat: repeat;
  background-size: 320px auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, transparent 0%, black 120px, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 120px, black 100%);
}

.catalog > .container {
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.catalog-intro {
  max-width: 880px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(95, 211, 255, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-size: 0.95rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.btn-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ INNER PAGE ============ */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(95, 211, 255, 0.25) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  padding: 100px 0 24px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: 140px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/pcb-bg.svg?v=2");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

.breadcrumbs .sep {
  margin: 0 8px;
  opacity: 0.4;
}

.page-title {
  font-size: 1.15rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  text-align: left;
}

.page-content {
  position: relative;
  background-color: var(--bg-deep);
  color: var(--text-light);
  padding: 56px 0 72px;
  overflow: hidden;
}

.page-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/uz-watermark.svg");
  background-repeat: repeat;
  background-size: 320px auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.page-content > .container {
  position: relative;
  z-index: 1;
}

.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 24px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.side-nav h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #003366;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #5fd3ff;
}

.side-nav ul {
  list-style: none;
}

.side-nav li + li {
  margin-top: 2px;
}

.side-nav a {
  display: block;
  text-decoration: none;
  color: #334155;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.side-nav a:hover {
  background-color: #eef3f8;
  color: #003366;
}

.side-nav a.is-active {
  background-color: #eef3f8;
  border-left-color: #5fd3ff;
  color: #003366;
  font-weight: 600;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 980px;
  margin: 0 auto;
  font-weight: 400;
}

.prose > * + * {
  margin-top: 1em;
}

.prose p {
  margin: 0 0 1em;
}

.prose strong, .prose b {
  color: var(--text-light);
  font-weight: 600;
}

.prose h2 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 1.4em;
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(95, 211, 255, 0.4);
  text-underline-offset: 3px;
}

.prose a font[color],
.prose font[color] {
  color: var(--accent) !important;
}

.prose h2 font[color],
.prose h3 font[color] {
  color: inherit !important;
}

.prose a:hover {
  color: var(--text-light);
  text-decoration-color: var(--accent);
}

#shareholders-links a,
#procurement-links a,
.prose a.ts-pdf-link:not(:has(img)) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(95, 211, 255, 0.45);
  padding-bottom: 1px;
}

#shareholders-links a:hover,
#procurement-links a:hover,
.prose a.ts-pdf-link:not(:has(img)):hover {
  border-bottom-color: var(--accent);
  color: var(--text-light);
}

#shareholders-links a::before,
#procurement-links a::before,
.prose a.ts-pdf-link:not(:has(img))::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd3ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s;
}

#shareholders-links a:hover::before,
#procurement-links a:hover::before,
.prose a.ts-pdf-link:not(:has(img)):hover::before {
  transform: translateY(2px);
}

/* Hide legacy raster PDF icon — replaced by SVG ::before above */
.prose a.ts-pdf-link img[src*="_pdf_new"] {
  display: none;
}
.prose table.t1 td:has(> a.ts-pdf-link > img[src*="_pdf_new"]) {
  display: none;
}

#shareholders-links li,
#procurement-links li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.4em;
}

#shareholders-links li.year-divider,
#procurement-links li.year-divider {
  display: block;
  background: rgba(95, 211, 255, 0.1) !important;
  border-left: 3px solid var(--accent) !important;
  color: var(--text-light) !important;
  padding: 8px 14px !important;
  margin: 18px 0 6px !important;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.ts-link-date {
  color: var(--text-muted) !important;
  font-size: 0.85em !important;
  white-space: nowrap;
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 1em 0;
}

.prose li + li {
  margin-top: 0.3em;
}

.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 16px;
  color: var(--text-muted);
  font-style: italic;
}

.prose img {
  display: block;
  margin: 1.6em auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.prose p:has(img) {
  text-align: center !important;
}

.prose img {
  margin-left: auto !important;
  margin-right: auto !important;
}

.prose table.t1 {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.prose table.t1 td {
  vertical-align: top;
  padding: 8px 12px;
}

.prose table.t1 td:has(> img[width="300"]),
.prose table.t1 td:has(> a > img[width="300"]) {
  width: 480px;
  text-align: center;
}

/* Картинка у розмітці тепер перша (для обтікання текстом на мобільному).
   На десктопі повертаємо звичний вигляд — фото праворуч — через row-reverse. */
.prose table.t1 tr:has(img[width="300"]) {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 12px;
}
.prose table.t1 tr:has(img[width="300"]) > td:has(> img[width="300"]),
.prose table.t1 tr:has(img[width="300"]) > td:has(> a > img[width="300"]) {
  flex: 0 0 auto;
}
.prose table.t1 tr:has(img[width="300"]) > td:not(:has(img[width="300"])):not(:has(a > img[width="300"])) {
  flex: 1 1 auto;
}

.prose table.t1 img[width="300"] {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto !important;
  border-radius: 4px;
  border: 3px double #3592ed;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ============ CONTACT PAGE ============ */
.contact-org {
  text-align: center;
  color: var(--text-light);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.45;
  margin: 0 0 28px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(95, 211, 255, 0.06), rgba(95, 211, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.contact-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(95, 211, 255, 0.12);
  color: var(--accent);
  border: 1px solid var(--border);
}

.contact-icon svg {
  display: block;
}

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.contact-value {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

a.contact-value {
  color: var(--accent);
  text-decoration: none;
}

a.contact-value:hover {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-map {
  position: relative;
  width: 100%;
  max-width: 640px; /* компактніше за повну ширину — співмірно з картками контактів */
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .contact-org {
    font-size: 1rem;
  }
  .contact-map {
    aspect-ratio: 4 / 3;
  }
}

.page-meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Wide section inside page-content (e.g. iframe) */
.section-heading {
  font-size: 1.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin: 40px 0 12px;
  text-align: center;
}

.section-lead {
  color: var(--text-body);
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.section-lead a {
  color: var(--accent);
  text-decoration: underline;
}

.procurement-scroll-frame {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  margin: 12px 0;
}

.procurement-iframe-scale {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.procurement-iframe-scale iframe {
  display: block;
  border: 0;
  width: 100%;
  min-height: 1200px;
}

.procurement-iframe-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 32px;
}

@media (max-width: 880px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .side-nav {
    position: static;
  }
  .page-title {
    font-size: 1rem;
    text-align: center; /* на мобільному заголовок сторінки по центру */
  }
  /* Контакти: на мобільному картки по центру — іконка зверху, текст під нею */
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-body {
    align-items: center;
  }
}

/* ============ FOOTER ============ */
footer {
  background-color: var(--bg-mid);
  color: var(--text-muted);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  nav.main-nav ul {
    gap: 18px;
  }

  nav.main-nav a {
    font-size: 0.75rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-brand {
    justify-content: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .mainbar {
    flex-direction: column;
    gap: 18px;
  }

  nav.main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }

  .hero-brand-text {
    font-size: 1.8rem;
  }

  .hero-brand svg {
    width: 80px;
    height: 60px;
  }

  .btn-feedback {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* ============ NEWS LIST (превью + «Показати ще») ============ */
.news-item {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--border);
}
.news-item-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 2px 0 10px;
}
.news-item-excerpt {
  color: var(--text-body);
  margin: 0;
  white-space: pre-line;
}
.news-item-body {
  margin-top: 0.6em;
}
.news-item-toggle {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(95, 211, 255, 0.4);
}
.news-item-toggle:hover {
  color: var(--text-light);
}
.news-more-wrap {
  text-align: center;
  margin-top: 28px;
}
.news-more-btn {
  display: inline-block;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 8px;
  color: var(--bg-deep);
  background: var(--accent);
  border: 0;
}
.news-more-btn:hover {
  background: var(--accent-strong);
}

/* ============ ВИРІВНЮВАННЯ ЗОБРАЖЕНЬ (новини / вакансії) ============ */
/* Позиція (ширина задається інлайн-стилем через повзунок) */
.prose img.img-center {
  float: none;
  display: block;
  margin: 1.2em auto !important;
}
.prose img.img-left {
  float: left;
  margin: 6px 22px 12px 0 !important;
}
.prose img.img-right {
  float: right;
  margin: 6px 0 12px 22px !important;
}
.prose p:has(> img.img-left),
.prose p:has(> a > img.img-left) { text-align: left !important; }
.prose p:has(> img.img-right),
.prose p:has(> a > img.img-right) { text-align: right !important; }
/* Float не повинен «витікати» за межі новини/блоку вакансій */
.news-item::after,
#vacancies-admin-text::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .prose img.img-left,
  .prose img.img-right {
    float: none;
    display: block;
    margin: 1.2em auto !important;
  }
}

/* Продукція (мобільний): зверху назва ліворуч + фото праворуч, опис — на всю ширину знизу */
@media (max-width: 720px) {
  .prose table.t1:has(img[width="300"]),
  .prose table.t1:has(img[width="300"]) tbody,
  .prose table.t1:has(img[width="300"]) tr {
    display: block;
    direction: ltr;
  }
  .prose table.t1:has(img[width="300"]) td {
    display: block;
    width: auto !important;
    padding: 0 !important;
    text-align: left !important;
  }
  /* фото — праворуч, побільше (ширину задаємо ячейці, інакше % рахується по колу) */
  .prose table.t1 td:has(> img[width="300"]),
  .prose table.t1 td:has(> a > img[width="300"]) {
    float: right;
    width: 200px !important;
    max-width: 52% !important;
    margin: 2px 0 10px 16px !important;
  }
  .prose table.t1 img[width="300"] {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  /* назва — ліворуч поряд із фото */
  .prose table.t1:has(img[width="300"]) td > p:first-child {
    text-align: left !important;
    margin-top: 0;
  }
  /* опис — під фото, на всю ширину */
  .prose table.t1:has(img[width="300"]) td > p[align="justify"] {
    clear: both;
  }
  .prose table.t1:has(img[width="300"])::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* ============ МОБІЛЬНА НАВІГАЦІЯ (бургер) ============ */
.nav-toggle { display: none; }

@media (max-width: 820px) {
  /* без горизонтального виходу за екран */
  html, body { overflow-x: hidden; }

  /* шапка: логотип ліворуч, бургер праворуч в один рядок */
  .mainbar {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
  }
  /* на головній логотип сховано (банер) — на мобільному показуємо для брендингу */
  body.home .logo { visibility: visible; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-text { width: 200px; max-width: 58vw; height: 24px; }
  /* «1875» (hero-since) абсолютно позиціонований і налазить на лого — на мобільному ховаємо */
  .hero-since { display: none; }

  /* кнопка-бургер */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    width: 46px;
    height: 40px;
    padding: 9px 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* меню — випадна панель на всю ширину під шапкою */
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(8, 24, 64, 0.99);
    border-top: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }
  nav.main-nav.is-open {
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 1;
  }
  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 4px 0;
  }
  nav.main-nav > ul > li {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  nav.main-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.95rem;
    padding: 13px 20px;
    border-bottom: none;
    white-space: normal;
  }
  nav.main-nav a.active { border-bottom: none; }

  /* підменю: статичне, розкривається класом .open (по тапу) */
  nav .has-dropdown { position: static; }
  nav.main-nav .dropdown {
    position: static;
    transform: none;
    left: auto;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    background: rgba(0, 0, 0, 0.22);
    max-height: 0;
    opacity: 0;
    padding: 0;
  }
  /* нейтралізуємо :hover/:focus на тачі — відкриває лише .open */
  nav .has-dropdown:hover .dropdown,
  nav .has-dropdown:focus-within .dropdown { max-height: 0; opacity: 0; padding: 0; }
  nav .has-dropdown.open > .dropdown { max-height: 700px; opacity: 1; padding: 4px 0; }
  nav .has-dropdown.open .caret { transform: rotate(180deg); }
  nav .dropdown a { padding: 11px 34px; font-size: 0.9rem; }
}
