/*
Theme Name: Digital Punks
Theme URI: https://digitalpunks.ru
Author: Digital Punks Studio
Author URI: https://digitalpunks.ru
Description: Современная тема для AI-видеопродакшн студии с поддержкой кейсов и полной кастомизацией
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digital-punks
Tags: business, portfolio, video, ai, modern, responsive
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #0a0a0a;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    height: 50px;
    width: auto;
}

.logo img,
.logo svg {
    height: 100%;
    width: auto;
}

.nav-center {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-center a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

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

.nav-social {
    display: flex;
    gap: 15px;
}

.nav-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-social-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.nav-social-btn svg {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* About Section */
.about {
    padding: 100px 0;
    background: #0a0a0a;
}

.about h2 {
    font-size: 42px;
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-size: 17px;
}

.about-content p {
    margin-bottom: 20px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #111;
}

.services h2 {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #667eea;
}

.service-card p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.7;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #0a0a0a;
}

.portfolio h2 {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-video {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.portfolio-video img,
.portfolio-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: #0a0a0a;
}

.why-us h2 {
    font-size: 42px;
    margin-bottom: 60px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.contact h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Contact Form 7 Styles */
.contact-form .wpcf7 {
    width: 100%;
}

.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .wpcf7-form p {
    margin: 0 !important;
}

.contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form .wpcf7-text,
.contact-form .wpcf7-textarea,
.contact-form .wpcf7-form-control.wpcf7-text,
.contact-form .wpcf7-form-control.wpcf7-textarea {
    width: 100% !important;
    padding: 15px 20px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    background: rgba(255,255,255,0.9) !important;
    color: #333 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    box-sizing: border-box !important;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.contact-form .wpcf7-text:focus,
.contact-form .wpcf7-textarea:focus {
    outline: none !important;
    background: rgba(255,255,255,1) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3) !important;
}

.contact-form textarea,
.contact-form .wpcf7-textarea {
    resize: vertical !important;
    min-height: 150px !important;
}

.contact-form input[type="submit"],
.contact-form .wpcf7-submit {
    width: 100% !important;
    padding: 15px 40px !important;
    background: #fff !important;
    color: #667eea !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    box-sizing: border-box !important;
}

.contact-form input[type="submit"]:hover,
.contact-form .wpcf7-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
}

.contact-form .wpcf7-not-valid-tip {
    color: #fff !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    background: rgba(255,0,0,0.2) !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
}

.contact-form .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    border: none !important;
}

.contact-form .wpcf7-mail-sent-ok {
    background: rgba(76, 175, 80, 0.2) !important;
    border: 2px solid rgba(76, 175, 80, 0.5) !important;
    color: #fff !important;
}

.contact-form .wpcf7-validation-errors,
.contact-form .wpcf7-mail-sent-ng {
    background: rgba(244, 67, 54, 0.2) !important;
    border: 2px solid rgba(244, 67, 54, 0.5) !important;
    color: #fff !important;
}

.contact-form .wpcf7-spinner {
    margin: 10px auto !important;
    display: block !important;
}

/* Убираем label если не нужны */
.contact-form label {
    display: none !important;
}

.contact-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
}

.contact-social-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-social-btn svg {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    padding: 40px 0;
    background: #0a0a0a;
    text-align: center;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Case Study Page Styles */
.case-hero {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.case-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 40px;
}

.meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.meta-item {
    text-align: left;
}

.meta-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 18px;
    font-weight: 600;
}

.video-container {
    background: #1a1a1a;
    padding: 80px 20px;
}

.video-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.video-wrapper img,
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.section {
    padding: 80px 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.content-grid > div {
    display: flex;
    flex-direction: column;
}

.section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #667eea;
}

.section p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 20px;
}

.challenge {
    background: #1a1a1a;
}

.solution {
    background: #0a0a0a;
}

.features {
    background: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(102, 126, 234, 0.1);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.gallery {
    background: #0a0a0a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta {
    background: #1a1a1a;
    text-align: center;
    padding: 100px 20px;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 40px;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background: #111;
}

.partners h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #fff;
}

.partners-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: partners-scroll 32s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes partners-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 260px;
    height: 160px;
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.partner-logo:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.08);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.partner-logo img {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.1) rotate(4deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1,
    .case-hero h1 {
        font-size: 36px;
    }

    .nav-center {
        display: none;
    }

    nav {
        justify-content: space-between;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .meta {
        gap: 20px;
    }

    .gallery-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 20px;
    }

    .contact-social {
        flex-direction: column;
        align-items: center;
    }

    .contact-social-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .section h2 {
        font-size: 32px;
    }

    .partners h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .partners-track {
        gap: 24px;
        animation-duration: 22s;
    }

    .partner-logo {
        width: 180px;
        height: 110px;
        padding: 16px 20px;
    }

    .partner-logo img {
        max-height: 70px;
        max-width: 140px;
    }
}

.portfolio-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.challenge {
    background: #1a1a1a;
}

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

.challenge h2,
.challenge h3 {
    color: #fff;
}

.challenge p,
.challenge ul li {
    color: rgba(255,255,255,0.85);
}

/* Стили для списка требований в блоке Задача */
.challenge ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.challenge ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.6;
    color: #fff !important;
}

.challenge ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #667eea;
    font-size: 22px;
    font-weight: bold;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}