/* ===== Hero Section for Referat ===== */
.referat-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.referat-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
}

.referat-hero .badge-text {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero-title-small {
    font-size: 32px;
    display: block;
    margin-top: 10px;
    font-weight: 400;
}

.referat-hero .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.hero-features .feature i {
    color: var(--primary-light);
}

.hero-visual {
    position: relative;
    height: 500px;
    z-index: 2;
}

.preview-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
    animation: cardFloat 8s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.float-element {
    position: absolute;
    background: var(--white);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: floatElement 6s ease-in-out infinite;
    z-index: 3;
    font-weight: 500;
}

.float-element i {
    color: var(--primary);
}

.element-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.element-2 {
    top: 50px;
    right: 0;
    animation-delay: 2s;
}

.element-3 {
    bottom: 100px;
    left: 30px;
    animation-delay: 4s;
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.card-title h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 18px;
}

.card-title p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 14px;
}

.card-content {
    padding: 20px;
}

.content-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.content-section ul {
    list-style: none;
    margin-bottom: 20px;
}

.content-section li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.content-section li i {
    color: var(--success);
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat .label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.card-footer {
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.status.ready {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 500;
    font-size: 14px;
}

/* ===== Generator Form Section - ПОЛНОСТЬЮ ПЕРЕРАБОТАННЫЙ ДИЗАЙН ===== */
.generator-form-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.generator-form {
    width: 100%;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border);
    width: 100%;
}

.form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.header-content h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 700;
}

.header-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.6;
}

.referat-form {
    padding: 40px;
}

/* Группа полей */
.form-field-group {
    margin-bottom: 35px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.field-label i {
    color: var(--primary);
    font-size: 18px;
}

.field-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* Большой инпут */
.form-input-large {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-weight: 500;
}

.form-input-large:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

.form-input-large::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Сетка форм */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Поля формы */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-field label i {
    color: var(--primary);
    font-size: 16px;
}

/* Стилизованные селекты */
.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: 16px 24px;
    padding-right: 50px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

.select-arrow {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    font-size: 14px;
    transition: transform var(--transition-fast);
}

.select-wrapper:hover .select-arrow {
    color: var(--primary);
}

.form-select:hover {
    border-color: var(--primary-light);
}

/* Кастомные опции для селекта */
.form-select option {
    padding: 12px;
    font-size: 14px;
    background: var(--white);
    color: var(--text-primary);
}

/* Range slider */
.range-field {
    padding-top: 5px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.range-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.range-labels {
    display: flex;
    gap: 30px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--gray-200) 0%, var(--gray-200) 100%);
    border-radius: var(--radius-full);
    outline: none;
    margin: 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
    line-height: 1.6;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

.form-textarea::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Преимущества */
.form-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .form-benefits {
        grid-template-columns: 1fr;
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.benefit-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.benefit-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Кнопка генерации */
.form-actions {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.btn-generate-large {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-width: 300px;
    overflow: hidden;
}

.btn-generate-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

.btn-generate-large:active {
    transform: translateY(-1px);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-generate-large i {
    font-size: 20px;
}

.btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    display: none;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-note i {
    color: var(--success);
}

/* ===== Компактный Features Section ===== */
.referat-features-compact {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .features-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-compact-grid {
        grid-template-columns: 1fr;
    }
}

.feature-compact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-compact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-compact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.feature-compact-icon .icon-wrapper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.feature-compact-content {
    flex: 1;
}

.feature-compact-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-compact-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== Process Section ===== */
.process-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-content {
    padding: 0 10px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 20px;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-connector {
    position: absolute;
    top: 30px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

@media (max-width: 992px) {
    .step-connector:nth-child(2n) {
        display: none;
    }
}

@media (max-width: 576px) {
    .step-connector {
        display: none;
    }
}

.process-demo {
    margin-top: 80px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.demo-container {
    padding: 40px;
}

.demo-header {
    text-align: center;
    margin-bottom: 40px;
}

.demo-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.demo-header p {
    color: var(--text-secondary);
}

.demo-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.progress-step span {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active span {
    color: var(--primary);
    font-weight: 600;
}

.demo-output {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: var(--white);
}

.output-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.output-header i {
    color: var(--primary-light);
    font-size: 24px;
}

.output-header h4 {
    color: var(--white);
    margin-bottom: 0;
}

.output-content {
    margin-bottom: 30px;
}

.output-line {
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInLine 0.5s ease forwards;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end) forwards;
    color: var(--white);
    font-family: 'Courier New', monospace;
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 2s;
}

.delay-3 {
    animation-delay: 3s;
}

.demo-output .btn {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.demo-output .btn:hover {
    background: var(--white);
    color: var(--gray-900);
}

/* ===== Subjects Section ===== */
.subjects-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.subject-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    text-align: center;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.subject-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

.subject-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.subject-list {
    list-style: none;
    margin-bottom: 25px;
}

.subject-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.subject-list li:last-child {
    border-bottom: none;
}

.subject-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
}

.subject-stats i {
    margin-right: 4px;
}

/* ===== Testimonials ===== */
.referat-testimonials {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    margin-right: 15px;
}

.testimonial-info h4 {
    margin-bottom: 5px;
    font-size: 16px;
}

.testimonial-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.testimonial-rating {
    margin-left: auto;
    color: var(--warning);
    font-size: 14px;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-subject {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.testimonial-subject i {
    color: var(--primary);
}

/* ===== FAQ Section ===== */
.referat-faq {
    padding: 100px 0;
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
}

.faq-question i {
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.referat-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.cta-features .feature i {
    color: var(--primary-light);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.cta-stats .stat {
    text-align: center;
}

.cta-stats .stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 5px;
    line-height: 1;
}

.cta-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Animations ===== */
@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    33% {
        transform: translate(-50%, -50%) rotate(1deg);
    }
    66% {
        transform: translate(-50%, -50%) rotate(-1deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-title-small {
        font-size: 28px;
    }

    .form-header {
        padding: 30px;
    }

    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .header-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .referat-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    /* Скрываем hero-visual на планшетах и мобильных */
    .hero-visual {
        display: none;
    }

    .cta-stats {
        gap: 40px;
    }

    .form-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .referat-hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-title-small {
        font-size: 22px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-features {
        justify-content: center;
    }

    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .form-header h3 {
        font-size: 24px;
    }

    .referat-form {
        padding: 25px;
    }

    .form-benefits {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .btn-generate-large {
        min-width: 100%;
        padding: 18px 30px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-stats .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .form-header {
        padding: 25px 15px;
    }

    .header-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .header-content h3 {
        font-size: 22px;
    }

    .referat-form {
        padding: 20px;
    }

    .form-input-large,
    .form-select,
    .form-textarea {
        padding: 16px 20px;
    }

    .benefit-item {
        padding: 15px;
    }

    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .cta-stats {
        gap: 20px;
    }

    .cta-stats .stat {
        flex: 1;
        min-width: 120px;
    }
}

/* Убираем подчеркивание у кнопки-ссылки */
.btn-generate-large {
    text-decoration: none;
}

/* Также для всех состояний */
.btn-generate-large:hover,
.btn-generate-large:focus,
.btn-generate-large:active,
.btn-generate-large:visited {
    text-decoration: none;
}

/* Если подчеркивание появляется у вложенных элементов */
.btn-generate-large .btn-content {
    text-decoration: none;
}

.btn-generate-large span,
.btn-generate-large i {
    text-decoration: none;
}