/*
Theme Name: Promoseo Modern
Theme URI: https://promoseo.org/
Description: Современная адаптивная дочерняя тема Promoseo.org.
Author: Promoseo.org
Template: startit
Version: 1.0.0
Text Domain: promoseo-modern
*/

:root {
    --pm-navy: #0b1630;
    --pm-navy-2: #13264f;
    --pm-blue: #2563eb;
    --pm-blue-dark: #1d4ed8;
    --pm-cyan: #18b6d9;
    --pm-lime: #a8dc3b;
    --pm-ink: #111c32;
    --pm-copy: #526078;
    --pm-muted: #718096;
    --pm-line: #e4eaf2;
    --pm-soft: #f6f8fc;
    --pm-white: #fff;
    --pm-radius: 20px;
    --pm-shadow: 0 18px 50px rgba(17, 28, 50, .11);
    --pm-shadow-soft: 0 10px 32px rgba(17, 28, 50, .08);
}

html { scroll-behavior: smooth; }

body.pm-theme,
body.pm-theme button,
body.pm-theme input,
body.pm-theme textarea,
body.pm-theme select {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.pm-theme {
    margin: 0;
    overflow-x: hidden;
    background: var(--pm-white);
    color: var(--pm-copy);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.pm-theme *,
body.pm-theme *::before,
body.pm-theme *::after { box-sizing: border-box; }

body.pm-theme img { max-width: 100%; height: auto; }
body.pm-theme a { color: inherit; text-decoration: none; }

.pm-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.pm-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: var(--pm-navy);
    transform: translateY(-160%);
}

.pm-skip-link:focus { transform: translateY(0); }

.pm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--pm-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pm-eyebrow::before {
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: var(--pm-lime);
    content: "";
}

.pm-section { padding: 96px 0; }
.pm-section--soft { background: var(--pm-soft); }
.pm-section--dark { background: var(--pm-navy); color: #fff; }

.pm-section-head {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.pm-title,
.pm-section h2,
.pm-section h3,
.pm-page-hero h1 {
    margin-top: 0;
    color: var(--pm-ink);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.pm-section h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.5vw, 3.25rem); }
.pm-section-head p { margin: 0; color: var(--pm-copy); font-size: 18px; }

.pm-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--pm-blue);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .24);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.pm-button:hover {
    background: var(--pm-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, .3);
}

.pm-button--ghost {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}

.pm-button--ghost:hover { background: rgba(255, 255, 255, .16); }

body.pm-theme a:focus-visible,
body.pm-theme button:focus-visible,
body.pm-theme input:focus-visible,
body.pm-theme textarea:focus-visible,
body.pm-theme select:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 3px;
}

/* Header */
.pm-topbar {
    background: var(--pm-navy);
    color: #c9d5e8;
    font-size: 13px;
}

.pm-topbar__inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pm-topbar__items { display: flex; align-items: center; gap: 24px; }
.pm-topbar a:hover { color: #fff; }

.pm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(228, 234, 242, .9);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 28px rgba(17, 28, 50, .06);
    backdrop-filter: blur(16px);
}

.admin-bar .pm-header { top: 32px; }

.pm-header__inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.pm-logo { display: inline-flex; flex: 0 0 auto; align-items: center; }
.pm-logo img { display: block; width: 188px; max-height: 58px; object-fit: contain; }

.pm-nav { margin-left: auto; }
.pm-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 7px; list-style: none; }
.pm-nav li { margin: 0; }
.pm-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--pm-ink);
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease;
}

.pm-nav a:hover,
.pm-nav .current-menu-item > a,
.pm-nav .current_page_item > a { background: #eef4ff; color: var(--pm-blue); }

.pm-header__cta { white-space: nowrap; }
.pm-menu-toggle { display: none; }

/* Hero */
.pm-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 82px;
    background:
        radial-gradient(circle at 82% 12%, rgba(24, 182, 217, .22), transparent 28%),
        radial-gradient(circle at 15% 90%, rgba(168, 220, 59, .13), transparent 28%),
        linear-gradient(135deg, #0b1630 0%, #142958 56%, #123c67 100%);
    color: #fff;
}

.pm-hero::before {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
    content: "";
}

.pm-hero__grid {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.02fr) minmax(400px, .98fr);
    gap: 54px;
}

