/* OctoPlan brand header/footer — mirrors main site (octoplan.ru) markup 1:1
   NOTE: this theme resets html{font-size:62.5%} (1rem = 10px), while the main
   site assumes the browser default (1rem = 16px). To keep sizes truly
   identical regardless of that base, every value below is in px, not rem. */

:root {
  --op-bg: #ffffff;
  --op-surface: #ffffff;
  --op-surface-soft: #f5f5f5;
  --op-text: #181a20;
  --op-muted: #707a8a;
  --op-brand: #fcd535;
  --op-brand-active: #f0b90b;
  --op-border: #eaecef;
  --op-on-brand: #181a20;
}

.op-container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

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

.op-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.op-nav-left,
.op-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.op-brand {
  display: inline-flex;
  align-items: center;
  gap: 8.8px;
  font-weight: 700;
  font-size: 16.8px;
  color: var(--op-text);
}

.op-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.op-desktop-nav {
  display: flex;
  gap: 16px;
  color: var(--op-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.op-desktop-nav a {
  color: var(--op-muted);
}

.op-desktop-nav a.is-active {
  color: var(--op-text);
}

.op-login-btn {
  color: var(--op-text);
  border: 1px solid var(--op-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  padding: 9.92px 16px;
  background: var(--op-surface);
  display: inline-block;
}

.op-register-btn {
  border-radius: 6px;
  padding: 9.92px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  background: var(--op-brand);
  color: var(--op-on-brand);
  display: inline-block;
}

@media (max-width: 1024px) {
  .op-desktop-nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .op-topbar {
    flex-wrap: wrap;
  }

  .op-nav-right {
    width: 100%;
    justify-content: flex-end;
  }
}

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

.op-footer {
  margin-top: 48px;
  padding: 28.8px 0 25.6px;
  border-top: 1px solid var(--op-border);
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.3fr 0.9fr;
  gap: 32px;
  color: var(--op-muted);
  font-size: 14.08px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.op-footer-col {
  display: flex;
  flex-direction: column;
}

.op-footer p {
  margin: 4.8px 0 0;
  line-height: 1.55;
}

.op-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8.8px;
  color: var(--op-text);
  font-weight: 700;
  font-size: 16.8px;
}

.op-footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.op-footer-company {
  padding-top: 2.4px;
}

.op-footer-company-name {
  font-weight: 600;
  color: var(--op-text);
  margin-top: 0;
  margin-bottom: 2.4px;
}

.op-footer-contacts {
  padding-top: 2.4px;
  gap: 8.8px;
}

.op-footer-contacts-title {
  font-weight: 600;
  color: var(--op-text);
  margin-top: 0;
  margin-bottom: 0.8px;
}

.op-footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.op-footer-contact-line svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.8;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.op-footer-contact-phone {
  font-weight: 600;
  color: var(--op-text);
}

.op-footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 3.2px;
}

.op-footer-contact-note {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--op-muted);
}

.op-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  padding-top: 2.4px;
}

.op-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.op-footer a:hover {
  color: var(--op-text);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .op-footer {
    grid-template-columns: 1fr;
    gap: 22.4px;
  }

  .op-footer-links {
    text-align: left;
  }
}
