@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --header-h: 64px;                /* фикс. высота шапки */
    --bg-dark-purple: #2B003B;
    --accent-purple: #9D4EDD;
    --accent-blue: #5A189A;
    --text-light: #F8F9FA;
    --text-secondary: #CED4DA;
    --glow-color: rgba(157, 78, 221, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: var(--header-h);     /* чтобы контент не уезжал под шапку */
    min-width: 1280px;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-dark-purple);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h); /* якоря не прячутся под шапкой */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.main-header{
  position: fixed; top:0; left:0; right:0;
  height: var(--header-h);
  padding: 0 5%;                           /* убираем вертикальные отступы */
  background: rgba(43,0,59,.85);
  backdrop-filter: blur(10px);
  z-index:1000; border-bottom:1px solid rgba(255,255,255,.1);
}

/* сам nav в одну линию */
.main-nav{
  height: 100%;
  display:flex; align-items:center; gap:24px; flex-wrap:nowrap;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo img {
    height: 40px; /* Adjust height as needed */
    width: auto;
    display: block;
}

/* меню слева отодвигаем от логотипа */
.nav-links{ display:flex; gap:24px; margin-left:16px; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-light);
    text-shadow: 0 0 5px var(--glow-color);
}

.cta-button {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--glow-color);
}

/* Hero Section */
.hero-section {
    min-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: url('assets/fon.png') no-repeat center center/cover;
    background-attachment: scroll;
}

.hero-section::before, .service-section::before, .solutions-section::before, .about-section::before, .form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.secondary-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.secondary-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-purple);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.secondary-link:hover {
    color: var(--text-light);
}

.secondary-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* General Section Styles */
.service-section, .solutions-section, .about-section, .form-section, .contact-section, section[id] {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
    scroll-margin-top: 80px; /* Header height offset */
}

.contact-section {
    background: url('assets/fon.png') no-repeat center center/cover;
    background-attachment: scroll;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95));
    z-index: -1;
}

.service-section {
    background: url('assets/Flux_Dev_Futuristic_dark_hightech_background_with_abstract_neu_1.jpg') no-repeat center center/cover;
    background-attachment: scroll;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Section */
.service-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.service-description {
    flex: 1;
}

.service-description p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.service-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-features {
    flex: 1;
}

.service-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.features-list i {
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin-right: 1rem;
    width: 25px;
    text-align: center;
}

/* Solutions Section */
.solutions-section {
    background: url('assets/Lucid_Origin_Futuristic_concept_art_of_a_complex_business_proc_0.jpg') no-repeat center center/cover;
    background-attachment: scroll;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

a.solution-card {
    text-decoration: none;
    color: inherit;
}

.solution-card {
    background-color: rgba(43, 0, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--glow-color);
}

.solution-card i {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--text-secondary);
}

/* About Section */
.about-section {
    background: url('assets/Lucid_Origin_A_dynamic_highlydetailed_concept_art_of_a_seamles_1.jpg') no-repeat center center/cover;
    background-attachment: scroll;
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-purple);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
}

