/* ========================================
   Reusable Components
   ======================================== */

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-card .card-icon {
    font-size: 30px;
    margin-bottom: 12px;
    display: block;
}

.feature-card .card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.feature-card .card-desc {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.stat-card {
    text-align: center;
    padding: 18px 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(255, 165, 89, 0.12));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange-700), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tech-tag {
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 165, 89, 0.15));
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--orange-700);
    transition: var(--transition);
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 165, 89, 0.25));
    transform: scale(1.05);
}

/* CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
    text-decoration: none;
    font-family: inherit;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
}

.cta-btn:active {
    transform: scale(0.97);
}

.cta-btn-secondary {
    background: transparent;
    border: 2px solid var(--orange-500);
    color: var(--orange-600);
    box-shadow: none;
}

.cta-btn-secondary:hover {
    background: rgba(255, 107, 53, 0.08);
    box-shadow: none;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.contact-item .c-icon {
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item .c-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item .c-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

/* Pricing Card */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--orange-400);
    background: rgba(255, 248, 240, 0.9);
}

.pricing-card.popular::before {
    content: 'Найпопулярніше';
    position: absolute;
    top: 12px;
    right: -32px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 40px;
    transform: rotate(45deg);
}

.pricing-card .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--orange-600);
}

.pricing-card .price-label {
    font-size: 12px;
    color: var(--text-muted);
}

.pricing-card .price-from {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .price-currency {
    font-size: 16px;
    font-weight: 600;
}

.pricing-card .pricing-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-features {
    list-style: none;
    margin: 14px 0;
}

.pricing-features li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--orange-500);
    font-weight: 700;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.faq-question {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '▼';
    font-size: 10px;
    color: var(--orange-500);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 18px 14px;
}

/* Logo Grid */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 16px 0;
}

.logo-item {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Team Card */
.team-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 16px 0;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-300), var(--orange-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.team-info {
    flex: 1;
}

.team-info .team-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.team-info .team-role {
    font-size: 13px;
    color: var(--orange-600);
    font-weight: 500;
    margin-bottom: 8px;
}

.team-info .team-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.15), transparent);
    margin: 24px 0;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--orange-600);
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

/* 3D Calculator */
.calculator-box {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin: 16px 0;
}

.calc-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
    flex-wrap: wrap;
}

.calc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.calc-input,
.calc-select {
    padding: 10px 14px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.calc-input:focus,
.calc-select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.calc-result {
    font-size: 24px;
    font-weight: 800;
    color: var(--orange-600);
    margin-top: 12px;
}

.calc-file-drop {
    border: 2px dashed rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 12px 0;
}

.calc-file-drop:hover {
    border-color: var(--orange-500);
    background: rgba(255, 107, 53, 0.04);
}

.calc-file-drop.active {
    border-color: var(--orange-500);
    background: rgba(255, 107, 53, 0.06);
}

/* Ecosystem Card */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.eco-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.eco-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.eco-card.popular {
    border-color: var(--orange-400);
}

.eco-card .eco-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.eco-card .eco-subtitle {
    font-size: 12px;
    color: var(--orange-600);
    font-weight: 500;
    margin-bottom: 12px;
}

.eco-card .eco-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Text page styles (privacy, terms, blog) */
.text-content h2 {
    margin-top: 0;
}

.text-content h3 {
    font-size: 15px;
    margin: 18px 0 8px;
}

.text-content p {
    margin-bottom: 10px;
}

.text-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.text-content ul li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Vacancy Card */
.vacancy-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    transition: var(--transition);
}

.vacancy-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-sm);
}

.vacancy-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.vacancy-meta {
    font-size: 12px;
    color: var(--orange-600);
    margin-bottom: 8px;
}

.vacancy-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Review Card */
.review-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.review-stars {
    color: #F59E0B;
    font-size: 14px;
    margin-bottom: 8px;
}

.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 8px;
}

.review-author {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}

.blog-date {
    font-size: 11px;
    color: var(--orange-500);
    font-weight: 600;
    margin-bottom: 4px;
}

.blog-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.blog-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}