/* ============================================================
   KOZLOV MEDIA – FULLY WORKING STYLES
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img, iframe, video, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #1d4ed8;
}

/* ---------- HEADER ---------- */
.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.logo span {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-list a {
    font-weight: 500;
    color: #334155;
    position: relative;
    padding-bottom: 2px;
}
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: width 0.3s;
}
.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}
.nav-list a:hover,
.nav-list a.active {
    color: #2563eb;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0f172a;
    transition: all 0.3s;
    border-radius: 2px;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}
.btn-primary:active {
    transform: scale(0.97);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #2563eb;
    color: #2563eb;
}
.btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}
.btn-sm {
    padding: 6px 18px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

/* ========== HERO – FULLY CENTERED ========== */
.hero {
    padding: 80px 0 60px;
    background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.04) 0%, transparent 70%),
                radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.04) 0%, transparent 60%),
                #ffffff;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 280px;
    text-align: left;
}

.hero-image {
    flex: 1 1 40%;
    max-width: 40%;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-content p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 28px;
}
.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #475569;
}
.hero-stats i {
    font-size: 18px;
    color: #2563eb;
}
.hero-img {
    max-width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

/* ---------- BADGE ---------- */
.hero-audit-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 60px;
    padding: 4px 14px 4px 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.badge-icon {
    color: #2563eb;
}
.badge-text {
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
}
.badge-link {
    font-weight: 600;
    color: #2563eb;
    transition: all 0.2s;
}
.badge-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ---------- SECTION TITLES ---------- */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    margin: 16px auto 0;
    border-radius: 4px;
}

/* ---------- PAIN CARDS ---------- */
.pains-section {
    padding: 70px 0;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}
.pains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.pain-card {
    background: white;
    border-radius: 28px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
}
.pain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
}
.pain-icon {
    font-size: 2.8rem;
    background: #eff6ff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: #2563eb;
    transition: all 0.3s;
}
.pain-card:hover .pain-icon {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
}
.pain-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.pain-card p {
    color: #475569;
}

/* ---------- PROCESS ---------- */
.process-section {
    padding: 70px 0;
    background: #ffffff;
}
.process-subtitle {
    text-align: center;
    color: #475569;
    margin-bottom: 48px;
    font-size: 1.1rem;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.process-step {
    background: #f8fafc;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
}
.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05);
}
.step-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2563eb;
    opacity: 0.2;
}
.step-icon {
    font-size: 2.2rem;
    color: #2563eb;
    margin: 8px 0 16px;
}
.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
.process-step p {
    color: #475569;
}
.process-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------- SERVICES ---------- */
.services-home {
    padding: 70px 0;
    background: #fafcff;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}
.service-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.08);
}
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #94a3b8;
}
.service-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.service-desc {
    font-size: 14px;
    color: #475569;
    flex: 1;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 16px 0 20px;
}
.service-card .btn {
    align-self: flex-start;
    margin-top: auto;
}
.mt-4, .mt-5 {
    margin-top: 40px;
}
.text-center {
    text-align: center;
}

/* ============================================================
   СТИЛИ ДЛЯ СТРАНИЦ СТАТЕЙ (АРХИВ И ОТДЕЛЬНАЯ СТАТЬЯ)
   ============================================================ */

/* ---------- АРХИВ СТАТЕЙ ---------- */
.archive-layout {
    display: flex;
    gap: 48px;
    margin: 40px 0;
}
.archive-main {
    flex: 2;
}
.archive-sidebar {
    flex: 1;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.archive-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
}
.archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.08);
}
.archive-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.archive-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.archive-img-placeholder {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8;
}
.archive-content {
    padding: 16px;
}
.archive-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.archive-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.archive-meta i {
    margin-right: 4px;
}
.archive-content p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}
.page-link {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    color: #1e1e2a;
    transition: all 0.2s;
}
.page-link:hover {
    background: #f1f5f9;
}
.page-link.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Боковая панель (виджеты) */
.widget-recent,
.widget-tags,
.widget-cta {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
}
.widget-recent h3,
.widget-tags h3,
.widget-cta h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.recent-list {
    list-style: none;
    padding: 0;
}
.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eef2ff;
}
.recent-list li:last-child {
    border-bottom: none;
}
.recent-list li a {
    font-weight: 500;
    text-decoration: none;
    color: #1e293b;
}
.recent-list li a:hover {
    color: #2563eb;
}
.recent-list li span {
    font-size: 0.7rem;
    color: #94a3b8;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a {
    background: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    text-decoration: none;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.tag-cloud a:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}
