:root {
  --color-primary: #065f46; /* Emerald/Forest Green */
  --color-primary-dark: #044e3a;
  --color-accent: #d97706; /* Golden Amber */
  --color-accent-hover: #b45309;
  --color-bg: #ffffff;
  --color-bg-light: #f3f4f6;
  --color-text-main: #1f2937;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;

  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

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

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 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;
}

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

/* Utilities */
.text-center {
  text-align: center;
}
.bg-light {
  background-color: var(--color-bg-light);
}

.section {
  padding: 100px 0;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.section-heading {
  font-size: 2.8rem;
  margin-bottom: 24px;
}
.section-paragraph {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition);
}

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

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

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
}

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

.nav-contact-btn {
  padding: 10px 20px;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-primary) !important;
}
.nav-contact-btn:hover {
  background-color: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}

.mobile-nav-top,
.burger-btn,
.close-menu {
  display: none;
}

/* Hero */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.8rem;
  margin-bottom: 24px;
}

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

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

.hero-image-container {
  position: relative;
}

.hero-img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--color-bg);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 4px solid var(--color-accent);
}

.hero-badge i {
  color: var(--color-accent);
  width: 28px;
  height: 28px;
}

.hero-badge span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* Vision */
.vision-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.vision-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.expertise-card {
  background: var(--color-bg);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(6, 95, 70, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 24px;
}

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

.expertise-card p {
  color: var(--color-text-muted);
}

/* Finance Section */
.finance-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.finance-visual {
  position: relative;
}

.finance-visual img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.chart-illustration {
  position: absolute;
  top: -30px;
  right: -30px;
  background: var(--color-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  width: 200px;
  z-index: 2;
}

.chart-bar {
  flex: 1;
  background-color: var(--color-primary);
  border-radius: 2px 2px 0 0;
  opacity: 0.8;
}
.chart-bar:last-child {
  background-color: var(--color-accent);
  opacity: 1;
}

/* Markets */
.markets-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.markets-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

/* Process Steps */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-card {
  position: relative;
  padding-top: 50px;
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(6, 95, 70, 0.1);
  font-weight: bold;
  line-height: 1;
  z-index: 0;
}

.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.step-card p {
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* Insights/Blog */
.insights-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.insight-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  padding: 30px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-light);
  border-radius: 0 8px 8px 0;
  transition: background var(--transition);
}

.post-card:hover {
  background: #eef2f6;
}

.post-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.post-excerpt {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq-container {
  max-width: 800px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}

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

.faq-btn:hover {
  background: var(--color-bg-light);
}

.faq-btn i {
  transition: transform 0.4s ease;
  color: var(--color-accent);
}

.faq-item.active .faq-btn i {
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 30px;
  background: var(--color-bg);
}

.faq-item.active .faq-panel {
  padding-bottom: 30px;
}

.faq-panel p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.faq-panel p:last-child {
  margin-bottom: 0;
}

/* Contact Form - Strict Vertical Layout */
.contact-container {
  max-width: 700px;
}

.contact-form-box {
  background: var(--color-bg);
  padding: 50px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.input-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  background-color: #fafafa;
  transition: border-color var(--transition);
}

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

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

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

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.checkbox-long-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.checkbox-long-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Footer */
.footer {
  background-color: #111827; /* Dark Gray/Navy */
  color: #f9fafb;
  padding: 80px 0 30px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 60px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 20px;
}

.footer-about {
  color: #9ca3af;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.footer-links ul li,
.contact-info li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.95rem;
}

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

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #9ca3af;
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--color-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.highlight-contact {
  color: var(--color-accent) !important;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 10px;
  display: inline-block;
}

.footer-copyright {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -150%;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 24px 0;
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 4px solid var(--color-primary);
}

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

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

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cookie-icon {
  background-color: rgba(6, 95, 70, 0.1);
  color: var(--color-primary);
  padding: 12px;
  border-radius: 50%;
  display: flex;
}

.cookie-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.cookie-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.cookie-desc a {
  color: var(--color-primary);
  text-decoration: underline;
}

#accept-cookie {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-container,
  .vision-container,
  .finance-container,
  .markets-container,
  .insights-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image-container {
    order: -1;
  }
  .markets-image {
    order: -1;
  }
  .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-wrapper {
    grid-template-columns: 1fr 1fr;
  }
  .checkbox-long-text {
    white-space: normal;
  } /* Отменяем no-wrap на планшетах и мобильных для читаемости */
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .burger-btn {
    display: block;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 1001;
    flex-direction: column;
    padding: 24px;
    transition: left 0.4s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: bold;
  }

  .close-menu {
    display: block;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .nav-link {
    font-size: 1.2rem;
    display: block;
    width: 100%;
  }
  .nav-contact-btn {
    text-align: center;
    margin-top: 10px;
  }

  .hero {
    padding-top: 120px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .section-heading {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
  }

  .steps-wrapper {
    grid-template-columns: 1fr;
  }
  .chart-illustration {
    display: none;
  } /* Скрыть декоративный чарт на мобильных */

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

  .footer-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-brand .logo,
  .contact-info li {
    justify-content: center;
  }
  .footer-about {
    margin: 0 auto;
  }

  .cookie-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .cookie-content {
    flex-direction: column;
    align-items: center;
  }
  #accept-cookie {
    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;
}

.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;
  }
}
