:root {
    --ym-yellow: #ffd21e;
    --ym-yellow-soft: #fff3a6;
    --ym-charcoal: #111317;
    --ym-ink: #242830;
    --ym-muted: #636b74;
    --ym-blue: #145dcc;
    --ym-green: #0f8d62;
    --ym-line: #e7e9ee;
    --ym-surface: #ffffff;
    --ym-soft: #f6f7f9;
    --ym-radius: 8px;
    --ym-shadow: 0 18px 48px rgba(22, 26, 32, 0.12);
}

/* Messenger-first application flow */
.ym-messenger-prompt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 18px;
}

.ym-messenger-prompt__label,
.ym-editable-page .ym-messenger-prompt__label {
    margin: 0;
    color: var(--ym-steel);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.ym-messenger-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ym-messenger-link {
    display: inline-flex;
    min-width: 98px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, filter 160ms ease;
}

.ym-messenger-link:hover,
.ym-messenger-link:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ym-messenger-link--telegram {
    background: #0878ac;
}

.ym-messenger-link--vk {
    background: #0669da;
}

.ym-messenger-link--max {
    background: #2d3037;
}

.ym-messenger-links--compact {
    flex-wrap: nowrap;
}

.ym-messenger-links--compact .ym-messenger-link {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 11px;
}

.ym-hero .ym-messenger-widget {
    margin-top: 20px;
}

.ym-hero .ym-messenger-prompt {
    margin-top: 0;
}

.ym-hero .ym-messenger-prompt__label,
.ym-editable-page .ym-hero .ym-messenger-prompt__label {
    color: rgba(255, 255, 255, 0.7);
}

.ym-success-card {
    width: 100%;
    padding: 48px;
    border: 0;
    border-radius: var(--ym-radius);
    color: var(--ym-charcoal);
    background: var(--ym-white);
    box-shadow: var(--ym-shadow);
}

.ym-success-card h2 {
    margin: 0 0 16px;
    color: var(--ym-charcoal);
    font-size: 38px;
    font-weight: 760;
    line-height: 1.08;
}

.ym-success-card > p:not(.ym-eyebrow) {
    margin: 0;
    color: var(--ym-steel);
    font-size: 16px;
    line-height: 1.6;
}

.ym-message-example {
    display: grid;
    margin: 28px 0 22px;
    padding: 18px 20px;
    border-left: 4px solid var(--ym-yellow);
    background: var(--ym-mist);
    gap: 7px;
}

.ym-message-example span {
    color: var(--ym-steel);
    font-size: 11px;
    font-weight: 760;
    text-transform: uppercase;
}

.ym-message-example strong {
    color: var(--ym-charcoal);
    font-size: 16px;
    line-height: 1.45;
}

.ym-success-card .ym-messenger-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ym-success-card .ym-messenger-link {
    width: 100%;
    min-height: 56px;
}

.ym-success-steps {
    display: grid;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: success-steps;
    gap: 12px;
}

.ym-success-steps li {
    position: relative;
    min-height: 30px;
    padding: 4px 0 0 42px;
    color: var(--ym-steel);
    font-size: 14px;
    line-height: 1.5;
    counter-increment: success-steps;
}

.ym-success-steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: var(--ym-charcoal);
    background: var(--ym-yellow);
    content: counter(success-steps);
    font-size: 12px;
    font-weight: 800;
}

.ym-footer__contacts .ym-messenger-links {
    justify-content: flex-end;
}

@media (max-width: 1020px) {
    .ym-topbar__actions > .ym-messenger-links {
        display: none;
    }
}

@media (max-width: 767px) {
    .ym-hero .ym-messenger-widget {
        margin-top: 16px;
    }

    .ym-hero .ym-messenger-prompt {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .ym-hero .ym-messenger-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ym-hero .ym-messenger-link {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 9px 6px;
        font-size: 12px;
    }

    .ym-success-card {
        padding: 30px 20px;
    }

    .ym-success-card h2 {
        font-size: 30px;
    }

    .ym-success-card .ym-messenger-link {
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .ym-footer__contacts .ym-messenger-links {
        justify-content: flex-start;
    }
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--ym-surface);
    color: var(--ym-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.ym-site {
    min-height: 100vh;
    overflow-x: hidden;
}

.ym-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ym-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--ym-line);
    backdrop-filter: blur(14px);
}

.ym-brand {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 4px;
    align-items: baseline;
    color: var(--ym-charcoal);
    text-decoration: none;
    white-space: nowrap;
}

.ym-brand span {
    font-weight: 900;
}

.ym-brand strong {
    padding: 3px 8px;
    background: var(--ym-yellow);
    border-radius: 6px;
    color: #000;
    font-weight: 900;
}

.ym-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--ym-muted);
    font-size: 14px;
    font-weight: 700;
}

.ym-nav a,
.ym-phone,
.ym-footer a {
    text-decoration: none;
}

.ym-nav a:hover,
.ym-phone:hover,
.ym-footer a:hover {
    color: var(--ym-blue);
}

.ym-topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ym-phone {
    font-weight: 900;
    white-space: nowrap;
}

.ym-button,
.ym-elementor-button .elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px !important;
    padding: 14px 22px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--ym-yellow) !important;
    color: #090a0c !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.ym-button:hover,
.ym-elementor-button .elementor-button:hover {
    background: var(--ym-yellow-soft) !important;
    transform: translateY(-1px);
}

.ym-button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.ym-button--small {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 14px;
}

.ym-button--ghost,
.ym-elementor-button--ghost .elementor-button {
    background: #fff !important;
    border: 1px solid rgba(17, 19, 23, 0.16);
}

.ym-button--wide {
    width: 100%;
}

.ym-hero {
    min-height: 640px;
    display: grid;
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.86) 43%, rgba(255,255,255,0.18) 66%),
        var(--hero-image, url("../img/hero-master.jpg"));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--ym-line);
}

.ym-hero__inner {
    padding: 84px 0 72px;
}

.ym-hero__copy {
    max-width: 650px;
}

.ym-eyebrow {
    margin: 0 0 12px;
    color: var(--ym-blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.ym-hero h1 {
    margin-bottom: 20px;
    color: var(--ym-charcoal);
    font-size: clamp(42px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: 0;
}

.ym-hero p {
    max-width: 570px;
    color: #373d46;
    font-size: 20px;
}

.ym-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 34px;
}

.ym-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.ym-stat {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(17, 19, 23, 0.1);
    border-radius: var(--ym-radius);
    background: rgba(255, 255, 255, 0.88);
}

.ym-stats dt {
    margin-bottom: 8px;
    color: var(--ym-charcoal);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.ym-stats dd {
    margin: 0;
    color: var(--ym-muted);
    font-size: 13px;
    font-weight: 700;
}

.ym-stats .ym-stat h3 {
    margin: 0 0 8px;
    color: var(--ym-charcoal);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
}

.ym-stats .ym-stat p {
    margin: 0;
    color: var(--ym-muted);
    font-size: 13px;
    font-weight: 700;
}

.ym-band {
    padding: 86px 0;
    background: #fff;
}

.ym-band--soft {
    background: var(--ym-soft);
}

.ym-band--dark {
    background: var(--ym-charcoal);
    color: #fff;
}

.ym-section-head {
    max-width: 740px;
    margin-bottom: 34px;
}

.ym-section-head h2,
.ym-income h2,
.ym-form-copy h2,
.ym-page-hero h1 {
    margin-bottom: 14px;
    color: inherit;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.ym-section-head p,
.ym-income p,
.ym-form-copy p,
.ym-page-hero p {
    color: var(--ym-muted);
    font-size: 18px;
}

.ym-band--dark .ym-section-head p,
.ym-band--dark .ym-income p {
    color: #c7cdd5;
}

.ym-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.ym-card,
.ym-step,
.ym-seo-aside,
.ym-form {
    border: 1px solid var(--ym-line);
    border-radius: var(--ym-radius);
    background: #fff;
    box-shadow: var(--ym-shadow);
}

.ym-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ym-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ym-yellow);
    content: "";
}

.ym-card:nth-child(2)::before {
    background: var(--ym-blue);
}

.ym-card:nth-child(3)::before {
    background: var(--ym-green);
}

.ym-card:nth-child(4)::before {
    background: var(--ym-charcoal);
}

.ym-card h3,
.ym-step h3 {
    margin-bottom: 10px;
    color: var(--ym-charcoal);
    font-size: 22px;
    line-height: 1.15;
}

.ym-card p,
.ym-step p {
    margin: 0;
    color: var(--ym-muted);
}

.ym-income {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 48px;
    align-items: center;
}

.ym-calculator {
    padding: 26px;
    border-radius: var(--ym-radius);
    background: #fff;
    color: var(--ym-ink);
}

.ym-calculator label {
    display: block;
    margin-bottom: 14px;
    color: var(--ym-charcoal);
    font-weight: 900;
}

.ym-calculator input[type="range"] {
    width: 100%;
    accent-color: var(--ym-yellow);
}

.ym-calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ym-line);
}

.ym-calc-row:last-child {
    border-bottom: 0;
}

.ym-calc-row span {
    color: var(--ym-muted);
    font-weight: 700;
}

.ym-calc-row strong {
    color: var(--ym-charcoal);
    font-size: 22px;
    white-space: nowrap;
}

.ym-calc-note {
    margin: 16px 0 0;
    color: var(--ym-muted);
    font-size: 13px;
}

.ym-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.ym-step {
    min-height: 238px;
    padding: 22px;
}

.ym-step span,
.ym-step .ym-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--ym-yellow);
    color: #000;
    font-weight: 900;
}

.ym-city-links {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: start;
}

.ym-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ym-link-grid a {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid var(--ym-line);
    border-radius: var(--ym-radius);
    background: #fff;
    color: var(--ym-charcoal);
    font-weight: 900;
    text-decoration: none;
}

.ym-link-grid a:hover {
    border-color: var(--ym-yellow);
    background: #fffbe7;
}

.ym-link-grid p {
    margin: 0;
}

.ym-form-band {
    background:
        linear-gradient(135deg, rgba(255, 210, 30, 0.2), rgba(20, 93, 204, 0.08)),
        #f8f9fb;
}

.ym-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
    gap: 44px;
    align-items: start;
}

.ym-form-copy {
    position: sticky;
    top: 104px;
}

.ym-form-copy ul {
    padding-left: 20px;
    color: var(--ym-muted);
    font-size: 17px;
}

.ym-form {
    padding: 26px;
}

.ym-form__head {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ym-line);
}

.ym-form__head h2 {
    margin-bottom: 8px;
    color: var(--ym-charcoal);
    font-size: 30px;
    line-height: 1.12;
}

.ym-form__head p,
.ym-form__note {
    color: var(--ym-muted);
}

.grecaptcha-badge {
    visibility: hidden;
}

.ym-form .ym-recaptcha-note {
    margin: 8px 0 0;
    color: #555d60;
    font-size: 11px;
    line-height: 1.45;
}

