/* ================================================================
   Application form pages (Magic Forms, e.g. /businessmen/isdvr-izmainas)
   .af-hero     — page head, reuses .pub-hero from publications-block.css
   .af          — layout: sticky aside (sections + help) and the form
   .af-form     — numbered section cards, fields, activity matrix,
                  working hours, e-signature choice and submit
   Field names, handlers and the component partial logic stay as they were
   ================================================================ */

.af *,
.af *::before,
.af *::after {
    box-sizing: border-box;
}

.af {
    --af-offset: 82px;

    position: relative;
    padding: 8px 0 96px;
    background-color: #fdfbf9;
}

.af p {
    margin: 0;
}

.af-hero {
    padding-bottom: 52px;
}

.af-hero .pub-hero__title {
    max-width: 940px;
    font-size: 40px;
    line-height: 1.22;
}

.af-hero__lead {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--pub-muted);
}

.af-hero__lead b {
    color: var(--pub-red);
}

.af__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
}

/* ================= aside ================= */

.af-aside {
    position: sticky;
    top: var(--af-offset);
    display: grid;
    gap: 18px;
}

.af-nav {
    padding: 22px 20px;
    border: 1px solid var(--pub-line);
    border-radius: 18px;
    background-color: #fff;
    box-shadow: var(--pub-shadow-s);
}

.af-nav__title {
    margin: 0 0 14px !important;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pub-bordo-soft);
}

.af-nav__list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.af-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--pub-ink);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.af-nav__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--pub-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--pub-red);
    transition: background-color .2s ease, color .2s ease;
}

.af-nav__link:hover {
    background-color: var(--pub-rose);
    color: var(--pub-bordo);
}

.af-nav__link.is-active {
    background-color: var(--pub-card);
    color: var(--pub-bordo);
    font-weight: 500;
}

.af-nav__link.is-active .af-nav__num {
    background-color: var(--pub-bordo);
    color: #fff;
}

.af-help {
    position: relative;
    overflow: hidden;
    padding: 24px 22px;
    border-radius: 18px;
    background: linear-gradient(150deg, var(--pub-red), var(--pub-bordo));
    color: #fff;
    box-shadow: var(--pub-shadow-m);
    isolation: isolate;
}

.af-help::after {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    z-index: -1;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
}

.af-help__title {
    margin: 0 0 8px !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.af-help__text {
    margin: 0 0 16px !important;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .82);
}

.af-help__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

.af-help__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .85;
}

.af-help__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ================= form ================= */

.af-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-width: 0;
}

.af-card {
    padding: 32px 36px 34px;
    border: 1px solid var(--pub-line);
    border-radius: 18px;
    background-color: #fff;
    box-shadow: var(--pub-shadow-s);
    scroll-margin-top: var(--af-offset);
}

.af-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 26px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--pub-line);
}

.af-card__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--pub-red), var(--pub-bordo));
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.af-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pub-bordo);
}

.af-card__desc {
    margin: 4px 0 0 !important;
    font-size: 14px;
    line-height: 1.55;
    color: var(--pub-muted);
}

.af-fields {
    display: grid;
    gap: 22px;
}

.af-fields--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.af-field {
    min-width: 0;
}

.af-label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--pub-ink);
}

.af-req {
    color: var(--pub-red);
}

.af-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--pub-line);
    border-radius: 12px;
    background-color: #fdfafa;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--pub-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    appearance: none;
}

.af-input:hover {
    border-color: #d9b9c1;
    background-color: #fff;
}

.af-input:focus {
    border-color: var(--pub-red);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(141, 11, 44, .08);
    outline: none;
}

.af-input.error {
    border-color: #c8323c;
    background-color: #fff6f6;
    box-shadow: 0 0 0 4px rgba(200, 50, 60, .08);
}

.af-hint {
    margin: 8px 0 0 !important;
    font-size: 13px;
    line-height: 1.55;
    color: var(--pub-muted);
}

.af-subtitle {
    margin: 0 0 6px !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--pub-ink);
}

/* ================= activity matrix ================= */

.af-matrix {
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    overflow: hidden;
}

