/* =====================================================
   OFFER HUB: /oferta/ (overview of all services),
   deploy/elementor-templates/mgraphics-oferta.json (section class mg-offer--hub).
   Loads after css/offer.css and css/sections.css (inc/sections.php) and only adds what the hub needs: service cards
   with package prices that link to each package, the terms shared by sites and
   shops, the "co wybrać" table of situations, the stages with their terms and the
   quote form. Colours as in offer.css: red #c5121a (text and
   buttons on light), #d9161e (accents and buttons on graphite), graphite #191b20,
   ink #262626. Nothing moves: hover and focus change colour only.
   ===================================================== */

/* ---- Icons: one hidden sprite at the top of the content, used with <use> ---- */
.mg-hub-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.mg-hub-ico {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Hero: five services instead of three packages; the proof strip fits the first screen ---- */
.mg-offer--hub .mg-offer-hero {
    padding-top: 36px;
}
.mg-offer--hub .mg-offer-hero h1 {
    font-size: 50px;
}
.mg-offer--hub .mg-offer-hero h1::after {
    margin-top: 20px;
}
.mg-offer.mg-offer--hub .mg-offer-hero__lede {
    margin: 20px 0 24px;
}
.mg-hub-glance {
    padding: 20px 24px 18px;
}
.mg-hub-glance li a {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    column-gap: 14px;
    padding-top: 9px;
    padding-bottom: 9px;
}
.mg-hub-glance .mg-hub-ico {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 3px;
    background: #f0f0ee;
    color: #191b20;
}
.mg-hub-glance li a:hover .mg-hub-ico {
    background: #191b20;
    color: #fff;
}
/* Each row leads to that service's card: the name is underlined like the package names below. */
.mg-hub-glance .mg-offer-glance__name {
    grid-column: 2;
    text-decoration: underline;
    text-decoration-color: #8a8a85;
    text-underline-offset: 4px;
}
.mg-hub-glance li a:hover .mg-offer-glance__name,
.mg-hub-glance li a:focus-visible .mg-offer-glance__name {
    color: #c5121a;
    text-decoration-color: #c5121a;
}
.mg-hub-glance .mg-offer-glance__price {
    grid-column: 3;
}
.mg-hub-glance .mg-offer-glance__desc {
    grid-column: 2 / -1;
}
.mg-hub-glance li:last-child {
    border-bottom: 0;
}
.mg-offer .mg-hub-glance .mg-offer-glance__foot {
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #e3e3e0;
}
.mg-offer-glance__price.mg-hub-glance__quote {
    color: #262626;
    font-size: 15px;
    font-weight: 700;
}
.mg-offer--hub .mg-offer-proof {
    margin-top: 32px;
    padding: 20px 0 24px;
}
.mg-offer--hub .mg-offer-proof strong {
    font-size: 18px;
}

/* Elementor's stylesheet loads after this one and resets link underlines at the same
   weight, so these four kinds of link would be told apart by colour alone. */
.mg-offer--hub .mg-offer-proof a,
.mg-offer--hub .mg-offer-qa__nav a,
.mg-offer--hub .mg-hub-form__consent a,
.mg-offer--hub .mg-hub-form__status a {
    text-decoration-line: underline;
}

/* A touch target as tall as the buttons, without making its line taller. */
.mg-offer--hub .mg-offer-proof a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -11px 0;
    padding: 0;
}

/* ---- Section bar: where the visitor is ---- */
.mg-offer-jump li a[aria-current="true"] {
    color: #c5121a;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 #c5121a;
}

/* While the quote form is on the screen (js/offer-hub.js sets the class) the bar's button
   steps aside: it leads to that form, so beside "Wyślij zapytanie o wycenę" it would be a
   second red button that sends nothing. Its place is kept, so nothing in the bar moves. */
html.mg-hub-at-form .mg-offer-jump__cta {
    visibility: hidden;
}

/* The phone number stays in reach beside the main action on wide screens. */
.mg-hub-jump__act {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 22px;
}
.mg-hub-jump__tel {
    display: none;
}
@media (min-width: 1100px) {
    .mg-hub-jump__tel {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        color: #262626;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }
    .mg-hub-jump__tel .fa {
        color: #c5121a;
        font-size: 16px;
    }
    .mg-hub-jump__tel:hover {
        color: #c5121a;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

/* ---- Service cards ---- */
/* Six shared rows (head, lede, label, price list, scope, links), so the two cards line up
   at any width, also when one name or lede takes a line more. */
.mg-hub-lead {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto) 1fr;
    column-gap: 24px;
}
.mg-hub-lead > .mg-hub-card--lead {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
}
.mg-hub-card--lead .mg-hub-card__body {
    display: contents;
}
.mg-offer .mg-hub-card--lead .mg-hub-card__body > * {
    margin-left: 28px;
    margin-right: 28px;
}
.mg-offer .mg-hub-card--lead .mg-hub-card__lede {
    margin-top: 22px;
}
.mg-hub-card--lead .mg-hub-card__links {
    align-self: end;
    margin-bottom: 26px;
}
/* Five shared rows (name, pricing, lede, scope, link), so the three cards line up. */
.mg-hub-more {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    column-gap: 24px;
    margin-top: 24px;
}
.mg-hub-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #d9d9d6;
    border-radius: 3px;
    background: #fff;
}
/* Reached from the list in the hero: the chosen card stands out. */
.mg-hub-card:target {
    border-color: #191b20;
    box-shadow: 0 0 0 2px #191b20;
}
.mg-hub-card__head h3 {
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}
/* The name of the service leads to its page. */
.mg-hub-card__head h3 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #8a8a85;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.mg-hub-card--more .mg-hub-card__head h3 a:hover,
.mg-hub-card--more .mg-hub-card__head h3 a:focus-visible {
    color: #c5121a;
    text-decoration-color: #c5121a;
}
.mg-hub-card--lead .mg-hub-card__head h3 a:hover,
.mg-hub-card--lead .mg-hub-card__head h3 a:focus-visible {
    text-decoration-color: #fff;
    text-decoration-thickness: 2px;
}
.mg-offer .mg-hub-card--lead .mg-hub-card__head a:focus-visible {
    outline-color: #fff;
}
.mg-hub-card__kind {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
}
.mg-hub-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.mg-offer .mg-hub-card__lede {
    margin: 0 0 16px;
    color: #4d4d4d;
    line-height: 1.5;
}
.mg-hub-card__list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.mg-hub-card__list li {
    position: relative;
    padding: 5px 0 5px 26px;
    font-size: 15px;
    line-height: 1.45;
}
.mg-hub-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c5121a;
    font-weight: 700;
}
.mg-hub-card__list b {
    font-weight: 700;
}
/* How long it takes: the first line of the scope list on a computer. On a phone the list
   is folded and this line stays in view, right under the prices. */