.ym-form .ym-recaptcha-note a {
    color: inherit;
    text-decoration: underline;
}

.ym-captcha-error {
    margin: 10px 0 0;
    color: #9d1c1c;
    font-size: 14px;
}

.ym-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ym-form__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ym-form label,
.ym-form fieldset {
    margin: 0 0 14px;
}

.ym-form label span,
.ym-form legend {
    display: block;
    margin-bottom: 7px;
    color: var(--ym-charcoal);
    font-size: 14px;
    font-weight: 900;
}

.ym-form input,
.ym-form select,
.ym-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #fff;
    color: var(--ym-ink);
    font: inherit;
}

.ym-form input:focus,
.ym-form select:focus,
.ym-form textarea:focus {
    border-color: var(--ym-blue);
    outline: 3px solid rgba(20, 93, 204, 0.16);
}

.ym-form__skills {
    padding: 16px;
    border: 1px solid var(--ym-line);
    border-radius: var(--ym-radius);
}

.ym-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ym-checks label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin: 0;
    padding: 10px;
    border-radius: 6px;
    background: var(--ym-soft);
}

.ym-checks input {
    width: 18px;
    min-height: 18px;
    accent-color: var(--ym-yellow);
}

.ym-checks label span {
    margin: 0;
    font-weight: 800;
}

.ym-form__full {
    display: block;
}

.ym-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ym-muted);
}

.ym-consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.ym-consent span {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
}

.ym-consent a {
    color: var(--ym-blue);
}

.ym-hp {
    position: absolute;
    left: -9999px;
}

.ym-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 800;
}

.ym-alert--success {
    background: rgba(15, 141, 98, 0.12);
    color: #075d42;
}

.ym-alert--error {
    background: rgba(197, 45, 45, 0.12);
    color: #9d2020;
}

.ym-faq {
    display: grid;
    gap: 12px;
}

.ym-faq details {
    border: 1px solid var(--ym-line);
    border-radius: var(--ym-radius);
    background: #fff;
}

.ym-faq summary {
    cursor: pointer;
    padding: 20px 22px;
    color: var(--ym-charcoal);
    font-size: 18px;
    font-weight: 900;
}

.ym-faq p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--ym-muted);
}

.ym-page-hero {
    padding: 82px 0 76px;
    background:
        linear-gradient(135deg, rgba(255, 210, 30, 0.28), rgba(20, 93, 204, 0.1)),
        #fff;
    border-bottom: 1px solid var(--ym-line);
}

.ym-page-hero .ym-wrap {
    max-width: 920px;
}

.ym-document-page {
    background: #fff;
    color: #202124;
    padding: 64px 0 80px;
}

.ym-document-page > .ym-wrap {
    max-width: 880px;
}

.ym-document-page h1 {
    color: #202124;
    font-size: 44px;
    line-height: 1.15;
    margin: 0 0 32px;
    overflow-wrap: anywhere;
}

.ym-document-page .ym-page-content {
    max-width: none;
    color: #3d444a;
    font-size: 18px;
    line-height: 1.75;
}

.ym-document-page .ym-page-content h2,
.ym-document-page .ym-page-content h3 {
    color: #202124;
    line-height: 1.3;
    margin: 36px 0 16px;
}

