@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #0f4499;
  --dark: #082d6d;
  --pink: #e60f6b;
  --green: #22c55e;
  --text: #172033;
  --muted: #667085;
  --soft: #f4f7fb;
  --border: #d9e2f1;
  --shadow: 0 20px 50px rgba(15, 68, 153, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
}

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

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

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

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
}

.footer-logo-img {
  width: 230px;
  height: auto;
  display: block;
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.logo b,
.footer-logo b {
  display: block;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.logo small,
.footer-logo small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.55em;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}

.pill,
.btn.primary {
  background: var(--blue);
  color: #fff;
}

.pill {
  padding: 12px 18px;
  border-radius: 999px;
}

.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 18px;
}

.icon-box img {
  width: 25px;
  height: 25px;
  display: block;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn img {
  width: 28px;
  height: 28px;
  display: block;
}

.dropdown {
  position: relative;
}

.dropdown::after {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 100%;
  height: 26px;
}

.dropdown-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-title img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  width: 360px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s;
  z-index: 20;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}

.dropdown-item {
  display: block;
  position: relative;
  left: 0;
  padding: 16px 18px;
  border-radius: 16px;
  transition:
    left .22s cubic-bezier(.22,1,.36,1),
    background-color .22s ease;
}

.dropdown-item:hover {
  background: #f7f9fd;
  left:4px;
}

.dropdown-item + .dropdown-item {
  margin-top: 6px;
}

.dropdown-item b {
  display: block;
  color: var(--dark);
  margin-bottom: 4px;
  font-weight: 700;
}

.dropdown-item small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 500;
}

