:root {
  --color-primary: #003153; /* Prussian Blue */
  --color-primary-dark: #001f3f;
  --color-accent: #ff5a00; /* Tech Orange */
  --color-accent-hover: #e65100;

  --color-bg-main: #ffffff;
  --color-bg-light: #f4f5f7;

  --color-text-dark: #1a1a1a;
  --color-text-muted: #5a6270;
  --color-border: #e5e7eb;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Open Sans", sans-serif;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 49, 83, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 49, 83, 0.12);

  --transition: 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.bg-light {
  background-color: var(--color-bg-light);
}
.bg-accent {
  background-color: var(--color-accent);
  color: #fff;
}

.text-center {
  text-align: center;
}
.text-white {
  color: #fff !important;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

.section-head {
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.section-paragraph {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.bg-accent .section-paragraph {
  color: rgba(255, 255, 255, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.bar-1 {
  animation: grow 1.5s ease-in-out infinite alternate;
}
.bar-2 {
  animation: grow 1.5s ease-in-out 0.5s infinite alternate;
}
.bar-3 {
  animation: grow 1.5s ease-in-out 1s infinite alternate;
}

@keyframes grow {
  0% {
    height: 20px;
    y: 55px;
  }
  100% {
    height: 60px;
    y: 15px;
  }
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-desktop .nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-cta {
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: var(--color-accent);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-primary-dark);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease-in-out;
  overflow-y: auto;
}

.nav-mobile.active {
  right: 0;
}

.mobile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-head .brand-name {
  color: #fff;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  gap: 30px;
}

.mob-link {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
}

.mob-cta {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent);
  align-self: flex-start;
}

.hero-section {
  padding: 180px 0 100px;
  position: relative;
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40vw;
  height: 40vw;
  background-color: rgba(255, 90, 0, 0.05);
  border-radius: 50%;
  transform: translate(20%, 20%);
}

.hero-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px;
}

.hero-content {
  flex: 1 1 500px;
  position: relative;
  z-index: 2;
}

.badge-accent {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  margin-bottom: 30px;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1 1 400px;
  position: relative;
  z-index: 2;
}

.img-wrapper {
  position: relative;
  padding-bottom: 40px;
  padding-left: 40px;
}

.img-wrapper img {
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.img-wrapper::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-accent);
  z-index: 1;
}

.stat-card {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  color: #fff;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.stat-card i {
  color: var(--color-accent);
  width: 36px;
  height: 36px;
}

.stat-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.insight-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 80px;
}

.insight-visual {
  flex: 1 1 400px;
}

.insight-visual img {
  box-shadow: var(--shadow-md);
}

.insight-data {
  flex: 1 1 500px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background-color: var(--color-bg-main);
  padding: 50px 40px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  border-top: 6px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--color-accent);
}

.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 49, 83, 0.05);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.icon-box i {
  width: 32px;
  height: 32px;
}

.icon-container-alt {
  background-color: rgba(255, 90, 0, 0.1);
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.finance-grid {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-wrap: wrap;
  gap: 80px;
}

.finance-content {
  flex: 1 1 500px;
}

.mt-btn {
  margin-top: 24px;
}

.finance-image {
  flex: 1 1 400px;
}

.finance-image img {
  box-shadow: var(--shadow-md);
}

.geo-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-primary-dark);
  padding: 80px 40px;
  position: relative;
}

.geo-icon {
  width: 60px;
  height: 60px;
  color: var(--color-accent);
  margin-bottom: 30px;
}

.geo-text-block {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.geo-text-block p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.steps-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.step-card {
  background-color: var(--color-bg-light);
  padding: 40px;
  position: relative;
  border: 1px solid var(--color-border);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.2;
  margin-bottom: 20px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.faq-wrap {
  max-width: 800px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acc-item {
  background-color: var(--color-bg-main);
  border: 1px solid var(--color-border);
}

.acc-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.acc-header:hover {
  background-color: rgba(0, 49, 83, 0.02);
}

.acc-header i {
  color: var(--color-accent);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.acc-item.active .acc-header i {
  transform: rotate(45deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.acc-content {
  padding: 0 30px 30px;
}

.acc-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.acc-content p:last-child {
  margin-bottom: 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
}

.contact-info {
  flex: 1 1 400px;
}

.info-blocks {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-line {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-line i {
  color: var(--color-accent);
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

.info-line strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.info-line span {
  color: var(--color-text-muted);
}

.contact-form-wrap {
  flex: 1 1 400px;
  background-color: var(--color-bg-light);
  padding: 50px;
  border-top: 6px solid var(--color-primary);
}

.form-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-col label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap i {
  position: absolute;
  left: 16px;
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
}

.input-wrap input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.input-wrap input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.captcha-section {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.check-wrap {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
}

.check-wrap input {
  margin-top: 6px;
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.legal-text {
  font-size: 0.85rem !important;
  color: var(--color-text-muted) !important;
  line-height: 1.6;
  cursor: pointer;
  white-space: normal;
  font-weight: 400 !important;
}

.legal-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 20px;
}

.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.foot-brand-col .brand {
  margin-bottom: 24px;
}

.foot-logo rect[stroke="#FF5A00"] {
  stroke: #fff;
}

.foot-desc {
  color: #a0b0c0;
  font-size: 0.95rem;
  max-width: 350px;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.foot-links li,
.foot-contacts li {
  margin-bottom: 16px;
}

.foot-links a {
  color: #a0b0c0;
  transition: var(--transition);
}

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

.foot-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #a0b0c0;
}

.foot-contacts i {
  color: var(--color-accent);
  margin-top: 2px;
}

.contact-page-link {
  color: var(--color-accent) !important;
  text-decoration: underline;
  font-weight: 600;
}

.foot-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  color: #708090;
  font-size: 0.9rem;
}

.cookie-popup {
  position: fixed;
  bottom: -150%;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 24px 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  z-index: 3000;
  transition: bottom 0.5s ease-in-out;
  border-top: 4px solid var(--color-primary);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 400px;
}

.cookie-icon-bg {
  background-color: rgba(0, 49, 83, 0.1);
  color: var(--color-primary);
  padding: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cookie-text-block h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.cookie-text-block p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-text-block a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }
  .burger {
    display: block;
  }

  .hero-grid,
  .insight-flex,
  .finance-grid,
  .contact-container {
    flex-direction: column;
    gap: 50px;
  }

  .hero-image,
  .insight-visual,
  .finance-image {
    order: -1;
    width: 100%;
  }

  .hero-title {
    font-size: 3rem;
  }

  .img-wrapper {
    padding-bottom: 20px;
    padding-left: 20px;
  }
  .img-wrapper::before {
    top: -10px;
    right: -10px;
  }
  .stat-card {
    position: relative;
    left: 0;
    margin-top: -30px;
    width: max-content;
    margin-left: auto;
  }

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

@media (max-width: 768px) {
  .header-wrap {
    height: 75px;
  }
  .hero-section {
    padding-top: 130px;
  }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.2rem;
  }

  .geo-wrapper {
    padding: 50px 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .contact-form-wrap {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .foot-brand-col .brand,
  .foot-contacts li {
    justify-content: center;
  }
  .foot-desc {
    margin: 16px auto 0;
  }

  .cookie-wrap {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
  }
  #btn-cookie-accept {
    width: 100%;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    text-align: left;
    font-size: 20px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  h3 {
    font-size: 20px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
  display: flex;
  justify-content: center;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
