/* ========================================
   БАЗОВЫЕ СТИЛИ И ОБНУЛЕНИЕ
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    overflow-x: hidden;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   FLASH MESSAGES (без изменений)
======================================== */

.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
}

.flash-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.flash-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .flash-message {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   НАВИГАЦИЯ (без изменений)
======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 70px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-brand .logo {
    color: #1a1a2e;
}

.navbar.scrolled .nav-menu a {
    color: #1a1a2e;
}

.navbar.scrolled .nav-menu a:hover {
    color: #667eea;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

@media (max-width: 768px) {
    .navbar {
        min-height: 60px;
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0 15px;
    }

    .nav-brand .logo {
        font-size: 1.3rem;
    }
}

/* ========================================
   HERO SECTION (без изменений)
======================================== */

.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding-top: 120px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem 0;
}

.hero-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd93d;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.cta-primary,
.cta-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.cta-consultation {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-consultation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-consultation:hover::before {
    left: 100%;
}

.cta-consultation:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #ff7979 100%);
}

.cta-consultation:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.window-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-buttons {
    display: flex;
    gap: 0.5rem;
}

.window-buttons .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red {
    background: #ff5f56;
}

.btn.yellow {
    background: #ffbd2e;
}

.btn.green {
    background: #27ca3f;
}

.window-title {
    color: #ccc;
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 0.5rem;
}

.keyword {
    color: #569cd6;
}

.module {
    color: #4ec9b0;
}

.function {
    color: #dcdcaa;
}

.variable {
    color: #9cdcfe;
}

.string {
    color: #ce9178;
}

.comment {
    color: #6a9955;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Hero — мобильная адаптация */
@media (max-width: 1024px) {
    .hero-image {
        display: none !important;
    }

    .hero-content .container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .hero-content {
        padding: 6rem 0 4rem 0;
    }

    .hero-cta {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-content {
        padding: 4rem 0 3rem 0;
    }

    .hero-content .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 10px;
        padding-top: 2rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        min-width: 120px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 5rem;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hero-image {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        margin-bottom: 6rem;
    }

    .hero-content {
        padding: 3rem 0 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-top: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        max-width: 250px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 390px) {
    .hero-section {
        padding-top: 110px;
    }

    .hero-content {
        padding-top: 5rem !important;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.15 !important;
        margin-top: 1rem !important;
        padding-top: 2rem;
    }

    .navbar {
        min-height: 65px;
    }
}

/* ========================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ (НОВЫЙ ДИЗАЙН)
======================================== */

section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a2e;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    section {
        padding: 3.5rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2.5rem 0;
    }

    section h2 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* ========================================
   УСЛУГИ (НОВЫЙ ДИЗАЙН)
======================================== */

.services-section {
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: #667eea;
    border-radius: 12px 0 0 12px;
    transition: width 0.3s ease;
}

.service-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
    transform: translateY(-4px);
}

.service-card:hover::before {
    width: 4px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: #f0f0ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    color: #667eea;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
}

.service-card:hover .service-icon {
    background: #667eea;
    color: #ffffff;
    transform: scale(1.05);
}

.service-card h3 {
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.service-description {
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.65;
    font-size: 0.95rem;
    flex: 1;
}

.service-features {
    list-style: none;
    margin: 0 0 1.25rem 0;
    padding: 0;
}

.service-features li {
    padding: 0.35rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.service-duration {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }
}


/* ========================================
   ПОРТФОЛИО (НОВЫЙ ДИЗАЙН)
======================================== */

.portfolio-section {
    background: #f9fafb;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.portfolio-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.portfolio-header {
    background: #1a1a2e;
    color: #ffffff;
    padding: 1.5rem;
    transition: background 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-card:hover .portfolio-header {
    background: #2d2d5e;
}

.portfolio-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    min-height: calc(1.15rem * 1.35 * 3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-category {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 400;
}

.portfolio-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.complexity-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.complexity-basic {
    background: #ecfdf5;
    color: #065f46;
}

.complexity-medium {
    background: #fffbeb;
    color: #92400e;
}

.complexity-advanced {
    background: #fef2f2;
    color: #991b1b;
}

.portfolio-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin-top: auto;
}

.tech-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: #e0e7ff;
    color: #4338ca;
}

.portfolio-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.portfolio-duration {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-load-more {
    text-align: center;
    margin-top: 2.5rem;
}

.portfolio-load-more .cta-primary {
    background: #1a1a2e;
    color: #ffffff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

.portfolio-load-more .cta-primary:hover {
    background: #2d2d5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .portfolio-header {
        padding: 1.25rem;
    }

    .portfolio-title {
        font-size: 1.1rem;
    }

    .portfolio-content {
        padding: 1.25rem;
    }

    .portfolio-footer {
        padding: 0.9rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-header {
        padding: 1rem;
    }

    .portfolio-title {
        font-size: 1.05rem;
    }

    .portfolio-content {
        padding: 1rem;
    }

    .portfolio-tech {
        gap: 0.4rem;
    }

    .tech-tag {
        font-size: 0.72rem;
        padding: 0.25rem 0.55rem;
    }
}

/* ========================================
   TECH STACK (НОВЫЙ ДИЗАЙН)
======================================== */

.tech-stack-section {
    background: #ffffff;
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 0.65rem 1.25rem 0.65rem 0.65rem;
    transition: all 0.3s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(15px);
}

.tech-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.12);
}

.tech-card .tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
    transition: transform 0.3s ease;
    box-shadow: none;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
    box-shadow: none;
}

.tech-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
    white-space: nowrap;
    margin-bottom: 0;
}

.tech-desc {
    display: none;
}

.tech-card.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tech-card.visible .tech-icon {
    animation: iconPulse 0.6s ease-in-out;
}

@media (max-width: 768px) {
    .tech-stack-grid {
        gap: 0.75rem;
    }

    .tech-card {
        padding: 0.5rem 1rem 0.5rem 0.5rem;
    }

    .tech-card .tech-icon {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .tech-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-grid {
        gap: 0.5rem;
    }

    .tech-card {
        padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    }

    .tech-card .tech-icon {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .tech-name {
        font-size: 0.8rem;
    }
}

/* ========================================
   ОТЗЫВЫ (НОВЫЙ ДИЗАЙН)
======================================== */

.testimonials {
    padding: 5rem 0;
    background: #f9fafb;
    color: #1a1a2e;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 33.33%;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    margin: 0 0.6rem;
    min-width: 300px;
}

.testimonial-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.client-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.client-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.client-position {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.date {
    font-size: 0.78rem;
    color: #9ca3af;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4b5563;
}

.testimonial-text p {
    margin: 0;
    position: relative;
    font-style: normal;
}

.testimonial-text p::before {
    content: none;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.slider-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #1a1a2e;
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.slider-btn:hover {
    background: #1a1a2e;
    color: #ffffff;
    border-color: #1a1a2e;
    transform: translateY(-1px);
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 50%;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 3.5rem 0;
    }

    .testimonial-card {
        flex: 0 0 100%;
        margin: 0 0.4rem;
        padding: 1.5rem;
    }

    .testimonials h2 {
        font-size: 1.8rem;
    }

    .slider-btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .client-photo {
        width: 42px;
        height: 42px;
    }
}

/* ========================================
   FAQ (НОВЫЙ ДИЗАЙН)
======================================== */

.faq-section {
    background: #ffffff;
}

.faq-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1a1a2e;
}

.faq-container {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    transition: none;
    position: relative;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.faq-item::before {
    content: none;
}

.faq-item:hover {
    transform: none;
    box-shadow: none;
}

.faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: none;
    user-select: none;
}

.faq-question:hover {
    background: transparent;
}

.faq-question h3 {
    color: #1a1a2e;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.faq-toggle {
    background: none;
    color: #9ca3af;
    width: 28px;
    height: 28px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #667eea;
    background: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    padding: 0 0 1.5rem 0;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3.5rem 0;
    }

    .faq-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .faq-question {
        padding: 1.25rem 0;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-toggle {
        margin-left: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 0 1.25rem 0;
    }
}

@media (max-width: 480px) {
    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* ========================================
   КОНТАКТЫ (НОВЫЙ ДИЗАЙН)
======================================== */

.contact-section {
    padding: 5rem 0;
    background: #1a1a2e;
    color: #ffffff;
}

.contact-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.consultation-subtitle {
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
}

.telegram-btn,
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.telegram-btn:hover,
.whatsapp-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon,
.telegram-icon {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3.5rem 0;
    }

    .consultation-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .telegram-btn,
    .whatsapp-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .telegram-btn,
    .whatsapp-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   ФУТЕР (НОВЫЙ ДИЗАЙН)
======================================== */

footer {
    background: #111827;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* ========================================
   ПРОГРЕСС-БАР ФОРМЫ (без изменений)
======================================== */

.form-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
    position: relative;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.progress-text.completed {
    color: #28a745;
    font-weight: 600;
}

/* ========================================
   СТИЛИ ФОРМЫ КОНТАКТОВ (на будущее)
======================================== */

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-submit {
    background: #1a1a2e;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    background: #2d2d5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 1rem;
}
