:root {
  --ink: #111827;
  --ink-2: #1f2937;
  --paper: #f7f3ea;
  --paper-2: #ebe7dc;
  --dark: #07131c;
  --dark-2: #0d2230;
  --cyan: #21c7b8;
  --cyan-dark: #0e8d86;
  --amber: #f0b84f;
  --muted: #6a7280;
  --white: #ffffff;
  --line-dark: rgba(255, 255, 255, 0.15);
  --line-light: rgba(17, 24, 39, 0.12);
  --shadow: 0 28px 60px rgba(7, 19, 28, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.48;
}

button {
  font: inherit;
}

.container {
  margin: 0 auto;
  max-width: 1220px;
  width: calc(100% - 56px);
}

.header {
  background: rgba(247, 243, 234, 0.96);
  border-bottom: 1px solid var(--line-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.logo span {
  border: 0;
  padding: 0;
  position: relative;
}

.logo span::before {
  background: var(--cyan);
  content: "";
  display: inline-block;
  height: 30px;
  margin-right: 12px;
  transform: translateY(5px);
  width: 5px;
}

.menu {
  align-items: center;
  display: flex;
  gap: 30px;
}

.menu a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}

.menu a:hover {
  color: var(--cyan-dark);
}

.burger {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}

.burger span {
  background: var(--ink);
  height: 2px;
  transition: 0.3s;
  width: 26px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
  background:
    linear-gradient(112deg, rgba(7, 19, 28, 0.98) 0%, rgba(7, 19, 28, 0.88) 42%, rgba(33, 199, 184, 0.24) 100%),
    url("/static/images/Фото/background-hero.jpg") center/cover;
  color: var(--white);
  overflow: hidden;
  padding: 86px 0 0;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  bottom: 0;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  width: 100%;
}

.hero-grid {
  align-items: end;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: 560px;
  padding-bottom: 64px;
}

.hero-text {
  max-width: 820px;
}

.hero-kicker {
  color: var(--amber);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.02;
}

.hero-text > p:not(.hero-kicker) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 21px;
  margin-top: 28px;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.more-btn,
.contact-btn,
.faq-contact-btn,
.outline-btn {
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 800;
  min-height: 50px;
  padding: 0 24px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.more-btn,
.contact-btn,
.faq-contact-btn {
  background: var(--cyan);
  color: #03100f;
}

.outline-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.more-btn:hover,
.contact-btn:hover,
.faq-contact-btn:hover,
.outline-btn:hover {
  background: var(--amber);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-aside {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  gap: 1px;
}

.hero-aside div {
  background: rgba(255, 255, 255, 0.07);
  padding: 26px 28px;
}

.hero-aside span {
  color: var(--cyan);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-aside p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 700;
}

.hero-strip {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 28px;
}

.hero-strip span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  cursor: default;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  text-transform: uppercase;
}

.services,
.solutions,
.about {
  background: var(--paper);
  color: var(--ink);
}

.services {
  padding: 104px 0;
}

.section-head {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: 0.78fr 0.62fr;
  margin-bottom: 42px;
}

.section-head p {
  color: var(--muted);
  font-size: 19px;
}

.section-title {
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}

.card {
  background-position: center;
  background-size: cover;
  border-radius: 2px;
  color: var(--white);
  cursor: pointer;
  min-height: 280px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.card:nth-child(1),
.card:nth-child(4) {
  grid-column: span 3;
}

.card:nth-child(2),
.card:nth-child(3),
.card:nth-child(5) {
  grid-column: span 2;
}

.card::before {
  background: linear-gradient(180deg, rgba(7, 19, 28, 0.26), rgba(7, 19, 28, 0.9));
  content: "";
  inset: 0;
  position: absolute;
}

.card::after {
  background: var(--cyan);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0;
  width: 0;
  transition: width 0.25s;
}

.card.active::after,
.card:hover::after {
  width: 100%;
}

.card-header,
.card-body {
  position: relative;
  z-index: 2;
}

.card-header {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px;
}

.card-header h3 {
  color: var(--white);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
  max-width: 430px;
}

.icon {
  align-items: center;
  background: rgba(240, 184, 79, 0.95);
  border-radius: 2px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 24px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  transition: 0.25s;
  width: 38px;
}

.card-body {
  bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  left: 0;
  max-width: 560px;
  padding: 0 28px 28px;
  position: absolute;
}

.card.active .icon {
  background: var(--cyan);
  transform: rotate(45deg);
}

.card1 { background-image: url("/static/images/Фото/conersionnie_operacii.jpg"); }
.card2 { background-image: url("/static/images/Фото/Market-making.jpg"); }
.card3 { background-image: url("/static/images/Фото/predostavlenie_likvidnosti.jpg"); }
.card4 { background-image: url("/static/images/Фото/Sopr_CFA.jpg"); }
.card5 { background-image: url("/static/images/Фото/Structurirovanie_sdelok.jpg"); }

.process {
  background:
    linear-gradient(90deg, rgba(7, 19, 28, 0.92), rgba(13, 34, 48, 0.78)),
    url("/static/images/Фото/advantages-bg.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 104px 0;
}

.process h2 {
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  margin-bottom: 42px;
}

.steps {
  counter-reset: advantage;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0;
  color: var(--ink);
  display: grid;
  gap: 18px;
  min-height: 260px;
  padding: 28px;
  position: relative;
}

.step.green {
  background: var(--cyan);
  color: #021312;
}

.step::before {
  color: var(--dark);
  content: counter(advantage, decimal-leading-zero);
  counter-increment: advantage;
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.step.green::before {
  color: #021312;
}

.step-icon {
  display: none;
}

.step h4 {
  font-size: 22px;
  line-height: 1.16;
}

.step p {
  color: rgba(17, 24, 39, 0.76);
}

.step.green p {
  color: rgba(2, 19, 18, 0.78);
}

.solutions {
  background: var(--paper-2);
  padding: 104px 0;
}

.solutions .section-title {
  max-width: 880px;
  margin-bottom: 42px;
}

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

.solution-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.solution-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.card-image {
  height: 170px;
  position: relative;
}

.card-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.icon-box {
  align-items: center;
  background: var(--amber);
  border-radius: 2px;
  bottom: -24px;
  display: flex;
  height: 52px;
  justify-content: center;
  left: 22px;
  position: absolute;
  width: 52px;
  z-index: 10;
}

.icon-box img {
  height: 25px;
  object-fit: contain;
  width: 25px;
}

.card-content {
  color: var(--ink);
  min-height: 250px;
  padding: 44px 22px 26px;
}

.card-content h3 {
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.card-content p {
  color: var(--muted);
  font-size: 16px;
}

.section-ps {
  border-left: 5px solid var(--cyan);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.32;
  margin-top: 36px;
  max-width: 940px;
  padding-left: 24px;
}

.about {
  background: var(--paper);
  padding: 104px 0;
}

.about-wrapper {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
}

.about-image {
  border-radius: 2px;
  height: 470px;
  overflow: hidden;
}

.about-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-content {
  background: var(--dark);
  color: var(--white);
  margin-left: -48px;
  padding: 54px;
  position: relative;
}

.about-content h2 {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.about-content p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.about-bold {
  color: var(--white) !important;
  font-size: 30px !important;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
}

.faq {
  background:
    linear-gradient(rgba(7, 19, 28, 0.88), rgba(7, 19, 28, 0.82)),
    url("/static/images/Фото/FAQ-BG.jpg") center/cover;
  padding: 104px 0;
}

.faq-title {
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 38px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-left: 5px solid rgba(33, 199, 184, 0.84);
  border-radius: 0;
  cursor: pointer;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.25s;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.faq-question {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px;
}

.faq-question p {
  color: var(--white);
  flex: 1;
  font-size: 20px;
  font-weight: 800;
}

.bullet {
  background: var(--amber);
  display: inline-block;
  flex: 0 0 12px;
  height: 12px;
  width: 12px;
}

.arrow {
  align-items: center;
  background: var(--cyan);
  border-radius: 2px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 38px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  transition: 0.3s;
  width: 38px;
}

.faq-answer {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: 0.4s;
}

.faq-item.active .faq-answer {
  max-height: 220px;
  padding: 0 24px 24px 54px;
}

.faq-item.active .arrow {
  background: var(--amber);
  transform: rotate(90deg);
}

.faq-contac-us {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 38px;
}

.faq-contact-title {
  color: var(--white);
  font-size: 30px;
}

.contacts {
  background: var(--dark);
  color: var(--white);
  padding: 104px 0;
}

.contacts-wrapper {
  align-items: stretch;
  display: grid;
  gap: 44px;
  grid-template-columns: 0.95fr 1.05fr;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts-info h2 {
  color: var(--white);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  margin-bottom: 10px;
}

.contact-item {
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  display: flex;
  font-size: 19px;
  font-weight: 800;
  gap: 14px;
  padding: 15px 0;
  text-decoration: none;
  transition: 0.3s;
}

a.contact-item:hover {
  color: var(--cyan);
}

.contact-item img {
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.details {
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.details div {
  border-bottom: 1px solid var(--line-dark);
  display: grid;
  gap: 14px;
  grid-template-columns: 190px 1fr;
  padding: 14px 16px;
}

.details dt {
  color: var(--amber);
  font-weight: 800;
}

.details dd {
  color: rgba(255, 255, 255, 0.82);
}

.contacts-map {
  min-height: 560px;
}

.contacts-map img {
  border-radius: 2px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.footer {
  background: #030910;
  border-top: 1px solid var(--line-dark);
  color: var(--white);
  line-height: 1.5;
  padding: 42px 0;
}

.footer-row {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-align: center;
}

.policy-link {
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.policy-link:hover,
.pd-link {
  color: var(--cyan);
}

.modal {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: 0.3s;
  width: 100%;
  z-index: 1000;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.58);
  height: 100%;
  position: absolute;
  width: 100%;
}

.modal-content {
  background: var(--paper);
  border-radius: 2px;
  color: var(--ink);
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: scale(0.92);
  transition: 0.3s;
  width: min(640px, 90vw);
  z-index: 2;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  position: absolute;
  right: 18px;
  top: 12px;
}

.modal-text {
  line-height: 1.55;
  margin-top: 16px;
}

.modal-text p + p {
  margin-top: 16px;
}

@media (max-width: 1120px) {
  .hero-grid,
  .section-head,
  .about-wrapper,
  .contacts-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    border-left: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .about-content {
    margin-left: 0;
  }

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

@media (max-width: 860px) {
  .container {
    width: calc(100% - 32px);
  }

  .burger {
    display: flex;
  }

  .menu {
    align-items: stretch;
    background: var(--paper);
    border-top: 1px solid var(--line-light);
    flex-direction: column;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 12px 24px 20px;
    position: absolute;
    top: 100%;
    transform: translateY(-10px);
    transition: 0.3s;
    visibility: hidden;
    width: 100%;
  }

  .menu a {
    border-bottom: 1px solid var(--line-light);
    padding: 14px 0;
  }

  .menu.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    gap: 36px;
    min-height: auto;
    padding-bottom: 44px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text > p:not(.hero-kicker) {
    font-size: 18px;
  }

  .hero-aside,
  .hero-strip,
  .steps,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .services,
  .process,
  .solutions,
  .about,
  .faq,
  .contacts {
    padding: 72px 0;
  }

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

  .card:nth-child(n) {
    grid-column: span 1;
  }

  .card {
    min-height: 330px;
  }

  .step {
    min-height: 0;
  }

  .about-image {
    height: 300px;
  }

  .about-content {
    padding: 32px;
  }

  .details div {
    grid-template-columns: 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 70px;
  }

  .logo {
    font-size: 22px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .section-ps br {
    display: none;
  }

  .hero-actions,
  .faq-contac-us {
    align-items: stretch;
    flex-direction: column;
  }

  .more-btn,
  .contact-btn,
  .faq-contact-btn,
  .outline-btn {
    width: 100%;
  }

  .card-header {
    padding: 22px;
  }

  .card-body {
    font-size: 16px;
    padding: 0 22px 22px;
  }

  .faq-question {
    padding: 18px;
  }

  .faq-question p {
    font-size: 17px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 20px;
  }
}