/* Form Section */
.form-section {
    background: url('assets/Flux_Dev_Futuristic_dark_hightech_background_with_abstract_neu_2 (1).jpg') no-repeat center center/cover;
    background-attachment: scroll;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--glow-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.privacy-policy {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-item a, .contact-item p {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-light);
}

.contact-map {
    flex: 1;
}

.contact-map iframe {
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.main-footer {
    background-color: #1a0025;
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-footer p {
    color: var(--text-secondary);
}

.main-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: var(--text-light);
}

/* Scroll Animation */
.service-section, .solutions-section, .about-section, .form-section, .contact-section, .solution-card, .feature-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-section.visible, .solutions-section.visible, .about-section.visible, .form-section.visible, .contact-section.visible, .solution-card.visible, .feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards and features */
.solution-card, .feature-item {
    transition-delay: calc(0.1s * var(--i));
}

.detailed-service.alt-bg {
    /* background-color: #1a0025; */ /* This is now handled by the general section backgrounds */
}

.service-content.reverse {
    flex-direction: row-reverse;
}

/* Benefits Section */
.benefits-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.benefits-text {
    flex: 3;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.benefit-item i {
    font-size: 1.8rem;
    color: var(--accent-purple);
}
.side-icon {
    flex: 1;
    text-align: center;
}
.side-icon i {
    font-size: 10rem;
    color: var(--accent-purple);
    opacity: 0.8;
}

/* Workflow Section */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}
.workflow-step i {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}
.workflow-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.why-us-item i {
    font-size: 2.5rem;
    color: var(--accent-purple);
}
.why-us-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.why-us-full {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 0;
}
.why-us-full i {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}
.why-us-full h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* CTA Final Section */
.cta-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}
.cta-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.cta-list i {
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin-top: 5px;
}
.cta-conclusion {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}
/* =================================== */
/* NEW STYLES AND OVERRIDES FOR REDESIGN */
/* =================================== */

/* --- Header Phone --- */
/* телефон прижимаем вправо, чтобы всё стало в один ряд */
.header-phone{ margin-left:auto; white-space:nowrap; color:var(--text-secondary); text-decoration:none; }
.header-phone:hover{ color:var(--text-light); }

/* кнопка рядом с телефоном */
.nav-cta{ margin-left:12px; }

/* --- Hero Section Overrides --- */
.hero-title {
    text-shadow: 0 0 10px var(--glow-color); /* Weaker glow */
}
.hero-bullets {
    list-style: none;
    margin: 2rem auto;
    padding: 0;
    max-width: 550px;
    text-align: left;
    display: inline-block;
}
.hero-bullets li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}
.hero-bullets li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 700;
}

/* --- Section Dividers --- */
section + section {
    border-top: 1px solid;
    border-image: linear-gradient(to right, transparent, rgba(157, 78, 221, 0.3), transparent) 1;
}

/* --- Main Service Section Additions --- */
.service-problem {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}
.workflow-inline {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.workflow-inline > div {
    border: 1px solid var(--accent-purple);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    background: rgba(157, 78, 221, 0.1);
}
.mini-offer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border: 1px dashed var(--accent-purple);
    border-radius: 15px;
    background: rgba(157, 78, 221, 0.05);
}
.mini-offer p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- Solutions Section Tweaks --- */
.solutions-section {
    /* background: var(--bg-dark-purple); */ /* De-emphasize */
}
.solutions-section::before {
    /* background: none; */
}
.solution-card:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--glow-color);
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.solution-card h3 {
    font-size: 1.1rem;
}

/* --- New About Section Styles --- */
.about-section .workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}
.about-section .workflow-step i {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}
.about-section .why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.about-section .why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.about-section .why-us-item i {
    font-size: 2.5rem;
    color: var(--accent-purple);
    margin-top: 5px;
}
.about-section .why-us-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- New Form Styles --- */
.form-group-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem 0;
}

.form-group-checkbox label {
    cursor: pointer;
    font-size: 0.9rem;
}

.form-group-checkbox label a {
    color: var(--accent-purple);
    text-decoration: none;
}
.privacy-guarantee {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Mobile & UX Fixes --- */
/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    color: var(--accent-purple);
    transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}
/* Customization Note */
.customization-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}
/* =================================== */
/* Benefits List (New Design)        */
/* =================================== */

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefits-list li i {
    font-size: 1.8rem;
    color: var(--accent-purple);
    margin-top: 4px;
    width: 30px;
    text-align: center;
}

.benefits-list li span {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.benefits-list li span strong {
    color: var(--text-light);
    font-weight: 600;
}

/* --- Workflow Steps Card Redesign --- */
.workflow-step {
    background-color: rgba(43, 0, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure all cards have the same height */
}

.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--glow-color);
}

.workflow-step i {
    font-size: 2.5rem; /* Slightly smaller icon */
    margin-bottom: 1.5rem;
    text-align: left;
}

.workflow-step h4 {
    font-size: 1.2rem;
    margin-bottom: 12px; /* 8-12px vertical rhythm */
    line-height: 1.4;
    min-height: 50px; /* Reserve space for title to avoid jump */
}