.ym-document-page .ym-page-content h2 { font-size: 28px; }
.ym-document-page .ym-page-content h3 { font-size: 23px; }
.ym-document-page .ym-page-content a:not(.wp-block-button__link):not(.wp-element-button) { color: #176246; text-decoration: underline; }
.ym-document-page .wp-block-button__link,
.ym-document-page .wp-element-button {
    display: inline-flex;
    background: #ffe14b;
    color: #202124;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}
.ym-document-page li { margin-bottom: 10px; }
@media (max-width: 600px) {
    .ym-document-page { padding: 32px 0 48px; }
    .ym-document-page h1 { font-size: 32px; margin-bottom: 24px; }
    .ym-document-page .ym-page-content { font-size: 17px; line-height: 1.7; }
    .ym-document-page .ym-page-content h2 { font-size: 25px; }
    .ym-document-page .wp-block-button__link,
    .ym-document-page .wp-element-button { width: 100%; justify-content: center; text-align: center; }
}

.ym-page-content {
    color: var(--ym-muted);
    font-size: 18px;
}

.ym-editable-page > .wp-block-group {
    margin-block-start: 0;
    margin-block-end: 0;
}

.ym-editable-page .wp-block-columns,
.ym-editable-page .wp-block-shortcode {
    margin-top: 0;
    margin-bottom: 0;
}

.ym-editable-page .ym-stats {
    display: grid;
    flex-wrap: nowrap !important;
}

.ym-editable-page .ym-form-layout > .wp-block-shortcode,
.ym-editable-page .ym-income > .wp-block-shortcode {
    width: 100%;
}

.ym-editable-page .elementor {
    width: 100%;
}

.ym-editable-page .ym-wrap {
    width: min(1180px, calc(100% - 40px)) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.ym-editable-page .e-con {
    min-width: 0;
    --container-max-width: none;
    --padding-top: 0;
    --padding-right: 0;
    --padding-bottom: 0;
    --padding-left: 0;
    --gap: 0;
}

.ym-editable-page .elementor-widget {
    margin-bottom: 0;
}

.ym-editable-page .ym-hero,
.ym-editable-page .ym-stats,
.ym-editable-page .ym-service-grid,
.ym-editable-page .ym-income,
.ym-editable-page .ym-steps,
.ym-editable-page .ym-city-links,
.ym-editable-page .ym-link-grid,
.ym-editable-page .ym-form-layout,
.ym-editable-page .ym-faq,
.ym-editable-page .ym-seo-layout {
    display: grid !important;
}

.ym-editable-page .ym-hero__actions {
    display: flex !important;
    flex-direction: row !important;
}

.ym-editable-page .ym-hero .elementor-heading-title {
    color: var(--ym-charcoal) !important;
}

.ym-editable-page .ym-section-head .elementor-heading-title,
.ym-editable-page .ym-income .elementor-heading-title,
.ym-editable-page .ym-form-copy .elementor-heading-title,
.ym-editable-page .ym-page-hero .elementor-heading-title,
.ym-editable-page .ym-card .elementor-heading-title,
.ym-editable-page .ym-step .elementor-heading-title,
.ym-editable-page .ym-stat .elementor-heading-title,
.ym-editable-page .ym-seo-copy .elementor-heading-title,
.ym-editable-page .ym-seo-aside .elementor-heading-title {
    color: inherit !important;
}

.ym-editable-page .ym-card {
    min-height: 210px !important;
}

.ym-editable-page .ym-step {
    min-height: 238px !important;
}

.ym-editable-page .ym-service-grid > .ym-card,
.ym-editable-page .ym-steps > .ym-step,
.ym-editable-page .ym-income > *,
.ym-editable-page .ym-form-layout > *,
.ym-editable-page .ym-seo-layout > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.ym-hero__actions .elementor-widget-button {
    width: auto;
    max-width: max-content;
}

.ym-link-grid .ym-city-link,
.ym-link-grid .ym-city-link .elementor-button-wrapper,
.ym-link-grid .ym-city-link .elementor-button {
    width: 100%;
    height: 100%;
}

.ym-link-grid .ym-city-link .elementor-button {
    justify-content: flex-start;
    text-align: left;
}

.ym-elementor-eyebrow .elementor-widget-container > :last-child,
.ym-faq-item .elementor-widget-container > :last-child {
    margin-bottom: 0;
}

.ym-seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 34px;
    align-items: start;
}

.ym-seo-copy h2,
.ym-seo-aside h2 {
    color: var(--ym-charcoal);
    font-size: 28px;
    line-height: 1.15;
}

.ym-seo-copy p,
.ym-seo-copy li,
.ym-seo-aside li {
    color: var(--ym-muted);
    font-size: 18px;
}

.ym-seo-aside {
    padding: 24px;
}

.ym-seo-aside ol {
    padding-left: 20px;
}

.ym-footer {
    padding: 34px 0 28px;
    background: #0b0d10;
    color: #fff;
}

.ym-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.ym-footer p {
    margin: 8px 0 0;
    color: #b9c0c8;
}

.ym-footer__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 900;
}

.ym-footer__legal {
    margin-top: 22px;
    font-size: 12px;
}

@media (hover: hover) {
    .ym-card:hover {
        border-color: #d8dce4;
        box-shadow: 0 22px 54px rgba(22, 26, 32, 0.15);
        transform: translateY(-3px);
    }
}

@media (max-width: 980px) {
    .ym-nav {
        display: none;
    }

    .ym-hero {
        min-height: 600px;
        background-image:
            linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 54%, rgba(255,255,255,0.7) 100%),
            var(--hero-image, url("../img/hero-master.jpg"));
        background-position: 62% center;
    }

    .ym-stats,
    .ym-service-grid,
    .ym-steps,
    .ym-income,
    .ym-city-links,
    .ym-form-layout,
    .ym-seo-layout {
        grid-template-columns: 1fr;
    }

    .ym-service-grid,
    .ym-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ym-form-copy {
        position: static;
    }

    .ym-income,
    .ym-form-layout {
        gap: 28px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .ym-wrap {
        width: min(100% - 28px, 1180px);
    }

    .ym-editable-page .ym-wrap {
        width: min(100% - 28px, 1180px) !important;
    }

    .ym-topbar {
        min-height: 58px;
        padding: 0 14px;
        gap: 12px;
        box-shadow: 0 6px 20px rgba(17, 19, 23, 0.08);
    }

    .ym-brand {
        font-size: 14px;
    }

    .ym-brand strong {
        padding: 3px 6px;
    }

    .ym-phone {
        display: none;
    }

    .ym-topbar__actions .ym-button {
        min-height: 38px !important;
        padding: 10px 14px !important;
        font-size: 13px;
    }

    .ym-hero {
        min-height: 0;
        background-image:
            linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.93) 58%, rgba(255,255,255,0.42) 100%),
            var(--hero-image, url("../img/hero-master.jpg"));
        background-position: 68% center;
        background-size: cover;
    }

    .ym-hero__inner {
        padding: 30px 0 22px;
    }

    .ym-hero__copy {
        max-width: none;
    }

    .ym-eyebrow {
        margin-bottom: 9px;
        font-size: 11px;
    }

    .ym-hero h1 {
        margin-bottom: 16px;
        font-size: 38px;
        line-height: 1.02;
    }

    .ym-hero p,
    .ym-section-head p,
    .ym-income p,
    .ym-form-copy p,
    .ym-page-hero p,
    .ym-seo-copy p,
    .ym-seo-copy li,
    .ym-seo-aside li {
        font-size: 16px;
    }

    .ym-hero p {
        max-width: 338px;
        line-height: 1.46;
    }

    .ym-editable-page .ym-hero__actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 22px 0 20px;
    }

    .ym-hero__actions .elementor-widget-button {
        width: 100%;
        max-width: none;
    }

    .ym-hero__actions .elementor-button {
        width: 100%;
        min-height: 48px !important;
        padding: 11px 8px !important;
        font-size: 13px;
        text-align: center;
    }

    .ym-editable-page .ym-stats {
        grid-template-columns: none !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(210px, 78vw);
        gap: 10px;
        overflow-x: auto;
        margin: 0 -14px;
        padding: 0 14px 8px;
        scroll-padding-left: 14px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ym-stats::-webkit-scrollbar {
        display: none;
    }

    .ym-editable-page .ym-stat {
        min-height: 94px !important;
        padding: 14px 16px;
        border-color: rgba(17, 19, 23, 0.08);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 28px rgba(22, 26, 32, 0.1);
        scroll-snap-align: start;
    }

    .ym-stats .ym-stat h3 {
        font-size: 20px;
    }

    .ym-band {
        padding: 48px 0;
    }

    .ym-section-head {
        margin-bottom: 24px;
    }

    .ym-section-head h2,
    .ym-income h2,
    .ym-form-copy h2,
    .ym-page-hero h1 {
        font-size: 30px;
        line-height: 1.1;
    }

    .ym-service-grid,
    .ym-steps {
        grid-template-columns: 1fr;
    }

    .ym-service-grid {
        gap: 10px;
    }

    .ym-editable-page .ym-card {
        min-height: 0 !important;
        padding: 18px;
        box-shadow: 0 10px 30px rgba(22, 26, 32, 0.08);
    }

    .ym-card h3 {
        margin-bottom: 8px;
        font-size: 20px;
    }

    .ym-card p {
        font-size: 15px;
        line-height: 1.45;
    }

    .ym-income {
        gap: 24px;
    }

    .ym-calculator {
        padding: 20px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    }

    .ym-calc-row {
        padding: 13px 0;
    }

    .ym-calc-row strong {
        font-size: 18px;
    }

    .ym-steps {
        gap: 0;
    }

    .ym-editable-page .ym-step {
        position: relative;
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 14px;
        min-height: 0 !important;
        padding: 0 0 26px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .ym-step:not(:last-child)::after {
        position: absolute;
        top: 42px;
        bottom: 0;
        left: 20px;
        width: 2px;
        background: #e4e7ec;
        content: "";
    }

    .ym-step > :nth-child(1) {
        z-index: 1;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .ym-step > :nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .ym-step > :nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .ym-step .ym-step-number {
        margin: 0;
    }

    .ym-step h3 {
        margin: 3px 0 6px;
        font-size: 19px;
    }

    .ym-step p {
        font-size: 15px;
        line-height: 1.42;
    }

    .ym-city-links {
        gap: 22px;
    }

    .ym-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ym-link-grid .ym-city-link .elementor-button {
        min-height: 58px !important;
        padding: 10px 12px !important;
        border: 1px solid var(--ym-line) !important;
        background: #fff !important;
        font-size: 13px;
    }

    .ym-link-grid .ym-city-link .elementor-button::after {
        margin-left: auto;
        font-size: 17px;
        content: "→";
    }

    .ym-form-layout {
        gap: 0;
    }

    .ym-form-copy {
        display: none !important;
    }

    .ym-form {
        padding: 20px 18px;
        box-shadow: 0 18px 46px rgba(22, 26, 32, 0.14);
    }

    .ym-form__head {
        margin-bottom: 16px;
        padding-bottom: 15px;
    }

    .ym-form__head h2 {
        font-size: 28px;
    }

    .ym-form__head p {
        font-size: 14px;
        line-height: 1.42;
    }

    .ym-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ym-form__grid--three {
        grid-template-columns: 1fr;
    }

    .ym-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ym-form input,
    .ym-form select,
    .ym-form textarea {
        min-height: 50px;
        padding: 11px;
        background: #fbfcfd;
    }

    .ym-form label span,
    .ym-form legend {
        font-size: 12px;
    }

    .ym-checks label {
        min-height: 54px;
        padding: 9px;
    }

    .ym-checks label span {
        font-size: 12px;
        line-height: 1.25;
    }

    .ym-consent span,
    .ym-form__note {
        font-size: 12px;
    }

    .ym-faq {
        gap: 8px;
    }

    .ym-faq summary {
        padding: 17px 18px;
        font-size: 16px;
    }

    .ym-faq p {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    .ym-page-hero {
        padding: 48px 0;
    }

    .ym-footer__inner {
        display: block;
    }

    .ym-footer__contacts {
        margin-top: 18px;
    }
}

/* Premium identity refresh 2.0 */
:root {
    --ym-yellow: #f0c84b;
    --ym-yellow-strong: #e4b92f;
    --ym-charcoal: #111315;
    --ym-charcoal-soft: #1d2123;
    --ym-steel: #5f696c;
    --ym-teal: #1f5e5a;
    --ym-green: #2d6c57;
    --ym-paper: #f5f5f2;
    --ym-mist: #e9edeb;
    --ym-white: #ffffff;
    --ym-line: #d9ddda;
    --ym-shadow: 0 22px 60px rgba(17, 19, 21, 0.12);
    --ym-radius: 6px;
    --ym-wrap: 1240px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body,
button,
input,
select,
textarea {
    font-family: Inter, "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

body {
    color: var(--ym-charcoal);
    background: var(--ym-paper);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.ym-site {
    overflow: clip;
    background: var(--ym-paper);
}

.ym-wrap,
.ym-topbar__inner {
    width: min(calc(100% - 64px), var(--ym-wrap));
    margin-right: auto;
    margin-left: auto;
}

.ym-topbar {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 78px;
    padding: 0;
    border-bottom: 1px solid rgba(17, 19, 21, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.admin-bar .ym-topbar {
    top: 32px;
}

.ym-topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
    gap: 48px;
}

.ym-brand {
    display: inline-flex;
    align-items: center;
    min-width: 184px;
    color: var(--ym-charcoal);
    text-decoration: none;
    gap: 12px;
}

.ym-brand__mark {
    display: grid;
    width: 38px;
    height: 42px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 2px;
    color: var(--ym-charcoal);
    background: var(--ym-yellow);
    font-size: 24px;
    font-weight: 850;
    line-height: 1;
}

.ym-brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.ym-brand__text strong,
.ym-brand__text small {
    padding: 0;
    color: inherit;
    background: transparent;
}

.ym-brand__text strong {
    font-size: 21px;
    font-weight: 780;
    line-height: 1;
}

.ym-brand__text small {
    color: var(--ym-steel);
    font-size: 11px;
    font-weight: 760;
    line-height: 1.2;
    text-transform: uppercase;
}

.ym-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.ym-nav a,
.ym-phone,
.ym-footer a {
    color: inherit;
    text-decoration: none;
}

.ym-nav a {
    position: relative;
    color: #373d3f;
    font-size: 14px;
    font-weight: 650;
}

.ym-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    background: var(--ym-yellow-strong);
    transition: transform 180ms ease;
}

.ym-nav a:hover::after,
.ym-nav a:focus-visible::after {
    transform: scaleX(1);
}

.ym-topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.ym-phone {
    color: var(--ym-charcoal);
    font-size: 14px;
    font-weight: 720;
    white-space: nowrap;
}

.ym-button,
.elementor .ym-button,
.ym-editable-page .elementor-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 1px solid var(--ym-yellow);
    border-radius: var(--ym-radius);
    color: var(--ym-charcoal);
    background: var(--ym-yellow);
    box-shadow: none;
    font-size: 15px;
    font-weight: 780;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ym-button:hover,
.ym-button:focus-visible,
.ym-editable-page .elementor-button:hover,
.ym-editable-page .elementor-button:focus-visible {
    border-color: var(--ym-yellow-strong);
    color: var(--ym-charcoal);
    background: var(--ym-yellow-strong);
    transform: translateY(-1px);
}

.ym-button--small,
.ym-topbar .ym-button {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 13px;
}

.ym-hero {
    position: relative;
    min-height: 720px;
    padding: 0;
    overflow: hidden;
    color: var(--ym-white);
    background-color: var(--ym-charcoal);
    background-image:
        linear-gradient(90deg, rgba(9, 11, 12, 0.95) 0%, rgba(9, 11, 12, 0.84) 35%, rgba(9, 11, 12, 0.3) 64%, rgba(9, 11, 12, 0.12) 100%),
        linear-gradient(0deg, rgba(9, 11, 12, 0.5) 0%, rgba(9, 11, 12, 0) 42%),
        url("https://yandex-mastera.ru/wp-content/uploads/2026/08/hero-master-premium-v2.jpg");
    background-position: center, center, center;
    background-size: cover;
    isolation: isolate;
}

.ym-hero::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    content: "";
    background: var(--ym-yellow);
}

.ym-hero__inner {
    display: flex;
    min-height: 720px;
    align-items: center;
    padding-top: 74px;
    padding-bottom: 60px;
}

.ym-hero__copy {
    display: flex;
    width: min(720px, 64%);
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
}

.ym-eyebrow,
.ym-elementor-eyebrow .ym-eyebrow {
    margin: 0 0 22px;
    color: var(--ym-teal);
    font-size: 12px;
    font-weight: 820;
    line-height: 1.3;
    text-transform: uppercase;
}

.ym-hero .ym-eyebrow,
.ym-hero .ym-elementor-eyebrow .ym-eyebrow,
.ym-band--dark .ym-eyebrow,
.ym-form-band .ym-form-copy .ym-eyebrow,
.ym-page-hero .ym-eyebrow {
    color: var(--ym-yellow);
}

.ym-hero h1,
.ym-editable-page .ym-hero .elementor-heading-title {
    max-width: 720px;
    margin: 0;
    color: var(--ym-white);
    font-size: 68px;
    font-weight: 760;
    line-height: 1.01;
}

.ym-hero p,
.ym-editable-page .ym-hero .elementor-widget-text-editor p {
    max-width: 640px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 19px;
    line-height: 1.55;
}

.ym-hero__actions,
.ym-editable-page .ym-hero__actions {
    display: flex;
    width: auto;
    flex-direction: row;
    align-items: stretch;
    margin-top: 34px;
    gap: 12px;
}

.ym-hero__actions .elementor-widget-button,
.ym-hero__actions .elementor-button-wrapper {
    width: auto;
}

.ym-hero__actions .elementor-button,
.ym-hero__actions .ym-button {
    min-width: 198px;
    min-height: 56px;
}

.ym-button--ghost,
.ym-hero__actions .ym-elementor-button--ghost .elementor-button {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--ym-white);
    background: rgba(17, 19, 21, 0.35);
    backdrop-filter: blur(10px);
}

.ym-button--ghost:hover,
.ym-button--ghost:focus-visible,
.ym-hero__actions .ym-elementor-button--ghost .elementor-button:hover,
.ym-hero__actions .ym-elementor-button--ghost .elementor-button:focus-visible {
    border-color: var(--ym-white);
    color: var(--ym-white);
    background: rgba(255, 255, 255, 0.12);
}

.ym-stats,
.ym-editable-page .ym-stats {
    display: grid;
    width: min(720px, 100%);
    grid-template-columns: 0.7fr 1.35fr 1.35fr;
    margin: 52px 0 0;
    padding: 25px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    gap: 0;
}

.ym-stat,
.ym-editable-page .ym-stat {
    display: block;
    min-width: 0;
    min-height: 88px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: var(--ym-white);
    background: transparent;
    box-shadow: none;
}

.ym-stat:first-child,
.ym-editable-page .ym-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.ym-stats .ym-stat h3,
.ym-editable-page .ym-stats .ym-stat .elementor-heading-title {
    margin: 0 0 7px;
    color: var(--ym-white);
    font-size: 22px;
    font-weight: 760;
    line-height: 1.15;
}

.ym-stats .ym-stat p,
.ym-editable-page .ym-stats .ym-stat p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 1.4;
}

.ym-band,
.ym-editable-page .ym-band {
    width: 100%;
    padding: 112px 0;
    background: var(--ym-paper);
}

.ym-band--soft,
.ym-editable-page .ym-band--soft {
    background: var(--ym-mist);
}

.ym-band--dark,
.ym-editable-page .ym-band--dark {
    color: var(--ym-white);
    background: var(--ym-charcoal);
}

.ym-section-head {
    display: block;
    max-width: 760px;
    margin: 0 0 50px;
}

.ym-section-head h2,
.ym-income h2,
.ym-city-links h2,
.ym-form-copy h2,
.ym-seo-copy h2,
.ym-seo-aside h2,
.ym-editable-page .ym-section-head .elementor-heading-title,
.ym-editable-page .ym-income .elementor-heading-title,
.ym-editable-page .ym-city-links .elementor-heading-title,
.ym-editable-page .ym-form-copy .elementor-heading-title {
    margin: 0;
    color: var(--ym-charcoal);
    font-size: 48px;
    font-weight: 730;
    line-height: 1.08;
}

.ym-section-head > p:last-child,
.ym-section-head .elementor-widget-text-editor p,
.ym-income p,
.ym-form-copy p,
.ym-seo-copy p,
.ym-seo-copy li,
.ym-seo-aside li {
    color: var(--ym-steel);
    font-size: 17px;
    line-height: 1.65;
}

.ym-section-head > p:last-child,
.ym-section-head .elementor-widget-text-editor p {
    max-width: 670px;
    margin: 22px 0 0;
}

.ym-service-grid,
.ym-editable-page .ym-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.ym-card,
.ym-editable-page .ym-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 330px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 30px;
    overflow: hidden;
    border: 1px solid var(--ym-line);
    border-radius: var(--ym-radius);
    background: var(--ym-white);
    box-shadow: none;
}

.ym-card::before,
.ym-editable-page .ym-card::before {
    position: absolute;
    top: 28px;
    right: 28px;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    color: #b9c0bd;
    background: transparent;
    font-size: 42px;
    font-weight: 720;
    line-height: 1;
}

.ym-card:nth-child(1)::before { content: "01"; }
.ym-card:nth-child(2)::before { content: "02"; }
.ym-card:nth-child(3)::before { content: "03"; }
.ym-card:nth-child(4)::before { content: "04"; }

.ym-card:first-child,
.ym-editable-page .ym-card:first-child {
    border-color: var(--ym-charcoal);
    color: var(--ym-white);
    background: var(--ym-charcoal);
}

.ym-card:first-child::before,
.ym-editable-page .ym-card:first-child::before {
    color: var(--ym-yellow);
}

.ym-card h3,
.ym-editable-page .ym-card .elementor-heading-title {
    margin: 0 0 16px;
    color: var(--ym-charcoal);
    font-size: 24px;
    font-weight: 730;
    line-height: 1.2;
}

.ym-card p,
.ym-editable-page .ym-card p {
    margin: 0;
    color: var(--ym-steel);
    font-size: 15px;
    line-height: 1.62;
}

.ym-card:first-child h3,
.ym-card:first-child .elementor-heading-title {
    color: var(--ym-white);
}

.ym-card:first-child p {
    color: rgba(255, 255, 255, 0.66);
}

.ym-income,
.ym-editable-page .ym-income {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: 104px;
}

.ym-band--dark .ym-income h2,
.ym-editable-page .ym-band--dark .ym-income .elementor-heading-title {
    color: var(--ym-white);
    font-size: 54px;
}

.ym-band--dark .ym-income p,
.ym-editable-page .ym-band--dark .ym-income p {
    max-width: 580px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.ym-calculator {
    width: 100%;
    padding: 38px 40px 34px;
    border: 0;
    border-radius: var(--ym-radius);
    color: var(--ym-charcoal);
    background: var(--ym-white);
    box-shadow: var(--ym-shadow);
}

.ym-calculator > label {
    display: block;
    margin-bottom: 12px;
    color: var(--ym-steel);
    font-size: 12px;
    font-weight: 780;
    text-transform: uppercase;
}

.ym-calculator input[type="range"] {
    width: 100%;
    margin: 4px 0 26px;
    accent-color: var(--ym-teal);
}

.ym-calc-row {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--ym-line);
    gap: 24px;
}

.ym-calc-row span {
    color: var(--ym-steel);
    font-size: 14px;
}

.ym-calc-row strong {
    color: var(--ym-charcoal);
    font-size: 18px;
    font-weight: 760;
    text-align: right;
}

.ym-calc-row:nth-of-type(3) strong {
    color: var(--ym-teal);
    font-size: 25px;
}

.ym-calc-note {
    margin: 22px 0 0 !important;
    color: #7c8587 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.ym-steps,
.ym-editable-page .ym-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.ym-step,
.ym-editable-page .ym-step {
    position: relative;
    min-width: 0;
    min-height: 255px;
    padding: 38px 30px 0 0;
    border: 0;
    border-top: 2px solid var(--ym-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ym-step + .ym-step,
.ym-editable-page .ym-step + .ym-step {
    padding-left: 30px;
}

.ym-step::before {
    position: absolute;
    top: -7px;
    left: 0;
    width: 12px;
    height: 12px;
    border: 3px solid var(--ym-paper);
    border-radius: 50%;
    content: "";
    background: var(--ym-teal);
}

.ym-step + .ym-step::before {
    left: 30px;
}

.ym-step-number,
.ym-editable-page .ym-step-number {
    margin: 0 0 28px !important;
    color: var(--ym-teal) !important;
    font-size: 12px !important;
    font-weight: 820 !important;
    line-height: 1 !important;
}

.ym-step h3,
.ym-editable-page .ym-step .elementor-heading-title {
    margin: 0 0 14px;
    color: var(--ym-charcoal);
    font-size: 25px;
    font-weight: 730;
    line-height: 1.2;
}

.ym-step p:not(.ym-step-number),
.ym-editable-page .ym-step p:not(.ym-step-number) {
    margin: 0;
    color: var(--ym-steel);
    font-size: 14px;
    line-height: 1.62;
}

.ym-city-links,
.ym-editable-page .ym-city-links {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 100px;
}

.ym-city-copy {
    max-width: 430px;
}

.ym-link-grid,
.ym-editable-page .ym-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #cdd3d0;
    border-radius: var(--ym-radius);
    background: #cdd3d0;
}

.ym-link-grid .ym-city-link,
.ym-link-grid .ym-city-link .elementor-button-wrapper,
.ym-link-grid .ym-city-link .elementor-button {
    width: 100%;
    height: 100%;
}

.ym-link-grid .ym-city-link .elementor-button,
.ym-link-grid > .ym-city-link,
.ym-city-link .elementor-button {
    position: relative;
    min-height: 78px;
    justify-content: flex-start;
    padding: 22px 58px 22px 24px;
    border: 0;
    border-radius: 0;
    color: var(--ym-charcoal);
    background: var(--ym-white);
    font-size: 15px;
    font-weight: 690;
    text-align: left;
}

.ym-link-grid .ym-city-link .elementor-button::after,
.ym-link-grid > .ym-city-link::after {
    position: absolute;
    top: 50%;
    right: 24px;
    content: "\2192";
    transform: translateY(-50%);
    color: var(--ym-teal);
    font-size: 20px;
}

.ym-link-grid .ym-city-link .elementor-button:hover,
.ym-link-grid > .ym-city-link:hover {
    color: var(--ym-charcoal);
    background: #f8f9f7;
    transform: none;
}

.ym-form-band,
.ym-editable-page .ym-form-band {
    color: var(--ym-white);
    background: var(--ym-teal);
}

.ym-form-layout,
.ym-editable-page .ym-form-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.62fr) minmax(560px, 1.38fr);
    align-items: start;
    gap: 74px;
}

.ym-form-copy {
    position: sticky;
    top: 118px;
    padding-top: 14px;
}

.ym-form-copy h2,
.ym-editable-page .ym-form-copy .elementor-heading-title {
    color: var(--ym-white);
    font-size: 43px;
}

.ym-form-copy p,
.ym-form-copy li,
.ym-editable-page .ym-form-copy p,
.ym-editable-page .ym-form-copy li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

.ym-form-copy ul {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.ym-form-copy li {
    position: relative;
    margin: 0 0 16px;
    padding: 0 0 0 24px;
}

.ym-form-copy li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 8px;
    height: 8px;
    border: 2px solid var(--ym-yellow);
    content: "";
}

.ym-form,
.ym-editable-page .ym-form {
    width: 100%;
    padding: 48px;
    border: 0;
    border-radius: var(--ym-radius);
    color: var(--ym-charcoal);
    background: var(--ym-white);
    box-shadow: var(--ym-shadow);
}

.ym-form__head {
    margin-bottom: 34px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ym-line);
}

.ym-form__head .ym-eyebrow {
    margin-bottom: 14px;
    color: var(--ym-teal);
}

.ym-form__head h2 {
    margin: 0;
    color: var(--ym-charcoal);
    font-size: 36px;
    font-weight: 730;
    line-height: 1.12;
}

.ym-form__head p:last-child {
    max-width: 620px;
    margin: 13px 0 0;
    color: var(--ym-steel);
    font-size: 14px;
    line-height: 1.6;
}

.ym-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ym-form__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.ym-form label > span,
.ym-form legend {
    display: block;
    margin: 0 0 8px;
    color: #3f4648;
    font-size: 12px;
    font-weight: 760;
}

.ym-form input[type="text"],
.ym-form input[type="tel"],
.ym-form select,
.ym-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid #d7dcda;
    border-radius: 4px;
    outline: 0;
    color: var(--ym-charcoal);
    background: #f8f9f7;
    font-size: 16px;
    line-height: 1.35;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ym-form textarea {
    min-height: 116px;
    resize: vertical;
}

.ym-form input:focus,
.ym-form select:focus,
.ym-form textarea:focus {
    border-color: var(--ym-teal);
    background: var(--ym-white);
    box-shadow: 0 0 0 3px rgba(31, 94, 90, 0.12);
}

.ym-form__skills {
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}

.ym-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ym-checks label {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--ym-line);
    border-radius: 4px;
    background: var(--ym-white);
    cursor: pointer;
    gap: 9px;
}

