/* ═══════════════════════════════════════════════════════════
   NOTIX SERVICES — каталог услуг и детальные страницы
   ═══════════════════════════════════════════════════════════ */

.svc-page { font-family: var(--fb); }

/* ─── Hero каталога ─── */
.svc-hero {
    background: var(--ink);
    color: #fff;
    padding: 150px 24px 80px;
    position: relative;
    overflow: hidden;
}
.svc-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(251,199,8,.14), transparent 60%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: auto, 52px 52px, 52px 52px;
}
.svc-hero-inner {
    position: relative; z-index: 2;
    max-width: 820px; margin: 0 auto;
}
.svc-hero h1 {
    font-family: var(--fd);
    font-size: clamp(30px, 4.5vw, 50px);
    font-weight: 800; line-height: 1.15;
    margin: 22px 0 18px;
}
.svc-hero-lead {
    font-size: 17px; line-height: 1.7; color: #B9C6DE;
    max-width: 680px;
}

/* ─── Сетка каталога ─── */
.svc-grid-sec { padding: 72px 24px 40px; background: var(--mist); }
.svc-wrap { max-width: 1180px; margin: 0 auto; }
.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.svc-card {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 16px;
    padding: 26px 26px 20px;
    text-decoration: none;
    color: var(--ink);
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .22s, box-shadow .22s;
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.svc-card:hover {
    transform: translateY(-5px);
    border-color: var(--ink);
    box-shadow: 0 16px 40px rgba(10,31,68,.12);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card-icon {
    width: 52px; height: 52px;
    background: #E8EDF5;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: transform .25s, background .25s;
}
.svc-card-icon img { width: 32px; height: 32px; object-fit: contain; display: block; }
.svc-card:hover .svc-card-icon { transform: rotate(-6deg) scale(1.08); background: #DDE4EF; }
.svc-card-body h3 {
    font-family: var(--fd);
    font-size: 16px; font-weight: 700;
    margin-bottom: 8px;
}
.svc-card-body p {
    font-size: 13.5px; line-height: 1.6; color: var(--slate);
}
.svc-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--line);
}
.svc-free {
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #065F46; background: #D1FAE5;
    padding: 4px 10px; border-radius: 100px;
}
.svc-free-lg { font-size: 12px; padding: 6px 14px; }
.svc-arrow {
    font-size: 18px; font-weight: 800; color: var(--ink);
    transition: transform .2s;
}
.svc-card:hover .svc-arrow { transform: translateX(5px); }

/* ─── CTA каталога ─── */
.svc-cta-sec { padding: 64px 24px 88px; background: var(--mist); }

/* ─── Детальная: hero ─── */
.svc-detail-hero {
    background: var(--ink);
    color: #fff;
    padding: 140px 24px 72px;
    position: relative; overflow: hidden;
}
.svc-detail-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(700px 400px at 90% 0%, rgba(251,199,8,.13), transparent 60%);
}
.svc-detail-hero .svc-wrap { position: relative; z-index: 2; }
.svc-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: #8FA2C4;
    text-decoration: none; margin-bottom: 32px;
    transition: color .2s, transform .2s;
}
.svc-back:hover { color: var(--gold); transform: translateX(-3px); }
.svc-detail-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.svc-detail-icon {
    flex-shrink: 0;
    width: 72px; height: 72px;
    background: #E8EDF5;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    box-shadow: 0 12px 32px rgba(10,31,68,.18);
}
.svc-detail-icon img { width: 46px; height: 46px; object-fit: contain; display: block; }
.svc-detail-head h1 {
    font-family: var(--fd);
    font-size: clamp(24px, 3.4vw, 40px);
    font-weight: 800; line-height: 1.2;
    margin-top: 12px;
}
.svc-detail-desc {
    font-size: 17px; line-height: 1.75; color: #B9C6DE;
    max-width: 780px;
}

/* ─── Детальная: фичи ─── */
.svc-features-sec { padding: 80px 24px; }
.svc-sec-title {
    font-family: var(--fd);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 800; margin-bottom: 36px;
}
.svc-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.svc-feature {
    display: flex; gap: 20px; align-items: flex-start;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 24px 26px;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.svc-feature:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(10,31,68,.08);
}
.svc-feature-num {
    font-family: var(--fd);
    font-size: 26px; font-weight: 900;
    color: transparent; -webkit-text-stroke: 1.5px var(--gold);
    line-height: 1; flex-shrink: 0;
}
.svc-feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.svc-feature p { font-size: 13.5px; line-height: 1.6; color: var(--slate); }

/* ─── Детальная: как подключить ─── */
.svc-how-sec { padding: 0 24px 80px; }
.svc-how {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    background: var(--mist);
    border-radius: 22px;
    padding: 52px;
    border: 1.5px solid var(--line);
}
.svc-how-text h2 {
    font-family: var(--fd);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 800; margin: 16px 0 14px;
}
.svc-how-text p { font-size: 15px; line-height: 1.7; color: var(--slate); margin-bottom: 14px; }
.svc-how-note {
    border-left: 3px solid var(--gold);
    padding-left: 16px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
}

