/*
Theme Name: ISOD
Theme URI: https://sarmat-ecor.ru/
Author: Студия развития бизнеса Digital Life (ИП Кульпин АА)
Author URI: https://sarmat-ecor.ru/
Description: Custom WordPress theme for ISOD Sarmat ARM.
Version: 0.1.12
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: isod
*/

:root {
  --isod-bg: #f3f6fb;
  --isod-surface: #ffffff;
  --isod-surface-soft: #f8fbff;
  --isod-surface-muted: #edf3ff;
  --isod-hover: #eaf1ff;
  --isod-border: #d6e0ec;
  --isod-border-strong: #aebdce;
  --isod-text: #0b1f33;
  --isod-muted: #5d6a78;
  --isod-primary: #0d4cd3;
  --isod-primary-dark: #0b40b3;
  --isod-accent: #e11432;
  --isod-success: #13844b;
  --isod-radius: 8px;
  --isod-shadow: 0 10px 28px rgba(11, 31, 51, 0.07);
  --isod-shadow-soft: 0 4px 14px rgba(11, 31, 51, 0.045);
  --isod-focus: 0 0 0 3px rgba(13, 76, 211, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--isod-text);
  background: var(--isod-bg);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--isod-primary);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

a:hover,
a:focus {
  color: var(--isod-primary-dark);
  text-decoration: none;
}

strong {
  color: var(--isod-text);
}

.isod-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.isod-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--isod-surface);
  border-bottom: 1px solid var(--isod-border);
  box-shadow: 0 2px 10px rgba(11, 31, 51, 0.04);
}

.isod-header-info,
.isod-header-navrow,
.isod-main,
.isod-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.isod-header-info {
  min-height: 74px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.isod-header-navrow {
  min-height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--isod-border);
}

.isod-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--isod-text);
}

.isod-brand:hover,
.isod-brand:focus {
  color: var(--isod-primary-dark);
  text-decoration: none;
}

.isod-brand:hover .isod-brand__mark,
.isod-brand:focus .isod-brand__mark {
  background: var(--isod-primary-dark);
}

.isod-brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--isod-primary);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0;
}

.isod-brand__title {
  display: block;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.isod-brand__subtitle {
  display: block;
  margin: 2px 0 0;
  color: var(--isod-muted);
  font-size: 13px;
}

.isod-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--isod-muted);
  font-size: 14px;
  text-align: right;
}

.isod-header-location {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--isod-bg);
  color: var(--isod-text);
}

.isod-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex-wrap: wrap;
}

.isod-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 3px solid transparent;
  color: var(--isod-text);
  font-size: 14px;
  font-weight: 700;
}

.isod-nav a:hover,
.isod-nav a:focus {
  border-bottom-color: var(--isod-primary);
  color: var(--isod-primary);
  text-decoration: none;
}

.isod-main {
  width: 100%;
  padding: 32px 24px 44px;
}

.isod-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.isod-panel {
  background: var(--isod-surface);
  border: 1px solid var(--isod-border);
  border-radius: var(--isod-radius);
  box-shadow: var(--isod-shadow);
}

.isod-panel--lead {
  padding: 30px;
}

.isod-panel--tinted {
  background: var(--isod-surface-muted);
  border-color: #d8e4ff;
}

.isod-eyebrow {
  margin: 0 0 10px;
  color: var(--isod-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.isod-title {
  margin: 0;
  max-width: 760px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.isod-lead {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--isod-muted);
  font-size: 17px;
}

.isod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.isod-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--isod-primary);
  border-radius: 6px;
  background: var(--isod-primary);
  color: #ffffff;
  font-weight: 700;
}

.isod-button:hover,
.isod-button:focus {
  background: var(--isod-primary-dark);
  color: #ffffff;
  text-decoration: none;
}

.isod-button--secondary {
  background: var(--isod-surface);
  color: var(--isod-primary);
}

.isod-button--secondary:hover,
.isod-button--secondary:focus {
  background: var(--isod-surface-muted);
  color: var(--isod-primary-dark);
}

.isod-button--small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
}

.isod-status {
  padding: 22px;
}

.isod-status h2 {
  margin: 0;
  font-size: 20px;
}

.isod-status__list {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.isod-status__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--isod-border);
}

.isod-status__item:last-child {
  border-bottom: 0;
}

.isod-status__label {
  color: var(--isod-muted);
}

.isod-status__value {
  font-weight: 700;
}

.isod-section {
  margin-top: 24px;
}

.isod-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.isod-section h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.isod-section__lead {
  max-width: 780px;
  margin: 6px 0 0;
  color: var(--isod-muted);
  font-size: 15px;
}

.isod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.isod-card {
  min-height: 160px;
  padding: 20px;
  background: var(--isod-surface);
  border: 1px solid var(--isod-border);
  border-radius: var(--isod-radius);
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.04);
}

.isod-card h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.isod-card p {
  margin: 0;
  color: var(--isod-muted);
  font-size: 14px;
}

.isod-card__link {
  display: inline-flex;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}

.isod-contact {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.isod-contact__item {
  padding: 12px 0;
  border-top: 1px solid rgba(11, 31, 51, 0.12);
}

.isod-contact__label {
  display: block;
  color: var(--isod-muted);
  font-size: 13px;
}

.isod-contact__value {
  display: block;
  margin-top: 3px;
  font-weight: 700;
}

.isod-footer {
  margin-top: auto;
  background: #0b1f33;
  color: #ffffff;
}

.isod-footer__inner {
  padding: 34px 24px 26px;
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 0.65fr) minmax(220px, 0.85fr);
  align-items: start;
  gap: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.isod-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 15px;
}