.widget-cta {
    text-align: center;
}
.widget-cta .btn {
    margin-top: 8px;
}

/* ---------- СТРАНИЦА ОДНОЙ СТАТЬИ ---------- */
.article-single {
    padding: 40px 0 60px;
}
.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}
.article-header {
    text-align: center;
    margin-bottom: 40px;
}
.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #6c757d;
    font-size: 0.9rem;
}
.article-meta i {
    margin-right: 6px;
}
.article-image {
    margin: 30px 0 40px;
    text-align: center;
}
.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.05);
}
.article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e293b;
}
.article-content p {
    margin-bottom: 1.5em;
}
.article-content h2 {
    font-size: 1.8rem;
    margin: 1.5em 0 0.8em;
}
.article-content h3 {
    font-size: 1.4rem;
    margin: 1.2em 0 0.6em;
}
.article-content ul,
.article-content ol {
    margin: 0 0 1.5em 1.5em;
}
.article-content li {
    margin-bottom: 0.4em;
}
.article-content strong {
    color: #2563eb;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 16px;
    display: block;
}
.article-content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    font-style: italic;
}

/* Теги статьи */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2ff;
}
.tags-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-link {
    background: #f1f5f9;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-link:hover {
    background: #2563eb;
    color: white;
}

/* Кнопка «Все статьи» */
.article-footer {
    margin-top: 40px;
}

/* Похожие статьи */
.similar-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eef2ff;
}
.similar-articles h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
}
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.similar-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
}
.similar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.08);
}
.similar-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.similar-img-placeholder {
    width: 100%;
    height: 150px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8;
}
.similar-item h4 {
    padding: 12px 16px 4px;
    font-size: 1rem;
    font-weight: 600;
}
.similar-item .date {
    display: block;
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* ---------- АДАПТАЦИЯ ДЛЯ СТРАНИЦ СТАТЕЙ ---------- */
@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .archive-layout {
        flex-direction: column;
        gap: 30px;
    }
    .archive-grid {
        grid-template-columns: 1fr;
    }
    .archive-img {
        height: 180px;
    }
    .archive-content {
        padding: 16px;
    }
    .article-header h1 {
        font-size: 2rem;
    }
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .article-image img {
        border-radius: 16px;
    }
    .article-content {
        font-size: 1rem;
    }
    .article-content h2 {
        font-size: 1.6rem;
    }
    .article-content h3 {
        font-size: 1.3rem;
    }
    .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- REVIEWS ---------- */
.reviews-home {
    padding: 70px 0;
    background: #f8fafc;
}
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.review-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.06);
}
.review-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
}
.review-name {
    font-weight: 700;
    font-size: 1.1rem;
}
.review-rating {
    color: #fbbf24;
    font-size: 0.9rem;
}
.review-text {
    color: #334155;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 3px solid #e2e8f0;
}
.review-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 32px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-link {
    color: #cbd5e1;
    transition: color 0.2s;
}
.footer-link:hover {
    color: white;
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
}
.footer-col i {
    width: 20px;
}

/* ---------- PAGES ---------- */
.about-page { padding: 60px 0; }
.about-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.about-text { flex: 2; }
.about-photo { flex: 1; max-width: 280px; }
.about-img { border-radius: 28px; box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1); }
.about-tagline {
    font-size: 1.2rem;
    color: #2563eb;
    margin-bottom: 20px;
    font-weight: 500;
}
.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 20px 0;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-item i { color: #2563eb; width: 24px; }
.about-contacts {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.about-section { margin: 60px 0; }
.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}
.approach-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.approach-card, .value-card {
    background: #f8fafc;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
}
.approach-card:hover, .value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05);
}
.approach-icon, .value-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 16px;
}
.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 24px;
}
.tech-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
}
.tech-category ul {
    list-style: none;
    padding: 0;
}
.tech-category li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}
.tech-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #2563eb;
}
.about-quote {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-left: 4px solid #2563eb;
    padding: 30px 40px;
    border-radius: 24px;
    margin-top: 60px;
    text-align: center;
}
.about-quote i {
    font-size: 2rem;
    color: #2563eb;
    opacity: 0.3;
    margin-bottom: 12px;
}
.about-quote p {
    font-size: 1.2rem;
    font-style: italic;
}

