:root {
    --bg: #FAFBFC;
    --card: #FFFFFF;
    --muted: #6B7280;
    --accent: #0066FF;
    --accent-2: #00BFA6;
    --glass: rgba(255,255,255,0.6);
    --radius: 12px;
    --fw-regular: 400;
    --fw-bold: 700;
    --maxw: 1100px;
    --text: #111827;
    --shadow-1: 0 6px 30px rgba(15,23,42,0.04);
    --shadow-accent: 0 8px 24px rgba(0,102,255,0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global resets */
*, *::before, *::after {
    box-sizing: inherit;
    background-repeat: no-repeat;
    background-attachment: scroll;
}
html, body {
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}
html {
    min-height: 100%;
    background: linear-gradient(0deg, var(--bg), #F7FAFF) fixed no-repeat;
    background-size: 100% 100%;
}
body {
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    min-height: 100vh;
    padding-bottom: 36px;
    background: transparent;
}

/* Layout container */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 36px 28px;
}

/* Header / Brand / Nav */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    color:inherit;
}
.logo {
    width:56px;
    height:56px;
    border-radius:14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:700;
    font-size:18px;
    box-shadow: 0 6px 20px rgba(3,102,214,0.12);
}
.nav {
    display:flex;
    gap:14px;
    align-items:center;
}
.nav a {
    text-decoration:none;
    color:var(--muted);
    padding:8px 12px;
    border-radius:8px;
    font-weight:600;
}
.nav a.active, .nav a:hover {
    color:var(--accent);
    background: rgba(0,102,255,0.06);
}

/* Buttons / CTA */
.cta, button.button.cta, .button.cta {
    background: var(--accent);
    color: #fff;
    padding:10px 14px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
    box-shadow: var(--shadow-accent);
    border: none;
    cursor: pointer;
}
button:focus, a:focus {
    outline: 3px solid rgba(0,102,255,0.12);
    outline-offset: 2px;
}

/* Hero */
.hero {
    margin-top:28px;
    display:grid;
    grid-template-columns: 1fr 380px;
    gap:28px;
    align-items:start;
}
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding:22px;
    box-shadow: var(--shadow-1);
}
.hero-left h1 {
    margin:0 0 12px 0;
    font-size:34px;
    line-height:1.05;
}
.lead {
    color:var(--muted);
    margin:0 0 18px 0;
}

/* Features / Grid / Services */
.features {
    display:grid;
    grid-template-columns: repeat(2,1fr);
    gap:12px;
    margin-top:14px;
}
.feature {
    background: linear-gradient(180deg,#fff,var(--glass));
    border-radius:10px;
    padding:12px;
    display:flex;
    gap:12px;
    align-items:center;
    border:1px solid rgba(2,6,23,0.03);
}
.feature svg {
    width:36px;
    height:36px;
    flex:0 0 36px;
    border-radius:8px;
    padding:6px;
    background:rgba(0,0,0,0.04);
}

.price {
    font-size:18px;
    font-weight:700;
    color:var(--accent);
}
.side-card h3 {
    margin:0 0 8px 0;
}

.kv {
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:10px;
}
.kv > div {
    display:flex;
    justify-content:space-between;
    color:var(--muted);
}

.grid {
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:16px;
    margin-top:22px;
}
.service {
    padding:14px;
    border-radius:12px;
    background: linear-gradient(180deg,#fff,#FBFDFF);
    border:1px solid rgba(2,6,23,0.03);
}

/* Footer */
.footer {
    margin-top:40px;
    padding:18px 0;
    color:var(--muted);
    font-size:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* Forms */
.form-row {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.input, .textarea, .button {
    width:100%;
    padding:10px;
    border-radius:8px;
    border:1px solid #E6EEF8;
    background:#fff;
    font-size:14px;
}
.textarea {
    min-height:120px;
    resize:vertical;
}

/* Small text utility */
.small {
    font-size:13px;
    color:var(--muted);
}

/* Widget styles (kept scoped, less invasive) */
#pm-widget-1648487054799 {
    display:block;
    width:100%;
    max-width:100%;
    margin:18px 0 0;
    box-sizing:border-box;
}
#pm-widget-1648487054799 iframe {
    width:100%;
    max-width:100%;
    height:auto;
    display:block;
    border:0;
}
#pm-widget-1648487054799, #pm-widget-1648487054799 * {
    position: static;
}
.button.cta.disabled {
    opacity: 0.4;
    transform: none;
    pointer-events: auto; /* кнопка кликабельна, но отправка блокируется в JS */
}
/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
/* Responsive — mobile-first breakpoints */
@media (min-width: 901px) {
    .hero {
        grid-template-columns: 1fr 380px;
    }
    .grid {
        grid-template-columns: repeat(3,1fr);
    }
}

/* Small screens adjustments */
@media (max-width:560px) {
    .nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .container {
        padding: 18px;
        margin: 20px;
    }

    .logo {
        width: 46px;
        height: 46px;
    }

    .hero {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 18px;
    }

    .side-card {
        width: 100%;
        margin-top: 0;
        position: static;
        order: 1;
    }

    .hero-left {
        order: 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильный фикс: одна колонка, aside под контентом */
@media (max-width: 560px) {
.hero {
display: grid;
grid-template-columns: 1fr; /* одна колонка */
gap: 18px;
}

/* Удаляем фиксированные размеры, чтобы ничего не вылезало */
.hero-left,
.side-card,
.card,
.service {
width: 100%;
max-width: 100%;
box-sizing: border-box;
position: static;
}

/* Если где-то задано жесткое min-width — сбросим */
.hero, .hero * { min-width: 0; }

/* Отступы контейнера поменьше */
.container { padding-left: 12px; padding-right: 12px; }

/* Сетка услуг — одна колонка */
.grid { grid-template-columns: 1fr; }

/* Убедимся, что svg/iframe не ломают ширину */
img, svg, iframe, video { max-width: 100%; height: auto; }

/* Защитный сброс абсолютных/фиксированных стилей для side-card (если были) */
.side-card { right: auto; left: auto; top: auto; }
}