.pm-hero .pm-eyebrow { color: #98eafb; }
.pm-hero__title {
    max-width: 780px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(3rem, 4.4vw, 4.15rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .98;
}

.pm-hero__title span { color: #a8dc3b; }
.pm-hero__lead { max-width: 650px; margin: 0 0 32px; color: #d8e4f4; font-size: 19px; line-height: 1.65; }
.pm-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }

.pm-hero__visual {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-hero__visual::before {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(37, 99, 235, .48), rgba(24, 182, 217, .24));
    filter: blur(2px);
    content: "";
}

.pm-hero__visual img { position: relative; width: min(100%, 580px); filter: drop-shadow(0 28px 50px rgba(0, 0, 0, .28)); }

.pm-hero__facts {
    position: relative;
    display: grid;
    margin-top: 54px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pm-fact {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
}

.pm-fact strong { display: block; color: #fff; font-size: 22px; line-height: 1.2; }
.pm-fact span { color: #b9c8dd; font-size: 13px; }

/* Feature cards */
.pm-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pm-feature-card {
    padding: 28px 24px;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    background: #fff;
    box-shadow: var(--pm-shadow-soft);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pm-feature-card:hover { border-color: #bfd2fb; transform: translateY(-5px); box-shadow: var(--pm-shadow); }
.pm-feature-card__icon { display: grid; width: 68px; height: 68px; margin-bottom: 22px; place-items: center; border-radius: 18px; background: #edf4ff; }
.pm-feature-card__icon img { width: 50px; max-height: 50px; object-fit: contain; }
.pm-feature-card h3 { margin: 0 0 12px; font-size: 20px; }
.pm-feature-card p { margin: 0; color: var(--pm-copy); font-size: 15px; line-height: 1.7; }

/* Split sections */
.pm-split { display: grid; align-items: center; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.pm-split__copy h2 { margin-bottom: 22px; }
.pm-split__copy p { margin: 0 0 18px; font-size: 17px; }
.pm-split__media { position: relative; }
.pm-split__media img { display: block; width: 100%; border-radius: 26px; box-shadow: var(--pm-shadow); }
.pm-pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pm-pill { padding: 8px 12px; border: 1px solid #d9e4f4; border-radius: 99px; background: #fff; color: var(--pm-navy-2); font-size: 13px; font-weight: 700; }

/* Cases */
.pm-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.pm-case-card { overflow: hidden; border: 1px solid var(--pm-line); border-radius: 24px; background: #fff; box-shadow: var(--pm-shadow-soft); }
.pm-case-card__media { display: flex; min-height: 300px; align-items: center; justify-content: center; padding: 28px; background: #edf3fb; }
.pm-case-card__media img { max-height: 300px; object-fit: contain; filter: drop-shadow(0 12px 25px rgba(17,28,50,.12)); }
.pm-case-card__body { padding: 30px; }
.pm-case-card__tag { display: inline-flex; margin-bottom: 14px; padding: 6px 10px; border-radius: 99px; background: #eef4ff; color: var(--pm-blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.pm-case-card h3 { margin: 0 0 13px; font-size: 24px; }
.pm-case-card p { margin: 0 0 19px; }
.pm-text-link { color: var(--pm-blue) !important; font-weight: 800; }

/* Services */
.pm-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pm-service-card { display: flex; min-height: 345px; flex-direction: column; padding: 28px 24px; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); }
.pm-service-card__icon { display: grid; width: 72px; height: 72px; margin-bottom: 24px; place-items: center; border-radius: 19px; background: #fff; }
.pm-service-card__icon img { width: 52px; max-height: 52px; object-fit: contain; }
.pm-service-card h3 { margin: 0 0 13px; color: #fff; font-size: 20px; }
.pm-service-card p { margin: 0; color: #c7d4e7; font-size: 15px; }
.pm-service-card .pm-text-link { margin-top: auto; padding-top: 22px; color: #8ee9fb !important; }

/* Lists */
.pm-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pm-list-card { padding: 34px; border: 1px solid var(--pm-line); border-radius: 22px; background: #fff; box-shadow: var(--pm-shadow-soft); }
.pm-list-card h3 { margin: 0 0 24px; font-size: 25px; }
.pm-check-list { display: grid; margin: 0; padding: 0; gap: 13px; list-style: none; }
.pm-check-list li { position: relative; padding-left: 31px; color: var(--pm-copy); }
.pm-check-list li::before { position: absolute; top: 2px; left: 0; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #e8f7c9; color: #528307; content: "✓"; font-size: 12px; font-weight: 900; }

/* Testimonials */
.pm-testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pm-testimonial { display: flex; min-height: 290px; flex-direction: column; padding: 28px; border: 1px solid var(--pm-line); border-radius: 22px; background: #fff; box-shadow: var(--pm-shadow-soft); }
.pm-testimonial__quote { margin-bottom: 18px; color: var(--pm-blue); font-size: 34px; font-weight: 900; line-height: 1; }
.pm-testimonial h3 { margin: 0 0 12px; font-size: 19px; }
.pm-testimonial p { margin: 0 0 22px; color: var(--pm-copy); font-size: 15px; }
.pm-testimonial__author { display: flex; margin-top: auto; align-items: center; gap: 13px; }
.pm-testimonial__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.pm-testimonial__avatar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--pm-blue), var(--pm-cyan)); color: #fff; font-size: 17px; font-weight: 850; }
.pm-testimonial__author strong { display: block; color: var(--pm-ink); font-size: 14px; }
.pm-testimonial__author span { color: var(--pm-muted); font-size: 12px; }

/* CTA */
.pm-cta { position: relative; overflow: hidden; padding: 64px 0; background: linear-gradient(120deg, var(--pm-blue-dark), var(--pm-blue), #0f8eb7); color: #fff; }
.pm-cta::after { position: absolute; right: -80px; bottom: -160px; width: 360px; height: 360px; border: 60px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.pm-cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.pm-cta h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.pm-cta p { margin: 0; color: #dbeafe; font-size: 17px; }

/* Inner pages */
.pm-page-hero { padding: 72px 0; background: linear-gradient(135deg, var(--pm-navy), #17366a); color: #fff; }
.pm-page-hero .pm-eyebrow { color: #8ee9fb; }
.pm-page-hero h1 { max-width: 900px; margin: 0; color: #fff; font-size: clamp(2.25rem, 4vw, 4rem); }
.pm-page-content { padding: 76px 0 90px; }
.pm-page-content > .pm-container { min-height: 260px; }

body.pm-theme .pm-page-content h1,
body.pm-theme .pm-page-content h2,
body.pm-theme .pm-page-content h3,
body.pm-theme .pm-page-content h4,
body.pm-theme .pm-page-content h5,
body.pm-theme .pm-page-content h6 { color: var(--pm-ink); font-family: inherit; line-height: 1.25; }
body.pm-theme .pm-page-content h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
body.pm-theme .pm-page-content h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
body.pm-theme .pm-page-content p,
body.pm-theme .pm-page-content li { color: var(--pm-copy); font-size: 16px; line-height: 1.75; }
body.pm-theme .pm-page-content a { color: var(--pm-blue); font-weight: 650; }
body.pm-theme .pm-page-content .qodef-section-inner,
body.pm-theme .pm-page-content .qodef-container-inner,
body.pm-theme .pm-page-content .qodef-grid { width: 100% !important; max-width: 100% !important; }
body.pm-theme .pm-page-content .vc_row { margin-left: 0; margin-right: 0; }
body.pm-theme .pm-page-content .vc_column_container > .vc_column-inner { padding-left: 15px; padding-right: 15px; }
body.pm-theme .pm-page-content .wpb_single_image img { border-radius: 18px; }

body.pm-theme input[type="text"],
body.pm-theme input[type="email"],
body.pm-theme input[type="tel"],
body.pm-theme input[type="url"],
body.pm-theme input[type="search"],
body.pm-theme textarea,
body.pm-theme select {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pm-ink);
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(17,28,50,.03);
}
body.pm-theme textarea { min-height: 150px; resize: vertical; }
body.pm-theme input[type="submit"], body.pm-theme button[type="submit"] { min-height: 50px; padding: 12px 23px; border: 0; border-radius: 12px; background: var(--pm-blue); color: #fff; font-weight: 800; cursor: pointer; }
body.pm-theme .wpcf7-form { max-width: 760px; }
body.pm-theme .qodef-google-map-holder { overflow: hidden; border-radius: 20px; box-shadow: var(--pm-shadow-soft); }
body.pm-theme .qodef-google-map-holder.pm-map-unavailable { display: none !important; }

/* Footer */
.pm-footer { background: #081120; color: #acb9cc; }
.pm-footer__main { display: grid; padding: 58px 0 42px; grid-template-columns: 1.2fr .8fr .9fr; gap: 60px; }
.pm-footer__brand img { width: 184px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.pm-footer__brand p { max-width: 420px; margin: 0; color: #9baac0; }
.pm-footer h2 { margin: 0 0 17px; color: #fff; font-size: 16px; letter-spacing: .03em; }
.pm-footer ul { display: grid; margin: 0; padding: 0; gap: 10px; list-style: none; }
.pm-footer a:hover { color: #fff; }
.pm-footer__bottom { border-top: 1px solid rgba(255,255,255,.09); }
.pm-footer__bottom-inner { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; }

.gt_switcher { display: none !important; }

@media (max-width: 1100px) {
    .pm-header__cta { display: none; }
    .pm-feature-grid, .pm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); gap: 30px; }
    .pm-testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .admin-bar .pm-header { top: 46px; }
    .pm-topbar { display: none; }
    .pm-header__inner { min-height: 74px; }
    .pm-logo img { width: 166px; max-height: 50px; }
    .pm-menu-toggle { display: inline-grid; width: 46px; height: 46px; padding: 0; border: 1px solid var(--pm-line); border-radius: 12px; background: #fff; color: var(--pm-ink); place-items: center; cursor: pointer; }
    .pm-menu-toggle span, .pm-menu-toggle span::before, .pm-menu-toggle span::after { display: block; width: 21px; height: 2px; border-radius: 99px; background: currentColor; content: ""; transition: transform .2s ease; }
    .pm-menu-toggle span { position: relative; }
    .pm-menu-toggle span::before { position: absolute; top: -7px; }
    .pm-menu-toggle span::after { position: absolute; top: 7px; }
    .pm-menu-toggle[aria-expanded="true"] span { background: transparent; }
    .pm-menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
    .pm-menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
    .pm-nav { position: absolute; top: 100%; left: 0; display: none; width: 100%; margin: 0; padding: 10px 24px 22px; border-top: 1px solid var(--pm-line); background: #fff; box-shadow: 0 18px 36px rgba(17,28,50,.13); }
    .pm-nav.is-open { display: block; }
    .pm-nav ul { display: grid; gap: 4px; }
    .pm-nav a { min-height: 48px; padding: 11px 12px; font-size: 15px; }
    .pm-hero { padding: 70px 0; }
    .pm-hero__grid { grid-template-columns: 1fr; }
    .pm-hero__copy { text-align: center; }
    .pm-hero__title, .pm-hero__lead { margin-inline: auto; }
    .pm-hero__actions { justify-content: center; }
    .pm-hero__visual { min-height: 330px; }
    .pm-hero__visual::before { width: 310px; height: 310px; }
    .pm-hero__visual img { width: min(100%, 500px); }
    .pm-hero__facts { max-width: 720px; margin-inline: auto; }
    .pm-split { grid-template-columns: 1fr; gap: 42px; }
    .pm-split__media { order: -1; }
    .pm-case-card__media { min-height: 240px; }
    .pm-footer__main { grid-template-columns: 1fr 1fr; }
    .pm-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .pm-container { width: min(100% - 32px, 1180px); }
    .pm-section { padding: 68px 0; }
    .pm-section-head { margin-bottom: 36px; }
    .pm-section-head p { font-size: 16px; }
    .pm-header__inner { min-height: 68px; }
    .pm-logo img { width: 148px; max-height: 45px; }
    .pm-hero { padding: 48px 0 50px; }
    .pm-hero__title { font-size: clamp(2.25rem, 10vw, 2.8rem); line-height: 1.04; }
    .pm-hero__lead { font-size: 17px; }
    .pm-hero__actions { flex-direction: column; }
    .pm-button { width: 100%; }
    .pm-hero__visual { min-height: 215px; }
    .pm-hero__visual::before { width: 205px; height: 205px; }
    .pm-hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 26px; }
    .pm-fact { padding: 12px 8px; text-align: center; }
    .pm-fact strong { font-size: 15px; }
    .pm-fact span { display: block; margin-top: 4px; font-size: 10px; line-height: 1.35; }
    .pm-feature-grid, .pm-case-grid, .pm-service-grid, .pm-list-grid, .pm-testimonial-grid { grid-template-columns: 1fr; }
    .pm-feature-card, .pm-list-card, .pm-testimonial { padding: 24px; }
    .pm-case-card__media { min-height: 190px; padding: 20px; }
    .pm-case-card__body { padding: 24px; }
    .pm-service-card { min-height: 300px; }
    .pm-cta__inner { align-items: flex-start; flex-direction: column; gap: 24px; text-align: left; }
    .pm-cta .pm-button { width: auto; }
    .pm-page-hero { padding: 54px 0; }
    .pm-page-content { padding: 54px 0 70px; }
    .pm-footer__main { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 34px; }
    .pm-footer__brand { grid-column: auto; }
    .pm-footer__bottom-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