/* ---------- DETAIL PAGES ---------- */
.service-single, .article-single {
    padding: 40px 0 60px;
}
.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}
.service-header, .article-header {
    text-align: center;
    margin-bottom: 40px;
}
.service-price-large {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    margin-top: 12px;
}
.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #6c757d;
    font-size: 0.9rem;
}
.service-main-img, .article-image img {
    max-width: min(100%, 600px);
    margin: 20px auto;
    border-radius: 24px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.05);
}
.service-description, .article-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e293b;
}
.service-description h2, .article-content h2 {
    font-size: 1.8rem;
    margin: 1.5em 0 0.8em;
}
.service-description h3, .article-content h3 {
    font-size: 1.4rem;
    margin: 1.2em 0 0.6em;
}
.service-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2ff;
}
.tags-label {
    font-weight: 600;
}
.tag-link {
    background: #f1f5f9;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #2563eb;
    transition: all 0.2s;
}
.tag-link:hover {
    background: #2563eb;
    color: white;
}

/* ---------- ARCHIVE ---------- */
.archive-layout {
    display: flex;
    gap: 48px;
    margin: 40px 0;
}
.archive-main { flex: 2; }
.archive-sidebar { flex: 1; }
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.archive-item {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
}
.archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.06);
}
.archive-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.archive-content { padding: 16px; }
.archive-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.archive-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.archive-content p {
    font-size: 0.85rem;
    color: #475569;
}
.widget-recent, .widget-tags, .widget-cta {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
}
.widget-recent h3, .widget-tags h3, .widget-cta h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.recent-list {
    list-style: none;
    padding: 0;
}
.recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #eef2ff;
}
.recent-list li:last-child { border-bottom: none; }
.recent-list li a { font-weight: 500; }
.recent-list li span { font-size: 0.7rem; color: #94a3b8; }

/* ---------- QUIZ ---------- */
.quiz-block {
    background: #f8fafc;
    padding: 60px 0;
    text-align: center;
}
#quiz-container {
    max-width: 600px;
    margin: 30px auto 0;
}
.quiz-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}
.quiz-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}
.quiz-opt {
    background: white;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
}
.quiz-opt:hover {
    background: #2563eb;
    color: white;
}
.quiz-progress {
    font-size: 14px;
    color: #64748b;
}
.contact-form-card { text-align: left; }
.contact-form-card .form-group { margin-bottom: 20px; }
.contact-form-card label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}
.contact-form-card input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
}
.contact-form-card input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
#quiz-submit {
    width: 100%;
    padding: 12px;
}
.error-message {
    color: #dc2626;
    background: #fee2e2;
    padding: 10px;
    border-radius: 12px;
    margin-top: 16px;
}
.quiz-thanks {
    background: #dcfce7;
    color: #166534;
    padding: 24px;
    border-radius: 24px;
}
.quiz-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}
.quiz-page h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
}
.checkbox-group { margin: 20px 0; }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}
.checkbox-label input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
}

/* ---------- AUDIT PAGE ---------- */
.audit-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}
.audit-card {
    max-width: 720px;
    width: 100%;
    background: white;
    padding: 40px 36px;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
}
.audit-header {
    text-align: center;
    margin-bottom: 32px;
}
.audit-header h1 { font-size: 2rem; margin-bottom: 12px; }
.audit-header p { color: #475569; }
.audit-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.audit-form .form-row .form-group {
    flex: 1;
    min-width: 200px;
}
.audit-form .form-group { margin-bottom: 20px; }
.audit-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}
.audit-form input,
.audit-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
}
.audit-form input:focus,
.audit-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
#audit-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}
.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 16px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: center;
}

