* {
  box-sizing: border-box;
}

:root {
  --bg-light: #f3f3f3;
  --bg-mid: #ebebeb;
  --bg-dark: #e3e3e3;
  --card: #ffffff;
  --text: #454545;
  --muted: #666666;
  --border: #dddddd;
  --red: #a01722;
  --red-dark: #86131c;
  --blue: #0f5e8f;
  --blue-dark: #0a4770;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 15% 5%, var(--bg-light) 0, var(--bg-mid) 52%, var(--bg-dark) 100%);
  color: var(--text);
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.site-wrap {
  position: relative;
  min-height: 100vh;
  padding: 24px 12px 34px;
}

.shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.shape-red-left {
  top: 214px;
  left: -42px;
  width: 128px;
  height: 128px;
  transform: rotate(28deg);
  background: var(--red);
  opacity: 0.95;
}

.shape-red-right {
  top: -8px;
  right: -185px;
  width: 470px;
  height: 430px;
  transform: skewX(-28deg);
  background: var(--red);
  opacity: 0.95;
}

.shape-gray {
  top: 62px;
  left: 28px;
  width: 236px;
  height: 236px;
  transform: rotate(30deg);
  background: #dcdcdc;
  opacity: 0.52;
}

.top-header,
.content-card,
.blue-box,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.top-header {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  padding: 14px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 60px;
  display: block;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid #d2d2d2;
  background: #ffffff;
  color: #444;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle > .menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
  height: 12px;
}

.menu-toggle > .menu-icon span {
  display: block;
  width: 14px;
  height: 2px;
  background: #555;
  border-radius: 1px;
}

.menu-toggle > .menu-label {
  display: inline-block;
  line-height: 1;
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.menu-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  transition: background 140ms ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  background: var(--blue-dark);
  color: #fff;
}

.menu-link.active {
  background: var(--red);
}

.menu-link.active:hover,
.menu-link.active:focus-visible {
  background: var(--red-dark);
}

.content-card {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  padding: 24px;
}

.page-kicker {
  margin: 0;
  color: #a11c25;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-title {
  margin: 8px 0 0;
  color: #4a4a4a;
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
}

.page-summary {
  margin: 12px 0 0;
  max-width: 860px;
  color: #616161;
  font-size: 18px;
  line-height: 1.45;
}

.page-body {
  margin-top: 18px;
  border-top: 1px solid #e7e7e7;
  padding-top: 18px;
}

.page-body > h1:first-child {
  display: none;
}

.content-card h1 {
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e8e8e8;
  color: #444;
  font-size: 32px;
  line-height: 1.1;
}

.content-card h2 {
  margin: 24px 0 14px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e8e8e8;
  color: #4a4a4a;
  font-size: 24px;
  line-height: 1.2;
}

.content-card p {
  margin: 0 0 12px;
  color: #525252;
  line-height: 1.55;
}

.content-card a {
  color: #a31c26;
  text-decoration: underline;
}

.content-card a:hover {
  text-decoration: none;
}

.content-card hr {
  height: 1px;
  border: 0;
  margin: 18px 0;
  background: #e4e4e4;
}

.content-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

table.project th {
  width: 36%;
  text-align: left;
  vertical-align: top;
  padding-right: 16px;
}

table.project td {
  vertical-align: top;
}

table.project img {
  max-width: 100%;
  height: auto;
  border: 0;
}

table.form th {
  width: 29%;
  text-align: left;
  vertical-align: top;
  padding: 9px 14px 0 0;
  color: #555;
  font-weight: 700;
}

table.form td {
  vertical-align: top;
}

input.input,
input.input.small,
select,
textarea {
  width: 100%;
  border: 1px solid #cbcbcb;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input.input,
input.input.small,
select {
  min-height: 42px;
  padding: 8px 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  padding: 10px 12px;
}

input.input:focus,
input.input.small:focus,
select:focus,
textarea:focus {
  border-color: #a22931;
  box-shadow: 0 0 0 3px rgba(162, 41, 49, 0.13);
}

input.input.small {
  max-width: 120px;
}

input.button {
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 110px;
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
}

input.button:hover {
  background: var(--blue-dark);
}

.content-card ul {
  margin: 8px 0 18px 18px;
  padding: 0;
}

.content-card li {
  margin: 0 0 8px;
}

p.indent {
  padding-left: 20px;
}

.company-name {
  font-size: 1.1em;
}

.red {
  color: #a31c26;
}

span.big {
  font-size: 1.08em;
}

.bold {
  font-weight: 700;
}

.blue-box {
  margin-top: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d4164, #196ea3);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: visible;
}

.blue-box::before {
  content: '';
  position: absolute;
  left: 38px;
  bottom: -26px;
  border-left: 0 solid transparent;
  border-right: 34px solid transparent;
  border-top: 26px solid #0d4164;
}

.blue-col {
  padding: 24px;
}

.contact-col {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #c7e8ff;
  display: grid;
  place-items: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.blue-kicker {
  margin: 0 0 8px;
  color: #9ad6fb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.blue-address {
  margin: 0 0 14px;
  line-height: 1.5;
}

.blue-lead {
  margin: 0;
  color: #9ad6fb;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}

.blue-title {
  margin: 2px 0 16px;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
}

.blue-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: underline;
  font-size: 16px;
  font-weight: 700;
}

.blue-action svg {
  width: 16px;
  height: 16px;
}

.blue-action:hover {
  text-decoration: none;
}

.site-footer {
  margin-top: 18px;
  text-align: right;
  color: #8f8f8f;
  font-size: 14px;
  padding-right: 2px;
}

@media (max-width: 900px) {
  .shape-red-right {
    right: -260px;
    width: 420px;
    height: 390px;
  }

  .shape-red-left {
    left: -70px;
    top: 290px;
  }

  .top-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand img {
    height: 48px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
    border-top: 1px solid #e9e9e9;
  }

  .main-menu.is-open {
    display: flex;
  }

  .menu-link {
    width: 100%;
    text-align: center;
  }

  .content-card {
    padding: 16px;
  }

  .page-title {
    font-size: 34px;
  }

  .page-summary {
    font-size: 16px;
  }

  .content-card h2 {
    font-size: 22px;
  }

  .content-card table,
  .content-card tbody,
  .content-card tr,
  .content-card th,
  .content-card td {
    display: block;
    width: 100% !important;
    padding: 0;
  }

  .content-card th {
    margin-bottom: 8px;
    padding-right: 0;
  }

  .content-card tr {
    margin-bottom: 10px;
  }

  .blue-box {
    grid-template-columns: 1fr;
  }

  .blue-box::before {
    display: none;
  }

  .contact-col {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .blue-lead {
    font-size: 26px;
  }

  .blue-title {
    font-size: 30px;
  }

  .site-footer {
    text-align: left;
  }
}

/* Legacy content polish for integrated design */
.legacy-content > h1:first-child {
  display: none;
}

.legacy-content p:not([class]) {
  margin: 0 0 12px;
  color: #525252;
  line-height: 1.6;
}

.legacy-content a:not([class]) {
  color: #a31c26;
  text-decoration: underline;
  font-weight: 700;
}

.legacy-content a:hover {
  text-decoration: none;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.about-columns p {
  text-align: justify;
}

.about-cta {
  margin-top: 8px;
}

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

.project-logo-frame {
  width: 224px;
  min-height: 96px;
  border: 1px solid #d9e6f8;
  border-radius: 12px;
  background: #f4f9ff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-logo-image {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .project-logo-frame {
    width: 100%;
  }
}

.project-logo-block {
  width: 224px;
  flex-shrink: 0;
}

.project-logo-slogan {
  margin: 8px 0 0;
  text-align: center;
  color: #5b5b5b;
  font-size: 13px;
  font-style: italic;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .project-logo-block {
    width: 100%;
  }

  .project-logo-slogan {
    text-align: left;
  }
}

.offer-project-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.offer-project-left,
.offer-project-right {
  min-width: 0;
}

.offer-project-left {
  display: block;
}

.offer-field--desc {
  display: block;
}

.offer-form .offer-control {
  border: 1px solid #2f78b7;
  border-radius: 8px;
  background: #fff;
  color: #2f2f2f;
}

.offer-form .offer-control:focus {
  border-color: #145d92;
  box-shadow: 0 0 0 3px rgba(20, 93, 146, 0.14);
}

.offer-field--desc .offer-control {
  height: 210px !important;
  min-height: 210px !important;
}

.offer-form .offer-captcha-frame {
  border: 1px solid #2f78b7;
  border-radius: 8px;
}

.offer-required {
  color: #b91c1c;
  margin-left: 4px;
  display: inline;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .offer-project-grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }
}

@media (max-width: 767px) {
  .offer-field--desc .offer-control {
    height: 150px !important;
    min-height: 150px !important;
  }
}

.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-panel {
  border: 1px solid #d9e8f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f5f9fe);
  padding: 16px 18px;
}

.contact-panel--company {
  background: linear-gradient(180deg, #f1f8ff, #eaf3fd);
}

.contact-panel--full {
  grid-column: 1 / -1;
}

.contact-label {
  margin: 0 0 8px;
  color: #0f5e8f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-company {
  margin: 0;
  color: #2e2e2e;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.contact-address {
  margin: 10px 0 0;
  color: #4e4e4e;
  line-height: 1.6;
}

.contact-dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 12px;
  row-gap: 6px;
}

.contact-dl dt {
  color: #666;
  font-weight: 700;
}

.contact-dl dd {
  margin: 0;
  color: #2f2f2f;
  font-weight: 600;
}

.contact-line {
  margin: 0 0 8px;
  color: #444;
  line-height: 1.5;
}

.contact-note {
  margin: -2px 0 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

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

.footer-company-block,
.footer-offer-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-offer-block {
  justify-content: space-between;
}

.footer-copy {
  min-width: 0;
}

.footer-big-icon-wrap {
  width: 76px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
}

.footer-big-icon-wrap--arrow {
  width: 70px;
  align-self: center;
  opacity: 0.95;
}

.footer-big-icon {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .footer-offer-block {
    justify-content: flex-start;
  }

  .footer-big-icon-wrap {
    width: 64px;
    padding: 5px;
  }
}

.offer-captcha-frame altcha-widget {
  display: block;
  width: 100%;
  max-width: 100%;
  --altcha-border-width: 0px;
  --altcha-color-base: #f8fbff;
  --altcha-color-border: #2f78b7;
  --altcha-color-text: #2f2f2f;
  --altcha-color-border-focus: #145d92;
}

.offer-captcha-submit {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.offer-captcha-submit > label {
  display: grid;
  row-gap: 8px;
  margin: 0;
}

.offer-captcha-submit .offer-captcha-frame {
  margin-top: 0;
  border: 1px solid #2f78b7;
  border-radius: 8px;
  background: #fff;
  color: #2f2f2f;
  padding: 0;
}

.offer-captcha-submit .offer-captcha-frame altcha-widget {
  display: block;
  width: 100%;
  max-width: 100%;
  --altcha-border-width: 0px;
  --altcha-border-radius: 0px;
  --altcha-max-width: 100%;
  --altcha-color-base: transparent;
  --altcha-color-border: #2f78b7;
  --altcha-color-text: #2f2f2f;
  --altcha-color-border-focus: #145d92;
  --altcha-color-active: #145d92;
}

.offer-submit-button {
  display: block;
  margin-top: 12px !important;
}

@media (max-width: 767px) {
  .offer-captcha-submit {
    width: 100%;
  }

  .offer-captcha-submit .offer-captcha-frame {
    width: 100%;
  }

  .offer-submit-button {
    width: 100%;
  }
}


/* Fallback: hide any extra icon/glyph near ALTCHA label */
.offer-captcha-frame .altcha-logo,
.offer-captcha-frame .altcha-label::before,
.offer-captcha-frame .altcha-label::after {
  display: none !important;
  content: none !important;
}

.lang-switcher {
  position: relative;
  display: inline-block;
  z-index: 90;
  flex-shrink: 0;
}

.site-header-shell {
  position: relative;
  z-index: 80;
}

.lang-switcher__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  border-radius: 4px;
  padding: 8px 16px;
  background: #0f5e8f;
  color: #fff;
  line-height: 1.25;
}

.lang-switcher__summary::-webkit-details-marker {
  display: none;
}

.lang-switcher__summary::marker {
  content: '';
}

.lang-switcher[open] .lang-switcher__summary,
.lang-switcher__summary:hover,
.lang-switcher__summary:focus-visible {
  background: #0a4770;
}

.lang-switcher__code {
  color: #fff;
}

.lang-switcher__caret {
  color: #fff;
  font-size: 12px;
}

.lang-switcher__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1000;
  display: grid;
  gap: 4px;
  min-width: 140px;
  padding: 6px;
  border: 1px solid #d4d4d8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 4px;
  padding: 9px 10px;
  color: #0f5e8f;
  text-decoration: none;
}

.lang-switcher__item:hover,
.lang-switcher__item:focus-visible {
  background: #e9f2f9;
}

.lang-switcher__item--active {
  background: #a01722;
  color: #fff;
}

.lang-switcher__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  transform: scale(1.95);
  transform-origin: center;
}

.lang-switcher__item--active .lang-switcher__flag {
  background: transparent;
}

/* Mobile language switcher: direct choices, no nested dropdown */
.mobile-lang-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-lang-switcher__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 4px;
  padding: 10px 12px;
  background: #0f5e8f;
  color: #fff;
  text-decoration: none;
}

.mobile-lang-switcher__item:hover,
.mobile-lang-switcher__item:focus-visible {
  background: #0a4770;
}

.mobile-lang-switcher__item--active {
  background: #a01722;
}

.mobile-lang-switcher__item--active:hover,
.mobile-lang-switcher__item--active:focus-visible {
  background: #86131c;
}