.workflow-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem; /* 16px to bottom */
    flex-grow: 1; /* Push icon to the bottom if needed */
}

/* Responsive adjustments for workflow steps */
/* --- Premium Contact Section --- */
.premium-contact {
    --accent-cyan: #00F5D4; /* Neon cyan for icons */
    padding-bottom: 4rem;
}

.premium-contact .section-title {
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-promise ul {
    list-style: none;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.contact-promise li {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-promise li::before {
    content: '✔';
    position: absolute;
    left: -2rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.map-toggle-button {
    background: none;
    border: 1px solid var(--accent-purple);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-toggle-button:hover {
    background: rgba(157, 78, 221, 0.1);
    color: var(--text-light);
    border-color: var(--accent-cyan);
}

.contact-card {
    background: rgba(43, 0, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.contact-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-row i.fas {
    font-size: 28px;
    color: var(--accent-cyan);
    transition: text-shadow 0.3s ease;
}

.contact-row:hover i.fas {
    text-shadow: 0 0 10px var(--accent-cyan);
}

.contact-row a {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-row a:hover {
    color: var(--accent-cyan);
}

.copy-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
    padding: 0.5rem;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.copy-button:hover {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-cta {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    animation: pulse 2s infinite;
}

.contact-cta:hover {
    animation-play-state: paused;
    transform: scale(1.03);
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px var(--glow-color); }
    50% { box-shadow: 0 0 25px var(--glow-color); }
    100% { box-shadow: 0 0 10px var(--glow-color); }
}

.privacy-guarantee-contact {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.map-container {
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Costs Section --- */
.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cost-item {
    background-color: rgba(43, 0, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cost-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--glow-color);
}

.cost-item i {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
    display: block;
}

.cost-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

/* --- Form Update Styles --- */
.form-intro-list {
    list-style: none;
    padding-left: 1.5rem; /* Indent for custom marker */
    margin: 0 auto 2.5rem; /* Center and add space below */
    max-width: 560px; /* Align with form width */
    text-align: left;
}

.form-intro-list li {
    position: relative;
    line-height: 1.5;
    margin-bottom: 12px; /* Space between items */
    font-size: 1.1rem;
}

.form-intro-list li::before {
    content: '—'; /* Dash marker */
    position: absolute;
    left: -1.5rem;
    color: var(--accent-purple);
    font-weight: 700;
}

.contact-intro-paragraph {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.contact-promise {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.error-message {
    color: #ff7b7b; /* A suitable error color */
    font-size: 0.9rem;
    margin-top: 8px;
    min-height: 1em; /* Reserve space to prevent layout shifts */
    text-align: left;
}


.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ff7b7b !important;
}
/* =================================== */
/* Section: Advantages (Why Us)      */
/* =================================== */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; /* Increased gap for better spacing */
    max-width: 1100px;
    margin: 4rem auto 0; /* Center the grid and add top margin */
}

.advantage-card {
    background-color: rgba(43, 0, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in the same row have equal height */
}

.advantage-card i {
    font-size: 32px; /* Icon size 28-32px */
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
    width: 40px; /* Ensure consistent alignment */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 50%;
}

.advantage-card h4 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    /* Max 2 lines - handled by keeping text short or JS */
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    /* Max 3 lines - handled by keeping text short or JS */
}
/* --- Responsive adjustments for Advantages Grid --- */
/* --- Animations and Hover Effects for Advantages --- */
.advantage-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-color);
}

/* Staggered animation delay */
.advantage-card:nth-child(1) { transition-delay: 0.0s; }
.advantage-card:nth-child(2) { transition-delay: 0.08s; }
.advantage-card:nth-child(3) { transition-delay: 0.16s; }
.advantage-card:nth-child(4) { transition-delay: 0.24s; }

.advantage-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Reduce motion */
/* =================================== */
/* Section: BotBuh Service (Centered)  */
/* =================================== */

#botbuh .section-title,
#botbuh .section-subtitle,
#botbuh .service-problem {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#botbuh .workflow-inline {
    justify-content: center;
}

:root {
    --accent-cyan: #00F5D4; /* Neon cyan for BotBuh accents */
}
/* =================================== */
/* New Styles for Ads Services       */
/* =================================== */

/* --- Solution Card Paragraph --- */
.solution-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 1rem;
}

/* --- Detailed Ads Sections --- */
#ads-analytics .service-content,
#ads-management .service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.service-image-container {
    text-align: center;
}

.service-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-cta-block {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --- Benefits Diagram Placeholder --- */
.benefits-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.diagram-segment {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: default;
    position: relative;
}

.diagram-segment:hover {
    background-color: var(--accent-purple);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--glow-color);
}

.diagram-segment[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}
/* =================================== */
/* Ads Sections Refactor               */
/* =================================== */

.service-layout-grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 48px;
    align-items: flex-start;
}

.service-text-content .section-title,
.service-text-content .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.service-text-content .section-subtitle {
    margin-bottom: 32px;
}

.content-block-title {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 24px;
    color: var(--text-light);
}

.what-you-get-grid {
    display: grid;
    gap: 24px;
}

.what-you-get-grid.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
.what-you-get-grid.grid-1x3 { grid-template-columns: repeat(3, 1fr); }

.benefit-card {
    background: rgba(157, 78, 221, 0.05);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 160px;
}

.benefit-card i {
    font-size: 28px;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.benefit-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.4;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.workflow-inline {
    margin-bottom: 8px;
}

.workflow-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.service-cta-block {
    margin-top: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.service-visual-content {
    position: sticky;
    top: 100px;
}

.visual-mockup-link {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    text-align: center;
}

.visual-mockup-link img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.visual-mockup-link span {
    font-weight: 600;
    transition: color 0.3s ease;
}

.visual-mockup-link:hover span {
    color: var(--text-light);
}

.bottom-note {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
    font-size: 1rem;
}

.bottom-note a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
}

/* Tabs in Media Column */
.tabs-container {
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 12px;
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    background: rgba(157, 78, 221, 0.1);
}
.tab-link {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}
.tab-link.active {
    background-color: var(--accent-purple);
    color: var(--text-light);
}
.tabs-content .tab-pane { display: none; }
.tabs-content .tab-pane.active { display: block; }
.tabs-content img { width: 100%; display: block; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}
.lightbox.show { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    animation: zoomIn 0.3s;
}
.lightbox .close {
    position: absolute;
    top: 24px; right: 32px;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.9); } to { transform: scale(1); } }

/* Responsive Overrides */
@media (max-width: 992px) {
    .service-layout-grid {
        grid-template-columns: 1fr;
    }
    .service-text-content .section-title,
    .service-text-content .section-subtitle {
        text-align: center;
    }
    .service-visual-content {
        order: -1; /* Image first on mobile */
        margin-bottom: 32px;
        position: static;
    }
    .what-you-get-grid.grid-1x3 { grid-template-columns: 1fr; }
    .service-cta-block {
        flex-direction: column;
    }
    .service-cta-block .cta-button {
        width: 100%;
        text-align: center;
    }
}
/* =================================== */
/* CTA Row for Service Sections      */
/* =================================== */

.cta-row {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.cta-row .cta-button {
    min-width: 260px;
    text-align: center;
    /* display: inline-block; */ /* Ensure the button respects text-align */
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--text-light);
}

.cta-button.secondary:hover {
    background: rgba(157, 78, 221, 0.1);
    box-shadow: 0 0 15px var(--glow-color);
    transform: scale(1.05);
}

/* Responsive adjustments for CTA row */
@media (max-width: 992px) {
    .cta-row .cta-button {
        width: 100%;
        max-width: 400px; /* Optional: limit max width on mobile */
    }
}
/* Custom styles for checkbox */
.form-group-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; /* Custom size */
    height: 22px; /* Custom size */
    border: 2px solid var(--accent-purple);
    border-radius: 5px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-group-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.form-group-checkbox input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 16px;
    color: var(--text-light);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-group-checkbox input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 8px var(--glow-color);
}