.af-matrix__row {
    display: grid;
    grid-template-columns: 180px repeat(8, minmax(0, 1fr));
    border-top: 1px solid var(--pub-line);
    transition: background-color .2s ease;
}

.af-matrix__row:first-child {
    border-top: 0;
}

.af-matrix__row--head {
    background-color: var(--pub-rose);
}

.af-matrix__row:not(.af-matrix__row--head):hover {
    background-color: #fdf8f9;
}

.af-matrix__name,
.af-matrix__col,
.af-matrix__cell {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px 6px;
    border-left: 1px solid var(--pub-line);
}

.af-matrix__name {
    padding: 14px 16px;
    border-left: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pub-bordo);
}

.af-matrix__col {
    justify-content: center;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: var(--pub-muted);
    hyphens: manual;
    overflow-wrap: break-word;
}

.af-matrix__cell {
    justify-content: center;
}

.af-matrix__cell--disabled {
    background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(125, 106, 112, .06) 6px 7px);
}

.af-matrix__label {
    display: none;
}

.af-tick {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.af-tick__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.af-tick__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 1.5px solid #d6bcc3;
    border-radius: 7px;
    background-color: #fff;
    color: #fff;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.af-tick__box svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.4;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s ease, transform .2s ease;
}

.af-tick:hover .af-tick__box {
    border-color: var(--pub-red);
}

.af-tick__input:checked + .af-tick__box {
    border-color: var(--pub-bordo);
    background-color: var(--pub-bordo);
}

.af-tick__input:checked + .af-tick__box svg {
    opacity: 1;
    transform: none;
}

.af-tick__input:focus-visible + .af-tick__box {
    box-shadow: 0 0 0 4px rgba(141, 11, 44, .16);
}

.af-tick__input:disabled + .af-tick__box {
    border-color: transparent;
    background-color: transparent;
}

.af-tick__input:disabled + .af-tick__box::before {
    content: '';
    width: 10px;
    height: 1.5px;
    border-radius: 2px;
    background-color: #cdbcc1;
}

.af-matrix__cell--disabled .af-tick {
    cursor: not-allowed;
}

/* ================= working hours ================= */

.af-hours__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.af-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--pub-line);
    border-radius: 999px;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--pub-bordo);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.af-ghost svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.af-ghost:hover {
    border-color: var(--pub-bordo);
    background-color: var(--pub-card);
}

.af-ghost:focus-visible {
    outline: 2px solid var(--pub-red);
    outline-offset: 2px;
}

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

.af-day {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 14px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    background-color: #fdfafa;
}

.af-day--first {
    border-color: #e2c6ce;
    background-color: var(--pub-card);
}

.af-day__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--pub-ink);
}

.af-day__sep {
    height: 1.5px;
    border-radius: 2px;
    background-color: #d6bcc3;
}

.af-day .af-input {
    height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    background-color: #fff;
}

.af-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ================= submit ================= */

.af-captcha {
    min-height: 78px;
}

.af-flash:not(:empty) {
    margin: 18px 0 0;
}

.af-flash .alert,
.af-flash > div {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.af-flash .alert-danger,
.af-flash .alert-error {
    border: 1px solid #efc7cb;
    background-color: #fff4f5;
    color: #a3212c;
}

.af-flash .alert-success {
    border: 1px solid #cfe5d4;
    background-color: #f3faf4;
    color: #2d6a3a;
}

.af-sign {
    margin: 28px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--pub-line);
}

.af-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 12px;
    margin: 12px 0 0;
}

.af-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    background-color: #fdfafa;
    font-size: 15px;
    font-weight: 500;
    color: var(--pub-ink);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.af-choice:hover {
    border-color: #d9b9c1;
    background-color: #fff;
}

.af-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.af-choice__dot {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 1.5px solid #d6bcc3;
    border-radius: 50%;
    background-color: #fff;
    transition: border-color .2s ease;
}

.af-choice__dot::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background-color: var(--pub-bordo);
    transform: scale(0);
    transition: transform .2s ease;
}

.af-choice:has(input:checked) {
    border-color: var(--pub-bordo);
    background-color: var(--pub-card);
    color: var(--pub-bordo);
}