.ym-checks input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--ym-teal);
}

.ym-checks label > span {
    margin: 0;
    color: #3f4648;
    font-size: 12px;
    font-weight: 640;
    line-height: 1.25;
}

.ym-form__full {
    display: block;
    margin-top: 24px;
}

.ym-consent {
    display: flex;
    align-items: flex-start;
    margin: 22px 0;
    gap: 10px;
}

.ym-consent input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 3px;
    accent-color: var(--ym-teal);
}

.ym-consent > span {
    margin: 0 !important;
    color: var(--ym-steel) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

.ym-form .ym-consent a {
    color: var(--ym-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ym-button--wide {
    width: 100%;
    min-height: 58px;
}

.ym-form .ym-form__note {
    margin: 14px 0 0;
    color: #555d60;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.ym-alert {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
}

.ym-alert--success {
    border-color: #acd3c2;
    color: #14563d;
    background: #eef8f3;
}

.ym-alert--error {
    border-color: #e1b5b2;
    color: #7b2d29;
    background: #fff3f2;
}

.ym-faq,
.ym-editable-page .ym-faq {
    display: block;
    max-width: 940px;
    margin: 0;
}

.ym-faq details,
.ym-faq-item details {
    border: 0;
    border-top: 1px solid var(--ym-line);
    border-radius: 0;
    background: transparent;
}

.ym-faq details:last-child,
.ym-faq-item:last-child details {
    border-bottom: 1px solid var(--ym-line);
}

.ym-faq summary,
.ym-faq-item summary {
    position: relative;
    padding: 24px 56px 24px 0;
    color: var(--ym-charcoal);
    font-size: 19px;
    font-weight: 690;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.ym-faq summary::-webkit-details-marker,
.ym-faq-item summary::-webkit-details-marker {
    display: none;
}

.ym-faq summary::after,
.ym-faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 28px;
    height: 28px;
    content: "+";
    transform: translateY(-50%);
    color: var(--ym-teal);
    font-size: 27px;
    font-weight: 400;
    line-height: 25px;
    text-align: center;
}

.ym-faq details[open] summary::after,
.ym-faq-item details[open] summary::after {
    content: "\2212";
}

.ym-faq details p,
.ym-faq-item details p {
    max-width: 780px;
    margin: 0;
    padding: 0 56px 24px 0;
    color: var(--ym-steel);
    font-size: 15px;
    line-height: 1.65;
}

.ym-page-hero,
.ym-editable-page .ym-page-hero {
    position: relative;
    min-height: 510px;
    padding: 110px 0;
    color: var(--ym-white);
    background-color: var(--ym-charcoal);
    background-image:
        linear-gradient(90deg, rgba(9, 11, 12, 0.95) 0%, rgba(9, 11, 12, 0.82) 50%, rgba(9, 11, 12, 0.25) 100%),
        url("https://yandex-mastera.ru/wp-content/uploads/2026/08/hero-master-premium-v2.jpg");
    background-position: center, center;
    background-size: cover;
}

.ym-page-hero .ym-wrap {
    width: min(calc(100% - 64px), var(--ym-wrap));
    margin: 0 auto;
}

.ym-page-hero h1,
.ym-editable-page .ym-page-hero .elementor-heading-title {
    max-width: 760px;
    margin: 0;
    color: var(--ym-white);
    font-size: 58px;
    font-weight: 750;
    line-height: 1.04;
}

.ym-page-hero p,
.ym-editable-page .ym-page-hero p {
    max-width: 650px;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.ym-seo-layout,
.ym-editable-page .ym-seo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: 84px;
}

.ym-seo-copy h2,
.ym-seo-aside h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 34px;
}

.ym-seo-copy h2:not(:first-child) {
    margin-top: 48px;
}

.ym-seo-copy p,
.ym-seo-copy li,
.ym-seo-aside li {
    font-size: 16px;
}

.ym-seo-aside {
    padding: 30px;
    border: 1px solid var(--ym-line);
    border-radius: var(--ym-radius);
    background: var(--ym-white);
}

.ym-footer {
    padding: 54px 0 30px;
    color: rgba(255, 255, 255, 0.72);
    background: #0c0e0f;
}

.ym-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 40px;
}

.ym-footer strong {
    color: var(--ym-white);
    font-size: 18px;
}

.ym-footer p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

.ym-footer__contacts {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ym-footer__contacts a:last-child {
    color: var(--ym-yellow);
}

.ym-footer__legal {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
    .ym-topbar__inner {
        gap: 26px;
    }

    .ym-nav {
        gap: 20px;
    }

    .ym-phone {
        display: none;
    }

    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 58px;
    }

    .ym-service-grid,
    .ym-editable-page .ym-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ym-card,
    .ym-editable-page .ym-card {
        min-height: 290px;
    }

    .ym-income,
    .ym-editable-page .ym-income {
        gap: 54px;
    }

    .ym-city-links,
    .ym-editable-page .ym-city-links {
        gap: 54px;
    }

    .ym-form-layout,
    .ym-editable-page .ym-form-layout {
        grid-template-columns: minmax(250px, 0.55fr) minmax(500px, 1.45fr);
        gap: 44px;
    }

    .ym-form {
        padding: 36px;
    }
}

@media (max-width: 820px) {
    .ym-wrap,
    .ym-topbar__inner,
    .ym-page-hero .ym-wrap {
        width: min(calc(100% - 40px), var(--ym-wrap));
    }

    .ym-topbar {
        height: 70px;
    }

    .ym-nav {
        display: none;
    }

    .ym-hero,
    .ym-hero__inner {
        min-height: 690px;
    }

    .ym-hero__copy {
        width: min(680px, 78%);
    }

    .ym-income,
    .ym-editable-page .ym-income,
    .ym-city-links,
    .ym-editable-page .ym-city-links,
    .ym-form-layout,
    .ym-editable-page .ym-form-layout,
    .ym-seo-layout,
    .ym-editable-page .ym-seo-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-income,
    .ym-city-links,
    .ym-form-layout,
    .ym-seo-layout {
        gap: 48px;
    }

    .ym-form-copy {
        position: static;
        max-width: 620px;
    }

    .ym-steps,
    .ym-editable-page .ym-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 0;
    }

    .ym-step:nth-child(3) {
        padding-left: 0;
    }

    .ym-step:nth-child(3)::before {
        left: 0;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 72px;
    }

    body {
        font-size: 16px;
    }

    .ym-wrap,
    .ym-topbar__inner,
    .ym-page-hero .ym-wrap {
        width: min(calc(100% - 32px), var(--ym-wrap));
    }

    .ym-topbar {
        height: 64px;
    }

    .admin-bar .ym-topbar {
        top: 46px;
    }

    .ym-topbar__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .ym-brand {
        min-width: 0;
        gap: 9px;
    }

    .ym-brand__mark {
        width: 32px;
        height: 36px;
        flex-basis: 32px;
        font-size: 20px;
    }

    .ym-brand__text strong {
        font-size: 17px;
    }

    .ym-brand__text small {
        font-size: 9px;
    }

    .ym-topbar .ym-button {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 11px;
    }

    .ym-hero {
        min-height: 790px;
        background-color: var(--ym-charcoal);
        background-image:
            linear-gradient(180deg, rgba(17, 19, 21, 0.02) 0%, rgba(17, 19, 21, 0.08) 31%, rgba(17, 19, 21, 0.94) 52%, #111315 100%),
            url("https://yandex-mastera.ru/wp-content/uploads/2026/08/hero-master-premium-v2.jpg");
        background-repeat: no-repeat;
        background-position: center, 66% 0;
        background-size: 100% 100%, auto 450px;
    }

    .ym-hero::before {
        width: 3px;
    }

    .ym-hero__inner {
        min-height: 790px;
        align-items: flex-end;
        padding-top: 345px;
        padding-bottom: 42px;
    }

    .ym-hero__copy {
        width: 100%;
    }

    .ym-hero .ym-eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
    }

    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        max-width: 100%;
        font-size: 42px;
        line-height: 1.02;
    }

    .ym-hero p,
    .ym-editable-page .ym-hero .elementor-widget-text-editor p {
        margin-top: 20px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 16px;
        line-height: 1.52;
    }

    .ym-hero__actions,
    .ym-editable-page .ym-hero__actions {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        margin-top: 26px;
        gap: 9px;
    }

    .ym-hero__actions .elementor-widget-button,
    .ym-hero__actions .elementor-button-wrapper,
    .ym-hero__actions .elementor-button,
    .ym-hero__actions .ym-button {
        width: 100%;
        min-width: 0;
    }

    .ym-stats,
    .ym-editable-page .ym-stats {
        grid-template-columns: 0.72fr 1.28fr;
        margin-top: 30px;
        padding-top: 20px;
    }

    .ym-stat,
    .ym-editable-page .ym-stat {
        min-height: 70px;
        padding: 0 0 0 16px;
    }

    .ym-stat:first-child,
    .ym-editable-page .ym-stat:first-child {
        padding-left: 0;
    }

    .ym-stat:nth-child(3),
    .ym-editable-page .ym-stat:nth-child(3) {
        grid-column: 1 / -1;
        min-height: 0;
        margin-top: 16px;
        padding: 16px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        border-left: 0;
    }

    .ym-stats .ym-stat h3,
    .ym-editable-page .ym-stats .ym-stat .elementor-heading-title {
        font-size: 18px;
    }

    .ym-stats .ym-stat p,
    .ym-editable-page .ym-stats .ym-stat p {
        font-size: 10px;
    }

    .ym-band,
    .ym-editable-page .ym-band {
        padding: 74px 0;
    }

    .ym-section-head {
        margin-bottom: 34px;
    }

    .ym-section-head h2,
    .ym-income h2,
    .ym-city-links h2,
    .ym-form-copy h2,
    .ym-editable-page .ym-section-head .elementor-heading-title,
    .ym-editable-page .ym-income .elementor-heading-title,
    .ym-editable-page .ym-city-links .elementor-heading-title,
    .ym-editable-page .ym-form-copy .elementor-heading-title {
        font-size: 36px;
        line-height: 1.08;
    }

    .ym-section-head > p:last-child,
    .ym-section-head .elementor-widget-text-editor p,
    .ym-income p,
    .ym-form-copy p {
        font-size: 15px;
    }

    .ym-service-grid,
    .ym-editable-page .ym-service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .ym-card,
    .ym-editable-page .ym-card {
        min-height: 248px;
        padding: 28px 24px;
    }

    .ym-card::before,
    .ym-editable-page .ym-card::before {
        top: 24px;
        right: 24px;
        font-size: 35px;
    }

    .ym-card h3,
    .ym-editable-page .ym-card .elementor-heading-title {
        font-size: 22px;
    }

    .ym-band--dark .ym-income h2,
    .ym-editable-page .ym-band--dark .ym-income .elementor-heading-title {
        font-size: 38px;
    }

    .ym-income,
    .ym-city-links,
    .ym-form-layout,
    .ym-seo-layout {
        gap: 38px;
    }

    .ym-calculator {
        padding: 28px 22px 24px;
    }

    .ym-calc-row {
        min-height: 50px;
        gap: 12px;
    }

    .ym-calc-row strong {
        font-size: 16px;
    }

    .ym-calc-row:nth-of-type(3) strong {
        font-size: 20px;
    }

    .ym-steps,
    .ym-editable-page .ym-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ym-step,
    .ym-editable-page .ym-step,
    .ym-step + .ym-step,
    .ym-editable-page .ym-step + .ym-step {
        min-height: 0;
        padding: 26px 0 36px 42px;
        border-top: 0;
        border-left: 2px solid var(--ym-line);
    }

    .ym-step:last-child,
    .ym-editable-page .ym-step:last-child {
        padding-bottom: 0;
        border-left-color: transparent;
    }

    .ym-step::before,
    .ym-step + .ym-step::before,
    .ym-step:nth-child(3)::before {
        top: 30px;
        left: -7px;
    }

    .ym-step-number,
    .ym-editable-page .ym-step-number {
        margin-bottom: 12px !important;
    }

    .ym-step h3,
    .ym-editable-page .ym-step .elementor-heading-title {
        margin-bottom: 9px;
        font-size: 23px;
    }

    .ym-link-grid,
    .ym-editable-page .ym-link-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-link-grid .ym-city-link .elementor-button,
    .ym-link-grid > .ym-city-link,
    .ym-city-link .elementor-button {
        min-height: 64px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .ym-form-copy {
        padding-top: 0;
    }

    .ym-form-copy ul {
        margin-top: 22px;
    }

    .ym-form,
    .ym-editable-page .ym-form {
        padding: 30px 20px;
    }

    .ym-form__head {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .ym-form__head h2 {
        font-size: 30px;
    }

    .ym-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .ym-form__grid--three {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-checks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ym-checks label {
        min-height: 54px;
        padding: 9px;
    }

    .ym-faq summary,
    .ym-faq-item summary {
        padding: 21px 46px 21px 0;
        font-size: 17px;
    }

    .ym-faq details p,
    .ym-faq-item details p {
        padding: 0 0 22px;
        font-size: 14px;
    }

    .ym-page-hero,
    .ym-editable-page .ym-page-hero {
        min-height: 500px;
        padding: 260px 0 68px;
        background-image:
            linear-gradient(180deg, rgba(17, 19, 21, 0.05) 0%, rgba(17, 19, 21, 0.2) 30%, #111315 72%, #111315 100%),
            url("https://yandex-mastera.ru/wp-content/uploads/2026/08/hero-master-premium-v2.jpg");
        background-repeat: no-repeat;
        background-position: center, 66% 0;
        background-size: 100% 100%, auto 330px;
    }

    .ym-page-hero h1,
    .ym-editable-page .ym-page-hero .elementor-heading-title {
        font-size: 39px;
    }

    .ym-page-hero p,
    .ym-editable-page .ym-page-hero p {
        font-size: 16px;
    }

    .ym-seo-aside {
        padding: 24px 20px;
    }

    .ym-footer {
        padding-top: 42px;
    }

    .ym-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ym-footer__contacts {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 390px) {
    .ym-topbar__inner,
    .ym-wrap,
    .ym-page-hero .ym-wrap {
        width: calc(100% - 28px);
    }

    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 37px;
    }

    .ym-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

}

/* Elementor layout authority */
.ym-editable-page .ym-hero {
    display: block !important;
    min-height: 720px !important;
}

.ym-editable-page .ym-hero__inner {
    display: flex !important;
    min-height: 720px !important;
    align-items: center !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    padding: 74px 0 60px !important;
}

.ym-editable-page .ym-hero__copy {
    width: min(720px, 64%) !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin: 0 !important;
}

.ym-editable-page .ym-hero .elementor-heading-title {
    color: var(--ym-white) !important;
}

.ym-editable-page .ym-hero .ym-eyebrow,
.ym-editable-page .ym-hero .ym-elementor-eyebrow .ym-eyebrow {
    color: var(--ym-yellow) !important;
}

.ym-editable-page .ym-hero .elementor-widget-text-editor p {
    color: rgba(255, 255, 255, 0.76) !important;
}

.ym-editable-page .ym-stats {
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
}

.ym-editable-page .ym-stat {
    width: auto !important;
    max-width: none !important;
}

@media (max-width: 820px) {
    .ym-editable-page .ym-hero,
    .ym-editable-page .ym-hero__inner {
        min-height: 690px !important;
    }

    .ym-editable-page .ym-hero__copy {
        width: min(680px, 78%) !important;
    }
}

@media (min-width: 768px) {
    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 58px;
    }
}

@media (min-width: 768px) and (max-height: 820px) {
    .ym-hero,
    .ym-hero__inner,
    .ym-editable-page .ym-hero,
    .ym-editable-page .ym-hero__inner {
        min-height: 575px !important;
    }

    .ym-editable-page .ym-hero__inner {
        padding-top: 34px !important;
        padding-bottom: 30px !important;
    }

    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 50px;
        line-height: 1.02;
    }

    .ym-hero__copy > p,
    .ym-editable-page .ym-hero__copy > .elementor-widget-text-editor p {
        margin-top: 17px;
        font-size: 16px;
        line-height: 1.45;
    }

    .ym-hero__actions,
    .ym-editable-page .ym-hero__actions {
        margin-top: 20px;
    }

    .ym-stats,
    .ym-editable-page .ym-stats {
        margin-top: 24px;
        padding-top: 16px;
    }

    .ym-stat,
    .ym-editable-page .ym-stat {
        min-height: 58px;
    }

    .ym-stats .ym-stat h3,
    .ym-editable-page .ym-stats .ym-stat .elementor-heading-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .ym-hero,
    .ym-editable-page .ym-hero {
        min-height: 0 !important;
        background-image:
            linear-gradient(180deg, rgba(17, 19, 21, 0.02) 0%, rgba(17, 19, 21, 0.2) 28%, rgba(17, 19, 21, 0.96) 52%, #111315 100%),
            url("https://yandex-mastera.ru/wp-content/uploads/2026/08/hero-master-premium-v2.jpg");
        background-position: center, 66% 0;
        background-size: 100% 100%, auto 260px;
    }

    .ym-editable-page .ym-hero__inner {
        min-height: 0 !important;
        padding: 205px 0 28px !important;
    }

    .ym-hero .ym-eyebrow,
    .ym-editable-page .ym-hero .ym-eyebrow {
        margin-bottom: 11px;
        font-size: 9px;
    }

    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 32px;
        line-height: 1.03;
    }

    .ym-hero__copy > p,
    .ym-editable-page .ym-hero__copy > .elementor-widget-text-editor p {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.4;
    }

    .ym-hero__actions,
    .ym-editable-page .ym-hero__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
        gap: 8px;
    }

    .ym-hero__actions .elementor-button,
    .ym-hero__actions .ym-button {
        min-height: 58px;
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.25;
    }

    .ym-stats,
    .ym-editable-page .ym-stats {
        display: none !important;
    }
}

