/* 1C Franchisee — editorial B2B redesign */

:root {
    --ink: #0f172a;
    --muted: #5b6472;
    --line: #e9d5ff;
    --soft: #f8fafc;
    --brand: #6b21a8; /* Rich Purple/Indigo */
    --brand-dark: #581c87;
    --brand-light: #7e22ce;
    --brand-soft: #f3e8ff;
    --brand-border: #e9d5ff;
    --green-soft: #f0fdf4;
    --green-line: #bbf7d0;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

::selection { background: #f3e8ff; color: #581c87; }

/* Utility class overrides for Purple/Indigo theme */
.bg-brand-50 { background-color: var(--brand-soft) !important; }
.bg-brand-100 { background-color: #f3e8ff !important; }
.bg-brand-500 { background-color: var(--brand-light) !important; }
.bg-brand-600 { background-color: var(--brand) !important; }
.bg-brand-700 { background-color: var(--brand-dark) !important; }
.text-brand-500 { color: var(--brand-light) !important; }
.text-brand-600 { color: var(--brand) !important; }
.text-brand-700 { color: var(--brand-dark) !important; }
.border-brand-200 { border-color: var(--brand-border) !important; }
.border-brand-500 { border-color: var(--brand) !important; }

/* Tailwind blue background overrides to purple */
.bg-blue-50 { background-color: #f3e8ff !important; }
.bg-blue-100 { background-color: #e9d5ff !important; }
.border-blue-200\/80 { border-color: rgba(233, 213, 255, 0.8) !important; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(233, 213, 255, 0.7) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.section-hero {
    background: radial-gradient(circle at 85% 20%, rgba(243, 232, 255, .7), transparent 35%), linear-gradient(180deg, #faf5ff 0%, #faf5ff00 100%) !important;
    border-bottom: 1px solid var(--line);
}

.section-white { background: #fff !important; }
.section-alt {
    background: #faf5ff !important;
    border-top: 1px solid var(--line);
}

.section-dark {
    background: #111827;
    color: #fff;
}

/* Header links */
.site-header a, .site-header button { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }

/* Hero */
.hero-reworked {
    min-height: 0;
    padding: 5.5rem 0 5rem;
    display: flex;
    align-items: center;
}
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.hero-copy { min-width: 0; }
.hero-title {
    max-width: 900px;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    font-size: clamp(2.75rem, 4.2vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 800;
    color: #0f172a;
}
.hero-lead {
    max-width: 620px;
    margin-bottom: 2.25rem;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}
.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .85rem 1.75rem;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(107,33,168,.3);
    transition: all .2s ease;
}
.primary-cta:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -5px rgba(107,33,168,.4); }

.hero-proof {
    border: 1px solid #e9d5ff;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 40px -15px rgba(107, 33, 168, 0.08);
    overflow: hidden;
}
.proof-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.35rem 1.35rem;
    position: relative;
    transition: background-color .2s ease;
}
.proof-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 1px;
    background-color: #f3e8ff;
}
.proof-item:hover { background: rgba(243, 232, 255, 0.35); }
.proof-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}
.proof-item h3 { margin-bottom: .25rem; font-size: 1.02rem; line-height: 1.3; font-weight: 750; color: #0f172a; }
.proof-item p {/* max-width: 430px; */margin: 0;color: #64748b;/* font-size: .925rem; */line-height: 1.55;}

/* Section Headings */
.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: 3.5rem;
}
.section-heading h2 {
    margin: .35rem 0 0;
    font-size: clamp(2.1rem, 3.5vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 800;
    color: #0f172a;
}
.section-heading > p {
    margin: 0;
    color: #64748b;
    /* font-size: 1.05rem; */
    line-height: 1.6;
    max-width: 470px;
}
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--brand);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.section-kicker::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8b4fe; /* Softer, lighter purple dot */
}
.section-heading-dark h2 { color: #fff; }
.section-heading-dark > p { color: #cbd5e1; }
.section-heading-dark .section-kicker { color: #c084fc; }
.section-heading-dark .section-kicker::before { background: #a855f7; }

/* Situation Map */
.situation-section { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
.situation-heading { margin-bottom: 2.5rem; }
.situation-heading > p { max-width: 510px; }
.situation-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.situation-row {
    min-height: 120px;
    padding: 1.6rem 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.situation-row:hover {
    border-color: #c084fc;
    box-shadow: 0 12px 24px -6px rgba(107, 33, 168, 0.08);
    background: #faf5ff;
}
.situation-num {
    font-size: .85rem;
    font-weight: 800;
    color: var(--brand);
    background: var(--brand-soft);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.situation-row h3 {
    margin: 0 0 .42rem;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -.015em;
    color: #0f172a;
}
.situation-row p {margin: 0;color: #64748b;/* font-size: .95rem; */line-height: 1.55;}

/* Dark Quick Wins */
.quick-wins-dark {
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}
.task-grid { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0,1fr)); 
    gap: 1.25rem;
    background: transparent; 
}
.task-item {
    padding: 1.75rem 1.85rem;
    border: 1px solid #1f2937;
    border-radius: 14px;
    background: #1a2234;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.task-item:hover {
    border-color: #7e22ce;
    background: #202b42;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.task-item h3 { margin: 0 0 .5rem; font-size: 1.1rem; font-weight: 750; color: #fff; }
.task-item p { margin: 0 0 .95rem; color: #94a3b8; font-size: .95rem; line-height: 1.6; }
.task-item strong { display: block; color: #c084fc; /*font-size: .925rem;*/ line-height: 1.45; font-weight: 700; }

/* Cases */
.case-list { display: grid; gap: 1.25rem; }
.case-row {
    display: grid;
    grid-template-columns: 200px minmax(0,1fr);
    gap: 2.5rem;
    padding: 2rem 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.02);
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.case-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.06);
}
.case-meta { display: flex; flex-direction: column; justify-content: flex-start; }
.case-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .4rem .75rem;
    background: var(--brand-soft);
    border-radius: 8px;
    color: var(--brand-dark);
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .01em;
}
.case-content h3 { margin: 0 0 1.25rem; font-size: 1.35rem; line-height: 1.3; font-weight: 750; letter-spacing: -.02em; color: #0f172a; }
.case-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.case-columns > div { padding-top: 0; }
.case-columns span { display: block; margin-bottom: .4rem; color: #64748b; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.case-columns p {margin: 0;color: #475569;/* font-size: .95rem; */line-height: 1.6;}
.case-result p {/* color: #0f172a; *//* font-weight: 600; */}

/* Team */
.team-section {padding-top: 5.5rem !important;padding-bottom: 5.5rem !important;border-top: 1px solid var(--line);}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    background: transparent;
    border: none;
}
.team-member { 
    min-width: 0; 
    padding: 2.25rem 1.85rem; 
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.team-member:hover {
    border-color: #c084fc;
    box-shadow: 0 12px 24px -6px rgba(107, 33, 168, 0.08);
    background: #faf5ff;
}
.team-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: var(--brand-dark);
    font-size: .95rem;
    font-weight: 850;
    letter-spacing: .02em;
    box-shadow: inset 0 0 0 1px rgba(107, 33, 168, 0.1);
}
.team-member h3 { margin: 0 0 .3rem; font-size: 1.2rem; line-height: 1.25; font-weight: 780; letter-spacing: -.02em; color: #0f172a; }
.team-role { margin-bottom: 1rem; color: var(--brand); /*font-size: .925rem;*/ line-height: 1.45; font-weight: 700; }
.team-member p { margin: 0; color: #64748b; /*font-size: .925rem;*/ line-height: 1.6; }
.team-member p strong { color: #334155; }

/* Process */
.process-grid { 
    display: grid; 
    grid-template-columns: repeat(4, minmax(0,1fr)); 
    gap: 1.25rem;
    border: none;
}
.process-step { 
    padding: 1.85rem 1.5rem; 
    border: 1px solid #1f2937; 
    border-radius: 14px;
    background: #1a2234;
    min-height: 220px;
    transition: border-color .25s ease, background-color .25s ease;
}
.process-step:first-child { border-left: 1px solid #1f2937; }
.process-step:hover {
    border-color: #7e22ce;
    background: #202b42;
}
.process-num {
    font-size: .8rem;
    font-weight: 800;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.1);
    padding: .2rem .6rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: .85rem;
}
.process-step h3 { margin: 0 0 .65rem; color: #fff; font-size: 1.05rem; line-height: 1.3; font-weight: 750; }
.process-step p {margin: 0;color: #94a3b8;/* font-size: .925rem; */line-height: 1.55;}

/* Pricing */
.pricing-list { display: grid; gap: 1.25rem; }
.pricing-row {
    display: grid;
    grid-template-columns: minmax(250px, 1.05fr) minmax(320px, 1.45fr) minmax(210px, .75fr);
    gap: 2.5rem;
    align-items: center;
    padding: 2.25rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.02);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.pricing-row-featured { 
    border: 2px solid var(--brand); 
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%); 
    box-shadow: 0 10px 30px -10px rgba(107, 33, 168, 0.15);
}
.pricing-name h3 { margin: 0 0 .45rem; font-size: 1.3rem; line-height: 1.2; font-weight: 780; letter-spacing: -.02em; color: #0f172a; }
.pricing-name p { margin: 0; color: #64748b; font-size: .95rem; line-height: 1.6; max-width: 390px; }
.pricing-features { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; color: #475569; font-size: .95rem; }
.pricing-features li { position: relative; padding-left: 1.5rem; }
.pricing-features li::before { 
    content: ""; 
    position: absolute; 
    left: 0; 
    top: .35rem; 
    width: 14px; 
    height: 14px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b21a8' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.price-value { margin-bottom: .85rem; font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.035em; color: #0f172a; }
.price-value small { color: #64748b; font-size: .85rem; font-weight: 500; }
.price-button { width: 100%; min-height: 48px; font-weight: 750; border-radius: 10px; font-size: .95rem; transition: all .2s ease; }
.price-button.primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.price-button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.price-button.secondary { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.price-button.secondary:hover { background: #faf5ff; border-color: #c084fc; color: var(--brand-dark); }
.price-label { display: block; margin-bottom: .5rem; color: var(--brand); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pricing-note { margin-top: 1.5rem; padding: 1.1rem 1.4rem; background: #faf5ff; border: 1px solid #e9d5ff; border-radius: 12px; color: #475569; /*font-size: .925rem;*/ }

/* Solutions */
.solutions-inline { border-top: 1px solid #e2e8f0; }
.solutions-inline > div { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid #e2e8f0; }
.solutions-inline span { font-size: .95rem; color: #0f172a; }
.solutions-list { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.solution-dot { color: #cbd5e1 !important; font-size: .8rem; }

.contact-banner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 2rem; 
    margin-top: 3rem; 
    padding: 1.5rem 0 0; 
    background: transparent;
    border: none;
    border-radius: 0;
}

/* FAQ follows the same section rhythm and is fully visible. */
.faq-section { border-top: 1px solid var(--line); }
.faq-heading { margin-bottom: 2.5rem; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; border: none; }
.faq-item { 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 14px !important; 
    margin: 0 !important; 
    padding: 1.6rem 1.75rem !important;
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover {
    border-color: #c084fc !important;
    box-shadow: 0 8px 20px -4px rgba(107, 33, 168, 0.06);
}

/* Form Controls Focus State (Brand Purple accent instead of default blue) */
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 2px rgba(107, 33, 168, 0.25) !important;
}

/* Header & Footer Underline Hovers */
.site-header nav a,
.site-header a[href^="tel:"],
.site-header a[href^="mailto:"],
.site-header a[href="/about"],
footer ul a,
footer p a,
footer a[href^="tel:"],
footer a[href^="mailto:"] {
    transition: color .2s ease, text-decoration-color .2s ease;
}

.site-header nav a:hover,
.site-header a[href^="tel:"]:hover,
.site-header a[href^="mailto:"]:hover,
.site-header a[href="/about"]:hover {
    text-decoration: underline !important;
    text-decoration-color: var(--brand) !important;
    text-underline-offset: 5px !important;
}

footer ul a:hover,
footer p a:hover,
footer a[href^="tel:"]:hover,
footer a[href^="mailto:"]:hover {
    text-decoration: underline !important;
    text-decoration-color: #c084fc !important;
    text-underline-offset: 5px !important;
}

/* Header & Footer Social Buttons (Telegram, MAX) Hover styling */
.site-header a[title="Telegram"]:hover,
.site-header a[title="MAX"]:hover {
    border-color: var(--brand) !important;
    color: var(--brand) !important;
    background-color: #faf5ff !important;
}

footer a[href*="t.me"]:hover,
footer a[href*="max.ru"]:hover,
footer button.open-lead-modal:hover {
    border-color: #c084fc !important;
    color: #c084fc !important;
    background-color: rgba(192, 132, 252, 0.08) !important;
}
footer a[href*="t.me"]:hover svg,
footer a[href*="max.ru"]:hover svg {
    color: #c084fc !important;
    fill: #c084fc !important;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .hero-layout { grid-template-columns: 1fr; gap: 2.75rem; }
    .section-heading { grid-template-columns: 1fr; gap: 1rem; }
    .situation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .process-step:nth-child(3) { border-left: 1px solid #1f2937; }
    .pricing-row { grid-template-columns: 1fr; gap: 1.25rem; }
    .team-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hero-reworked { padding: 3.75rem 0 3.5rem; }
    .hero-title { font-size: clamp(2.3rem, 10vw, 3.2rem); line-height: 1.02; }
    .hero-lead { font-size: 1rem; line-height: 1.58; margin-bottom: 1.5rem; }
    .proof-item { padding: 1.1rem .85rem; }
    .situation-section, .team-section { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; }
    .situation-list { grid-template-columns: 1fr; }
    .situation-row { min-height: 0; padding: 1.25rem 1.2rem; }
    .task-grid { grid-template-columns: 1fr; }
    .case-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
    .case-columns { grid-template-columns: 1fr; gap: 1rem; }
    .process-grid { grid-template-columns: 1fr; }
    .process-step { min-height: 0; padding: 1.5rem; }
    .solutions-inline > div { grid-template-columns: 1fr; gap: .5rem; }
    .contact-banner { grid-template-columns: 1fr; display: grid; gap: 1.25rem; padding: 1.5rem 0 0; }
}

.site-header a[href^="tel:"] {
    white-space: nowrap !important;
}

.site-header nav a {
    font-weight: 400 !important;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .hero-layout { grid-template-columns: 1fr; gap: 2.75rem; }
    .section-heading { grid-template-columns: 1fr; gap: 1rem; }
    .situation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .process-step:nth-child(3) { border-left: 1px solid #1f2937; }
    .pricing-row { grid-template-columns: 1fr; gap: 1.25rem; }
    .team-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hero-reworked { padding: 3.75rem 0 3.5rem; }
    .hero-title { font-size: clamp(2.3rem, 10vw, 3.2rem); line-height: 1.02; }
    .hero-lead { font-size: 1rem; line-height: 1.58; margin-bottom: 1.5rem; }
    .proof-item { padding: 1.1rem .85rem; }
    .situation-section, .team-section { padding-top: 3.75rem !important; padding-bottom: 3.75rem !important; }
    .situation-list { grid-template-columns: 1fr; }
    .situation-row { min-height: 0; padding: 1.25rem 1.2rem; }
    .task-grid { grid-template-columns: 1fr; }
    .case-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
    .case-columns { grid-template-columns: 1fr; gap: 1rem; }
    .process-grid { grid-template-columns: 1fr; }
    .process-step { min-height: 0; padding: 1.5rem; }
    .solutions-inline > div { grid-template-columns: 1fr; gap: .5rem; }
    .contact-banner { grid-template-columns: 1fr; display: grid; gap: 1.25rem; padding: 1.5rem 0 0; }
}

.site-header a[href^="tel:"] {
    white-space: nowrap !important;
}

.site-header nav a {
    font-weight: 400 !important;
}