.af-choice input:checked + .af-choice__dot {
    border-color: var(--pub-bordo);
}

.af-choice input:checked + .af-choice__dot::after {
    transform: scale(1);
}

.af-choice input:focus-visible + .af-choice__dot {
    box-shadow: 0 0 0 4px rgba(141, 11, 44, .16);
}

.af-choice__note {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--pub-muted);
}

.af-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 28px 0 0;
}

.af-submit__note {
    font-size: 14px;
    color: var(--pub-muted);
}

.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    min-height: 54px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--pub-red), var(--pub-bordo));
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(107, 12, 38, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.af-btn svg {
    width: 19px;
    height: 19px;
    transition: transform .2s ease;
}

.af-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(107, 12, 38, .3);
}

.af-btn:hover svg {
    transform: translateX(3px);
}

.af-btn:focus-visible {
    outline: 2px solid var(--pub-red);
    outline-offset: 3px;
}

/* ================= either / or (reg. number + date or personal code) ================= */

.af-either {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
}

.af-either__option {
    min-width: 0;
    padding: 18px 18px 20px;
    border: 1px solid var(--pub-line);
    border-radius: 14px;
    background-color: #fdfafa;
}

.af-either__option .af-input {
    background-color: #fff;
}

.af-either__or {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-either__or::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 1px;
    background-color: var(--pub-line);
}

.af-either__or span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2c6ce;
    border-radius: 50%;
    background-color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--pub-red);
}

.af-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    align-items: end;
    gap: 14px;
}