/* Editorial knowledge base */
.ym-article-hero,
.ym-editable-page .ym-article-hero {
    position: relative;
    display: block;
    min-height: 610px;
    overflow: hidden;
    background: #111315;
    color: #fff;
    isolation: isolate;
}

.ym-article-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, #0c0e0f 0%, rgba(12, 14, 15, 0.99) 38%, rgba(12, 14, 15, 0.96) 62%, rgba(12, 14, 15, 0.7) 76%, rgba(12, 14, 15, 0.22) 100%);
    content: "" !important;
    pointer-events: none;
}

.ym-article-hero__media,
.ym-article-hero__media .elementor-widget-container,
.ym-article-hero__media img {
    position: absolute !important;
    z-index: -2;
    width: 100% !important;
    height: 100% !important;
    inset: 0;
}

.ym-article-hero__media img {
    object-fit: cover;
    object-position: center;
}

.ym-article-hero__inner,
.ym-editable-page .ym-article-hero__inner {
    position: relative;
    z-index: 2;
    display: flex !important;
    min-height: 610px;
    align-items: center;
    padding: 108px 0 76px;
}

.ym-article-hero__copy,
.ym-editable-page .ym-article-hero__copy {
    width: min(730px, 64%);
    gap: 0 !important;
}

.ym-article-breadcrumb {
    display: flex;
    align-items: center;
    margin: 0 0 26px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ym-article-breadcrumb a {
    color: var(--ym-yellow);
}

.ym-article-hero h1,
.ym-editable-page .ym-article-hero .elementor-heading-title {
    max-width: 730px;
    margin: 0;
    color: #fff;
    font-size: 58px;
    line-height: 1.02;
}

.ym-article-hero__copy > .elementor-widget-text-editor p:not(.ym-article-breadcrumb),
.ym-article-hero__copy > p:not(.ym-article-breadcrumb) {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    line-height: 1.55;
}

.ym-article-meta,
.ym-article-meta .elementor-widget-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 24px;
    gap: 8px;
}