/* ─── Детальная: другие услуги ─── */
.svc-other-sec { padding: 0 24px 88px; }
.svc-other-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-mini {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    padding: 10px 20px 10px 12px;
    text-decoration: none;
    color: var(--ink);
    font-size: 13.5px; font-weight: 600;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.svc-mini:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
    box-shadow: 0 8px 20px rgba(10,31,68,.1);
}
.svc-mini-icon {
    width: 30px; height: 30px;
    background: var(--mist);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.svc-mini-icon img { width: 20px; height: 20px; object-fit: contain; display: block; }

/* ─── Адаптив ─── */
@media (max-width: 900px) {
    .svc-features, .svc-how { grid-template-columns: 1fr; }
    .svc-how { padding: 32px 24px; }
    .svc-detail-head { flex-direction: column; gap: 16px; }
    .svc-hero { padding-top: 120px; }
}

/* ─── Широкий баннер (высота ≤ 250px) перед «Что вы получаете» ─── */
.svc-banner-sec { padding: 48px 24px 0; }
.svc-banner {
    border-radius: 18px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 18px 44px rgba(10,31,68,.14);
    border: 1px solid var(--line);
}
.svc-banner img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (max-width: 720px) {
    .svc-banner img { height: 180px; }
}

/* ─── Ссылка на концепцию в hero каталога ─── */
.svc-hero-concept {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 26px;
    color: var(--gold);
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid rgba(251,199,8,.35);
    padding-bottom: 3px;
    transition: border-color .2s, transform .2s;
}
.svc-hero-concept:hover { border-color: var(--gold); transform: translateX(2px); }

/* ─── Кнопки «Начать пользоваться» + документация ─── */
.svc-how-actions {
    display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.svc-start-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 16px; padding: 15px 32px;
}
.svc-docs-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ink);
    font-weight: 700; font-size: 14.5px;
    text-decoration: none;
    padding: 11px 20px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: #fff;
    transition: transform .18s, box-shadow .18s, background .18s;
}
.svc-docs-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10,31,68,.14);
    background: var(--gold);
}

/* ─── Страница возможности: tagline, секции, CTA ─── */
.feat-tagline {
    font-family: var(--fd);
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 700; line-height: 1.4;
    color: #fff;
    max-width: 820px;
    margin-top: 4px;
}
.feat-tagline::before {
    content: '';
    display: block;
    width: 56px; height: 4px;
    border-radius: 4px;
    background: var(--gold);
    margin-bottom: 18px;
}

.feat-sec { padding: 72px 24px; }
.feat-sec-alt { background: var(--mist); }
.feat-kicker {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(251,199,8,.16);
    border: 1px solid rgba(251,199,8,.55);
    color: #8a6d00;
    font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    margin-bottom: 16px;
}
.feat-sec .svc-sec-title { margin-bottom: 24px; }
.feat-prose { max-width: 820px; }
.feat-prose p {
    font-size: 16.5px; line-height: 1.8; color: var(--slate);
    margin-bottom: 18px;
}
.feat-prose p:last-child { margin-bottom: 0; }
.feat-sec-alt .feat-prose p { color: #3D4E6B; }

.feat-cta-sec { padding: 0 24px 88px; }
.feat-cta-box {
    background: var(--ink);
    color: #fff;
    border-radius: 22px;
    padding: 56px 52px;
    text-align: center;
    position: relative; overflow: hidden;
}
.feat-cta-box::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 340px at 50% 0%, rgba(251,199,8,.16), transparent 60%);
    pointer-events: none;
}
.feat-cta-box h2 {
    font-family: var(--fd);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    margin-bottom: 14px;
    position: relative; z-index: 2;
}
.feat-cta-box > p {
    font-size: 16px; line-height: 1.7; color: #B9C6DE;
    max-width: 640px; margin: 0 auto 30px;
    position: relative; z-index: 2;
}
.feat-cta-actions {
    display: flex; flex-wrap: wrap; gap: 16px;
    align-items: center; justify-content: center;
    position: relative; z-index: 2;
}
.feat-cta-actions .svc-docs-link {
    color: #fff; border-color: rgba(255,255,255,.4); background: transparent;
}
.feat-cta-actions .svc-docs-link:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.feat-services-hint {
    margin-top: 26px;
    font-size: 13.5px; color: #8FA2C4;
    position: relative; z-index: 2;
}
.feat-services-hint a { color: var(--gold); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(251,199,8,.4); }
.feat-services-hint a:hover { border-color: var(--gold); }

.svc-card-more {
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--slate);
}
.svc-card:hover .svc-card-more { color: var(--ink); }

@media (max-width: 900px) {
    .feat-cta-box { padding: 40px 24px; }
}

/* ── Галерея скриншотов ── */
.feat-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feat-gallery-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(10,31,68,.1);
    transition: transform .25s, box-shadow .25s;
    margin: 0;
}
.feat-gallery-item:hover { transform: translateY(-5px); box-shadow: 0 20px 52px rgba(10,31,68,.16); }
.feat-gallery-item img { width: 100%; display: block; }
.feat-gallery-item figcaption {
    padding: 12px 16px;
    font-size: 13px; color: var(--slate);
    border-top: 1px solid var(--line);
    text-align: center;
}
/* Широкий скриншот на всю ширину блока, без подложки */
.feat-gallery-wide {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(10,31,68,.16);
}
.feat-gallery-wide img { width: 100%; display: block; }
@media (max-width: 900px) {
    .feat-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ── Пошаговая настройка ── */
.feat-steps { display: flex; flex-direction: column; gap: 22px; }
.feat-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 26px;
    align-items: start;
}
.feat-step--img { grid-template-columns: 52px 1fr 300px; }
.feat-step-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--ink); color: var(--gold);
    font-family: var(--fd); font-weight: 800; font-size: 19px;
    display: flex; align-items: center; justify-content: center;
}
.feat-step-body h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.feat-step-body p { font-size: 14px; color: var(--slate); line-height: 1.6; }
.feat-step-shot img {
    width: 100%; display: block;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(10,31,68,.12);
}
@media (max-width: 900px) {
    .feat-step, .feat-step--img { grid-template-columns: 44px 1fr; }
    .feat-step-shot { grid-column: 1 / -1; max-width: 420px; }
}