/* ---------- POPUP ---------- */
.hook-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hook-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(6px);
}
.hook-popup-content {
    position: relative;
    background: white;
    max-width: 480px;
    width: 90%;
    padding: 40px 32px 32px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 50px -20px rgba(0,0,0,0.3);
}
.hook-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
}
.hook-popup-icon {
    font-size: 48px;
    color: #2563eb;
    margin-bottom: 16px;
}
.hook-popup-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.hook-popup-content ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 16px 0 24px;
}
.hook-popup-content ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.hook-popup-content ul li i { color: #2563eb; width: 20px; }
.hook-popup-btn { width: 100%; }
.hook-popup-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 12px;
}

/* ---------- THANK YOU ---------- */
.thanks-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
}
.thanks-card {
    max-width: 600px;
    background: white;
    padding: 50px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}
.thanks-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 24px;
}
.thanks-card h1 { font-size: 32px; margin-bottom: 16px; }
.thanks-card p { font-size: 18px; color: #475569; }

/* ---------- FLOATING WIDGETS ---------- */
.floating-widgets {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}
.widget-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.widget-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.widget-btn img, .widget-btn i {
    width: 32px;
    height: 32px;
    font-size: 32px;
}
.widget-max { background: linear-gradient(135deg, #4a6cf7, #6366f1); }
.widget-vk { background: linear-gradient(135deg, #2787F5, #1a6bc4); }
.widget-telegram { background: linear-gradient(135deg, #1c9dd9, #0e7eb3); }

.pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    animation: pulse 1.8s infinite;
}
.widget-max .pulse-ring { animation-delay: 0s; }
.widget-vk .pulse-ring { animation-delay: 0.6s; }
.widget-telegram .pulse-ring { animation-delay: 1.2s; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}
.tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.widget-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---------- ADDITIONAL ---------- */
.page-hero {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eef2f6;
}
.page-hero h1 { font-size: 42px; margin-bottom: 12px; }
.price-note { margin: 60px 0; }
.note-card {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #bfdbfe;
    border-radius: 32px;
    padding: 48px;
    text-align: center;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 30px;
}
.faq-item {
    background: #f8fafc;
    border-radius: 24px;
    padding: 28px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
    gap: 30px;
}
.alert {
    padding: 16px 24px;
    border-radius: 20px;
    margin: 20px 0;
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #cbd5e1;
    padding: 16px;
    z-index: 1000;
}
.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.cookie-consent a { color: #90cdf4; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 40px; }
}
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.05);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        display: block;
    }
    .nav.active { right: 0; }
    .nav-list { flex-direction: column; gap: 20px; }
    .burger { display: flex; z-index: 1001; }
    .header-cta { padding: 4px 12px; font-size: 12px; }
    .logo { font-size: 22px; }

    .hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .hero-content {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }
    .hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .hero-img { max-width: 220px; margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-audit-badge {
        justify-content: center;
        font-size: 0.8rem;
        padding: 4px 12px;
        white-space: normal;
    }
    .badge-text { white-space: normal; }
    .badge-link { white-space: nowrap; }

    .section-title { font-size: 28px; }
    .pains-section, .services-home, .articles-home, .reviews-home, .hero, .process-section {
        padding: 50px 0;
    }
    .services-grid { grid-template-columns: 1fr; }
    .archive-layout { flex-direction: column; }
    .archive-grid { grid-template-columns: 1fr; }
    .about-grid { flex-direction: column; text-align: center; }
    .about-photo { max-width: 200px; margin: 0 auto; }
    .approach-grid, .values-grid { grid-template-columns: 1fr; }
    .tech-list { grid-template-columns: 1fr; }
    .service-cta { flex-direction: column; align-items: center; }
    .reviews-grid, .reviews-slider { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .pains-grid { grid-template-columns: repeat(2, 1fr); }
    .floating-widgets { bottom: 16px; right: 16px; }
    .widget-btn { width: 48px; height: 48px; }
    .widget-btn img, .widget-btn i { width: 24px; height: 24px; font-size: 24px; }
    .tooltip { display: none; }
}
@media (max-width: 640px) {
    .hero-content h1 { font-size: 32px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { min-width: 200px; }
    .process-grid, .pains-grid { grid-template-columns: 1fr; }
    .quiz-card { padding: 24px; }
    .note-card { padding: 24px; }
    .thanks-card { padding: 30px 20px; }
    .hook-popup-content { padding: 24px 16px; }
}

/* ========== УСИЛЕННЫЙ АКЦЕНТ ========== */
.accent {
    color: #2563eb !important;
    font-weight: 700 !important;
    background: linear-gradient(120deg, rgba(37,99,235,0.15) 0%, rgba(37,99,235,0.08) 100%) !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
}

/* ========== ФОТО УМЕНЬШЕНО В 3 РАЗА ========== */
.hero-img {
    max-width: 280px;   /* было 100%, стало 220px — примерно в 3 раза меньше */
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
    margin: 0 auto;
}

/* ========== СТРАНИЦА СТАТЕЙ (ARCHIVE) ========== */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.archive-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
}
.archive-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.08);
}
.archive-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.archive-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.archive-img-placeholder {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8;
}
.archive-content {
    padding: 16px;
}
.archive-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.archive-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.archive-content p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* ---------- СТРАНИЦА УСЛУГ (СПИСОК) ---------- */
.services-list .service-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.services-list .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1);
}
.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 16px 0 20px;
}