.ym-article-meta span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
}

.ym-article-hero .ym-elementor-button {
    width: fit-content;
    margin-top: 28px;
}

.ym-article-hero--hub::before {
    background: linear-gradient(90deg, #0c0e0f 0%, #0c0e0f 40%, rgba(12, 14, 15, 0.97) 64%, rgba(12, 14, 15, 0.72) 78%, rgba(12, 14, 15, 0.22) 100%);
}

.ym-article-hero--hub .ym-article-hero__copy,
.ym-editable-page .ym-article-hero--hub .ym-article-hero__copy {
    width: min(640px, 58%);
}

.ym-article-hero--hub .ym-article-hero__copy > .elementor-widget-text-editor p,
.ym-article-hero--hub .ym-article-hero__copy > p {
    max-width: 590px;
}

.ym-article-layout,
.ym-editable-page .ym-article-layout {
    display: grid !important;
    align-items: start;
    grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
    justify-content: space-between;
    gap: 76px;
}

.ym-article-body,
.ym-article-body .elementor-widget-container {
    min-width: 0;
}

.ym-article-answer {
    margin-bottom: 54px;
    padding: 30px 32px;
    border-left: 4px solid var(--ym-yellow);
    background: #111315;
    color: #fff;
}

.ym-article-answer > span {
    display: block;
    margin-bottom: 12px;
    color: var(--ym-yellow);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ym-article-body .ym-article-answer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.55;
}

.ym-article-body a:not(.ym-button) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ym-article-section + .ym-article-section {
    margin-top: 60px;
    padding-top: 56px;
    border-top: 1px solid var(--ym-line);
}

.ym-article-body h2 {
    max-width: 690px;
    margin: 0 0 24px;
    color: var(--ym-charcoal);
    font-size: 38px;
    line-height: 1.12;
}

.ym-article-body p,
.ym-article-body li {
    color: #3d444a;
    font-size: 18px;
    line-height: 1.72;
}

.ym-article-body p {
    margin: 0 0 20px;
}

.ym-article-body ul,
.ym-article-body ol {
    display: grid;
    margin: 24px 0 0;
    padding-left: 24px;
    gap: 14px;
}

.ym-article-body li::marker {
    color: #178c82;
    font-weight: 800;
}

.ym-article-steps {
    padding: 0 !important;
    counter-reset: article-step;
    list-style: none;
}

.ym-article-steps li {
    position: relative;
    min-height: 72px;
    padding: 0 0 0 70px;
    counter-increment: article-step;
}

.ym-article-steps li::before {
    position: absolute;
    top: 2px;
    left: 0;
    display: grid;
    width: 48px;
    height: 48px;
    border: 1px solid #178c82;
    border-radius: 50%;
    color: #0d746d;
    content: counter(article-step, decimal-leading-zero);
    font-size: 12px;
    font-weight: 800;
    place-items: center;
}

.ym-article-callout {
    margin: 30px 0;
    padding: 26px 28px;
    border: 1px solid #c8dedb;
    border-radius: 6px;
    background: #eef8f6;
    color: #24433f;
    font-size: 17px;
    line-height: 1.6;
}

.ym-article-note,
.ym-article-source {
    color: #687078 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.ym-article-source {
    margin-top: 56px !important;
    padding-top: 24px;
    border-top: 1px solid var(--ym-line);
}

.ym-article-source a,
.ym-inline-link {
    color: #0d746d;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ym-article-aside,
.ym-editable-page .ym-article-aside {
    position: sticky !important;
    top: 108px;
    padding: 30px 28px;
    border-top: 4px solid var(--ym-yellow);
    background: #111315;
    color: #fff;
}

.ym-article-aside h3,
.ym-editable-page .ym-article-aside .elementor-heading-title {
    color: #fff;
    font-size: 28px;
    line-height: 1.08;
}

.ym-article-aside p,
.ym-article-aside li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.55;
}

.ym-article-aside .ym-eyebrow {
    color: var(--ym-yellow);
}

.ym-article-aside ul {
    display: grid;
    margin: 22px 0 0;
    padding-left: 18px;
    gap: 8px;
}

.ym-article-aside .ym-elementor-button {
    width: 100%;
    margin-top: 22px;
}

.ym-article-aside__note {
    margin: 16px 0 0 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 11px !important;
}

.ym-verdict-grid {
    display: grid;
    margin-top: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ym-line);
    border-left: 1px solid var(--ym-line);
}

