/* ===================================================================
   SERVICE PAGE — scoped styles (svc-*)
   =================================================================== */

/* ── Responsive text toggle ── */
.svc-show-mobile { display: none; }
@media (max-width: 768px) {
    .svc-hide-mobile { display: none; }
    .svc-show-mobile { display: inline; }
}

/* ── Hero eyebrow pill ── */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
    animation: eyebrow-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes eyebrow-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.10); }
}

/* ── Hero Image Background ── */
.hero-bg {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px;
    overflow: hidden;
}
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12,14,26,0.8) 0%, rgba(12,14,26,0.3) 50%, rgba(12,14,26,0.9) 100%);
    z-index: 1;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(12,14,26,0.6) 100%);
    z-index: 1;
}
.hero-bg-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.hero-bg-title {
    font-size: clamp(40px, 8vw, 76px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 24px 0;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.hero-bg-title span {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.hero-bg-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    margin-bottom: 48px;
}
.hero-bg-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-glow {
    position: relative;
    overflow: hidden;
    padding: 20px 48px !important;
    font-size: 18px !important;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.2), 0 8px 32px rgba(37,99,235,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-cta-glow::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.hero-cta-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.4), 0 12px 48px rgba(37,99,235,0.5);
}
.hero-cta-glow:hover::after {
    left: 150%;
}

@media (max-width: 768px) {
    .hero-bg { min-height: 70vh; padding: 100px 20px; }
    .hero-bg-ctas { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-bg-ctas .btn { width: 100%; justify-content: center; }
}

/* ── Audience Simple Enum ── */
.simple-enum-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.simple-enum-item {
    position: relative;
    padding-left: 32px;
}
.simple-enum-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.simple-enum-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.simple-enum-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ── Contact Form ── */
.svc-contact { padding: 80px 0; }
.svc-contact__inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.svc-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    text-align: left;
    margin-top: 36px;
}
.svc-form-group {
    margin-bottom: 20px;
}
.svc-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.svc-form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all .2s;
}
.svc-form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.svc-form-control:-webkit-autofill,
.svc-form-control:-webkit-autofill:hover,
.svc-form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-page) inset;
    transition: background-color 0s 9999s;
}
textarea.svc-form-control {
    resize: vertical;
    min-height: 120px;
}
.svc-form-submit {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
}

/* Consent checkbox */
.svc-form-consent {
    margin-top: 4px;
}
.svc-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}
/* Скрываем нативный чекбокс */
.svc-consent-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
/* Кастомный чекбокс через псевдоэлемент на label */
.svc-consent-label::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: var(--bg-page);
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.svc-consent-label:has(> .svc-consent-checkbox:checked)::before {
    background: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 9px;
}
.svc-consent-label:hover::before {
    border-color: var(--accent);
}
.svc-consent-label:has(> .svc-consent-checkbox:focus-visible)::before {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    border-color: var(--accent);
}
.svc-consent-label a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 150ms ease;
}
.svc-consent-label a:hover {
    color: var(--accent-hover);
}

/* Validation */
@keyframes svc-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.svc-form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
.validation-error {
    color: #ef4444;
    display: block;
    margin-top: 6px;
    font-size: 13px;
    animation: svc-fadein 0.2s ease both;
}
.svc-consent-label:has(> .svc-consent-checkbox.is-invalid)::before {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Success Popup */
.svc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.svc-popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.svc-popup-content {
    position: relative;
    background: var(--bg-card, #1e293b);
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
@keyframes svc-popup-scale {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
@keyframes svc-spin {
    to { transform: rotate(360deg); }
}
.svc-popup-overlay.show .svc-popup-content {
    transform: translateY(0);
}
.svc-popup-overlay.show .svc-popup-icon {
    animation: svc-popup-scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.svc-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}
.svc-popup-close:hover {
    color: var(--text-primary);
    background: var(--bg-alt);
}
.svc-popup-close svg {
    width: 18px;
    height: 18px;
}
.svc-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: svc-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
.svc-popup-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.svc-popup-icon svg {
    width: 32px;
    height: 32px;
}
.svc-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
}
.svc-popup-text {
    font-size: 15px;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    margin-bottom: 24px;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .svc-form { padding: 24px 20px; margin-top: 24px; }
}

/* ── Service page footer overrides ── */
.svc-footer {
    background: var(--bg-alt);
    padding: 48px 0;
    text-align: center;
}
.svc-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.svc-footer__links {
    display: flex;
    gap: 32px;
    font-size: 15px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    justify-content: center;
}
.svc-footer__links a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}
.svc-footer__links a:hover {
    color: var(--accent);
}
.svc-footer__copy {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}
