:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --line: #e3e5e7;
  --text: #232323;
  --muted: #70757a;
  --brand: #b5121b;
  --brand-dark: #8f0f16;
  --brand-soft: #f9eeee;
  --success-bg: #eef7f0;
  --success-text: #317243;
  --shadow: 0 14px 42px rgba(20, 25, 30, .06);
  --radius: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(20, 25, 30, .045);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 19px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
  text-transform: uppercase;
}

.registry {
  flex: 0 0 auto;
  text-align: right;
}

.registry-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.registry-number {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

main { flex: 1; }
.main-inner { padding: 38px 0 42px; }

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 26px;
  align-items: stretch;
}

.company-card,
.contact-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-card {
  display: flex;
  flex-direction: column;
  padding: 30px 32px 28px;
}

.company-section { min-width: 0; }
.company-section-details { flex: 0 0 auto; }
.profile-section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 30px 32px 28px;
}

.section-heading { margin-bottom: 22px; }
.section-heading.compact { margin-bottom: 16px; }
.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}

.details-list { margin: 0; }
.detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row dt, .detail-row dd { margin: 0; }
.detail-row dt {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.detail-row dd {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}
.detail-row-wide { align-items: start; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-text);
  font-size: 12px;
  font-weight: 700;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.profile-copy {
  margin: 0;
  color: #3f4246;
  font-size: 14px;
  line-height: 1.65;
}

.kad-box {
  margin-top: 20px;
  padding: 16px 17px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--brand-soft);
}
.kad-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kad-box strong {
  display: block;
  font-size: 12px;
  line-height: 1.55;
}

.contact-list {
  display: grid;
  gap: 0;
  flex: 0 0 auto;
}
.contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-item:first-child { border-top: 0; padding-top: 3px; }
.contact-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ead8d9;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-item small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}
.contact-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}
.contact-item a {
  color: var(--text);
  text-decoration: none;
}
.contact-item a:hover,
.contact-item a:focus-visible { color: var(--brand); text-decoration: underline; }
.separator { margin: 0 7px; color: #b7b7b7; }

.contact-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 250px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.publications {
  margin-top: 28px;
  padding: 28px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.publications-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.publications-head .section-heading { margin-bottom: 0; }
.publications-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.publications-list { display: grid; gap: 9px; }
.publication-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid #e3e4e6;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.publication-row:hover,
.publication-row:focus-visible {
  transform: translateY(-1px);
  border-color: #dbc4c6;
  background: #fffafa;
  box-shadow: 0 8px 22px rgba(30, 30, 30, .05);
  outline: none;
}
.publication-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.publication-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.publication-copy { min-width: 0; }
.publication-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.35;
}
.publication-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.publication-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.publication-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}
.footer-credit { text-align: right; }
.footer-credit a {
  color: var(--text);
  font-weight: 800;
  letter-spacing: .035em;
  text-decoration: none;
}
.footer-credit a:hover,
.footer-credit a:focus-visible { color: var(--brand); }

@media (max-width: 900px) {
  .container { width: min(100% - 40px, var(--container)); }
  .company-grid { grid-template-columns: 1fr; }
  .company-card, .contact-card { height: auto; }
  .contact-list { grid-template-rows: none; }
  .contact-map { flex: none; min-height: 300px; }
}

@media (max-width: 720px) {
  .site-header {
    box-shadow: 0 8px 24px rgba(20, 25, 30, .075);
  }
  .header-inner {
    min-height: 82px;
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }
  .brand {
    width: 100%;
    gap: 12px;
  }
  .brand-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
  .brand-name {
    min-width: 0;
    font-size: clamp(16px, 4.4vw, 19px);
    line-height: 1.08;
    letter-spacing: -.03em;
  }
  .registry { display: none; }

  .main-inner { padding: 18px 0 26px; }
  .company-grid { gap: 16px; }
  .company-card,
  .contact-card,
  .publications {
    padding: 20px 18px;
    border-radius: 14px;
  }
  .section-heading { margin-bottom: 18px; }
  .section-heading.compact { margin-bottom: 14px; }
  .section-heading h1,
  .section-heading h2 { font-size: 20px; }
  .detail-row {
    grid-template-columns: minmax(118px, 39%) minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
  }
  .detail-row dt { font-size: 10.5px; }
  .detail-row dd { font-size: 13.5px; }
  .profile-section { margin-top: 20px; padding-top: 20px; }
  .profile-copy { font-size: 13.5px; }
  .kad-box { margin-top: 16px; padding: 14px 15px; }

  .contact-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
  }
  .contact-icon { width: 40px; height: 40px; }
  .contact-map { min-height: 250px; margin-top: 14px; }

  .publications { margin-top: 16px; }
  .publications-head { align-items: center; }
  .publication-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .publication-icon { width: 40px; height: 40px; }
  .publication-copy small { display: none; }
  .publication-action span { display: none; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 24px, var(--container)); }
  .header-inner { min-height: 76px; }
  .brand { gap: 10px; }
  .brand-logo { width: 54px; height: 54px; flex-basis: 54px; }
  .brand-name { font-size: 16px; }
  .company-card,
  .contact-card,
  .publications { padding: 18px 16px; }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .detail-row dt { font-size: 10px; }
  .contact-item strong { font-size: 12.5px; }
  .separator { display: none; }
  .contact-item strong a { display: block; }
  .contact-map { min-height: 230px; }
  .footer-inner {
    min-height: 88px;
    padding: 15px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
  .footer-credit { text-align: left; }
}

@media (max-width: 380px) {
  .brand-logo { width: 50px; height: 50px; flex-basis: 50px; }
  .brand-name { font-size: 14px; line-height: 1.1; }
  .container { width: min(100% - 20px, var(--container)); }
}