.af-pair--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-either__option {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ================= file upload (Magic Forms uploader, style-file-single) ================= */

.af-upload .responsiv-uploader-fileupload.style-file-single {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1.5px dashed #dcc1c8;
    border-radius: 16px;
    background-color: #fdfafa;
    transition: border-color .2s ease, background-color .2s ease;
}

.af-upload .responsiv-uploader-fileupload.style-file-single:hover,
.af-upload .responsiv-uploader-fileupload.style-file-single.dz-drag-hover {
    border-color: var(--pub-red);
    background-color: var(--pub-card);
}

.af-upload .responsiv-uploader-fileupload.style-file-single.is-populated {
    border-style: solid;
    border-color: var(--pub-line);
    background-color: #fff;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-button {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 150px;
    margin: 0;
    padding: 26px 20px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--pub-bordo);
    cursor: pointer;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-button::before {
    content: '';
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--pub-bordo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E") center / 24px no-repeat;
    box-shadow: 0 10px 22px rgba(107, 12, 38, .22);
    transition: transform .2s ease;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-button:hover::before {
    transform: translateY(-2px);
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-button:focus-visible {
    outline: 2px solid var(--pub-red);
    outline-offset: -4px;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-empty-message {
    display: none;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 0;
    overflow: visible;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .icon-container {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--pub-card);
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .icon-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .info {
    position: static;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    isolation: auto;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .info h4,
.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .info p {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .info h4 {
    font-weight: 500;
    color: var(--pub-ink);
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .info p.size {
    margin-top: 2px;
    font-size: 13px;
    color: var(--pub-muted);
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .info p.size::before {
    content: none;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .info p.error {
    font-size: 13px;
    color: #a3212c;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .meta {
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    height: auto;
    margin: 0;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .meta .upload-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    text-align: center;
    border: 1px solid var(--pub-line);
    border-radius: 50%;
    background-color: #fff;
    font-size: 22px;
    line-height: 33px;
    color: var(--pub-bordo);
    transition: border-color .2s ease, background-color .2s ease;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .meta .upload-remove-button:hover {
    border-color: var(--pub-bordo);
    background-color: var(--pub-card);
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .progress-bar {
    position: absolute;
    top: auto;
    right: 16px;
    bottom: 8px;
    left: 86px;
    width: auto;
    height: 4px;
    margin: 0;
    border-radius: 4px;
    background-color: var(--pub-card);
    box-shadow: none;
}

.af-upload .responsiv-uploader-fileupload.style-file-single .upload-object .progress-bar .upload-progress {
    background-color: var(--pub-bordo);
}

.af-upload + .af-hint {
    margin-top: 12px !important;
}

@media (max-width: 1200px) {
    .af-either {
        grid-template-columns: minmax(0, 1fr);
    }

    .af-either__or {
        height: 44px;
    }

    .af-either__or::before {
        top: 50%;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 1px;
    }
}

@media (max-width: 576px) {
    .af-either__option {
        padding: 14px 14px 16px;
    }

    .af-pair,
    .af-fields--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .af-upload .responsiv-uploader-fileupload.style-file-single .upload-button {
        min-height: 130px;
        font-size: 15px;
    }
}

/* ================= adaptive ================= */

@media (max-width: 1200px) {
    .af-hero .pub-hero__title {
        font-size: 35px;
    }

    .af__layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 28px;
    }

    .af-card {
        padding: 28px 28px 30px;
    }

    .af-matrix__row {
        grid-template-columns: 150px repeat(8, minmax(0, 1fr));
    }

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

@media (max-width: 1024px) {
    .af {
        --af-offset: 100px;
    }

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

    .af-aside {
        position: static;
        order: 2;
    }

    .af-nav {
        display: none;
    }

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

@media (max-width: 900px) {
    .af-hours {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .af {
        padding-bottom: 64px;
    }

    .af-hero {
        padding-bottom: 36px;
    }

    .af-hero .pub-hero__title {
        font-size: 28px;
    }

    .af-hero__lead {
        font-size: 16px;
    }

    .af-card {
        padding: 22px 20px 24px;
        border-radius: 16px;
    }

    .af-card__head {
        gap: 14px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .af-card__num {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 14px;
    }

    .af-card__title {
        font-size: 19px;
    }

    /* matrix: one card per row, only the available activities as chips */

    .af-matrix {
        display: grid;
        gap: 12px;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .af-matrix__row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
        border: 1px solid var(--pub-line);
        border-radius: 14px;
        background-color: #fdfafa;
    }

    .af-matrix__row:first-child {
        border-top: 1px solid var(--pub-line);
    }

    .af-matrix__row--head {
        display: none;
    }

    .af-matrix__name {
        flex: 0 0 100%;
        padding: 0 0 4px;
        font-size: 15px;
    }

    .af-matrix__cell {
        padding: 0;
        border-left: 0;
    }

    .af-matrix__cell--disabled {
        display: none;
    }

    .af-matrix__cell .af-tick {
        padding: 8px 14px 8px 9px;
        border: 1px solid var(--pub-line);
        border-radius: 999px;
        background-color: #fff;
        font-size: 14px;
        color: var(--pub-ink);
        transition: border-color .2s ease, background-color .2s ease, color .2s ease;
    }

    .af-matrix__cell .af-tick:has(.af-tick__input:checked) {
        border-color: var(--pub-bordo);
        background-color: var(--pub-card);
        color: var(--pub-bordo);
    }

    .af-matrix__cell .af-tick__box {
        width: 20px;
        height: 20px;
        border-radius: 6px;
    }

    .af-matrix__label {
        display: inline;
    }

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

    .af-submit {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .af-btn {
        width: 100%;
    }

    .af-submit__note {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .af-hero .pub-hero__title {
        font-size: 23px;
        line-height: 1.28;
    }

    .af-card {
        padding: 20px 16px 22px;
    }

    .af-card__head {
        align-items: center;
    }

    .af-card__title {
        font-size: 18px;
    }

    .af-day {
        grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 12px;
    }

    .af-day__name {
        grid-column: 1 / -1;
    }

    .af-hours__tools .af-ghost {
        width: 100%;
        justify-content: center;
    }

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

    .af-captcha {
        transform-origin: 0 0;
    }
}

@media (max-width: 360px) {
    .af-captcha {
        min-height: 0;
        height: 64px;
        transform: scale(.82);
    }
}

@media (prefers-reduced-motion: reduce) {
    .af-btn,
    .af-btn svg,
    .af-tick__box,
    .af-tick__box svg,
    .af-choice__dot::after {
        transition-duration: .01ms;
    }
}