/* CSS Variables and Global Styles */
:root {
    --primary-color: #2a41e8;
    --accent-color: #ff7a00;
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-color: #212529;
    --text-muted-color: #6c757d;
    --border-color: #dee2e6;
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 80px; /* Отступ для фиксированного хедера */
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted-color);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #e66e00;
    border-color: #e66e00;
    color: white;
    transform: translateY(-2px);
}

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

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

/* Header */
.main-header {
    background-color: var(--surface-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
}
.logo:hover {
    color: var(--text-color);
}
.logo img {
    height: 70px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-muted-color);
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}
.main-nav a:hover {
    color: var(--text-color);
}
.main-nav a.active {
    color: var(--text-color);
}
.main-nav a.active::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: var(--surface-color);
    color: var(--text-color);
    padding: 80px 0;
}

.hero-container-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 60px;
}

.hero-text {
    text-align: left;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 500px;
    margin: 0 0 2.5rem 0;
    color: var(--text-muted-color);
}

.hero-cta {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.hero-image {
    position: relative;
    transition: transform 0.3s ease-out;
}

/* SVG Illustration Pulse */
@keyframes pulse-dot-animation {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.6);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

.pulse-dot {
    animation: pulse-dot-animation 2s infinite ease-in-out;
    transform-origin: center;
    transform-box: fill-box; /* Important for SVG transforms */
}

/* Problems Section */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.problem-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.problem-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Solution Section */
.solution-section {
    background-color: var(--surface-color);
}
.solution-grid {
    display: grid;
    gap: 30px;
}
.solution-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
}
.solution-before, .solution-after {
    padding: 15px;
}
.solution-before h4, .solution-after h4 {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-bottom: 8px;
}
.solution-after {
    border-left: 2px solid var(--primary-color);
}
.solution-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

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

.feature-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Tooltips */
.feature-card[data-tooltip]:hover::before,
.feature-card[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

.feature-card[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 8px 12px;
    background-color: #333;
    color: white;
    font-size: 0.85rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: max-content;
    max-width: 250px;
    white-space: normal;
    text-align: center;
}

/* Roles Section */
.roles-section {
    background-color: var(--surface-color);
}
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.role-card {
    text-align: center;
    padding: 20px;
}
.role-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Implementation Section */
.implementation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 4rem;
}

.implementation-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.implementation-step-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 6rem;
    font-weight: 700;
    color: var(--border-color);
    opacity: 0.8;
    z-index: 0;
    line-height: 1;
}

.implementation-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 1;
}

.implementation-icon svg {
    width: 24px;
    height: 24px;
}

.implementation-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.implementation-card p {
    position: relative;
    z-index: 1;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--surface-color);
}
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 3rem;
    font-weight: 600;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(24px);
}
.discount-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}
.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    background-color: var(--surface-color);
}
.popular-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}
.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
}
.pricing-card ul {
    margin-bottom: 30px;
    text-align: left;
}
.pricing-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}
.pricing-card li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}
.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default marker */
}
.faq-item summary::-webkit-details-marker {
    display: none; /* For Chrome */
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
    padding: 0 20px 20px 20px;
    color: var(--text-muted-color);
}

/* Contact Form Section */
.contact-section {
    background: linear-gradient(45deg, var(--primary-color), #5365f0);
    color: white;
}
.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.form-container h2 {
    color: white;
}
.form-container p {
    opacity: 0.9;
    margin-bottom: 2rem;
}
#lead-form {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: left;
    color: var(--text-color);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 65, 232, 0.2);
}
.iti {
    width: 100%;
}
#lead-form .btn {
    width: 100%;
}
.form-privacy {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 15px;
    color: var(--text-muted-color);
}
.form-privacy a {
    color: var(--text-muted-color);
    text-decoration: underline;
}
#form-success-message {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--text-color);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}
#back-to-top.highlight {
    background-color: var(--accent-color);
}

/* Footer */
.main-footer-bottom {
    background-color: #1d2d35;
    color: #a9b4bb;
    padding: 30px 0;
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left .logo {
    color: white;
    margin-bottom: 10px;
}
.footer-left > p:not(.logo):not(.footer-note) {
    display: none;
}
.footer-left .footer-note {
    margin-bottom: 0;
}
.footer-right {
    text-align: right;
}
.footer-right p {
    margin-bottom: 5px;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered animations */
.problems-grid .problem-card,
.features-grid .feature-card,
.roles-grid .role-card,
.implementation-card,
.pricing-grid .pricing-card,
.faq-list .faq-item {
    transition-delay: calc(0.1s * var(--i));
}