/* ---------- СТРАНИЦА ОДНОЙ УСЛУГИ ---------- */
.service-single {
    padding: 40px 0 60px;
}
.service-header {
    text-align: center;
    margin-bottom: 40px;
}
.service-price-large {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    margin-top: 12px;
}
.service-image {
    margin: 30px 0 40px;
    text-align: center;
}
.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 25px -8px rgba(0,0,0,0.05);
}
.service-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e293b;
}
.service-description h2 {
    font-size: 1.8rem;
    margin: 1.5em 0 0.8em;
}
.service-description h3 {
    font-size: 1.4rem;
    margin: 1.2em 0 0.6em;
}
.service-description ul {
    margin: 0 0 1.5em 1.5em;
}
.service-description strong {
    color: #2563eb;
}
.service-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.similar-services {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eef2ff;
}
.similar-services h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
.similar-service-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eef2ff;
}
.similar-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.08);
}
.similar-service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.similar-img-placeholder {
    width: 100%;
    height: 150px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8;
}
.similar-service-card h4 {
    padding: 12px 16px 4px;
    font-size: 1rem;
    font-weight: 600;
}
.similar-service-card .price {
    display: block;
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 500;
}

/* ---------- ДОПОЛНИТЕЛЬНО ДЛЯ СТРАНИЦЫ СТАТЕЙ ---------- */
.similar-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eef2ff;
}
.similar-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}
.similar-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eef2ff;
}
.similar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.08);
}
.similar-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.similar-item h4 {
    padding: 12px 16px 4px;
    font-size: 1rem;
    font-weight: 600;
}
.similar-item .date {
    display: block;
    padding: 0 16px 16px;
    font-size: 0.85rem;
    color: #6c757d;
}
.similar-img-placeholder {
    width: 100%;
    height: 150px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #94a3b8;
}

/* ---------- АДАПТАЦИЯ ДЛЯ СТРАНИЦ СТАТЕЙ И УСЛУГ ---------- */
@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
    .similar-grid {
        grid-template-columns: 1fr;
    }
    .service-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== МОБИЛЬНОЕ МЕНЮ И ЗАЩИТА ОТ ГОРИЗОНТАЛЬНОГО СКРОЛЛА ========== */
html, body {
    overflow-x: hidden;
    width: 100%;
}
* {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.05);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        display: block !important;
    }
    .nav.active {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .burger {
        display: flex !important;
        z-index: 1001;
    }
    body.menu-open {
        overflow: hidden;
    }
    .container {
        padding: 0 16px;
        overflow-x: hidden;
    }
    .hero-grid,
    .archive-layout,
    .services-grid,
    .articles-grid,
    .reviews-slider,
    .process-grid,
    .pains-grid {
        max-width: 100%;
        overflow-x: hidden;
    }
    img, iframe, video {
        max-width: 100%;
        height: auto;
    }
}

/* ========== ПЛАВАЮЩИЕ КНОПКИ (MAX, VK, TELEGRAM) ========== */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 999;
}