.ym-verdict-grid > div {
    min-height: 170px;
    padding: 26px;
    border-right: 1px solid var(--ym-line);
    border-bottom: 1px solid var(--ym-line);
}

.ym-verdict-grid strong {
    display: block;
    margin-bottom: 10px;
    color: var(--ym-charcoal);
    font-size: 18px;
}

.ym-verdict-grid p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.ym-income-table,
.ym-compare-table {
    width: 100%;
    margin-top: 28px;
    border: 1px solid var(--ym-line);
    background: #fff;
}

.ym-income-table__row,
.ym-compare-table > div {
    display: grid;
    min-height: 62px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ym-line);
    grid-template-columns: 0.75fr 1fr 1.25fr;
    gap: 16px;
}

.ym-income-table__row:last-child,
.ym-compare-table > div:last-child {
    border-bottom: 0;
}

.ym-income-table__head,
.ym-compare-table__head {
    background: #111315;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ym-income-table__row--accent {
    background: var(--ym-yellow);
}

.ym-income-table__row span,
.ym-income-table__row strong,
.ym-compare-table span,
.ym-compare-table strong {
    font-size: 14px;
    line-height: 1.35;
}

.ym-compare-table strong {
    color: var(--ym-charcoal);
}

.ym-article-grid-widget,
.ym-article-grid-widget .elementor-widget-container {
    width: 100%;
}

.ym-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ym-article-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--ym-line);
    border-radius: 6px;
    background: #fff;
    color: var(--ym-charcoal);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ym-article-card:hover,
.ym-article-card:focus-visible {
    border-color: #178c82;
    box-shadow: 0 18px 42px rgba(18, 28, 28, 0.12);
    transform: translateY(-4px);
}

.ym-article-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dfe4e5;
}

.ym-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms ease;
}

.ym-article-card:hover .ym-article-card__media img {
    transform: scale(1.025);
}

.ym-article-card__body {
    display: flex;
    min-height: 285px;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 22px;
}

.ym-article-card__kicker {
    margin-bottom: 30px;
    color: #0d746d;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.ym-article-card strong {
    color: var(--ym-charcoal);
    font-size: 23px;
    line-height: 1.12;
}

.ym-article-card strong + span {
    margin-top: 14px;
    color: #687078;
    font-size: 14px;
    line-height: 1.5;
}

.ym-article-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 24px;
    color: var(--ym-charcoal) !important;
    font-size: 12px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.ym-article-card__link span {
    color: #0d746d;
    font-size: 20px;
}

.ym-articles-all-button {
    width: fit-content;
    margin-top: 26px;
}

.ym-editorial-cta__inner,
.ym-editable-page .ym-editorial-cta__inner {
    display: grid !important;
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 44px;
}

.ym-editorial-cta__copy {
    max-width: 760px;
}

.ym-editorial-cta .ym-elementor-button {
    min-width: 220px;
}

.ym-article-faq-wrap {
    max-width: 900px;
}

@media (max-width: 1100px) {
    .ym-article-hero,
    .ym-editable-page .ym-article-hero,
    .ym-article-hero__inner,
    .ym-editable-page .ym-article-hero__inner {
        min-height: 560px;
    }

    .ym-article-hero__inner,
    .ym-editable-page .ym-article-hero__inner {
        padding-top: 64px;
        padding-bottom: 48px;
    }

    .ym-article-hero h1,
    .ym-editable-page .ym-article-hero .elementor-heading-title {
        font-size: 48px;
    }

    .ym-article-layout,
    .ym-editable-page .ym-article-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 38px;
    }
}

@media (max-width: 920px) {
    .ym-article-hero,
    .ym-editable-page .ym-article-hero,
    .ym-article-hero__inner,
    .ym-editable-page .ym-article-hero__inner {
        min-height: 560px;
    }

    .ym-article-hero__copy,
    .ym-editable-page .ym-article-hero__copy {
        width: min(680px, 78%);
    }

    .ym-article-layout,
    .ym-editable-page .ym-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-article-aside,
    .ym-editable-page .ym-article-aside {
        position: static !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
        gap: 18px 28px;
    }

    .ym-article-aside .ym-elementor-button {
        align-self: end;
        grid-column: 2;
        grid-row: 1 / span 3;
    }

    .ym-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ym-article-hero,
    .ym-editable-page .ym-article-hero {
        min-height: 0;
    }

    .ym-article-hero::before,
    .ym-article-hero--hub::before {
        background: linear-gradient(180deg, rgba(12, 14, 15, 0.06) 0%, rgba(12, 14, 15, 0.48) 30%, rgba(12, 14, 15, 0.98) 55%, #0c0e0f 100%);
    }

    .ym-article-hero__media,
    .ym-article-hero__media .elementor-widget-container,
    .ym-article-hero__media img {
        height: 250px !important;
    }

    .ym-article-hero__media img {
        object-position: 64% center;
    }

    .ym-article-hero__inner,
    .ym-editable-page .ym-article-hero__inner {
        min-height: 0;
        align-items: flex-start;
        padding: 210px 0 32px;
    }

    .ym-article-hero__copy,
    .ym-editable-page .ym-article-hero__copy,
    .ym-article-hero--hub .ym-article-hero__copy,
    .ym-editable-page .ym-article-hero--hub .ym-article-hero__copy {
        width: 100%;
    }

    .ym-article-breadcrumb {
        margin-bottom: 14px !important;
        font-size: 9px !important;
    }

    .ym-article-hero h1,
    .ym-editable-page .ym-article-hero .elementor-heading-title {
        font-size: 32px;
        line-height: 1.04;
    }

    .ym-article-hero__copy > .elementor-widget-text-editor p:not(.ym-article-breadcrumb),
    .ym-article-hero__copy > p:not(.ym-article-breadcrumb) {
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.45;
    }

    .ym-article-meta,
    .ym-article-meta .elementor-widget-container {
        margin-top: 16px;
    }

    .ym-article-hero .ym-elementor-button {
        width: 100%;
        margin-top: 18px;
    }

    .ym-article-answer {
        margin-bottom: 42px;
        padding: 24px 20px;
    }

    .ym-article-answer p {
        font-size: 16px;
    }

    .ym-article-section + .ym-article-section {
        margin-top: 42px;
        padding-top: 38px;
    }

    .ym-article-body h2 {
        font-size: 29px;
    }

    .ym-article-body p,
    .ym-article-body li {
        font-size: 16px;
        line-height: 1.62;
    }

    .ym-article-steps li {
        padding-left: 58px;
    }

    .ym-article-steps li::before {
        width: 40px;
        height: 40px;
    }

    .ym-verdict-grid,
    .ym-article-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-verdict-grid > div {
        min-height: 0;
        padding: 22px;
    }

    .ym-income-table__row,
    .ym-compare-table > div,
    .ym-compare-table__head {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .ym-income-table__head,
    .ym-compare-table__head {
        display: none !important;
    }

    .ym-income-table__row,
    .ym-compare-table > div {
        padding: 16px;
    }

    .ym-article-aside,
    .ym-editable-page .ym-article-aside {
        display: block !important;
        padding: 26px 22px;
    }

    .ym-article-aside .ym-elementor-button {
        width: 100%;
        margin-top: 20px;
    }

    .ym-article-card__body {
        min-height: 260px;
        padding: 22px 20px 20px;
    }

    .ym-article-card__kicker {
        margin-bottom: 22px;
    }

    .ym-article-card strong {
        font-size: 22px;
    }

    .ym-editorial-cta__inner,
    .ym-editable-page .ym-editorial-cta__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ym-editorial-cta .ym-elementor-button {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .ym-editable-page .ym-hero {
        min-height: 0 !important;
    }

    .ym-editable-page .ym-hero__inner {
        min-height: 0 !important;
        align-items: flex-start !important;
        padding: 282px 0 34px !important;
    }

    .ym-editable-page .ym-hero__copy {
        width: 100% !important;
    }

    .ym-editable-page .ym-stats {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr) !important;
    }

    .ym-editable-page .ym-stat:nth-child(3) {
        grid-column: 1 / -1 !important;
    }
}

/* Conversion and SEO experience: roles */
.ym-audience-band,
.ym-editable-page .ym-audience-band {
    border-top: 1px solid var(--ym-line);
    background: var(--ym-white);
}

.ym-audience-grid,
.ym-editable-page .ym-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ym-audience-card,
.ym-editable-page .ym-audience-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 390px;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 34px 32px;
    overflow: hidden;
    border: 1px solid var(--ym-line);
    border-radius: 6px;
    background: var(--ym-white);
}

.ym-audience-card::before,
.ym-editable-page .ym-audience-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    content: "";
    background: var(--ym-yellow);
}

