 :root {
      --background-color: rgb(240 240 245);
      --surface-color: rgb(240 240 245);
      --text-primary: rgb(30 30 35);
      --text-secondary: rgb(100 100 110);
      --primary-color: rgb(216 181 38);
      --primary-light-color: rgb(224 206 132);
      --primary-dark-color: rgb(151 126 26);
      --secondary-color: rgb(152 191 63);
      --accent-color: rgb(59 92 220);
      --accent-text-color: rgb(255 255 255);
      --shadow-light: rgba(255, 255, 255, 0.8);
      --shadow-dark: rgba(0, 0, 0, 0.15);
      --card-box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
      --card-border-radius: 8px;
      --button-box-shadow: 4px 4px 8px rgba(0,0,0,0.2), -4px -4px 8px rgba(255,255,255,0.7);
      --icon-container-box-shadow: inset 4px 4px 8px rgba(0,0,0,0.1), inset -4px -4px 8px rgba(255,255,255,0.8);
    }
    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      padding: 0;
      background-color: var(--background-color);
      color: var(--text-primary);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
      color: var(--text-primary);
      margin-top: 0;
    }
    a {
      color: var(--accent-color);
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }
    section {
      padding: 5rem 1.5rem; /* Base for section_spacing */
    }
    .section-heading {
      text-align: center;
      margin-bottom: 3.5rem;
      font-size: 2.5rem;
      line-height: 1.2;
    }
    .section-description {
      text-align: center;
      max-width: 700px;
      margin: -2rem auto 3.5rem auto;
      color: var(--text-secondary);
      font-size: 1.1rem;
    }

    /* Header */
    custom-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem;
      background-color: var(--surface-color);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow like neomorphism, but top is light */
      position: sticky;
      top: 0;
      z-index: 1000;
      transition: all 0.3s ease;
    }
    custom-header .brand {
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--text-primary);
    }
    custom-header nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: 2rem;
    }
    custom-header nav a {
      color: var(--text-secondary);
      font-weight: 400;
      transition: color 0.3s ease;
    }
    custom-header nav a:hover {
      color: var(--accent-color);
      text-decoration: none;
    }
    custom-header .nav-cta {
      display: none; /* Hidden on mobile */
    }
    /* Mobile navigation */
    .menu-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 2rem;
      cursor: pointer;
      color: var(--text-primary);
    }
    @media (max-width: 768px) {
      custom-header {
        padding: 1rem;
      }
      custom-header nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
      }
      custom-header nav.open {
        display: flex;
      }
      custom-header nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
      }
      custom-header nav a {
        padding: 0.5rem 1rem;
        display: block;
      }
      .menu-toggle {
        display: block;
      }
      custom-header .nav-cta {
        display: block; /* Show CTA as part of mobile nav */
        text-align: center;
        margin-top: 1rem;
      }
      custom-header .nav-cta .btn {
          width: 80%;
          margin: 0 auto;
      }
    }

    /* Buttons */
    .btn {
      display: inline-block;
      padding: 0.8rem 1.8rem;
      font-size: 1rem;
      font-weight: 700;
      text-align: center;
      text-decoration: none;
      border: none;
      border-radius: var(--card-border-radius);
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .btn.solid-accent {
      background-color: var(--accent-color);
      color: var(--accent-text-color);
      box-shadow: var(--button-box-shadow);
    }
    .btn.solid-accent:hover {
      background-color: var(--primary-light-color); /* Subtle change */
      box-shadow: 2px 2px 5px rgba(0,0,0,0.1), -2px -2px 5px rgba(255,255,255,0.6); /* Softer shadow */
      transform: translateY(-2px);
    }
    .btn.neumorphic-raised {
      background-color: var(--surface-color);
      color: var(--text-primary);
      box-shadow: var(--card-box-shadow);
    }
    .btn.neumorphic-raised:hover {
      box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light); /* Inset on hover for pressed effect */
      transform: scale(0.98);
    }

    /* Neomorphic card styles */
    .card {
      background-color: var(--surface-color);
      border-radius: var(--card-border-radius);
      box-shadow: var(--card-box-shadow);
      padding: 2rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
    }
    .card:hover {
      transform: scale(1.03); /* Slightly larger scale than specified to allow for touch-friendly effects */
      box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    }

    /* Icon container */
    .icon-container {
      width: 80px;
      height: 80px;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: var(--background-color);
      box-shadow: var(--icon-container-box-shadow);
      margin: 0 auto 1.5rem auto;
      position: relative; /* For clip-path */
    }
    .icon-container.hexagon {
      clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    }
    .icon-container img {
      max-width: 60%;
      max-height: 60%;
      transition: transform 0.3s ease;
    }
    .card:hover .icon-container img {
      transform: scale(1.1);
    }

    /* Hero section */
    custom-hero {
      display: flex;
      flex-direction: column;
      gap: 3rem;
      padding: 5rem 1.5rem;
      background-color: var(--surface-color);
      align-items: center;
    }
    custom-hero .hero-content {
      text-align: center;
      max-width: 600px;
    }
    custom-hero .hero-image {
      max-width: 100%;
      border-radius: var(--card-border-radius);
      box-shadow: var(--card-box-shadow);
      transition: transform 0.5s ease;
    }
    custom-hero .hero-image:hover {
      transform: translateY(-8px);
    }
    custom-hero h1 {
      font-size: 2.8rem;
      line-height: 1.2;
      margin-bottom: 1rem;
    }
    custom-hero p {
      font-size: 1.15rem;
      color: var(--text-secondary);
      margin-bottom: 2rem;
    }
    custom-hero .cta-group {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      justify-content: center;
    }

    @media (min-width: 768px) {
      custom-hero {
        flex-direction: row-reverse; /* image on left, text on right */
        text-align: left;
        padding-left: 2rem;
        padding-right: 2rem;
      }
      custom-hero .hero-content {
        flex: 1;
        text-align: left;
      }
      custom-hero .hero-image-wrapper {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 2rem; /* Spacing between image and text */
      }
      custom-hero .hero-image {
        max-width: 500px;
        height: auto;
      }
      custom-hero h1 {
        font-size: 3.5rem;
      }
      custom-hero .cta-group {
        flex-direction: row;
        gap: 1.5rem;
      }
    }

    /* Services section */
    custom-services .card-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      padding-top: 1rem;
    }
    @media (min-width: 768px) {
      custom-services .card-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (min-width: 1024px) {
      custom-services .card-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }
    custom-services .service-card h3 {
      font-size: 1.5rem;
      text-align: center;
      margin-bottom: 1rem;
    }
    custom-services .service-card p {
      color: var(--text-secondary);
      text-align: center;
      font-size: 1rem;
    }

    /* Wealth Management section & Contact section (2-column layout) */
    .split-section {
      display: flex;
      flex-direction: column;
      gap: 3rem;
      align-items: center;
      padding: 5rem 1.5rem;
    }
    .split-section .content-column, .split-section .image-column {
      flex: 1;
      max-width: 100%;
      text-align: center;
    }
    .split-section .image-column img {
      max-width: 100%;
      height: auto;
      border-radius: var(--card-border-radius);
      box-shadow: var(--card-box-shadow);
      transition: transform 0.5s ease;
    }
    .split-section .image-column img:hover {
      transform: scale(1.02);
    }
    .split-section .content-column h2 {
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
    }
    .split-section .content-column p {
      font-size: 1.1rem;
      line-height: 1.7;
      color: var(--text-secondary);
    }
    @media (min-width: 768px) {
      .split-section {
        flex-direction: row;
        text-align: left;
      }
      .split-section.reverse-columns {
        flex-direction: row-reverse;
      }
      .split-section .content-column, .split-section .image-column {
        max-width: 50%;
      }
      .split-section .image-column {
        padding-left: 2rem;
      }
      .split-section.reverse-columns .image-column {
        padding-left: 0;
        padding-right: 2rem;
      }
    }

    custom-contact .contact-info ul {
      list-style: none;
      padding: 0;
    }
    custom-contact .contact-info li {
      margin-bottom: 1rem;
      font-size: 1.1rem;
      color: var(--text-secondary);
    }
    custom-contact .contact-info li strong {
      display: block;
      color: var(--text-primary);
      margin-bottom: 0.3rem;
    }
    custom-contact .contact-info a {
      color: var(--accent-color);
      word-break: break-all;
    }
    custom-contact .contact-map-wrapper {
        position: relative;
        padding-bottom: 75%; /* 4:3 Aspect Ratio */
        height: 0;
        overflow: hidden;
        border-radius: var(--card-border-radius);
      box-shadow: var(--card-box-shadow);
    }
    custom-contact iframe {
        position: absolute;
        top:0;
        left:0;
        width:100% !important;
        height:100% !important;
        border:0;
    }


    /* Testimonials */
    custom-testimonials .card-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      padding-top: 1rem;
    }
    @media (min-width: 768px) {
      custom-testimonials .card-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    custom-testimonials .testimonial-card {
      text-align: center;
      padding: 2.5rem 2rem;
    }
    custom-testimonials .testimonial-card .quote {
      font-size: 1.1rem;
      color: var(--text-primary);
      margin-bottom: 1.5rem;
      font-style: italic;
    }
    custom-testimonials .testimonial-card .author-meta {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    custom-testimonials .testimonial-card .author-image {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 1rem;
      box-shadow: 2px 2px 5px rgba(0,0,0,0.1), -2px -2px 5px rgba(255,255,255,0.6);
      transition: transform 0.3s ease;
    }
    custom-testimonials .testimonial-card:hover .author-image {
      transform: scale(1.05) rotate(2deg);
    }
    custom-testimonials .testimonial-card .author-name {
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.2rem;
    }
    custom-testimonials .testimonial-card .author-role {
      font-size: 0.9rem;
      color: var(--text-secondary);
    }

    /* Footer */
    custom-footer {
      background-color: var(--text-primary); /* Dark background for contrast */
      color: var(--background-color); /* Light text */
      padding: 2.5rem 1.5rem;
      text-align: center;
      font-size: 0.9rem;
    }
    custom-footer .footer-content {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
    }
    custom-footer .footer-links ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }
    custom-footer .footer-links a {
      color: var(--background-color);
      transition: color 0.3s ease;
    }
    custom-footer .footer-links a:hover {
      color: var(--primary-light-color);
      text-decoration: underline;
    }
    @media (min-width: 768px) {
      custom-footer .footer-content {
        flex-direction: row;
        justify-content: space-between;
      }
      custom-footer .footer-links ul {
        flex-direction: row;
        gap: 1.5rem;
      }
    }

    /* Cookie Consent Banner */
    #cookie-consent-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: rgba(30, 30, 35, 0.9); /* Darker, slightly transparent */
      color: var(--background-color);
      padding: 1rem;
      text-align: center;
      font-size: 0.9rem;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }
    #cookie-consent-banner p {
      margin: 0;
      flex-grow: 1;
    }
    #cookie-consent-banner .btn {
      background-color: var(--accent-color);
      color: var(--accent-text-color);
      padding: 0.6rem 1.5rem;
      font-size: 0.9rem;
      box-shadow: none; /* No neomorphic shadows for this utility element */
    }
    #cookie-consent-banner .btn:hover {
      background-color: var(--primary-light-color);
      transform: none;
    }
    @media (min-width: 768px) {
      #cookie-consent-banner {
        flex-direction: row;
        justify-content: space-between;
      }
    }

    /* Helper classes for Neomorphism effects */
    .fade-in-scroll {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
      will-change: opacity, transform;
    }
    .fade-in-scroll.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Уничтожаем горизонтальный скролл на всех устройствах */
html {
    overflow-x: clip !important;
    width: 100% !important;
}

body {
    overflow-x: clip !important;
    width: 100% !important;
    position: relative !important;
}

.container,
section,
custom-hero,
custom-services,
custom-testimonials,
custom-footer,
.split-section,
.card-grid {
    overflow-x: clip !important;
    max-width: 100% !important;
}

* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

img, iframe, video, svg {
    max-width: 100% !important;
    height: auto !important;
}

.card, 
custom-header nav,
.custom-header nav {
    overflow-y: visible !important;
    overflow-x: visible !important;
}