/* ==========================================================================
   PROFIT CORE STYLESHEET
   Версия: 2.2.1 (СТАБИЛЬНАЯ БАЗА) + Микро-патч
   ========================================================================== */

/* === 1. ROOT VARIABLES & BASE STYLES === */
:root {
    --primary-color: #4cffc9;
    --primary-color-dark: #3abfa0;
    --background-color: #0d1a26;
    --text-color: #cdd6f4;
    --title-color: #ffffff;
    --card-background: #1a2938;
    --border-color: #2a3f55;
    
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    --header-height: 4rem;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    color: var(--title-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.section {
    padding: 4.5rem 0; 
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    line-height: 1.3;
    margin-top: 2rem; 
    margin-bottom: 3.5rem;
}

.main > .section:first-child .section-title {
    margin-top: 0;
}


/* === 2. REUSABLE COMPONENTS (BUTTONS, CARDS) === */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.btn--primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 255, 201, 0.2);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--secondary:hover {
    background-color: rgba(76, 255, 201, 0.1);
    transform: translateY(-3px);
}

.card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card__text {
    font-size: 1rem;
}

/* === 3. INTRO LOADER === */
.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro--hidden {
    opacity: 0;
    visibility: hidden;
}

.intro__content {
    text-align: center;
}

.intro__logo {
    width: 100px;
    height: 100px;
    stroke: var(--primary-color);
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: draw 2s ease-in-out forwards;
}

.intro__title {
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* === 4. HEADER === */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
    background-color: rgba(13, 26, 38, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header__nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
}

.header__menu {
    display: flex;
    gap: 2.5rem;
}

.header__menu a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.header__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.header__menu a:hover {
    color: var(--primary-color);
}
.header__menu a:hover::after {
    width: 100%;
}


.header__btn {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
}

.header__btn:hover {
    background-color: rgba(76, 255, 201, 0.1);
}

/* === 5. HERO SECTION === */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--header-height);
}

.hero__video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.hero__video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 26, 38, 0.9), rgba(13, 26, 38, 0.7));
    z-index: -1;
}

.hero__video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-color);
}

.hero__buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* === 6. TASKS, BENEFITS (CARD GRIDS) === */
.tasks__cards,
.benefits__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* === 7. SOLUTION SECTION === */
.solution__content {
    display: flex;
    gap: 2.5rem;
    background-color: var(--card-background);
    padding: 2.5rem; 
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.solution__column {
    flex: 1;
    min-width: 280px;
}
.solution__column-title {
    font-size: 1.8rem;
    color: var(--primary-color);
}
.solution__column-subtitle {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
.solution__list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.8rem;
}
.solution__list li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* === 8. BENEFITS SECTION === */
.benefits .card h3 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.benefits .card p {
    text-align: center;
}

/* === 9. ABOUT SECTION === */
.about {
    padding-bottom: 2rem;
}
.about__content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.about__image {
    flex: 1;
    min-width: 300px;
}
.about__image img {
    border-radius: var(--border-radius);
}
.about__text {
    flex: 1.5;
}
.about__text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* === 10. CTA (UPLOAD FORM) SECTION === */
.cta {
    background-color: var(--card-background);
    text-align: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    border-radius: calc(var(--border-radius) * 2);
    margin: 2rem 0; 
}
.cta .section-title {
    margin-top: 0;
}
.upload-form {
    max-width: 700px;
    margin: 0 auto;
}
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(76, 255, 201, 0.05);
}
.upload-zone input[type="file"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.upload-zone__formats { font-size: 0.9rem; opacity: 0.7; margin-top: 0.5rem; }
#contact-input {
    width: 100%; padding: 1rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); background-color: var(--background-color); color: var(--text-color); margin-bottom: 1.5rem; font-size: 1rem;
}

/* === 11. PROMO VIDEO & PRICING === */
.promo-video__player {
    position: relative;
    cursor: pointer;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--border-radius);
}
.promo-video__poster {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.promo-video__play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background-color: rgba(255, 255, 255, 0.2); border: none; border-radius: 50%; backdrop-filter: blur(5px); transition: transform 0.3s;
}
.promo-video__play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.promo-video__play-btn svg { width: 50%; height: 50%; fill: #fff; margin-left: 5px; }


/* === ТОЧЕЧНОЕ ИСПРАВЛЕНИЕ === */
/* Основано на твоем рабочем коде. Этот блок правит и Pricing и Footer. */
.pricing__cards, .footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    text-align: center;
    background-color: var(--card-background); /* Добавлено для консистентности */
    border: 1px solid var(--border-color); /* Добавлено для консистентности */
    padding: 2rem; /* Добавлено для консистентности */
    border-radius: var(--border-radius); /* Добавлено для консистентности */
}
/* === КОНЕЦ ТОЧЕЧНОГО ИСПРАВЛЕНИЯ === */


.pricing-card--popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    position: relative;
    z-index: 1;
}
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background-color: var(--primary-color); color: var(--background-color); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 700;
}
.pricing-card__price { font-size: 2.5rem; color: var(--primary-color); margin: 1rem 0; }
.pricing-card ul { margin: 2rem 0; }
.pricing-card li { margin-bottom: 0.8rem; }


/* === 12. FOOTER === */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    align-items: center; /* Добавлено для вертикального выравнивания */
}
.footer__content {
    /* Этот контейнер больше не нужен, так как .footer теперь grid */
    display: contents; 
}
.footer__logo { font-weight: 700; text-align: left;}
.footer__contacts { text-align: center; }
.footer__copy { text-align: right; }


/* === 13. MEDIA QUERIES === */
@media screen and (max-width: 768px) {
    .section { padding: 3rem 0; }
    .section-title { font-size: 2rem; margin-top: 1rem; margin-bottom: 2.5rem; }
    .header__menu { display: none; }
    .hero__title { font-size: 2.2rem; }
    .solution__content { padding: 1.5rem; }
    .footer { text-align: center; } /* Центрируем все в футере на мобильных */
    .footer__logo, .footer__contacts, .footer__copy { text-align: center; }
}

/* ==========================================================================
   МИКРО-ПАТЧ: Унификация кнопок в блоке цен (v.2.2.4)
   ========================================================================== */

.pricing-card .btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.pricing-card .btn:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 255, 201, 0.2);
}