.mg-offer .mg-hub-card__time {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    padding: 5px 0 5px 26px;
    font-size: 15px;
    line-height: 1.45;
}
.mg-hub-card__time::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c5121a;
    font-weight: 700;
}
.mg-offer .mg-hub-card__list a,
.mg-offer .mg-hub-flow__terms a {
    color: #c5121a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mg-offer .mg-hub-card__list a:hover,
.mg-offer .mg-hub-flow__terms a:hover {
    color: #8f0c12;
}
/* The scope list: open with no control on a computer, folded behind one on a phone
   (js/offer-hub.js; without JS it stays open). */
.mg-hub-fold summary {
    display: none;
}
.mg-hub-card__links {
    margin-top: auto;
}
.mg-hub-card__links .mg-offer-btn {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 15px;
    text-wrap: balance;
}
.mg-offer .mg-hub-card__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    margin: 6px 0 -8px;
}
.mg-offer .mg-hub-card__sub a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
    text-underline-offset: 3px;
}

/* The two services with published prices: graphite head, price beside the name. */
.mg-hub-card--lead .mg-hub-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 18px;
    align-items: start;
    margin: -1px -1px 0;
    padding: 22px 28px 20px;
    border-top: 4px solid #d9161e;
    border-radius: 3px 3px 0 0;
    background: #191b20;
    color: #fff;
}
.mg-hub-card--lead .mg-hub-card__ico {
    align-self: start;
    width: 44px;
    height: 44px;
    padding: 9px;
    border-radius: 3px;
    background: #2e3037;
    color: #fff;
}
.mg-hub-card--lead h3 {
    font-size: 24px;
    letter-spacing: -0.4px;
}
.mg-hub-card--lead .mg-hub-card__kind {
    color: #d6d8dc;
}
.mg-offer .mg-hub-card__price {
    align-self: end;
    margin: 0;
    color: #d6d8dc;
    font-size: 15px;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}
.mg-hub-card__price strong {
    display: block;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

/* Package names and prices, as a short price list. Each row leads to that package
   on the service page. */
.mg-offer .mg-hub-ladder__label {
    margin: 0 0 6px;
    color: #555;
    font-size: 14px;
    font-weight: 700;
}
.mg-hub-ladder {
    margin: 0 0 16px;
    padding: 0;
    border-left: 3px solid #d9161e;
    background: #f5f5f3;
    list-style: none;
}
.mg-hub-ladder li + li {
    border-top: 1px solid #dcdcd8;
}
/* Name and price on the first line, what the package is and how long it takes on the
   second: the same three facts as in the package lists on the two service pages. */
.mg-hub-ladder a {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 16px;
    min-height: 46px;
    padding: 10px 40px 11px 16px;
    color: #262626;
    line-height: 1.3;
    text-decoration: none;
}
.mg-hub-ladder__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}
.mg-hub-ladder a::after {
    content: "";
    position: absolute;
    right: 17px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-top: 2px solid #c5121a;
    border-right: 2px solid #c5121a;
    transform: rotate(45deg);
}
.mg-hub-ladder__name {
    grid-column: 1;
    justify-self: start;
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #8a8a85;
    text-underline-offset: 4px;
}
.mg-hub-ladder__price {
    grid-column: 2;
    grid-row: 1;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
.mg-hub-ladder a:hover,
.mg-hub-ladder a:focus-visible {
    background: #e9e9e5;
}
.mg-hub-ladder a:hover .mg-hub-ladder__name,
.mg-hub-ladder a:focus-visible .mg-hub-ladder__name {
    color: #c5121a;
    text-decoration-color: #c5121a;
}
.mg-offer .mg-hub-ladder a:focus-visible {
    outline-offset: -3px;
}
/* Side by side, the two price lists stand in one grid row. Their three rows share its
   height, so "Firma" stays level with "Sklep Rozwój" when one description takes a line more. */
@media (min-width: 768px) {
    .mg-hub-ladder {
        display: grid;
        grid-auto-rows: 1fr;
    }
    .mg-hub-ladder li {
        display: grid;
    }
    .mg-hub-ladder a {
        align-content: center;
    }
}

/* What a site and a shop have in common, said once under the two priced cards
   instead of in each of them. */
.mg-hub-shared {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 32px;
    align-items: center;
    margin-top: 16px;
    padding: 10px 28px 16px;
    border: 1px solid #d9d9d6;
    border-left: 4px solid #191b20;
    border-radius: 3px;
    background: #f5f5f3;
}
.mg-offer .mg-hub-shared__title {
    grid-column: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}
/* Three columns, so the six items read as a table and not as a paragraph. */
.mg-hub-shared ul {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mg-hub-shared li {
    position: relative;
    padding: 3px 0 3px 22px;
    font-size: 15px;
    line-height: 1.45;
}
.mg-hub-shared li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c5121a;
    font-weight: 700;
}
/* The one item that needs a word of explanation leads to its answer among the questions.
   The link is as tall as a touch target without making the row taller. */
.mg-offer .mg-hub-shared li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -10px 0;
    color: #c5121a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mg-offer .mg-hub-shared li a:hover {
    color: #8f0c12;
}
.mg-offer .mg-hub-shared__more {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    min-height: 44px;
    color: #c5121a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.mg-offer .mg-hub-shared__more:hover {
    color: #8f0c12;
}

