:root {
  --bg: #f6f8fd;
  --surface: #ffffff;
  --text: #10182f;
  --text-strong: #0b1226;
  --muted: #667085;
  --nav: #3a4258;
  --blue: #0b3fd0;
  --blue-hover: #0936b6;
  --navy: #07143c;
  --navy-hover: #040d2a;
  --badge-bg: #e7effe;
  --badge-text: #2f62e6;
  --line: #e6ebf4;
  --icon-bg: #f4f7fc;
  --icon-line: #d3dcee;
  --footer-top: #1b3f74;
  --footer-bottom: #14325e;
  --shadow: 0 10px 40px rgba(28, 55, 110, 0.06);
  --radius-xl: 32px;
  --radius-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: #f9fafd;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  padding-top: 18px;
}

.header__inner {
  gap: 28px;
  justify-self: left;
  background: #fff;
  border-radius: 10px;
  padding: 12px 28px;
  box-shadow: 0 8px 28px rgba(28, 55, 110, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-self: start;
}

.logo__word {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.02rem;
  color: var(--navy);
}

.logo--light .logo__word {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link,
.nav__link--btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--nav);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.nav__link:hover,
.nav__link--btn:hover {
  color: var(--navy);
}

.nav__item--dropdown {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.nav__link--btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__chevron,
.lang svg {
  width: 10px;
  height: 10px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 5;
}

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown {
  display: grid;
}

.dropdown a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.dropdown a:hover {
  background: var(--badge-bg);
}

.header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switcher {
  position: relative;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d9e1ef;
  background: #fff;
  color: var(--nav);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang__current {
  min-width: 2ch;
}

.lang-switcher .nav__chevron {
  width: 10px;
  height: 10px;
}

.lang-switcher.is-open .lang-dropdown {
  display: grid;
}

.lang-dropdown {
  left: auto;
  right: 0;
  min-width: 160px;
}

.lang-dropdown__option {
  width: 100%;
  border: 0;
  background: none;
  color: var(--nav);
  text-align: left;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.lang-dropdown__option:hover,
.lang-dropdown__option.is-active {
  background: var(--badge-bg);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: 0.18s ease;
}

.btn--sm {
  height: 42px;
  padding: 0 18px;
  font-size: 0.86rem;
}

.btn--navy,
.btn--blue {
  color: #fff;
}

.btn--navy {
  background: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-hover);
}

.btn--blue {
  background: var(--blue);
}

.btn--blue:hover {
  background: var(--blue-hover);
}

.btn--outline {
  background: #fff;
  color: #1d3a86;
  border-color: #b7c6ea;
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe2ee;
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.hero {
  padding: 28px 0 18px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 3.7vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text-strong);
  font-weight: 800;
}

.hero__lead {
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero__visual img {
  width: min(100%, 680px);
  margin-right: -12px;
}

.panel {
  padding: 4px 0 0;
}

.panel__card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid #eef2f8;
  padding: 26px 26px 8px;
  overflow: hidden;
}

.panel__title {
  margin: 0 6px 18px;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-strong);
}

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: start;
  padding: 16px 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fcfdff;
  min-height: 118px;
}

.service__icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #c9d6f3;
  background: var(--icon-bg);
  display: grid;
  place-items: center;
}

.service__icon svg {
  width: 24px;
  height: 24px;
}

.service__body {
  grid-column: 2;
}

.service h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: normal;
  text-wrap: balance;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.service__more {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: end;
  color: #8b93a7;
}

.service__more svg {
  width: 18px;
  height: 18px;
}

.service:hover {
  border-color: #d5def0;
}

.cta-band {
  position: relative;
  background: #f2f6fd;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  padding: 28px 220px 28px 18px;
  border-radius: 15px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.28rem, 1.8vw, 1.62rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  max-width: 17.5rem;
}

.btn--cta {
  height: 48px;
  padding: 0 22px;
}

.cta-band__plants {
  position: absolute;
  right: -22px;
  opacity: 0.6;
  pointer-events: none;
}
.cta-band img {
  height: 80%;
}

.footer {
  background: linear-gradient(180deg, var(--footer-top), var(--footer-bottom));
  color: #d7e3f7;
  padding: 28px 0 32px;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}
.footer__plant {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 0;
  width: min(1240px, calc(100% - 48px));
  transform: translateX(-50%);
  height: auto;
  display: block;
  pointer-events: none;
}
.footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.9fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.footer .logo {
  margin-bottom: 8px;
}

.footer__brand p {
  margin: 0;
  font-size: 0.82rem;
  color: #b7c6e0;
}

.footer__qr {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__qr-frame {
  width: 78px;
  height: 78px;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
  flex-shrink: 0;
}

.footer__qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.footer__qr p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8eef8;
  line-height: 1.4;
}

.footer__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer__icon,
.footer__icon svg {
  width: 22px;
  height: 22px;
}

.footer__icon {
  margin-top: 2px;
  color: #c9d7ef;
}

.footer__label {
  display: block;
  font-size: 0.78rem;
  color: #9eb0cc;
  margin-bottom: 2px;
}

.footer__row a {
  color: #fff;
  font-weight: 700;
}

.footer__row a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr 1fr;
    padding-right: 24px;
    background: #f2f6fe;
    border-radius: 15px;
  }

  .cta-band .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .cta-band__plants {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 24px;
    right: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 10;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link,
  .nav__link--btn {
    padding: 10px 12px;
    text-align: left;
    border-radius: 10px;
  }

  .nav__link:hover,
  .nav__link--btn:hover {
    background: var(--badge-bg);
  }

  .nav__item--dropdown > .dropdown {
    position: static;
    display: grid;
    box-shadow: none;
    background: none;
    border: 0;
    padding: 0 0 0 8px;
  }

  .lang-dropdown {
    position: absolute;
    right: 0;
    left: auto;
    display: none;
    min-width: 160px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .lang-switcher.is-open .lang-dropdown {
    display: grid;
  }

  .nav__item--dropdown {
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .hero__grid,
  .footer__grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .footer__plant {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 200%;
    max-width: none;
    transform: translateX(-50%);
    height: auto;
    max-height: 72%;
    object-position: center bottom;
    filter: brightness(0.7) saturate(1.08);
  }

  .hero h1 br,
  .hero__lead br,
  .cta-band h2 br {
    display: none;
  }

  .header__actions .btn {
    display: none;
  }

  .hero__visual {
    justify-content: center;
  }

  .hero__visual img {
    margin-right: 0;
  }
}

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