.isod-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.isod-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.isod-footer a:hover,
.isod-footer a:focus {
  color: #ffffff;
  text-decoration: none;
}

.isod-footer__brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
}

.isod-footer__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--isod-primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.1);
}

.isod-footer__nav {
  display: grid;
  gap: 9px;
}

.isod-footer__bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visual refresh matching the ARM shell. */
a {
  text-underline-offset: 3px;
}

:is(a, button, input, select, textarea):focus-visible {
  outline: 0;
  box-shadow: var(--isod-focus);
}

.isod-topbar {
  border-bottom-color: #cfd9e6;
  box-shadow: 0 3px 16px rgba(11, 31, 51, 0.06);
}

.isod-header-info,
.isod-header-navrow,
.isod-main,
.isod-footer__inner {
  max-width: 1320px;
}

.isod-header-info {
  min-height: 68px;
}

.isod-brand__mark {
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08);
}

.isod-header-location {
  border: 1px solid var(--isod-border);
  background: var(--isod-surface-soft);
}

.isod-nav {
  gap: 4px;
}

.isod-nav a {
  border-bottom: 0;
  border-radius: 6px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.isod-nav a:hover,
.isod-nav a:focus {
  background: var(--isod-hover);
  color: var(--isod-primary-dark);
}

.isod-panel,
.isod-card {
  box-shadow: var(--isod-shadow-soft);
}

.isod-panel--lead {
  border-left: 5px solid var(--isod-primary);
}

.isod-title {
  font-size: 40px;
}

.isod-button {
  border-radius: 6px;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.isod-button:hover,
.isod-button:focus {
  box-shadow: 0 6px 16px rgba(13, 76, 211, 0.16);
}

.isod-card {
  border-color: #d9e4f2;
  background: #ffffff;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.isod-card:hover {
  border-color: rgba(13, 76, 211, 0.28);
  background: var(--isod-surface-soft);
  box-shadow: 0 6px 18px rgba(13, 76, 211, 0.09);
  transform: translateY(-1px);
}

.isod-card__link {
  font-weight: 800;
}

/* Design v2: public shell aligned with the ARM workspace. */
body {
  background: #eef3f9;
}

.isod-topbar {
  background: #ffffff;
  border-bottom-color: #cbd7e6;
}

.isod-header-info {
  min-height: 76px;
}

.isod-header-navrow {
  min-height: 52px;
  background: #f7faff;
}

.isod-brand__mark {
  background: #0d4cd3;
}

.isod-brand__title {
  font-size: 18px;
}

.isod-nav a {
  min-height: 38px;
  padding: 8px 12px;
  color: #162b40;
}

.isod-nav a:hover,
.isod-nav a:focus {
  background: #e8f0ff;
  color: var(--isod-primary-dark);
}

.isod-header-location {
  background: #f7faff;
}

.isod-main {
  padding-top: 28px;
}

.isod-hero {
  gap: 18px;
}

.isod-panel {
  border-color: #d3deeb;
}

.isod-panel--lead {
  padding: 32px;
  border-left: 0;
  border-top: 4px solid var(--isod-primary);
  background: #ffffff;
}

.isod-panel--tinted {
  background: #ffffff;
}

.isod-title {
  font-size: 41px;
  line-height: 1.12;
}

.isod-lead {
  color: #536171;
}

.isod-status {
  padding: 24px;
}

.isod-status h2 {
  font-size: 21px;
}

.isod-status__value {
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--isod-surface-muted);
  color: var(--isod-primary-dark);
  text-align: center;
}

.isod-section {
  margin-top: 28px;
}

.isod-section h2 {
  font-size: 25px;
}

.isod-card {
  min-height: 148px;
  border-color: #d3deeb;
  border-top: 4px solid var(--isod-primary);
}

.isod-card:nth-child(2n) {
  border-top-color: var(--isod-success);
}

.isod-card h2 {
  font-size: 20px;
}

.isod-button {
  min-height: 42px;
}

@media (max-width: 920px) {
  .isod-header-info,
  .isod-header-navrow,
  .isod-hero {
    align-items: start;
  }

  .isod-header-info,
  .isod-header-navrow,
  .isod-footer__inner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .isod-header-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .isod-nav {
    width: max-content;
    min-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .isod-header-navrow {
    display: block;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .isod-nav a {
    white-space: nowrap;
  }

  .isod-hero,
  .isod-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .isod-header-info,
  .isod-header-navrow,
  .isod-main,
  .isod-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .isod-footer__bottom {
    padding-left: 16px;
    padding-right: 16px;
  }

  .isod-panel--lead,
  .isod-status,
  .isod-card {
    padding: 18px;
  }

  .isod-title {
    font-size: 30px;
  }

  .isod-header-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .isod-nav a {
    min-height: 38px;
    padding: 8px 10px;
  }

  .isod-actions .isod-button {
    width: 100%;
  }

  .isod-footer__brand {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .isod-footer__mark {
    width: 40px;
    height: 40px;
  }
}

/* Flat UI cleanup: remove shadows and keep text vertically aligned. */
:root {
  --isod-shadow: none !important;
  --isod-shadow-soft: none !important;
  --isod-focus: none !important;
}

body,
body * {
  box-shadow: none !important;
  text-shadow: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(13, 76, 211, 0.52) !important;
  outline-offset: 2px !important;
}

.isod-nav a,
.isod-header-location,
.isod-button,
.isod-card__action,
.isod-status-pill {
  align-items: center !important;
}

.isod-button,
.isod-card__action {
  justify-content: center !important;
  line-height: 1.2 !important;
}

table th,
table td {
  vertical-align: middle !important;
}
