/* ==========================================
   ProstoStihi.ru — Custom Style
   Редактируется через: Админка → Дизайн → CSS-стили
   ========================================== */
/* ========================================
   МИНИМАЛЬНЫЙ СБРОС (вместо Tailwind preflight)
   ======================================== */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; margin: 0; }
button { cursor: pointer; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }


/* ========================================
   CSS-ТОКЕНЫ (фирменный стиль)
   ======================================== */
:root {
  --purple: #8B5CF6;
  --magenta: #D946EF;
  --pink: #EC4899;
  --gradient-primary: linear-gradient(135deg, #8B5CF6, #D946EF);
  --gradient-diagonal: linear-gradient(135deg, #7C3AED 0%, #D946EF 100%);
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --fg: #111111;
  --muted: #6B6B6B;
  --border: #E5E5E5;
  --success: #17A34A;
  --radius: 12px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lift: 0 12px 32px rgba(139,92,246,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --max-width: 1200px;
}

/* ========================================
   БАЗОВАЯ ТИПОГРАФИКА САЙТА
   (из about.html.twig — единый стиль заголовков и текста)
   ======================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

p, .p {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Highlight — градиентная заливка текста */
.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== front/app/views/ai.html.twig ===== */
#chat-messages::-webkit-scrollbar { width: 4px; }
    #chat-messages::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 2px; }
    .ai-message p { margin: 0.25rem 0; }
    .ai-message p:first-child { margin-top: 0; }
    .ai-message p:last-child { margin-bottom: 0; }
    .ai-message code { background: #f5f5f4; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875rem; }
    .ai-message pre { background: #1c1917; color: #fafaf9; padding: 0.75rem 1rem; border-radius: 0.5rem; overflow-x: auto; font-size: 0.8125rem; }
    .ai-message table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.875rem; }
    .ai-message th, .ai-message td { border: 1px solid #e7e5e4; padding: 0.5rem 0.75rem; text-align: left; }
    .ai-message th { background: #fafaf9; font-weight: 600; }
    .ai-message ul, .ai-message ol { padding-left: 1.25rem; margin: 0.25rem 0; }
    .ai-message strong { color: #1c1917; }
    .ai-message a { color: #78716c; text-decoration: underline; }
    .typing-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a8a29e; animation: typing-bounce 1.4s infinite ease-in-out both; margin: 0 1px; }
    .typing-dot:nth-child(1) { animation-delay: -0.32s; }
    .typing-dot:nth-child(2) { animation-delay: -0.16s; }
    @keyframes typing-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
    .quick-link-btn { display: inline-flex; align-items: center; padding: 0.375rem 0.75rem; background: #f5f5f4; border: 1px solid #e7e5e4; border-radius: 9999px; font-size: 0.8125rem; color: #57534e; cursor: pointer; transition: all 0.15s; }
    .quick-link-btn:hover { background: #e7e5e4; color: #1c1917; }

/* ===== front/app/views/base.html.twig ===== */
/* Плавная прокрутка */
        html {
            scroll-behavior: smooth;
        }
        
        /* Кастомные стили для улучшения UX */
        .nav-link {
            position: relative;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            color: #EC4899;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background: linear-gradient(90deg, #EC4899, #D946EF);
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }

        /* Mobile menu */
        .mobile-menu {
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }
        .mobile-menu.open {
            transform: translateX(0);
        }
        .mobile-overlay {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .mobile-overlay.open {
            opacity: 1;
            pointer-events: auto;
        }
        body.mobile-menu-open {
            overflow: hidden;
        }

/* ===== front/app/views/blog.html.twig ===== */
.page-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
/*      border-bottom: 2px solid #e0e0e0;*/
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }



    .page-subtitle {
        color: #888;
        font-size: 1.1em;
        margin: 0;
    }

    .content-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 40px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .grid-item {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .grid-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

    .grid-item-image {
        width: 100%;
        height: 220px;
        overflow: hidden;
    }

    .grid-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .grid-item:hover .grid-item-image img {
        transform: scale(1.05);
    }

    .grid-item-content {
        padding: 25px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .grid-item-title {
        font-size: 1.3em;
        margin: 0 0 12px 0;
        line-height: 1.4;
    }

    .grid-item-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.2s;
    }

    .grid-item-title a:hover {
        color: #007bff;
    }

    .grid-item-meta {
        margin-bottom: 15px;
        font-size: 0.9em;
        color: #999;
    }

    .grid-item-meta time {
        display: inline-block;
    }

    .grid-item-excerpt {
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        flex: 1;
    }

    .read-more {
        display: inline-block;
        padding: 10px 25px;
        background: #007bff;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.95em;
        transition: background 0.2s;
        align-self: flex-start;
    }

    .read-more:hover {
        background: #0056b3;
    }

    .no-items {
        grid-column: 1 / -1;
        text-align: center;
        padding: 60px 20px;
        background: #f9f9f9;
        border-radius: 12px;
    }

    .no-items p {
        font-size: 1.2em;
        color: #888;
        margin: 0;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        border-top: 1px solid #e0e0e0;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .pagination-prev,
    .pagination-next {
        display: inline-block;
        padding: 12px 25px;
        background: #f0f0f0;
        color: #333;
        text-decoration: none;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        font-size: 0.95em;
    }

    .pagination-prev:hover,
    .pagination-next:hover {
        background: #007bff;
        color: #fff;
    }

    .pagination-info {
        font-size: 0.95em;
        color: #888;
    }

    @media (max-width: 1024px) {
        .content-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .content-grid {
            grid-template-columns: 1fr;
            gap: 20px;
            padding-left: 15px;
            padding-right: 15px;
        }



        .grid-item-image {
            height: 180px;
        }

        .grid-item-content {
            padding: 20px;
        }

        .pagination {
            padding-left: 15px;
            padding-right: 15px;
        }
    }

    @media (max-width: 480px) {
        .pagination {
            flex-direction: column;
            gap: 15px;
        }

        .grid-item-image {
            height: 160px;
        }
    }

/* ===== front/app/views/blog_single.html.twig ===== */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-single-header {
    margin-bottom: 2rem;
}

.blog-single-title {
    font-size: 2.2rem;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 1rem;
}

.blog-single-meta {
    color: #888;
    font-size: 0.95rem;
}

.blog-single-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.blog-single-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.blog-single-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.blog-single-content p {
    margin-bottom: 1.2rem;
}

.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-single-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.blog-single-nav-link {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    max-width: 45%;
    transition: color 0.2s;
}

.blog-single-nav-link:hover {
    color: #0056b3;
}

.blog-single-nav-link.next {
    text-align: right;
    margin-left: auto;
}

.blog-single-back {
    text-align: center;
    padding-bottom: 3rem;
}

.blog-single-back-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-single-back-link:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .blog-single {
        padding: 0 15px;
    }

    .blog-single-title {
        font-size: 1.6rem;
    }

    .blog-single-content {
        font-size: 1rem;
    }

    .blog-single-nav {
        flex-direction: column;
    }

    .blog-single-nav-link {
        max-width: 100%;
    }
}

/* ===== front/app/views/example.html.twig ===== */
.page-header {
        margin-bottom: 10px;
        padding-top: 30px;
        padding-bottom: 0;

        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }



    /* Инфо-блок со статистикой */
    .hero-stats {
        max-width: 1200px;
        margin: 0 auto 40px;
        padding: 30px 20px;
        background: linear-gradient(135deg, #FAF5FF, #FFF5F5);
        border-radius: 16px;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    .stat-item {
        text-align: center;
        padding: 15px;
    }

    .stat-icon {
        font-size: 5em;
        margin: 0 auto 12px;
        color: #D946EF;
    }

    .stat-number {
        font-family: 'Oswald', sans-serif;
        font-size: 3em;
        font-weight: 700;
        background: linear-gradient(135deg, #8B5CF6, #EC4899);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.2;
    }

    .stat-label {
        font-size: 1.2em;
        color: #555;
        margin-top: 8px;
        font-weight: 500;
    }

    .hero-cta {
        text-align: center;
        padding-top: 16px;
        border-top: 1px solid rgba(139, 92, 246, 0.15);
    }

    .hero-desc {
        color: #444;
        font-size: 1.2em;
        margin: 0 0 16px;
        line-height: 1.6;
        font-weight: 500;
    }

    .vk-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 32px;
        background: linear-gradient(135deg, #8B5CF6, #D946EF);
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 500;
        font-size: 1.1em;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    }

    .vk-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
        background: linear-gradient(135deg, #A78BFA, #E879F9);
    }

    .vk-svg {
        width: 20px;
        height: 20px;
    }

    .content-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 40px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .grid-item {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .grid-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

    .grid-item-image {
        width: 100%;
        height: 220px;
        overflow: hidden;
    }

    .grid-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .grid-item:hover .grid-item-image img {
        transform: scale(1.05);
    }

    .grid-item-content {
        padding: 25px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .grid-item-title {
        font-size: 1.3em;
        margin: 0 0 12px 0;
        line-height: 1.4;
    }

    .grid-item-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.2s;
    }

    .grid-item-title a:hover {
        color: #D946EF;
    }

    .grid-item-meta {
        margin-bottom: 15px;
        font-size: 0.9em;
        color: #999;
    }

    .grid-item-meta time {
        display: inline-block;
    }

    .grid-item-excerpt {
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        flex: 1;
    }

    .read-more {
        display: inline-block;
        padding: 10px 25px;
        background: linear-gradient(135deg, #8B5CF6, #D946EF);
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.95em;
        font-weight: 500;
        transition: all 0.3s ease;
        align-self: flex-start;
        box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    }

    .read-more:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
        background: linear-gradient(135deg, #A78BFA, #E879F9);
    }

    .no-items {
        grid-column: 1 / -1;
        text-align: center;
        padding: 60px 20px;
        background: #f9f9f9;
        border-radius: 12px;
    }

    .no-items p {
        font-size: 1.2em;
        color: #888;
        margin: 0;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        border-top: 1px solid #e0e0e0;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 20px;
        padding-right: 20px;
    }

    .pagination-prev,
    .pagination-next {
        display: inline-block;
        padding: 12px 25px;
        background: #f0f0f0;
        color: #333;
        text-decoration: none;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
        font-size: 0.95em;
    }

    .pagination-prev:hover,
    .pagination-next:hover {
        background: linear-gradient(135deg, #8B5CF6, #D946EF);
        color: #fff;
        box-shadow: 0 2px 10px rgba(217, 70, 239, 0.3);
    }

    .pagination-info {
        font-size: 0.95em;
        color: #888;
    }

    @media (max-width: 1024px) {
        .content-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .content-grid {
            grid-template-columns: 1fr;
            gap: 20px;
            padding-left: 15px;
            padding-right: 15px;
        }



        .grid-item-image {
            height: 180px;
        }

        .grid-item-content {
            padding: 20px;
        }

        .pagination {
            padding-left: 15px;
            padding-right: 15px;
        }

        .page-header {
            padding-top: 20px;
        }

        .stats-row {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .hero-stats {
            padding: 20px 15px;
        }
    }

    /* Категории */
    .category-nav {
        max-width: 1200px;
        margin: 0 auto 30px;
        padding: 0 20px;
    }
    
    .category-nav-inner {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
        padding: 18px 24px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        border: 1px solid #f0e6ff;
    }
    
    .category-label {
        font-weight: 600;
        color: #555;
        font-size: 0.95em;
        white-space: nowrap;
    }
    
    .category-buttons {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .category-btn {
        display: inline-block;
        padding: 10px 22px;
        background: linear-gradient(135deg, #FAF5FF, #FFF5F5);
        color: #8B5CF6;
        text-decoration: none;
        border-radius: 8px;
        font-size: 0.95em;
        font-weight: 500;
        border: 1px solid rgba(139, 92, 246, 0.15);
        transition: all 0.3s ease;
    }
    
    .category-btn:hover {
        background: linear-gradient(135deg, #8B5CF6, #D946EF);
        color: #fff;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
    }

    @media (max-width: 480px) {
        .pagination {
            flex-direction: column;
            gap: 15px;
        }

        .grid-item-image {
            height: 160px;
        }
    }

/* ===== front/app/views/example_single.html.twig ===== */
.prose {
    color: #374151;
    line-height: 1.8;
}
.prose p { margin-bottom: 1.2rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; color: #111827; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; color: #1f2937; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1.5rem 0; }
.prose blockquote { border-left: 4px solid #D946EF; padding-left: 1rem; color: #6b7280; font-style: italic; margin: 1.5rem 0; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== front/app/views/form.html.twig ===== */
.contacts-section {
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  background: #fff;
  padding: 4rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}

@media (max-width: 850px) {
  .contacts-section {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 3rem;
    margin: 1.5rem auto;
  }
}

.contacts-info h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #8B5CF6, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contacts-info .subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  font-family: 'Raleway', sans-serif;
}

.contacts-details {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contacts-details h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-family: 'Oswald', sans-serif;
}

.contacts-details p,
.contacts-details a {
  font-size: 1.1rem;
  color: #374151;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
  font-family: 'Raleway', sans-serif;
}

.contacts-details a:hover {
  color: #EC4899;
}

.contacts-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.contacts-social a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
}

.contacts-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  font-family: 'Raleway', sans-serif;
}

.contacts-form input,
.contacts-form textarea,
.contacts-form select {
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  transition: all 0.2s;
}

.contacts-form input:focus,
.contacts-form textarea:focus,
.contacts-form select:focus {
  outline: none;
  border-color: #8B5CF6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contacts-form button,
.contacts-form input[type="submit"],
.contacts-form .btn {
  background: linear-gradient(90deg, #8B5CF6, #EC4899) !important;
  color: #fff !important;
  border: none !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
  margin-top: 1rem !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.contacts-form button:hover {
  opacity: 0.9 !important;
}

/* ===== front/app/views/glavnaya.html.twig ===== */
/* Mobile: main promo image positioning */
@media (max-width: 767px) {
    .promo-main {
        object-position: 100% 0;
    }
}

/* ===== front/app/views/glavnaya.html.twig ===== */
/* Mobile: main promo image positioning */
@media (max-width: 767px) {
    .promo-main {
        object-position: 100% 0;
    }
}

/* ===== front/app/views/page.html.twig ===== */
.oferta-content {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.75;
}
.oferta-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}
.oferta-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.oferta-content p {
    margin-bottom: 0.75rem;
}
.oferta-content ul, .oferta-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.oferta-content li {
    margin-bottom: 0.4rem;
}
.oferta-content strong {
    color: #111827;
    font-weight: 600;
}
.oferta-content a {
    color: #8B5CF6;
    text-decoration: underline;
}
.oferta-content a:hover {
    color: #D946EF;
}

@media (max-width: 640px) {
    .oferta-content {
        font-size: 0.9rem;
    }
    .oferta-content h2 {
        font-size: 1.15rem;
    }
}

/* ===== front/app/views/price.html.twig ===== */


/* ========================================
RESET / BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
 font-family: var(--font-body);
 background: var(--bg);
 color: var(--fg);
 line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.price-container {
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 0 24px;
}

.price-section {
 padding: 80px 0;
}



/* ========================================
БЛОК 1 — HERO
======================================== */
.price-hero {
 padding: 50px 0 40px;
 text-align: center;
 position: relative;
 overflow: hidden;
}
.price-hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(139,92,246,0.06), transparent 70%);
 pointer-events: none;
}
/*.price-hero h1 {
 font-size: clamp(36px, 6vw, 48px);
 font-weight: 700;
 letter-spacing: -0.01em;
 text-transform: uppercase;
 background: var(--gradient-primary);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
 margin-bottom: 20px;
}*/
.price-hero p {
 max-width: 640px;
 margin: 0 auto;
 font-size: clamp(16px, 2vw, 18px);
 color: var(--muted);
 line-height: 1.6;
}
.price-hero p strong {
 color: var(--fg);
 font-weight: 600;
}
.price-hero-chevron {
display: flex;
justify-content: center;
 margin-top: 20px;
 animation: bounce 2s infinite;
}
.price-hero-chevron svg {
 width: 32px;
 height: 32px;
 color: var(--purple);
 opacity: 0.5;
}
@keyframes bounce {
 0%, 100% { transform: translateY(0); }
 50% { transform: translateY(8px); }
}

/* ========================================
ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ
======================================== */
.section-title {
 font-size: clamp(28px, 3.5vw, 36px);
 text-align: center;
 margin-bottom: 48px;
 font-weight: 600;
 letter-spacing: -0.01em;
 color: var(--fg);
}

/* ========================================
БЛОК 2+3 — СЕТКА ТАРИФОВ
======================================== */
.pricing-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 24px;
 align-items: start;
}

.pricing-card {
 background: var(--surface);
 border-radius: var(--radius);
 padding: 32px 28px;
 box-shadow: var(--shadow-card);
 border: 1px solid var(--border);
 transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}
.pricing-card:hover {
 transform: translateY(-6px);
 box-shadow: var(--shadow-lift);
}
.pricing-card.featured {
 border-color: transparent;
 background: linear-gradient(var(--surface), var(--surface)) padding-box,
 var(--gradient-primary) border-box;
 position: relative;
}
.pricing-card.featured::after {
 content: '★ Хит';
 position: absolute;
 top: -12px;
 left: 50%;
 transform: translateX(-50%);
 background: var(--gradient-primary);
 color: #fff;
 font-family: var(--font-body);
 font-size: 12px;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 0.04em;
 padding: 4px 16px;
 border-radius: 20px;
 white-space: nowrap;
}

.pricing-card h3 {
 font-size: 22px;
 font-weight: 600;
 margin-bottom: 12px;
 letter-spacing: -0.01em;
}
.pricing-card .price {
 font-family: var(--font-display);
 font-size: 36px;
 font-weight: 700;
 line-height: 1;
 margin-bottom: 4px;
 color: var(--fg);
}
.pricing-card .price .old {
 font-size: 22px;
 color: var(--muted);
 text-decoration: line-through;
 font-weight: 500;
 margin-right: 8px;
}
.pricing-card .per-unit {
 font-size: 13px;
 color: var(--muted);
 margin-bottom: 20px;
 font-weight: 500;
}
.pricing-card ul {
 list-style: none;
 margin-bottom: 28px;
 flex: 1;
}
.pricing-card ul li {
 padding: 6px 0;
 font-size: 14px;
 color: var(--fg);
 display: flex;
 align-items: center;
 gap: 8px;
}
.pricing-card ul li::before {
 content: '✓';
 font-weight: 700;
 color: var(--purple);
 flex-shrink: 0;
}
.pricing-card.featured ul li::before {
 background: var(--gradient-primary);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

/* ======== КНОПКИ ======== */
.price-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: 12px 28px;
 border-radius: 8px;
 font-family: var(--font-body);
 font-size: 15px;
 font-weight: 600;
 cursor: pointer;
 border: 2px solid transparent;
 transition: all 0.25s ease;
 text-align: center;
 width: 100%;
}
.price-btn-primary {
 background: var(--gradient-primary);
 color: #fff;
 border: none;
}
.price-btn-primary:hover {
 opacity: 0.92;
 transform: scale(1.02);
}
.price-btn-secondary {
 background: transparent;
 color: var(--fg);
 border: 2px solid var(--border);
}
.price-btn-secondary:hover {
 border-color: var(--purple);
 color: var(--purple);
}
.price-btn-outline-pink {
 background: transparent;
 color: var(--pink);
 border: 2px solid var(--pink);
}
.price-btn-outline-pink:hover {
 background: var(--pink);
 color: #fff;
}
.price-btn-white {
 background: #fff;
 color: var(--purple);
 border: none;
}
.price-btn-white:hover {
 box-shadow: 0 4px 16px rgba(255,255,255,0.3);
 transform: translateY(-2px);
}

/* ========================================
БЛОК 4 — ТАБЛИЦА УСЛУГ
======================================== */
.services-table-wrap {
 max-width: 700px;
 margin: 0 auto;
}
.services-table {
 width: 100%;
 border-collapse: collapse;
}
.services-table tr {
 border-bottom: 1px solid var(--border);
 transition: background 0.2s ease;
}
.services-table tr:last-child {
 border-bottom: none;
}
.services-table tr:hover {
 background: rgba(139,92,246,0.03);
}
.services-table td {
 padding: 18px 12px;
 font-size: 16px;
 vertical-align: middle;
}
.services-table td:first-child {
 font-weight: 500;
}
.services-table td:last-child {
 text-align: right;
 font-family: var(--font-display);
 font-size: 18px;
 font-weight: 600;
 color: var(--purple);
 white-space: nowrap;
}
.services-table tr:hover td:last-child {
 text-decoration: underline;
 text-decoration-color: var(--magenta);
 text-underline-offset: 4px;
 text-decoration-thickness: 2px;
}

/* ========================================
БЛОК 5 — ПРОМОБЛОК (Lead Magnet)
======================================== */
.price-promo {
 background: var(--gradient-diagonal);
 border-radius: 20px;
 padding: 60px 48px;
 display: flex;
 align-items: center;
 gap: 48px;
 color: #fff;
 margin-top: 25px;
}
.price-promo-text {
 flex: 1.2;
}
.price-promo-text h2 {
 font-size: clamp(28px, 3vw, 36px);
 font-weight: 700;
 color: #fff;
 margin-bottom: 16px;
}
.price-promo-text p {
 font-size: 15px;
 line-height: 1.7;
 opacity: 0.9;
 max-width: 480px;
}
.price-promo-form {
 flex: 1;
 display: flex;
 flex-direction: column;
 gap: 12px;
}
.price-promo-form input {
 padding: 14px 18px;
 border-radius: 8px;
 border: 2px solid rgba(255,255,255,0.25);
 background: rgba(255,255,255,0.12);
 color: #fff;
 font-family: var(--font-body);
 font-size: 15px;
 outline: none;
 transition: border-color 0.2s ease, background 0.2s ease;
}
.price-promo-form input::placeholder {
 color: rgba(255,255,255,0.6);
}
.price-promo-form input:focus {
 border-color: #fff;
 background: rgba(255,255,255,0.18);
}
.price-promo-form .price-btn {
 padding: 14px 28px;
 font-size: 16px;
}

/* ========================================
МОДАЛЬНОЕ ОКНО
======================================== */
.price-modal-overlay {
 display: none;
 position: fixed;
 inset: 0;
 background: rgba(0,0,0,0.5);
 backdrop-filter: blur(4px);
 z-index: 1000;
 align-items: center;
 justify-content: center;
 padding: 24px;
}
.price-modal-overlay.open {
 display: flex;
}
.price-modal {
 background: var(--surface);
 border-radius: 16px;
 padding: 40px 36px 32px;
 max-width: 420px;
 width: 100%;
 position: relative;
 box-shadow: 0 24px 64px rgba(0,0,0,0.2);
 animation: modalIn 0.25s ease;
}
@keyframes modalIn {
 from { opacity: 0; transform: scale(0.95) translateY(12px); }
 to { opacity: 1; transform: scale(1) translateY(0); }
}
.price-modal-close {
 position: absolute;
 top: 14px;
 right: 18px;
 background: none;
 border: none;
 font-size: 24px;
 color: var(--muted);
 cursor: pointer;
 line-height: 1;
 padding: 4px;
}
.price-modal-close:hover { color: var(--fg); }
.price-modal h3 {
 font-size: 24px;
 margin-bottom: 8px;
 text-align: center;
}
.price-modal p {
 font-size: 14px;
 color: var(--muted);
 text-align: center;
 margin-bottom: 24px;
}
.price-modal-form {
 display: flex;
 flex-direction: column;
 gap: 14px;
}
.price-modal-form input {
 padding: 12px 16px;
 border-radius: 8px;
 border: 1px solid var(--border);
 font-family: var(--font-body);
 font-size: 15px;
 outline: none;
 transition: border-color 0.2s ease;
}
.price-modal-form input:focus {
 border-color: var(--purple);
}
.price-modal-form .price-btn {
 margin-top: 4px;
}

/* ========================================
АДАПТИВНОСТЬ
======================================== */
@media (max-width: 1023px) {
 .pricing-grid {
 grid-template-columns: repeat(2, 1fr);
 }
 .pricing-grid .pricing-card:last-child {
 grid-column: 1 / -1;
 max-width: 480px;
 margin: 0 auto;
 }
 .price-promo {
 flex-direction: column;
 text-align: center;
 padding: 48px 32px;
 }
 .price-promo-text p { max-width: 100%; }
 .price-promo-form { max-width: 400px; width: 100%; }
}

@media (max-width: 639px) {
 .price-section { padding: 48px 0; }
 .price-hero { padding: 48px 0 24px; }

 .pricing-grid {
 grid-template-columns: 1fr;
 }
 .pricing-grid .pricing-card:last-child {
 grid-column: auto;
 max-width: 100%;
 }
 .pricing-card {
 padding: 24px 20px;
 }
 .pricing-card .price {
 font-size: 30px;
 }

 .services-table td {
 padding: 14px 8px;
 font-size: 14px;
 }
 .services-table td:last-child {
 font-size: 16px;
 }

 .price-promo {
 padding: 36px 20px;
 border-radius: 16px;
 }
 .price-promo-form input {
 padding: 12px 14px;
 }

 .price-modal {
 padding: 28px 20px 24px;
 }
}

@media (max-width: 359px) {
 .price-container { padding: 0 12px; }
 .pricing-card { padding: 20px 16px; }
}

/* ===== front/app/views/about.html.twig ===== */

.about-page {
  font-family: 'Raleway', sans-serif;
}

/* Контейнер */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
БЛОК 1 — HERO «НАША МИССИЯ»
======================================== */
.about-hero {
  padding: 50px 0 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(139,92,246,0.06), transparent 70%);
  pointer-events: none;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.15;
}
.about-hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* Сетка тегов-поводов */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.tag-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  cursor: default;
}
.tag-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.tag-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* ========================================
БЛОК 2 — КОМАНДА
======================================== */
.about-team {
  padding: 25px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

/* Аватар */
.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-primary) border-box;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: #E5E5E5;
}
.team-avatar-placeholder {
  width: 64px;
  height: 64px;
  color: #A1A1AA;
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.15;
}
.team-role {
  font-size: 15px;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 20px;
}
/* Буллиты по центру */
.team-card ul {
  list-style: none;
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
}
.team-card ul li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--fg);
}

/* ========================================
КНОПКИ about-btn
======================================== */
.about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-align: center;
  text-decoration: none;
}
.about-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
}
.about-btn-primary:hover {
  opacity: 0.92;
  transform: scale(1.02);
}
.about-btn-secondary-outline {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border);
}
.about-btn-secondary-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(139,92,246,0.04);
}
.about-btn-white {
  background: #fff;
  color: var(--purple);
  border: none;
}
.about-btn-white:hover {
  box-shadow: 0 4px 16px rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.about-btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.about-btn-ghost-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ========================================
БЛОК 3 — ФИНАЛЬНЫЙ CTA
======================================== */
.final-cta {
  background: var(--gradient-diagonal);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}
.final-cta p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
МОДАЛЬНОЕ ОКНО
======================================== */
.about-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.about-modal-overlay.open {
  display: flex;
}
.about-modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 40px 36px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: aboutModalIn 0.25s ease;
}
@keyframes aboutModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.about-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.about-modal-close:hover { color: var(--fg); }
.about-modal h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.15;
}
.about-modal p {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}
.about-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-modal-form input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.about-modal-form input:focus {
  border-color: var(--purple);
}
.about-modal-form .about-btn {
  margin-top: 4px;
}

/* ========================================
АДАПТИВНОСТЬ
======================================== */
@media (max-width: 1023px) {
  .team-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 639px) {
  .about-hero { padding: 40px 0 20px; }
  .about-hero .about-subtitle { margin-bottom: 32px; }
  .about-team { padding: 20px 0; }

  .tags-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .tag-card { font-size: 14px; padding: 14px 12px; }
  .team-card { padding: 28px 20px 24px; }
  .team-avatar { width: 130px; height: 130px; }
  .team-avatar-placeholder { width: 52px; height: 52px; }
  .team-card h3 { font-size: 20px; }

  .final-cta { padding: 40px 24px; border-radius: 16px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .about-btn { width: 100%; max-width: 300px; }

  .about-modal { padding: 28px 20px 24px; }
}

@media (max-width: 359px) {
  .about-container { padding: 0 12px; }
  .tags-grid { grid-template-columns: 1fr; }
}