.dropdown-item .dropdown-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dropdown-item .dropdown-title img {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.dropdown-item small {
  padding-left: 26px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  padding: 86px 0;
  overflow: hidden;
  background: #f7f9fd;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.9) 34%,
      rgba(255, 255, 255, 0.55) 58%,
      rgba(255, 255, 255, 0.82) 100%
    ),
    url("../img/index.png") center right / cover no-repeat;
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 25%, rgba(15, 68, 153, 0.14), transparent 34%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

.tag {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag.light {
  color: #fff;
}

h1 {
  margin: 0 0 24px;
  color: var(--dark);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

h3 {
  color: var(--dark);
  font-size: 22px;
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.actions,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--border);
}

.white {
  background: #fff;
  color: var(--blue);
}

.full {
  width: 100%;
}

.chips span {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-weight: 700;
}

.lead-box,
.contact,
.checklist,
article {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

input,
select,
textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
}

.section {
  padding: 86px 0;
}

.soft {
  background: var(--soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.cards article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.cards div {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
  font-size: 26px;
}

.cards p,
.posts p,
.steps p {
  color: var(--muted);
  line-height: 1.65;
}

.cards a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.dark {
  background: linear-gradient(135deg, var(--dark), var(--blue));
  color: #fff;
}

.dark h2 {
  color: #fff;
}

.dark p {
  color: rgba(255, 255, 255, 0.82);
}

.checklist p {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.checklist p:last-child {
  border-bottom: 0;
}

.approved {
  min-width: 22px;
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.posts small {
  color: var(--pink);
  font-weight: 800;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.consent {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.consent input {
  width: auto;
  margin: 4px 0 0;
}

.top-consent {
  align-items: flex-start;
  margin-top: 2px;
}

.form-error {
  display: none;
  margin: -5px 0 12px;
  color: #d92d20;
  font-size: 13px;
  font-weight: 700;
}

.form-error.visible {
  display: block;
}

footer {
  padding: 48px 0;
  background: var(--dark);
  color: #fff;
}

.footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.35fr;
  gap: 42px;
  align-items: flex-start;
}

.footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.footer a {
    display: block;
    margin-bottom: 10px;
    white-space: nowrap;
    transition: color .2s;
}

.footer a:hover {
    color: #ffffff;
}

.footer p,
.footer a,
.footer small {
  color: rgba(255, 255, 255, 0.76);
}

.footer p {
  margin: 0 0 6px;
  line-height: 1.35;
}

.footer div p {
  font-size: 15px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-logo .footer-mark {
  background: #fff;
  color: var(--blue);
}

.footer-logo b {
  display: block;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.footer-logo small {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.45em;
}

.logo {
  height: 82px;
  display: flex;
  align-items: center;
}

.logo-img {
    height: 52px;
    width: auto;
}

.footer-brand p {
  max-width: 360px;
  line-height: 1.7;
}

.footer-brand small {
    display: block;
    opacity: .75;
    font-size: 13px;
}

.approved {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.approved img {
    width: 22px;
    height: 22px;
    stroke-width: 3px;
}

.home-publications-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.home-publications-head .btn {
  white-space: nowrap;
  padding: 15px 24px;
}

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

.home-post {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 68, 153, 0.08);
  transition: transform .25s, box-shadow .25s;
}

.home-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(15, 68, 153, 0.16);
}

.home-post-image {
  display: block;
  height: 210px;
  overflow: hidden;
}

.home-post-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.home-post:hover .home-post-image img {
  transform: scale(1.05);
}

.home-post-content {
  padding: 24px;
}

.post-category {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.post-category.communication {
  color: #2454c7;
  background: rgba(36, 84, 199, .08);
}

.post-category.property {
  color: #2f855a;
  background: rgba(47, 133, 90, .08);
}

.post-category.personal {
  color: #c53030;
  background: rgba(197, 48, 48, .08);
}

.home-post-content h3 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.3;
}

.home-post-content p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.post-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-weight: 800;
}

.post-link .link-arrow {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transform: translateY(1px);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #fff;
    border-radius: 50%;

    background: var(--blue);
    box-shadow: 0 12px 32px rgba(8, 45, 109, .32);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(14px);

    transition:
        opacity .25s,
        transform .25s,
        background-color .25s,
        visibility .25s;

    z-index: 999;
}

.scroll-top img {
    width: 20px;
    height: 20px;
    display: block;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--dark);
    transform: translateY(-3px);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 44px;

  background-color: #fff;
  background-image: url("../img/icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  background-size: 16px 16px;

  cursor: pointer;
}

select::-ms-expand {
  display: none;
}

select:hover,
select:focus,
select:focus-visible,
select:active {
  background-color: #fff;
  background-image: url("../img/icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  background-size: 16px 16px;
}

select:hover {
  border-color: rgba(15, 68, 153, .3);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 68, 153, .48);
  box-shadow: 0 0 0 4px rgba(15, 68, 153, .09);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link .link-arrow {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transform: translateY(1px);
}

.form-feedback {
  display: none;
  margin: 4px 0 16px;
  font-size: 13px;
  line-height: 1.55;
}

.form-feedback.visible {
  display: block;
}

.form-feedback.error {
  color: #d92d20;
  font-weight: 700;
}

.form-feedback.success {
  padding: 16px;
  border: 1px solid rgba(47, 133, 90, .22);
  border-radius: 14px;
  background: rgba(47, 133, 90, .08);
  color: #276749;
}

.form-feedback-title {
  display: block;
  margin-bottom: 6px;
  color: #276749;
  font-size: 15px;
}

.form-feedback.success p {
  margin: 0;
}

.form-feedback-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 133, 90, .18);
  border-radius: 12px;
  background: #fff;
}

.form-feedback-number {
  color: var(--dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.form-feedback-copy {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid rgba(15, 68, 153, .2);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.form-feedback-copy:hover {
  background: rgba(15, 68, 153, .05);
}

.form-submit-success:disabled {
  cursor: default;
  opacity: 1;
  background: var(--blue);
  color: #fff;
}

.home-publications-state {
  grid-column: 1 / -1;
  padding: 34px 24px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .65);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.home-publications-state.error {
  border-color: rgba(197, 48, 48, .2);
  background: rgba(197, 48, 48, .05);
  color: #c53030;
}

.post-category.news {
  color: #805ad5;
  background: rgba(128, 90, 213, .1);
}

.post-category.training {
  color: #287f92;
  background: rgba(51, 170, 201, .1);
}

.home-post-image.has-placeholder {
  background: #f7f9fd;
}

.home-post-image.has-placeholder img {
  padding: 44px;
  object-fit: contain;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-submit-success {
  gap: 8px;
}

.form-submit-success-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

@media (max-width: 520px) {
  .form-feedback-number-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-feedback-copy {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

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

  .menu-btn {
    display: block;
  }

  .menu {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow-x: hidden;
    max-height: calc(100vh - 102px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu.active {
    display: flex;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 0;
    margin-top: 0;
    padding: 0 8px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #f7f9fd;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: none !important;
    transition:
      max-height .3s ease,
      opacity .22s ease,
      margin-top .3s ease,
      padding .3s ease,
      visibility .22s ease;
    box-sizing: border-box;
  }

  .dropdown.mobile-open .dropdown-menu {
    max-height: 320px;
    margin-top: 8px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
  }

  .dropdown.mobile-open .dropdown-chevron {
    transform: rotate(180deg);
  }

  .dropdown-item {
    left: 0 !important;
    width: 100%;
    padding: 14px 12px;
    box-sizing: border-box;
  }

  .dropdown-item:hover {
    left: 0 !important;
    transform: none;
  }

  .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
  }

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

  .home-publications-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 981px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
  }
}

@media (max-width: 640px) {
  .section,
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.08;
  }

  .hero .lead {
    font-size: 17px;
    line-height: 1.65;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .cards,
  .posts,
  .steps,
  .row,
  .footer {
    grid-template-columns: 1fr;
  }

  .logo b {
    font-size: 22px;
  }

  .logo small {
    letter-spacing: 0.35em;
  }

  .home-posts {
    grid-template-columns: 1fr;
  }

  .scroll-top {
    right:18px;
    bottom:18px;
    width:46px;
    height:46px;
  }

  .scroll-top img {
    width:18px;
    height:18px;
  }

  .hero::before {
    background:
      linear-gradient(
        rgba(255, 255, 255, .92),
        rgba(255, 255, 255, .96)
      ),
      url("../img/index.png") center / cover no-repeat;
  }

  .hero .actions {
    flex-direction: column;
  }

  .hero .actions .btn {
    width: 100%;
  }

  .lead-box,
  .contact {
    padding: 22px;
    border-radius: 20px;
  }

  .lead-box h2 {
    font-size: 28px;
  }

  .cards article {
    min-height: auto;
  }

  .steps article {
    padding: 22px;
  }

  .checklist {
    padding: 22px;
  }

  #checklista .btn {
    width: 100%;
  }

  .home-publications-head .btn {
    width: 100%;
  }
}