.widget-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    overflow: visible;
}

.widget-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.widget-btn img,
.widget-btn i {
    width: 28px;
    height: 28px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фоны */
.widget-max { background: linear-gradient(135deg, #4a6cf7, #6366f1); }
.widget-vk { background: linear-gradient(135deg, #2787F5, #1a6bc4); }
.widget-telegram { background: linear-gradient(135deg, #1c9dd9, #0e7eb3); }

/* Пульсация – мягче и с меньшей амплитудой */
.pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    animation: pulse 2s infinite;
    pointer-events: none;
}

.widget-max .pulse-ring { animation-delay: 0s; }
.widget-vk .pulse-ring { animation-delay: 0.7s; }
.widget-telegram .pulse-ring { animation-delay: 1.4s; }

@keyframes pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Всплывающая подсказка */
.tooltip {
    position: absolute;
    right: 66px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

.widget-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---------- АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ---------- */
@media (max-width: 768px) {
    .floating-widgets {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .widget-btn {
        width: 48px;
        height: 48px;
    }
    .widget-btn img,
    .widget-btn i {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }
    .tooltip {
        display: none; /* скрываем подсказки на мобильных */
    }
    .pulse-ring {
        inset: -3px;
    }
}

@media (max-width: 480px) {
    .floating-widgets {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    .widget-btn {
        width: 44px;
        height: 44px;
    }
    .widget-btn img,
    .widget-btn i {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}

/* ============================================================
   ПОЛЕЗНЫЕ СТАТЬИ НА ГЛАВНОЙ — 4 В РЯДУ
   ============================================================ */
.articles-home {
    padding: 70px 0;
    background: #ffffff;
}
.articles-home h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}
.articles-home h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    margin: 16px auto 0;
    border-radius: 4px;
}

/* Сетка — 4 колонки */
.articles-home .articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}
.articles-home .article-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.articles-home .article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
}
.articles-home .article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.articles-home .article-card-content {
    padding: 20px;
}
.articles-home .article-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.articles-home .article-card .date {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Адаптация для планшетов — 2 колонки */
@media (max-width: 1024px) {
    .articles-home .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Адаптация для мобильных — 1 колонка */
@media (max-width: 768px) {
    .articles-home {
        padding: 50px 0;
    }
    .articles-home h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }
    .articles-home .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .articles-home .article-card img {
        height: 180px;
    }
    .articles-home .article-card h3 {
        font-size: 1.1rem;
    }
}

/* ============================================================
   ПОРТФОЛИО НА ГЛАВНОЙ
   ============================================================ */
.portfolio-preview {
    padding: 60px 0;
    background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
}
.portfolio-subtitle {
    text-align: center;
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 48px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.portfolio-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #eef2ff;
    transition: all 0.3s;
    position: relative;
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
}
.portfolio-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.portfolio-badge.economy {
    background: #f1f5f9;
    color: #475569;
}
.portfolio-badge.premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
}
.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(15,23,42,0.7));
    color: white;
}
.portfolio-price {
    font-size: 0.85rem;
    font-weight: 600;
}
.portfolio-content {
    padding: 20px 24px 24px;
}
.portfolio-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.portfolio-content p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
}
.portfolio-content .btn {
    align-self: flex-start;
}
.portfolio-cta {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    color: #475569;
}
.portfolio-cta a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.portfolio-cta a:hover {
    text-decoration: underline;
}

/* Адаптация */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .portfolio-preview {
        padding: 40px 0;
    }
    .portfolio-image {
        height: 160px;
    }
    .portfolio-content {
        padding: 16px 20px 20px;
    }
}

/* ============================================================
   ЧИСТЫЕ ИКОНКИ (БЕЗ ГРАДИЕНТОВ, РОВНЫЕ И СТИЛЬНЫЕ)
   ============================================================ */

/* Иконки в круге с фоном — для виджетов и блоков */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 18px;
    transition: all 0.2s;
}
.icon-box:hover {
    background: #2563eb;
    color: #fff;
}

/* Иконки в сайдбаре виджетов (маленькие) */
.widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Иконки в карточках "Боли бизнеса" */
.pain-icon {
    background: #eff6ff;
    color: #2563eb;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 32px;
    transition: all 0.3s;
}
.pain-card:hover .pain-icon {
    background: #2563eb;
    color: #fff;
}

/* Иконки в блоке "Процесс" */
.step-icon {
    background: #f1f5f9;
    color: #2563eb;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 32px;
    transition: all 0.3s;
}
.process-step:hover .step-icon {
    background: #2563eb;
    color: #fff;
}

/* Иконки в контактах (футер, страница "Обо мне") */
.contact-icon {
    color: #2563eb;
    width: 24px;
    text-align: center;
    font-size: 16px;
}

/* Иконки в FAQ */
.faq-icon {
    color: #2563eb;
    margin-right: 8px;
    font-size: 18px;
}

/* ============================================================
   ЗАГОЛОВКИ ВИДЖЕТОВ (БЕЗ ИКОНОК, СТИЛЬНО)
   ============================================================ */
.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2ff;
    position: relative;
}
.widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #2563eb;
    border-radius: 4px;
    margin-top: 10px;
    transition: width 0.3s;
}
.widget-title:hover::after {
    width: 60px;
}