.ym-audience-card:nth-child(2)::before,
.ym-editable-page .ym-audience-card:nth-child(2)::before {
    background: var(--ym-teal);
}

.ym-audience-card:nth-child(3)::before,
.ym-editable-page .ym-audience-card:nth-child(3)::before {
    background: #b7c4c1;
}

.ym-audience-card__kicker {
    margin: 0 0 56px !important;
    color: var(--ym-teal) !important;
    font-size: 11px !important;
    font-weight: 790 !important;
    line-height: 1.3 !important;
    text-transform: uppercase;
}

.ym-audience-card h3,
.ym-editable-page .ym-audience-card .elementor-heading-title {
    margin: 0 0 16px;
    color: var(--ym-charcoal);
    font-size: 30px;
    font-weight: 740;
    line-height: 1.08;
}

.ym-audience-card p,
.ym-editable-page .ym-audience-card .elementor-widget-text-editor p {
    margin: 0;
    color: var(--ym-steel);
    font-size: 15px;
    line-height: 1.6;
}

.ym-audience-card .ym-audience-link {
    width: 100%;
    margin-top: auto;
    padding-top: 28px;
}

.ym-audience-card .ym-audience-link .elementor-button {
    width: 100%;
    min-height: 50px;
    border-color: var(--ym-charcoal);
    color: var(--ym-charcoal);
    background: transparent;
}

.ym-audience-card .ym-audience-link .elementor-button:hover,
.ym-audience-card .ym-audience-link .elementor-button:focus-visible {
    border-color: var(--ym-charcoal);
    color: var(--ym-white);
    background: var(--ym-charcoal);
}

.ym-form__roles {
    margin: 0 0 30px;
    padding: 0 0 30px;
    border: 0;
    border-bottom: 1px solid var(--ym-line);
}

.ym-role-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ym-role-options label {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 56px;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d7dcda;
    border-radius: 4px;
    background: #f8f9f7;
    cursor: pointer;
    gap: 10px;
}

.ym-role-options label:has(input:checked) {
    border-color: var(--ym-teal);
    background: #eef6f3;
    box-shadow: inset 3px 0 0 var(--ym-teal);
}

.ym-role-options input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 0;
    accent-color: var(--ym-teal);
}

.ym-role-options label > span {
    margin: 0;
    color: #303638;
    font-size: 12px;
    font-weight: 680;
    line-height: 1.35;
}

.ym-seo-aside__note {
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--ym-line);
    color: var(--ym-steel);
    font-size: 13px !important;
}

.ym-related-band,
.ym-editable-page .ym-related-band {
    padding-top: 76px;
    padding-bottom: 76px;
}

.ym-article-related .elementor-heading-title {
    color: var(--ym-charcoal) !important;
}

.ym-related-band h2,
.ym-editable-page .ym-related-band .elementor-heading-title {
    max-width: 760px;
    margin: 0;
    color: var(--ym-charcoal) !important;
    font-size: 40px;
    font-weight: 730;
    line-height: 1.1;
}

.ym-related-links,
.ym-editable-page .ym-related-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 34px;
    gap: 10px;
}

.ym-related-links .ym-related-link,
.ym-related-links .elementor-button-wrapper,
.ym-related-links .elementor-button {
    width: 100%;
}

.ym-related-links .elementor-button {
    min-height: 62px;
    justify-content: flex-start;
    border-color: var(--ym-line);
    color: var(--ym-charcoal);
    background: var(--ym-white);
    text-align: left;
}

.ym-related-links .elementor-button:hover,
.ym-related-links .elementor-button:focus-visible {
    border-color: var(--ym-teal);
    color: var(--ym-charcoal);
    background: var(--ym-white);
}

.ym-footer__links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 34px;
    gap: 12px 28px;
}

.ym-footer__links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
}

.ym-footer__links a:hover,
.ym-footer__links a:focus-visible {
    color: var(--ym-yellow);
}

@media (max-width: 920px) {
    .ym-audience-grid,
    .ym-editable-page .ym-audience-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-audience-card,
    .ym-editable-page .ym-audience-card {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 38px;
    }

    .ym-audience-card,
    .ym-editable-page .ym-audience-card {
        min-height: 290px;
        padding: 30px 24px 24px;
    }

    .ym-audience-card__kicker {
        margin-bottom: 38px !important;
    }

    .ym-audience-card h3,
    .ym-editable-page .ym-audience-card .elementor-heading-title {
        font-size: 27px;
    }

    .ym-role-options,
    .ym-related-links,
    .ym-editable-page .ym-related-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-related-band h2,
    .ym-editable-page .ym-related-band .elementor-heading-title {
        font-size: 32px;
    }

    .ym-footer__links {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 390px) {
    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 34px;
    }
}

/* Final mobile authority */
@media (min-width: 768px) and (max-width: 1100px) and (max-height: 820px) {
    .ym-stats,
    .ym-editable-page .ym-stats {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .ym-hero,
    .ym-editable-page .ym-hero {
        min-height: 0 !important;
        background-image:
            linear-gradient(180deg, rgba(17, 19, 21, 0.02) 0%, rgba(17, 19, 21, 0.2) 28%, rgba(17, 19, 21, 0.96) 52%, #111315 100%),
            url("https://yandex-mastera.ru/wp-content/uploads/2026/08/hero-master-premium-v2.jpg");
        background-position: center, 66% 0;
        background-size: 100% 100%, auto 235px;
    }

    .ym-hero__inner,
    .ym-editable-page .ym-hero__inner {
        min-height: 0 !important;
        align-items: flex-start !important;
        padding: 180px 0 26px !important;
    }

    .ym-editable-page .ym-hero__copy {
        width: 100% !important;
    }

    .ym-hero .ym-eyebrow,
    .ym-editable-page .ym-hero .ym-eyebrow {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .ym-hero h1,
    .ym-editable-page .ym-hero .elementor-heading-title {
        font-size: 31px;
        line-height: 1.03;
    }

    .ym-hero__copy > p,
    .ym-editable-page .ym-hero__copy > .elementor-widget-text-editor p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.38;
    }

    .ym-hero__actions,
    .ym-editable-page .ym-hero__actions {
        grid-template-columns: minmax(0, 1fr);
        margin: 16px 0 0;
        gap: 8px;
    }

    .ym-hero__actions .elementor-button,
    .ym-hero__actions .ym-button {
        min-height: 56px;
        padding: 9px 7px;
        font-size: 12px;
        line-height: 1.22;
    }

    .ym-stats,
    .ym-editable-page .ym-stats {
        display: none !important;
    }
}

.ym-messenger-link,
.ym-footer .ym-messenger-link {
    color: #fff !important;
}

.ym-editable-page .ym-hero .ym-messenger-widget .ym-messenger-prompt {
    margin-top: 0;
}

.ym-editable-page .ym-hero .ym-messenger-widget .ym-messenger-prompt__label {
    max-width: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .ym-editable-page .ym-hero .ym-messenger-widget .ym-messenger-prompt__label {
        margin: 0;
        font-size: 12px;
    }

    .ym-form__grid,
    .ym-form__grid--three,
    .ym-checks {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-hero__actions .elementor-button,
    .ym-hero__actions .ym-button {
        width: 100%;
        font-size: 16px;
    }

    .ym-success-card .ym-messenger-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .ym-topbar .ym-button {
        min-height: 44px;
    }

    .ym-form input[type="text"],
    .ym-form input[type="tel"],
    .ym-form select,
    .ym-form textarea {
        font-size: 16px;
    }
}

.ym-form label,
.ym-form fieldset,
.ym-form input,
.ym-form select,
.ym-form textarea,
.ym-success-card {
    min-width: 0;
    max-width: 100%;
}

.ym-form,
.ym-success-card {
    scroll-margin-top: 110px;
}

.ym-success-card h2,
.ym-success-card p,
.ym-success-card li,
.ym-message-example strong {
    overflow-wrap: anywhere;
}

.ym-messenger-link:focus-visible {
    outline: 3px solid var(--ym-yellow);
    outline-offset: 3px;
}

/* Elementor containers need an explicit block layout when --display is unset. */
.home .ym-editable-page .ym-band.e-con,
.home .ym-editable-page .ym-band > .ym-wrap.e-con:not(.ym-form-layout):not(.ym-income):not(.ym-city-links) {
    display: block;
}
.ym-regional-article {
    width: min(100% - 40px, 900px);
    margin: 0 auto;
    padding: 40px 0 64px;
    overflow-wrap: anywhere;
    letter-spacing: 0;
}

.ym-regional-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.ym-regional-article h1 {
    margin: 0 0 26px;
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: 0;
}

.ym-regional-article .ym-article-body section {
    margin-top: 36px;
}

.ym-regional-article .ym-article-body h2,
.ym-regional-form h2,
.ym-regional-related h2 {
    margin: 0 0 20px;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: 0;
}

.ym-regional-article h3 {
    font-size: 21px;
    line-height: 1.4;
    margin: 24px 0 12px;
}

.ym-regional-article figure {
    margin: 28px 0;
}

.ym-regional-article img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 506;
    object-fit: cover;
}

.ym-regional-article .ym-article-answer {
    padding: 20px 24px;
    margin: 28px 0;
    background: #eef5f3;
    color: #243b38;
    border-color: #24645c;
}

.ym-regional-article .ym-article-answer p {
    margin: 8px 0 0;
    color: #344741;
    font-size: 17px;
}

.ym-regional-article a,
.ym-regional-related a {
    color: #14645b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ym-regional-city-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    padding: 0;
    margin: 32px 0;
    gap: 0 32px;
}

.ym-city-search label {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.ym-city-search input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid #a7b8b3;
    border-radius: 4px;
    color: #202929;
    background: #fff;
    font: inherit;
    font-weight: 400;
}

.ym-city-search input:focus {
    outline: 2px solid #14645b;
    outline-offset: 2px;
}

.ym-city-count {
    min-height: 28px;
    color: #52635f;
}

.ym-city-directory [hidden] {
    display: none !important;
}

.ym-regional-city-list li {
    border-bottom: 1px solid #dce3e0;
    min-width: 0;
}

.ym-regional-city-list a {
    display: block;
    padding: 16px 0;
    font-size: 19px;
}

.ym-regional-form {
    background: #eef3f1;
    padding: 48px 0;
}

.ym-regional-form > .ym-wrap {
    max-width: 1000px;
}

.ym-regional-form .ym-form {
    margin-top: 28px;
}

.ym-regional-related {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 600px) {
    .ym-regional-article {
        width: calc(100% - 32px);
        padding: 28px 0 40px;
    }

    .ym-regional-article h1 {
        font-size: 28px;
    }

    .ym-regional-article .ym-article-body h2,
    .ym-regional-form h2,
    .ym-regional-related h2 {
        font-size: 23px;
    }

    .ym-regional-article .ym-article-answer {
        padding: 16px;
    }

    .ym-regional-city-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
