/*
Theme Name: Senik Business
Theme URI: https://example.com
Author: Сеник Дмитрий Владимирович
Author URI: https://example.com
Description: Минималистичная бежевая тема-лендинг для ИП: бухгалтерия, разработка ПО, настройка касс, встроенный VLESS-парсер.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: senik-business
*/

:root {
    --bg-color: #f5f1ea;
    --bg-alt: #ece5d9;
    --text-color: #333;
    --text-light: #666;
    --accent-color: #8b7d6b;
    --accent-dark: #6d5f4f;
    --card-bg: #ffffff;
    --shadow: 0 6px 24px rgba(0,0,0,0.06);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-color); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   Логотип слева. Меню + кнопка «Парсер» — единой группой справа.
   ============================================================ */
.site-header {
    padding: 22px 0;
    background: transparent;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.site-logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-color);
    letter-spacing: 0.3px;
}
.site-logo span { color: var(--accent-color); position: relative; }
.site-logo span::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    margin-left: 4px;
    vertical-align: middle;
    animation: senik-pulse 2.4s ease-in-out infinite;
}
@keyframes senik-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.4); }
}

/* Правая группа: меню + кнопка — всё в одну строку */
.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
    align-items: center;
}
.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color .25s;
}
.main-nav a:hover { color: var(--accent-color); }

/* ============================================================
   КНОПКА «ПАРСЕР»: бежевая округлая, идёт после меню справа
   ============================================================ */
.btn-parser {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;               /* капсула — округлая */
    background: linear-gradient(135deg, #e8dcc8 0%, #c9b8a1 100%);
    color: #4a3f33;                     /* мягкий тёмный — контраст на бежевом */
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow:
        0 6px 16px rgba(139, 125, 107, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.btn-parser::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.btn-parser:hover::before { opacity: 1; }
.btn-parser:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(139, 125, 107, 0.32);
    color: #2f281f;
}
.btn-parser:active {
    transform: translateY(0);
}

.btn-parser-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.btn-parser:hover .btn-parser-icon {
    transform: rotate(-12deg) scale(1.1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0 80px;
    position: relative;
    isolation: isolate;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}
.hero::before {
    width: 380px; height: 380px;
    background: #e8dcc8;
    top: -100px; left: -120px;
}
.hero::after {
    width: 460px; height: 460px;
    background: #dfd3bd;
    bottom: -160px; right: -140px;
}

.hero-photo {
    flex: 0 0 280px;
    position: relative;
}
.hero-photo img {
    width: 100%;
    border-radius: 24px;
    box-shadow:
        0 24px 48px rgba(139, 125, 107, 0.22),
        inset 0 0 0 6px #ffffff;
    border: 6px solid #ffffff;
    filter: saturate(0.92) contrast(1.02);
    transition: transform .5s ease, filter .5s ease;
}
.hero-photo img:hover {
    transform: scale(1.02);
    filter: saturate(1) contrast(1.05);
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    z-index: -1;
    opacity: .35;
}

.hero-photo-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 25%, #e8dcc8 0%, transparent 55%),
        linear-gradient(145deg, #f0e7d8 0%, #c9b8a1 100%);
    box-shadow:
        0 24px 48px rgba(139, 125, 107, 0.28),
        inset 0 0 0 6px #ffffff;
}
.hero-photo-placeholder::before {
    content: "";
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 62%;
    height: 55%;
    border-radius: 60% 60% 25% 25%;
    background: linear-gradient(180deg, #8b7d6b 0%, #6d5f4f 100%);
    opacity: 0.9;
}
.hero-photo-placeholder::after {
    content: "";
    position: absolute;
    bottom: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: linear-gradient(180deg, #a8967f 0%, #8b7d6b 100%);
    box-shadow: inset -8px -8px 18px rgba(0, 0, 0, 0.08);
}

.hero-text { flex: 1; }
.hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 14px;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(139, 125, 107, 0.10);
    border-radius: 100px;
}
.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.10;
    margin: 0 0 18px;
    color: #222;
    font-weight: 700;
}
.hero-text p.lead {
    font-size: 1.0rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 620px;
}

/* ============================================================
   BUTTONS (общие)
   ============================================================ */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    margin: 0 10px 10px 0;
    font-family: inherit;
}
.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(139,125,107,0.35);
}
.btn-outline {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    text-align: center;
    font-size: 2.1rem;
    margin: 0 0 12px;
    color: #222;
    font-weight: 700;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}
.card {
    background: var(--card-bg);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.10);
    border-top-color: var(--accent-color);
}
.card h3 {
    margin: 14px 0 12px;
    font-size: 1.25rem;
    color: #222;
}
.card p {
    flex-grow: 1;
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 0.97rem;
}
.card .btn {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.88rem;
    margin: 0;
}

/* ============================================================
   BADGES
   ============================================================ */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    text-transform: uppercase;
}
.badge-1c { background-color: #f7d000; color: #222; }
.badge-win { background-color: #0078d7; }
.badge-android { background-color: #3ddc84; color: #073b21; }
.badge-viki { background-color: #e67e22; }
.badge-backup { background-color: #4a7c59; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
    background: linear-gradient(135deg, #8b7d6b, #6d5f4f);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}
.cta h2 { font-size: 2rem; margin: 0 0 14px; color: #fff; }
.cta p { opacity: .9; margin-bottom: 28px; font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #2b2b2b;
    color: #b9b3a8;
    padding: 40px 0 30px;
    text-align: center;
    font-size: 0.9rem;
}
.site-footer a { color: #d9cfbe; }
.site-footer a:hover { color: #fff; }
.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* ============================================================
   FORM
   ============================================================ */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
}
.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0d8c9;
    border-radius: 8px;
    margin-bottom: 18px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fdfbf8;
    transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.contact-form button {
    width: 100%;
    border: none;
    padding: 14px;
    font-size: 1rem;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ПАРСЕРА
   ============================================================ */
.parser-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.parser-modal.is-open { display: flex; }
.parser-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 24, 20, 0.75);
    backdrop-filter: blur(8px);
    animation: fadeIn .3s ease;
}
.parser-modal-content {
    position: relative;
    width: min(1280px, 95vw);
    height: min(860px, 92vh);
    background: #1c1814;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    animation: slideUp .35s cubic-bezier(.2,.8,.2,1);
    border: 1px solid #4a3f33;
}
.parser-modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #1c1814;
}
.parser-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(201, 168, 106, 0.95);
    color: #1c1814;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: all .25s;
}
.parser-modal-close:hover {
    background: #e0be7f;
    transform: rotate(90deg);
}
@keyframes fadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) } to { opacity: 1; transform: translateY(0) } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 36px;
        padding: 40px 0 60px;
    }
    .hero-photo { flex: 0 0 auto; width: 220px; }
    .hero-photo::after { display: none; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text p.lead { margin-left: auto; margin-right: auto; }

    .header-inner { justify-content: center; text-align: center; }
    .header-right {
        justify-content: center;
        width: 100%;
        gap: 16px;
    }
    .main-nav ul { gap: 16px; }

    .contact-form { padding: 26px; }
    .parser-modal-content {
        width: 98vw;
        height: 94vh;
        border-radius: 14px;
    }
}

@media (max-width: 520px) {
    .hero-text h1 { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
    .btn { width: 100%; text-align: center; margin-right: 0; }
    .card .btn { width: auto; }
    .btn-parser {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
}