/* Если хотите совсем минималистично — уберите ::after и просто оставьте жирный шрифт */

.widget-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 2px;
    margin-right: 10px;
}

/* ============================================================
   ПАРТНЁРЫ — СТИЛЬНАЯ ПЛАШКА С НЕОН-ЭФФЕКТОМ
   ============================================================ */
.partners-section {
    padding: 30px 0;
    background: transparent;
}
.partners-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 40px;
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.partners-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06), 0 0 30px rgba(37, 99, 235, 0.04);
    transform: translateY(-2px);
}
.partners-label {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    white-space: nowrap;
}
.partners-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px 50px;
}
.partner-link {
    display: inline-block;
    transition: transform 0.25s ease, filter 0.3s ease;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 14px;
}
.partner-link:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.25)) drop-shadow(0 0 60px rgba(37, 99, 235, 0.08));
}
.partner-logo {
    max-height: 52px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .partners-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 24px;
        gap: 16px;
        border-radius: 24px;
    }
    .partners-grid {
        gap: 20px 30px;
        justify-content: center;
    }
    .partner-logo {
        max-height: 40px;
    }
    .partners-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .partners-wrapper {
        padding: 16px 20px;
    }
    .partner-logo {
        max-height: 34px;
    }
    .partners-grid {
        gap: 16px 24px;
    }
}

/* ============================================================
   HERO — ФОНОВОЕ ИЗОБРАЖЕНИЕ
   ============================================================ */
.hero {
    padding: 80px 0 60px;
    background: url('/uploads/hero-fon.png') center/cover no-repeat, #f8fafc00;
    position: relative;
}

/* Полупрозрачный оверлей для читаемости текста */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.76);
    z-index: 0;
}

/* Контент поверх оверлея */
.hero .container {
    position: relative;
    z-index: 1;
}

/* Виджет с рекламой в сайдбаре */
.widget-ad {
    background: #fafcff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #eef2ff;
    max-width: 1232px;
}
.widget-ad .widget-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 12px;
    max-width: 1232px;
}
.widget-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    max-width: 1232px;
}
.widget-ad-content > div {
    width: 100%;
}

/* ============================================================
   ПАРТНЁРСКИЕ ПРЕДЛОЖЕНИЯ АЛЬФА-БАНКА
   ============================================================ */
.offers-section {
    padding: 60px 0;
    background: #fafcff;
}
.offers-subtitle {
    text-align: center;
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 40px;
}
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.offer-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 24px 24px;
    border: 1px solid #eef2ff;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}
.offer-icon {
    font-size: 2.8rem;
    color: #2563eb;
    margin-bottom: 16px;
    background: #eff6ff;
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s;
}
.offer-card:hover .offer-icon {
    background: #2563eb;
    color: #fff;
}
.offer-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.offer-card p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 18px;
    flex: 1;
}
.offer-card .btn {
    margin-top: auto;
}

/* Адаптация */
@media (max-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 640px) {
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .offer-card {
        padding: 20px 16px;
    }
}