/* The three services quoted individually. */
.mg-hub-card--more {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 22px 24px;
    border-top: 4px solid #d9161e;
}
/* Icon beside the name. */
.mg-hub-card--more .mg-hub-card__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
}
.mg-hub-card--more .mg-hub-card__ico {
    width: 44px;
    height: 44px;
    padding: 9px;
    border-radius: 3px;
    background: #f0f0ee;
    color: #191b20;
}
.mg-offer .mg-hub-card--more .mg-hub-card__lede {
    margin: 14px 0;
}
.mg-hub-card--more .mg-hub-card__links {
    align-self: end;
}
.mg-hub-card--more h3 {
    margin-bottom: 14px;
    font-size: 20px;
    letter-spacing: -0.3px;
}
.mg-hub-card--more .mg-hub-card__kind {
    color: #555;
}
/* How the service is priced, with the way to its quote form beside it. */
.mg-offer .mg-hub-card__quote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 8px;
    padding: 6px 0;
    border-top: 1px solid #e3e3e0;
    border-bottom: 1px solid #e3e3e0;
}
.mg-offer .mg-hub-card__quote p {
    flex: 1 1 0;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.45;
}
.mg-offer .mg-hub-card__quote a {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    min-height: 44px;
    color: #c5121a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.mg-offer .mg-hub-card__quote a:hover {
    color: #8f0c12;
}
.mg-hub-card__quote strong {
    display: block;
    color: #262626;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* ---- "Co wybrać": a table read from the buyer's side. Each row starts with a situation
   and answers it with one service, its price and a link that ticks that service in the
   quote form below (js/offer-hub.js). The service cards above are listed by service;
   this is the same offer listed by need, so it does not repeat them. ---- */
.mg-offer .mg-hub-choose {
    width: 100%;
    margin: 0;
    border: 1px solid #d9d9d6;
    border-top: 4px solid #191b20;
    border-radius: 3px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: #262626;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
}
.mg-offer .mg-hub-choose th,
.mg-offer .mg-hub-choose td {
    padding: 14px 20px;
    border: 0;
    background: none;
    text-align: left;
    vertical-align: middle;
}
.mg-offer .mg-hub-choose thead th {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9d9d6;
    background: #f5f5f3;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
/* The situation, in the visitor's words: the first thing read in each row. */
.mg-offer .mg-hub-choose tbody th {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.1px;
    text-wrap: pretty;
}
.mg-offer .mg-hub-choose td.mg-hub-choose__what {
    position: relative;
    padding-left: 74px;
}
.mg-hub-choose__what .mg-hub-ico {
    position: absolute;
    left: 20px;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 8px;
    border-radius: 3px;
    background: #f0f0ee;
    color: #191b20;
}
/* The lines are 24 px apart and each link is 24 px tall, so two links on neighbouring
   lines (a service and its example) are separate targets for a finger. */
.mg-offer .mg-hub-choose__what p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}
.mg-offer .mg-hub-choose__name {
    display: block;
    color: #262626;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.2px;
}
.mg-offer .mg-hub-choose__what a {
    padding: 2px 0;
}
.mg-offer .mg-hub-choose a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: #8a8a85;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.mg-offer .mg-hub-choose a.mg-hub-choose__name {
    color: #262626;
}
.mg-offer .mg-hub-choose a:hover,
.mg-offer .mg-hub-choose a:focus-visible {
    color: #c5121a;
    text-decoration-color: #c5121a;
}
.mg-offer .mg-hub-choose tr.mg-hub-choose__mix .mg-hub-choose__name {
    color: #fff;
}
.mg-offer .mg-hub-choose td.mg-hub-choose__price {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}
/* A price never breaks, nor does it part from the word in front of it. */
.mg-hub-choose__price span {
    white-space: nowrap;
}
.mg-hub-choose__price strong {
    color: #c5121a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.mg-hub-choose__price--quote strong {
    color: #262626;
    font-size: 15px;
    letter-spacing: 0;
    white-space: normal;
}
/* The way to the form on this page, with the service already ticked. */
.mg-offer .mg-hub-choose td.mg-hub-choose__act {
    text-align: right;
}
.mg-offer .mg-hub-choose__act a:not(.mg-offer-btn) {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-right: 18px;
    color: #c5121a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-decoration-color: currentColor;
}
.mg-hub-choose__act a:not(.mg-offer-btn)::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}
.mg-offer .mg-hub-choose__act a:not(.mg-offer-btn):hover {
    color: #8f0c12;
}
.mg-offer .mg-hub-choose__act .mg-offer-btn {
    padding-left: 14px;
    padding-right: 14px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.mg-offer .mg-hub-choose__act .mg-offer-btn:hover,
.mg-offer .mg-hub-choose__act .mg-offer-btn:focus-visible {
    color: #fff;
}
/* Several services in one inquiry: the one row that is not a single service. */
.mg-offer .mg-hub-choose tr.mg-hub-choose__mix > * {
    border-top-color: #191b20;
    background: #191b20;
    color: #fff;
}
.mg-offer .mg-hub-choose tr.mg-hub-choose__mix > :first-child {
    border-radius: 0 0 0 2px;
}
.mg-offer .mg-hub-choose tr.mg-hub-choose__mix > :last-child {
    border-radius: 0 0 2px 0;
}
.mg-hub-choose__mix .mg-hub-ico {
    background: #2e3037;
    color: #fff;
}
.mg-offer .mg-hub-choose__mix p {
    color: #d6d8dc;
}
.mg-hub-choose__mix .mg-hub-choose__price strong {
    color: #fff;
}
.mg-offer .mg-hub-choose__mix th a {
    text-decoration-color: #d6d8dc;
}
.mg-offer .mg-hub-choose__mix th a:hover,
.mg-offer .mg-hub-choose__mix th a:focus-visible {
    color: #fff;
    text-decoration-color: #fff;
    text-decoration-thickness: 2px;
}
.mg-offer .mg-hub-choose__mix a:focus-visible {
    outline-color: #fff;
}
/* From 900 px up it is a real table: four columns, one line between the rows. */
@media (min-width: 900px) {
    .mg-offer .mg-hub-choose tbody tr + tr > * {
        border-top: 1px solid #e3e3e0;
    }
    .mg-offer .mg-hub-choose tbody th {
        width: 35%;
        padding-right: 28px;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__what {
        width: 31%;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__price {
        width: 17%;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__act {
        width: 17%;
        padding-left: 8px;
    }
    .mg-offer .mg-hub-choose__act a {
        white-space: nowrap;
    }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .mg-offer .mg-hub-choose th,
    .mg-offer .mg-hub-choose td {
        padding-left: 16px;
        padding-right: 16px;
    }
    .mg-offer .mg-hub-choose tbody th {
        width: 36%;
        padding-right: 16px;
        font-size: 16px;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__what {
        width: 31%;
        padding-left: 68px;
    }
    .mg-hub-choose__what .mg-hub-ico {
        left: 16px;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__price {
        width: 17%;
    }
}
.mg-offer .mg-hub-choose__note {
    max-width: 800px;
    margin: 18px 0 0;
    color: #555;
    font-size: 15px;
}
.mg-hub-choose__tel {
    white-space: nowrap;
}

/* ---- How we work: the heading and the links about the company on the left, the lead
   text on the right, each over two of the four columns of stages below. ---- */
.mg-hub-how__text {
    margin-top: 12px;
}
.mg-offer .mg-hub-how__text p {
    margin: 0 0 12px;
    font-size: 17px;
}
.mg-offer .mg-hub-how .mg-hub-how__more {
    margin: 0;
    font-size: 15px;
}
@media (min-width: 1025px) {
    .mg-offer-head.mg-hub-how {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto 1fr;
        column-gap: 24px;
        align-items: start;
        max-width: none;
        margin-bottom: 36px;
    }
    .mg-hub-how h2 {
        grid-column: 1;
        grid-row: 1;
        font-size: 34px;
        letter-spacing: -0.8px;
    }
    /* Level with the first line of the heading, under its red bar. */
    .mg-hub-how__text {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: 0;
        padding-top: 30px;
    }
    .mg-offer .mg-hub-how__text p:last-child {
        margin-bottom: 0;
    }
    .mg-offer .mg-hub-how .mg-hub-how__more {
        grid-column: 1;
        grid-row: 2;
        max-width: 440px;
        margin-top: 14px;
    }
}

/* Links in the sentence under the tiles stand on graphite. */
.mg-offer--hub .mg-band__more a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #d6d8dc;
    text-underline-offset: 3px;
}
.mg-offer--hub .mg-band__more a:hover {
    text-decoration-color: #fff;
    text-decoration-thickness: 2px;
}

/* ---- Stages of the work side by side: the whole way from the first talk to the
   handover fits one screen. Two shared rows (what happens, what is agreed), so the
   four white cards start and end level. ---- */
.mg-hub-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mg-flow;
}
.mg-hub-flow > li {
    position: relative;
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding-top: 62px;
    counter-increment: mg-flow;
}
.mg-hub-flow > li::before {
    content: counter(mg-flow);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c5121a;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
}
/* The line that joins one stage to the next. */
.mg-hub-flow > li::after {
    content: '';
    position: absolute;
    left: 60px;
    right: -12px;
    top: 23px;
    height: 2px;
    background: #cfcfcb;
}
.mg-hub-flow > li:last-child::after {
    display: none;
}
.mg-hub-flow h3 {
    margin-bottom: 6px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.mg-offer .mg-hub-flow__what p {
    margin: 0 0 16px;
    color: #4d4d4d;
    font-size: 15px;
    line-height: 1.55;
}
/* One white card per stage: what is agreed at that point. */
.mg-hub-flow__fold {
    border-top: 3px solid #191b20;
    background: #fff;
}
.mg-hub-flow__terms {
    margin: 0;
}
.mg-hub-flow__terms > div {
    padding: 14px 18px 16px;
}
.mg-hub-flow__terms > div + div {
    border-top: 1px solid #e3e3e0;
}
.mg-hub-flow__terms dt {
    margin-bottom: 2px;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.mg-hub-flow__terms dd {
    margin: 0;
    color: #4d4d4d;
    font-size: 15px;
    line-height: 1.5;
}
.mg-hub-flow__terms dd strong {
    display: block;
    margin-bottom: 4px;
    color: #262626;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
}
/* Lead times and the costs after the handover: three cards on the same four columns. */
.mg-hub-terms {
    margin-top: 24px;
    border-top: 0;
    background: none;
}
.mg-hub-terms .mg-hub-flow__terms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
}
.mg-hub-terms .mg-hub-flow__terms > div {
    border-top: 3px solid #191b20;
    background: #fff;
}
.mg-hub-terms .mg-hub-flow__terms > .mg-hub-flow__wide {
    grid-column: span 2;
}
/* Four lead times, two by two: how long it takes, then what it is. */
.mg-hub-flow__times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 6px 0 12px;
    padding: 0;
    list-style: none;
}
.mg-hub-flow__times li {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 2px;
    padding-left: 12px;
    border-left: 2px solid #d9161e;
    font-size: 14px;
    line-height: 1.4;
}
.mg-hub-flow__times b {
    color: #262626;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.mg-offer .mg-hub-flow__note {
    max-width: 880px;
    margin: 24px 0 0;
    color: #555;
    font-size: 15px;
}
.mg-offer--hub .mg-hub-flow__note + .mg-offer-callout {
    margin-top: 24px;
}

/* ---- Questions: four groups ---- */
.mg-offer--hub .mg-offer-qa__nav {
    grid-template-columns: minmax(0, 1fr);
}
/* Reached from a link on the page: the question stands out. */
.mg-offer-faq details:target h4 {
    color: #c5121a;
}

/* ---- Quote: the form and what happens next ---- */
/* In the markup the form comes right after the heading (the order on a phone and for
   the keyboard); on a computer the "what happens next" list sits under the heading instead. */
.mg-offer-final.mg-hub-final {
    padding: 44px 0 56px;
}
.mg-hub-final__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    gap: 28px 56px;
    align-items: start;
}
.mg-hub-final .mg-offer-head {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
}
.mg-hub-form {
    grid-column: 2;
    grid-row: 1 / span 2;
}
.mg-hub-final__next {
    grid-column: 1;
    grid-row: 2;
}
.mg-offer .mg-hub-final__sub {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.mg-hub-final__direct {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #4a4d55;
}
.mg-offer .mg-hub-final__direct p {
    margin: 0;
    color: #d6d8dc;
}
.mg-offer .mg-hub-final__direct .mg-offer-contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 24px;
}
/* The three terms that matter most before sending, beside the form. */
.mg-hub-final__terms {
    margin-top: 16px;
    padding-top: 22px;
    border-top: 1px solid #4a4d55;
}
.mg-hub-final__terms ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mg-hub-final__terms li {
    position: relative;
    padding: 3px 0 3px 26px;
    color: #d6d8dc;
    line-height: 1.5;
}
.mg-hub-final__terms li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff8086;
    font-weight: 700;
}

.mg-hub-form {
    padding: 26px 32px 30px;
    border-top: 4px solid #d9161e;
    border-radius: 3px;
    background: #fff;
    color: #262626;
}
.mg-hub-form h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.mg-offer .mg-hub-form__hint {
    margin: 2px 0 18px;
    color: #555;
    font-size: 14px;
}
.mg-hub-form__set {
    min-width: 0;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.mg-hub-form legend {
    margin-bottom: 8px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.mg-hub-form legend span,
.mg-hub-form__opt {
    color: #555;
    font-size: 14px;
    font-weight: 400;
}
.mg-hub-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.mg-hub-topic {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px 8px 40px;
    border: 2px solid #d9d9d6;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.mg-hub-topic input {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0;
    accent-color: #c5121a;
    cursor: pointer;
}
.mg-hub-topic:hover {
    border-color: #c5121a;
}
.mg-hub-topic:has(input:checked) {
    border-color: #c5121a;
    background: rgba(197, 18, 26, 0.06);
}
.mg-hub-topic:has(input:focus-visible) {
    outline: 3px solid #c5121a;
    outline-offset: 2px;
}
.mg-hub-topic input:focus-visible {
    outline: none;
}
.mg-hub-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.mg-hub-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin-bottom: 16px;
}
.mg-hub-form__field > span {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.mg-hub-form__field small {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}
.mg-hub-form__field input,
.mg-hub-form__field textarea {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #858585;
    border-radius: 3px;
    background: #fff;
    color: #262626;
    font: 400 16px/1.5 'Open Sans', 'Open Sans Fallback', sans-serif;
    box-shadow: none;
}
.mg-hub-form__field textarea {
    min-height: 112px;
    resize: vertical;
}
/* A field scrolled into view by the Tab key lands with its label clear of the sticky
   section bar, not just its own top edge. */
.mg-hub-form__field input,
.mg-hub-form__field textarea {
    scroll-margin-top: 40px;
}
.mg-hub-form__field input:focus,
.mg-hub-form__field textarea:focus {
    border-color: #c5121a;
    outline: 3px solid #c5121a;
    outline-offset: 1px;
}
/* The question about a mistyped e-mail address, under the name and e-mail row
   (js/offer-hub.js fills it; empty, it takes no room). */
.mg-offer .mg-hub-form__check {
    margin: -4px 0 16px;
    padding: 10px 14px;
    border-left: 4px solid #c5121a;
    background: #f5f5f3;
    color: #262626;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.mg-offer .mg-hub-form__check:empty {
    display: none;
}
.mg-offer .mg-hub-form__check button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -11px 0;
    padding: 0;
    border: 0;
    background: none;
    color: #c5121a;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.mg-offer .mg-hub-form__check button:hover {
    color: #8f0c12;
}
/* What is missing or wrong, said under the field after a try to send (js/offer-hub.js
   adds the paragraph and marks the field with aria-invalid; without JS the browser's own
   check stays). The text names the problem, the red border only points at the field. */
.mg-offer .mg-hub-form p.mg-hub-form__error {
    margin: -8px 0 16px;
    color: #c5121a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}
.mg-offer .mg-hub-form .mg-hub-form__consent + p.mg-hub-form__error {
    margin-top: -10px;
}
.mg-hub-form__field input[aria-invalid="true"],
.mg-hub-form__field textarea[aria-invalid="true"] {
    border-color: #c5121a;
    box-shadow: inset 0 0 0 1px #c5121a;
}
.mg-hub-form__consent input[aria-invalid="true"] {
    outline: 2px solid #c5121a;
    outline-offset: 2px;
}
/* Name and e-mail share a row from tablets up: each error stays under its own field. */
@media (min-width: 768px) {
    .mg-hub-form__row > .mg-hub-form__field {
        grid-row: 1;
    }
    .mg-hub-form__row > .mg-hub-form__error {
        grid-row: 2;
    }
    .mg-hub-form__row > .mg-hub-form__field:first-child,
    .mg-hub-form__row > .mg-hub-form__field:first-child + .mg-hub-form__error {
        grid-column: 1;
    }
    .mg-hub-form__row > .mg-hub-form__field ~ .mg-hub-form__field,
    .mg-hub-form__row > .mg-hub-form__field ~ .mg-hub-form__field + .mg-hub-form__error {
        grid-column: 2;
    }
}
.mg-hub-form__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.mg-hub-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 2px 0 18px;
    color: #4d4d4d;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
.mg-hub-form__consent input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: #c5121a;
}
.mg-hub-form__consent input:focus-visible {
    outline: 3px solid #c5121a;
    outline-offset: 2px;
}
.mg-hub-form__consent a,
.mg-hub-form__status a {
    color: #c5121a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mg-hub-form__consent a:hover,
.mg-hub-form__status a:hover {
    color: #8f0c12;
}
.mg-hub-form a:focus-visible,
.mg-hub-form button:focus-visible,
.mg-hub-form__status:focus-visible {
    outline: 3px solid #c5121a;
    outline-offset: 3px;
}
.mg-hub-form__status {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 4px solid #191b20;
    background: #f5f5f3;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.mg-hub-form__status[data-error="true"] {
    border-left-color: #c5121a;
}
.mg-hub-form__status[hidden] {
    display: none;
}
.mg-hub-form__send {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}
.mg-hub-form__submit {
    font-family: inherit;
    cursor: pointer;
}
.mg-hub-form__submit:disabled {
    border-color: #e3e3e0;
    background: #e3e3e0;
    color: #555;
    cursor: wait;
}
.mg-offer .mg-hub-form__send p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* ---- Laptops: on a 1366 x 768 or 1536 x 864 screen the browser has 650 to 730 px of
   height, not the 900 px of a desktop monitor. The text starts level with the price list
   instead of being centred on it, and both are spaced a little tighter, so the two buttons,
   the line about the free quote and all five services stay on the first screen. ---- */
@media (min-width: 1025px) and (max-height: 800px) {
    .mg-offer--hub .mg-offer-hero {
        padding-top: 18px;
    }
    .mg-offer--hub .mg-offer-hero__grid {
        align-items: start;
    }
    .mg-offer--hub .mg-offer-hero__text {
        padding-top: 8px;
    }
    .mg-offer--hub .mg-offer-hero h1::after {
        margin-top: 16px;
    }
    .mg-offer.mg-offer--hub .mg-offer-hero__lede {
        margin: 14px 0 18px;
    }
    .mg-hub-glance {
        padding: 14px 24px 12px;
    }
    .mg-hub-glance li a {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .mg-offer--hub .mg-offer-proof {
        margin-top: 24px;
    }
}

/* ---- Narrow laptops and windows (1056 to 1199 px): the two hero buttons keep to one row
   beside the price list instead of stacking, which pushed the line under them off the
   first screen. ---- */
@media (min-width: 1025px) and (max-width: 1199px) {
    .mg-offer--hub .mg-offer-hero__grid {
        gap: 40px;
    }
    .mg-offer--hub .mg-offer-hero__cta .mg-offer-btn {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ---- The lowest laptop windows (1280 x 720 screen: about 590 px of height): a smaller
   heading and tighter rows, so the line about the free quote and the last line of the
   price list are not cut off. ---- */
@media (min-width: 1025px) and (max-height: 640px) {
    .mg-offer--hub .mg-offer-hero {
        padding-top: 8px;
    }
    .mg-offer--hub .mg-offer-hero__text {
        padding-top: 6px;
    }
    .mg-offer.mg-offer--hub .mg-offer-kicker {
        margin-bottom: 8px;
    }
    .mg-offer--hub .mg-offer-hero h1 {
        font-size: 42px;
    }
    .mg-offer--hub .mg-offer-hero h1::after {
        margin-top: 12px;
    }
    .mg-offer.mg-offer--hub .mg-offer-hero__lede {
        margin: 10px 0 14px;
        font-size: 17px;
        line-height: 1.5;
    }
    .mg-offer.mg-offer--hub .mg-offer-hero__note {
        margin-top: 10px;
    }
    .mg-hub-glance {
        padding: 8px 24px 8px;
    }
    .mg-offer .mg-hub-glance .mg-offer-glance__title {
        margin-bottom: 0;
    }
    .mg-hub-glance li a {
        padding-top: 2px;
        padding-bottom: 2px;
    }
    .mg-offer .mg-hub-glance .mg-offer-glance__foot {
        padding-top: 6px;
        font-size: 14px;
    }
}

/* ---- Tablets held sideways and half-width windows (900 to 1024 px): the price list stays
   beside the heading, as on a computer. In one column it started more than 550 px down,
   under the fold of a 1024 x 768 screen. ---- */
@media (min-width: 900px) and (max-width: 1024px) {
    .mg-offer--hub .mg-offer-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
        gap: 28px;
        align-items: start;
    }
    .mg-offer--hub .mg-offer-hero {
        padding-top: 24px;
    }
    .mg-offer--hub .mg-offer-hero__text {
        padding-top: 6px;
    }
    .mg-offer--hub .mg-offer-hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }
    .mg-offer--hub .mg-offer-hero h1::after {
        margin-top: 16px;
    }
    .mg-offer.mg-offer--hub .mg-offer-hero__lede {
        margin: 16px 0 20px;
        font-size: 17px;
    }
    .mg-offer--hub .mg-offer-hero__cta .mg-offer-btn {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 15px;
    }
    .mg-hub-glance {
        padding: 14px 18px 12px;
    }
    .mg-hub-glance li a {
        column-gap: 12px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    /* The service name keeps to one line beside "wycena indywidualna". */
    .mg-offer-glance__price.mg-hub-glance__quote {
        color: #555;
        font-size: 14px;
        font-weight: 400;
    }
}

/* ---- Narrow computers and tablets: two stages per row ---- */
@media (max-width: 1099px) {
    .mg-hub-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        row-gap: 32px;
    }
    .mg-hub-flow > li:nth-child(2n)::after {
        display: none;
    }
    .mg-hub-terms .mg-hub-flow__terms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }
    /* The card with the lead times is as wide as the page here: all four in one row. */
    .mg-hub-flow__times {
        grid-template-columns: repeat(4, auto);
        justify-content: space-between;
    }
}

/* ---- Tablets ---- */
@media (max-width: 1024px) {
    .mg-hub-glance {
        max-width: none;
    }
    /* The two priced cards stay side by side; the price drops under the name. */
    .mg-hub-card--lead .mg-hub-card__head {
        grid-template-columns: auto minmax(0, 1fr);
        padding-left: 22px;
        padding-right: 22px;
    }
    .mg-offer .mg-hub-card--lead .mg-hub-card__price {
        grid-column: 2;
        text-align: left;
    }
    .mg-hub-card--lead .mg-hub-card__price strong {
        display: inline;
    }
    .mg-offer .mg-hub-card--lead .mg-hub-card__body > * {
        margin-left: 22px;
        margin-right: 22px;
    }
    .mg-hub-card--more {
        padding-left: 20px;
        padding-right: 20px;
    }
    .mg-hub-shared {
        padding-left: 22px;
        padding-right: 22px;
    }
    .mg-hub-shared ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mg-hub-final__grid {
        column-gap: 32px;
    }
}

/* Narrow three-column cards: the longest quote link no longer fits beside the pricing
   line, so all three links drop under it and the cards stay alike. */
@media (min-width: 900px) and (max-width: 1159px) {
    .mg-offer .mg-hub-card--more .mg-hub-card__quote a {
        flex-basis: 100%;
    }
}

/* ---- Below 900 px the table of situations is read as a list: each row is a block with
   the situation on top. The column names are kept for screen readers only. ---- */
@media (max-width: 899px) {
    .mg-offer .mg-hub-choose,
    .mg-offer .mg-hub-choose tbody,
    .mg-offer .mg-hub-choose th,
    .mg-offer .mg-hub-choose td {
        display: block;
    }
    .mg-offer .mg-hub-choose thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .mg-offer .mg-hub-choose tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0 16px;
        padding: 16px 20px 10px;
    }
    .mg-offer .mg-hub-choose tbody tr + tr {
        border-top: 1px solid #e3e3e0;
    }
    .mg-offer .mg-hub-choose tbody th,
    .mg-offer .mg-hub-choose tbody td {
        padding: 0;
        border: 0;
        background: none;
    }
    .mg-offer .mg-hub-choose tbody th,
    .mg-offer .mg-hub-choose__what {
        grid-column: 1 / -1;
    }
    .mg-offer .mg-hub-choose tbody th {
        margin-bottom: 10px;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__what {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding-left: 52px;
    }
    .mg-hub-choose__what .mg-hub-ico {
        left: 0;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__price {
        grid-column: 1;
        padding-left: 52px;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__act {
        grid-column: 2;
        justify-self: end;
    }
    .mg-offer .mg-hub-choose tr.mg-hub-choose__mix {
        padding-bottom: 18px;
        border-top-color: #191b20;
        border-radius: 0 0 2px 2px;
        background: #191b20;
    }
    .mg-offer .mg-hub-choose tr.mg-hub-choose__mix > * {
        border-radius: 0;
        background: none;
    }
    .mg-offer .mg-hub-choose__mix .mg-hub-choose__price,
    .mg-offer .mg-hub-choose__mix .mg-hub-choose__act {
        margin-top: 12px;
    }
}

/* Upright tablets: the situation on the left, its answer, price and link on the right. */
@media (min-width: 600px) and (max-width: 899px) {
    .mg-offer .mg-hub-choose tbody tr {
        grid-template-columns: minmax(0, 11fr) minmax(0, 7fr) minmax(0, 6fr);
        gap: 0 20px;
        padding-top: 14px;
        padding-bottom: 8px;
    }
    .mg-offer .mg-hub-choose tbody th {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
        margin-bottom: 0;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__what {
        grid-column: 2 / -1;
        grid-row: 1;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__price {
        grid-column: 2;
        grid-row: 2;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__act {
        grid-column: 3;
        grid-row: 2;
    }
    /* The column is narrow here: "netto" may drop to the next line, the amount never breaks. */
    .mg-hub-choose__price span {
        white-space: normal;
    }
}

/* ---- Upright tablets: the three smaller cards and the form take the full width ---- */
@media (max-width: 899px) {
    .mg-hub-more,
    .mg-hub-final__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .mg-hub-more {
        grid-template-rows: none;
        row-gap: 24px;
    }
    .mg-hub-card--more {
        display: flex;
        flex-direction: column;
        grid-row: auto;
        padding-left: 24px;
        padding-right: 24px;
    }
    .mg-hub-card--more .mg-hub-card__list {
        columns: 2;
        column-gap: 32px;
    }
    .mg-hub-card--more .mg-hub-card__list li {
        break-inside: avoid;
    }
    .mg-hub-final__grid {
        grid-template-rows: none;
        gap: 28px;
    }
    .mg-hub-final .mg-offer-head,
    .mg-hub-form,
    .mg-hub-final__next {
        grid-column: 1;
        grid-row: auto;
    }
    /* The recap of the terms stands beside the form. In one column it would come after
       the send button, where it no longer helps; the same terms are under the service cards. */
    .mg-hub-final__terms {
        display: none;
    }
}

/* Upright tablets only, one card per row: the button is as wide as its label. */
@media (min-width: 768px) and (max-width: 899px) {
    .mg-hub-card--more .mg-hub-card__links {
        align-self: flex-start;
    }
    .mg-hub-card--more .mg-hub-card__links .mg-offer-btn {
        width: auto;
    }
}

/* ---- Phones ---- */
@media (max-width: 767px) {
    /* A phone's browser shows less than its screen: about 660 px of height with the address
       bar on, 60 px of which is the fixed bar, and on a first visit the cookie banner takes
       another 165 to 185 px above that bar. The price list comes right under the heading, so
       that all five services stay above the bar at 360 x 668 and 390 x 664, and the two
       published prices stay above the cookie banner. */
    .mg-offer--hub .mg-offer-hero {
        padding-top: 14px;
    }
    .mg-offer--hub .mg-offer-hero h1 {
        max-width: none;
        font-size: 34px;
    }
    .mg-offer--hub .mg-offer-hero h1::after {
        margin-top: 10px;
    }
    /* The sentence about knowing the prices follows the prices here (the note about the
       free quote comes after it). Neither holds a link, so the keyboard order is unchanged. */
    .mg-offer.mg-offer--hub .mg-offer-hero__lede {
        order: 2;
        margin: 16px 0 0;
    }
    /* The price list names the same five services, so the lede keeps its second sentence. */
    .mg-hub-lede__list,
    .mg-hub-jump__more {
        display: none;
    }
    /* All five services and their prices fit on the first screen: one line each. */
    .mg-hub-glance {
        order: 1;
        margin-top: 14px;
        padding: 2px 18px 12px;
    }
    /* offer.css hides the hero buttons and the line under them on a phone, where the fixed
       bar holds both actions. The line (free quote, no obligation, answer within 24 working
       hours) comes back here, under the price list and the lede. The text column dissolves
       into the grid so both can follow the list. */
    .mg-offer--hub .mg-offer-hero__text {
        display: contents;
    }
    .mg-offer.mg-offer--hub .mg-offer-hero__note {
        display: block;
        order: 3;
        margin: 8px 0 0;
        font-size: 15px;
        line-height: 1.5;
    }
    .mg-hub-glance .mg-offer-glance__desc,
    .mg-hub-glance .mg-hub-ico {
        display: none;
    }
    .mg-hub-glance li a {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        min-height: 48px;
        padding: 5px 8px;
    }
    .mg-hub-glance .mg-offer-glance__name {
        grid-column: 1;
        font-size: 16px;
        line-height: 1.3;
    }
    .mg-hub-glance .mg-offer-glance__price {
        grid-column: 2;
    }
    .mg-offer-glance__price.mg-hub-glance__quote {
        max-width: 7.5em;
        color: #555;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.3;
        text-align: right;
        white-space: normal;
    }
    /* Touch targets: the two links that sit inside a sentence get a line of their own. */
    .mg-offer--hub .mg-offer-glance__foot a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0;
    }
    /* One column: each reason is a label and a line or two of text, not a narrow block. */
    .mg-offer--hub .mg-offer-proof {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 24px;
        padding: 18px 0 20px;
    }
    .mg-offer--hub .mg-offer-proof li {
        padding-left: 14px;
        border-left: 3px solid #d9161e;
    }
    .mg-offer--hub .mg-offer-proof strong {
        font-size: 17px;
    }
    .mg-offer--hub .mg-offer-proof span {
        font-size: 15px;
    }
    .mg-offer-jump ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 8px;
    }
    .mg-hub-lead {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }
    .mg-hub-lead > .mg-hub-card--lead {
        display: flex;
        grid-row: auto;
    }
    .mg-hub-lead,
    .mg-hub-more {
        gap: 16px;
    }
    .mg-hub-card--more {
        padding: 18px;
    }
    .mg-hub-card--more .mg-hub-card__list {
        columns: auto;
    }
    .mg-hub-more {
        margin-top: 16px;
    }
    /* The link to the terms drops under the list. */
    .mg-hub-shared {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 12px;
        padding: 14px 18px 6px;
    }
    .mg-hub-shared ul {
        display: block;
        margin-top: 4px;
    }
    .mg-offer .mg-hub-shared__more {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }
    .mg-hub-card--lead .mg-hub-card__head {
        column-gap: 14px;
        padding: 18px 18px 16px;
    }
    .mg-hub-card--lead h3 {
        font-size: 21px;
    }
    .mg-hub-card__price strong {
        font-size: 30px;
    }
    .mg-hub-card--lead .mg-hub-card__body {
        display: flex;
        padding: 18px 18px 20px;
    }
    .mg-offer .mg-hub-card--lead .mg-hub-card__body > * {
        margin-left: 0;
        margin-right: 0;
    }
    .mg-offer .mg-hub-card--lead .mg-hub-card__lede {
        margin-top: 0;
    }
    .mg-hub-card--lead .mg-hub-card__links {
        align-self: stretch;
        margin-bottom: 0;
    }
    .mg-hub-card--more h3 {
        font-size: 20px;
    }
    .mg-hub-ladder a {
        min-height: 48px;
        padding-left: 14px;
    }
    .mg-hub-ladder__price {
        font-size: 17px;
    }
    .mg-offer .mg-hub-card__time {
        margin-bottom: 12px;
    }
    .mg-hub-fold {
        margin-bottom: 16px;
        border-top: 1px solid #e3e3e0;
        border-bottom: 1px solid #e3e3e0;
    }
    .mg-hub-fold summary {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 48px;
        padding-right: 36px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }
    .mg-hub-fold summary::-webkit-details-marker {
        display: none;
    }
    .mg-hub-fold summary::after {
        content: "+";
        position: absolute;
        right: 6px;
        top: 50%;
        color: #c5121a;
        font-size: 26px;
        font-weight: 400;
        line-height: 1;
        transform: translateY(-50%);
    }
    .mg-hub-fold[open] summary::after {
        content: "–";
    }
    .mg-hub-fold .mg-hub-card__list {
        margin-bottom: 10px;
    }
    /* One situation per block: the answer under it, then the price and the link. They share
       a line when both fit; a longer price takes the line and the link drops under it. */
    .mg-offer .mg-hub-choose tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 10px;
        padding: 14px 18px 8px;
    }
    .mg-offer .mg-hub-choose tbody th,
    .mg-offer .mg-hub-choose td.mg-hub-choose__what {
        flex: 0 0 100%;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__price {
        flex: 1 1 0;
        min-width: min-content;
    }
    .mg-offer .mg-hub-choose td.mg-hub-choose__act {
        flex: 0 0 auto;
        margin-left: auto;
    }
    .mg-offer .mg-hub-choose tbody th {
        font-size: 16px;
    }
    .mg-offer .mg-hub-choose__name {
        font-size: 16px;
    }
    .mg-offer .mg-hub-choose tr.mg-hub-choose__mix {
        padding-bottom: 16px;
    }
    .mg-offer .mg-hub-choose__note {
        margin-top: 16px;
    }
    .mg-offer .mg-hub-how__text p {
        font-size: 16px;
    }
    /* One stage under another: the number sits beside the stage name. */
    .mg-hub-flow {
        display: block;
    }
    .mg-hub-flow > li {
        display: block;
        padding: 0 0 28px;
    }
    /* The card with lead times and running costs follows the last stage closely. */
    .mg-hub-flow > li:last-child {
        padding-bottom: 12px;
    }
    .mg-hub-flow > li::before {
        width: 36px;
        height: 36px;
        font-size: 17px;
        line-height: 36px;
    }
    .mg-hub-flow > li::after {
        display: none;
    }
    .mg-hub-flow h3 {
        min-height: 36px;
        margin-bottom: 8px;
        padding: 5px 0 0 48px;
        font-size: 20px;
    }
    .mg-offer .mg-hub-flow__what p {
        margin-bottom: 12px;
        line-height: 1.5;
    }
    /* One white card per stage: its main terms in one line, the details behind it
       (js/offer-hub.js folds them on a phone; without JS they stay open). */
    .mg-hub-flow__fold,
    .mg-hub-terms {
        margin-top: 0;
        margin-bottom: 0;
        border-top: 3px solid #191b20;
        border-bottom: 0;
        background: #fff;
    }
    .mg-hub-terms .mg-hub-flow__terms {
        display: block;
    }
    .mg-hub-terms .mg-hub-flow__terms > div {
        border-top: 1px solid #e3e3e0;
        background: none;
    }
    .mg-hub-flow__fold summary {
        min-height: 52px;
        padding: 8px 44px 8px 16px;
        line-height: 1.4;
    }
    .mg-hub-flow__fold summary::after {
        right: 16px;
    }
    .mg-hub-flow__terms {
        border-top: 1px solid #e3e3e0;
    }
    .mg-hub-flow__terms > div {
        padding: 10px 16px 12px;
    }
    .mg-hub-terms .mg-hub-flow__terms > div:first-child {
        border-top: 0;
    }
    .mg-hub-flow__terms dt {
        margin-bottom: 0;
    }
    .mg-hub-flow__terms dd strong {
        margin-bottom: 2px;
    }
    .mg-hub-flow__times {
        display: block;
        margin: 2px 0 8px;
    }
    .mg-hub-flow__times li {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border-left: 0;
        border-bottom: 1px solid #e3e3e0;
    }
    .mg-hub-flow__times b {
        font-size: 16px;
        text-align: right;
    }
    .mg-offer .mg-hub-flow__note {
        margin-top: 24px;
    }
    /* Three short links to the groups of questions share a row or two. */
    .mg-offer--hub .mg-offer-qa__nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0 24px;
    }
    /* The fixed bar's "Wyceń projekt" leads here. The way from the section heading to the
       first field to type in is short enough for that field to show on the screen the
       visitor lands on: less room above the heading, the form's own heading (the same words
       as the section heading right above it) for screen readers only, lower answer boxes. */
    .mg-offer-final.mg-hub-final {
        padding: 24px 0 40px;
    }
    .mg-hub-final__grid {
        gap: 16px;
    }
    .mg-hub-form {
        margin: 0 -8px;
        padding: 16px 18px 22px;
    }
    .mg-hub-form h3 {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .mg-offer .mg-hub-form__hint {
        margin: 0 0 12px;
    }
    .mg-hub-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mg-hub-topic {
        padding: 4px 8px 4px 38px;
    }
    .mg-hub-topic input {
        left: 10px;
    }
    .mg-hub-form__row {
        grid-template-columns: minmax(0, 1fr);
    }
    /* While the form is on the screen (js/offer-hub.js sets the class) the fixed bar steps
       aside: its red button leads to this form, so beside the send button it reads as a
       second way to send. The fields get its 60 px back; the phone number is under the form. */
    html.mg-hub-at-form {
        --mg-cta-h: 0px;
    }
    html.mg-hub-at-form .mg-mobile-cta {
        display: none;
    }
    .mg-hub-form__submit {
        width: 100%;
    }
}

/* Narrow phones: the heading keeps to two lines (three at 34 px), which leaves room
   for two more services on the first screen. */
@media (max-width: 389px) {
    .mg-offer--hub .mg-offer-hero h1 {
        font-size: 31px;
        letter-spacing: -0.8px;
    }
}

/* The narrowest phones: the longest service name does not fit half the width. */
@media (max-width: 349px) {
    .mg-hub-topics {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- On paper (or saved as a PDF): the offer with its prices, terms and answers.
   js/offer-hub.js opens every folded list and answer before printing. ---- */
@media print {
    #top,
    #navbar .navbar-toggle,
    #navbar .navbar-collapse,
    .mg-breadcrumb,
    .mg-consent,
    .mg-skip,
    .mg-offer-jump,
    .mg-offer-hero__cta,
    .mg-hub-form,
    .mg-offer .mg-latest,
    #whyWe,
    #back-to-top {
        display: none !important;
    }
    /* Graphite and red are printed as on the screen, so white text stays readable. */
    .mg-offer--hub,
    .mg-offer--hub * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .mg-offer--hub .mg-offer-section,
    .mg-offer-final.mg-hub-final {
        padding: 24px 0;
    }
    .mg-hub-shared,
    .mg-hub-choose tbody tr,
    .mg-hub-flow__terms > div,
    .mg-offer-faq details,
    .mg-tiles__item {
        break-inside: avoid;
    }
    .mg-offer--hub .mg-offer-head,
    .mg-offer--hub h2,
    .mg-offer--hub h3 {
        break-inside: avoid;
        break-after: avoid;
    }
    .mg-hub-fold summary::after {
        display: none;
    }
}
