/* Variables for Corporate German Vibe */
:root {
  --color-primary: #0056d2; /* Strong Corporate Blue */
  --color-primary-hover: #0043a4;
  --color-accent: #ffb703; /* Alert/Gold Accent */
  --color-dark: #1a1a1a; /* Charcoal Black */
  --color-darker: #111111;
  --color-light: #f4f6f8; /* Light grayish blue */
  --color-white: #ffffff;

  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #e0e4e8;

  --font-main:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

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

  --radius: 8px; /* Sharp, professional corners */
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--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;
  border-radius: var(--radius);
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 800;
}

.section {
  padding: 100px 0;
}

.bg-light {
  background-color: var(--color-light);
}
.bg-dark {
  background-color: var(--color-dark);
}

.text-center {
  text-align: center;
}
.text-white {
  color: var(--color-white) !important;
}
.text-light {
  color: #cccccc !important;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

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

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 86, 210, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(0, 86, 210, 0.05);
}

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

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

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

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

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

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

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

.nav-btn {
  background-color: var(--color-light);
  color: var(--color-primary);
  padding: 10px 24px;
  border-radius: var(--radius);
}

.nav-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

/* Hero */
.hero {
  padding: 160px 0 100px;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--color-light);
  z-index: 0;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(0, 86, 210, 0.1);
  color: var(--color-primary);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.hero-title span {
  color: var(--color-primary);
}

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

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

.hero-visual {
  position: relative;
}

.hero-visual img {
  box-shadow: var(--shadow-lg);
}

.floating-stat {
  position: absolute;
  background: var(--color-white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  color: var(--color-dark);
  border-left: 4px solid var(--color-accent);
}

.floating-stat i {
  color: var(--color-primary);
}

.stat-top {
  bottom: -20px;
  left: -20px;
}

/* Split Layouts (Strategy, Income) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-layout.reverse .split-image {
  order: 2;
}

.split-layout.reverse .split-text {
  order: 1;
}

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

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

.feature-card {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

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

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

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

/* Region Box */
.region-box {
  max-width: 800px;
  margin: 0 auto;
}

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

.step-box {
  background: var(--color-light);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: left;
  border-top: 4px solid var(--color-primary);
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.step-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

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

.accordion-item {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  padding: 24px 30px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.accordion-trigger:hover {
  background: var(--color-light);
}

.accordion-trigger i {
  color: var(--color-primary);
  transition: transform 0.4s ease;
}

.accordion-item.active .accordion-trigger i {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 30px;
}

.accordion-item.active .accordion-panel {
  padding-bottom: 24px;
}

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

/* Contact Form - Column strictly, Max Width */
.form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.column-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

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

.form-row label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-dark);
}

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

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

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

.input-container input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

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

.checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 5px;
}

.checkbox-row input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.wrap-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
  white-space: normal; /* Обычный перенос везде */
  display: block;
  width: 100%;
  font-weight: 400 !important;
}

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

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

/* Footer */
.footer {
  background-color: var(--color-darker);
  color: var(--color-white);
  padding: 80px 0 30px;
}

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

.footer-brand {
  margin-bottom: 20px;
}

.footer-desc {
  color: #999999;
  margin-top: 16px;
  max-width: 350px;
  font-size: 0.95rem;
}

.footer-nav h4,
.footer-contacts h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-nav ul li,
.footer-contacts ul li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #999999;
  font-size: 0.95rem;
}

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

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

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #999999;
  font-size: 0.95rem;
}

.footer-contacts i {
  color: var(--color-accent);
  margin-top: 3px;
  width: 18px;
  height: 18px;
}

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

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -150%;
  left: 0;
  width: 100%;
  background: var(--color-white);
  padding: 20px 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: bottom 0.6s ease;
  border-top: 3px solid var(--color-primary);
}

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

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

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

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

.cookie-text h4 {
  margin-bottom: 4px;
}

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

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

#btn-accept-cookie {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .btn-burger {
    display: block;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-white);
    z-index: 1001;
    flex-direction: column;
    padding: 30px;
    transition: right var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .navbar.active {
    right: 0;
  }

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

  .mobile-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-dark);
  }
  .btn-close {
    display: block;
    background: none;
    border: none;
    color: var(--color-dark);
    cursor: pointer;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }
  .nav-link {
    font-size: 1.2rem;
  }
  .nav-btn {
    background: none;
    padding: 0;
    color: var(--color-primary);
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-container,
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero::before {
    display: none;
  }
  .hero-visual,
  .split-layout.reverse .split-image {
    order: -1;
  }
  .steps-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  .navbar {
    max-width: 100%;
  }

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

  .form-wrapper {
    padding: 30px 20px;
  }

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

  .cookie-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
  }
  #btn-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;
  }
}
