:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --soft: #ccfbf1;
  --warn: #fff7ed;
  --warn-line: #fed7aa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -.02em;
}

.logo span { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover { color: var(--brand); }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: white;
}

.lang button {
  border: 0;
  background: transparent;
  padding: 7px 10px;
  font-weight: 800;
  cursor: pointer;
  color: #64748b;
}

.lang button.active {
  background: var(--brand);
  color: white;
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 56px;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(20,184,166,.20), transparent 34%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(15,23,42,.07);
  padding: 46px;
}

.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 900;
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -.05em;
}

h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -.03em;
}

h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.lead {
  font-size: 20px;
  max-width: 820px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 900;
  border-radius: 14px;
  padding: 13px 18px;
  border: 1px solid var(--brand);
}

.button.secondary {
  background: white;
  color: var(--brand);
}

.section {
  margin-top: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(15,23,42,.05);
}

.note {
  background: var(--warn);
  border: 1px solid var(--warn-line);
  border-radius: 18px;
  padding: 16px;
  color: #7c2d12;
}

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

label {
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  font-weight: 750;
  color: var(--text);
  background: white;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}

.result-row strong {
  white-space: nowrap;
}

.total {
  font-size: 24px;
  font-weight: 950;
  color: var(--brand-dark);
}

.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: #64748b;
  font-size: 14px;
  padding: 26px 22px;
}

.lang-block { display: none; }
html[lang="bg"] .lang-bg { display: block; }
html[lang="en"] .lang-en { display: block; }

@media (max-width: 820px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero { padding: 30px; }
  .grid, .grid.two, .calc { grid-template-columns: 1fr; }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  font-weight: 650;
  color: var(--text);
  background: white;
}

.form-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

button.button {
  cursor: pointer;
  font: inherit;
}

.company-details p {
  margin-bottom: 8px;
}

.status {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
}

.status.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.status.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form .form-grid {
  row-gap: 18px;
}

.contact-form .form-grid > div,
.contact-form .form-grid > .full {
  display: block;
}

.contact-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
}

.contact-form input {
  min-height: 44px;
}

.contact-form textarea {
  min-height: 180px;
  padding-top: 12px;
  line-height: 1.5;
}

.contact-form .full {
  margin-top: 4px;
}

.contact-form .helper-note {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.contact-form .form-actions {
  margin-top: 20px;
}


/* software architecture */
.architecture-section {
  overflow: hidden;
}

.architecture-figure {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.architecture-figure img {
  display: block;
  width: 100%;
  height: auto;
}
/* /software architecture */


/* FMS Control visible brand refresh */
:root {
  --bg: #F4F8FC;
  --card: #FFFFFF;
  --text: #081C46;
  --muted: #52627A;
  --line: #D7E3EF;

  --brand: #081C46;
  --brand-dark: #061633;

  --accent-cyan: #15D2C4;
  --accent-blue: #168BFF;

  --soft: #E8FBF8;
  --soft-blue: #EAF4FF;
  --warn: #FFF7ED;
  --warn-line: #FED7AA;
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(21, 210, 196, .10), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(22, 139, 255, .10), transparent 30%),
    var(--bg);
}

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #D7E3EF;
  box-shadow: 0 8px 28px rgba(8, 28, 70, .06);
}

.logo {
  color: var(--brand);
  font-weight: 950;
}

.logo span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links a {
  color: var(--brand);
}

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

.lang button.active {
  background: linear-gradient(90deg, var(--brand), #0A3B78);
  color: #fff;
}

.hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.90)),
    radial-gradient(circle at top right, rgba(21, 210, 196, .30), transparent 34%),
    radial-gradient(circle at bottom right, rgba(22, 139, 255, .20), transparent 40%),
    var(--card);
  border-color: #CFE0EF;
  box-shadow: 0 22px 56px rgba(8, 28, 70, .10);
}

.badge {
  background: linear-gradient(90deg, rgba(21,210,196,.18), rgba(22,139,255,.14));
  color: var(--brand);
  border: 1px solid rgba(21,210,196,.28);
}

.button {
  background: linear-gradient(90deg, var(--brand), #0A3B78);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 28, 70, .18);
}

.button:hover {
  background: linear-gradient(90deg, var(--brand-dark), #082E5F);
  border-color: var(--brand-dark);
}

.button.secondary {
  background: #fff;
  color: var(--brand);
  border-color: #9AB8D5;
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--soft-blue);
  border-color: var(--accent-blue);
}

.card {
  border-color: #D7E3EF;
  box-shadow: 0 14px 36px rgba(8, 28, 70, .07);
}

.card h2,
.card h3 {
  color: var(--brand);
}

.total {
  color: var(--brand);
}

.result-row {
  border-bottom-color: #D7E3EF;
}

.architecture-figure {
  border-color: #D7E3EF;
}
/* /FMS Control visible brand refresh */


/* header image logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 220px;
}

@media (max-width: 820px) {
  .logo img {
    height: 30px;
    max-width: 180px;
  }
}
/* /header image logo */


/* header image logo final */
.site-header .logo {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  max-width: 230px !important;
  overflow: visible !important;
}

.site-header .logo img {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  max-width: 230px !important;
  object-fit: contain !important;
}

.nav {
  align-items: center !important;
}

@media (max-width: 820px) {
  .site-header .logo img {
    height: 34px !important;
    max-width: 190px !important;
  }
}
/* /header image logo final */
