

/* Start:/local/templates/afril/css/job.css?178730653271808*/
/* Cygre Font */
@font-face {
    font-family: 'Cygre';
    src: url(/local/templates/afril/css/../4e7de196043c9bf3f7c4.woff2) format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cygre';
    src: url(/local/templates/afril/css/../4e3a70d0b095852534b4.woff2) format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cygre';
    src: url(/local/templates/afril/css/../29711958a50d19cf6035.woff2) format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cygre';
    src: url(/local/templates/afril/css/../3ca1595dfeea97ea6869.woff2) format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cygre';
    src: url(/local/templates/afril/css/../987b2b6ab577f1b2ba81.woff2) format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cygre';
    src: url(/local/templates/afril/css/../423cdbb6417273a464b8.woff2) format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cygre';
    src: url(/local/templates/afril/css/../0fd55f1fc6ac3e1524e5.woff2) format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* HeliosExt */
h1,
h2,
.descriptor,
.title--h3,
.title--h4,
.body--l,
.subhead--s,
.text--xl,
.button--m,
.link--l,
.text--m,
.text--s,
.tab--m,
.tab--s,
.body--m,
.body--s,
.subheading,
.link--m,
.link--s {
    font-family: 'Cygre', sans-serif;
    transition: font-size 0.3s ease;
}

.title--h1 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 100%;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-wrap: balance;
}

.title--h2 {
    font-weight: 900;
    font-size: 4rem;     
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-wrap: balance;
}

.title--h3 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 120%;
    text-wrap: balance;
    text-transform: uppercase;
    text-wrap: balance;
}

.title--h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0;
    text-wrap: balance;
}

.body--l {
    font-size: 2rem;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0%;
    text-wrap: balance;
}

.body--m {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0;
    text-wrap: balance;
}

.body--s {
    font-family: 'Cygre', sans-serif;
    font-weight: 400;
    font-size: 1.2rem; /* 12px */
    line-height: 115%;
    letter-spacing: 0;
    text-wrap: balance;
}

.subheading {
    font-family: 'Cygre', sans-serif;
    font-weight: 800;
    font-size: 2rem; /* 20px */
    line-height: 120%;
    letter-spacing: 0;
    text-transform: uppercase;
    text-wrap: balance;
}


.text--xl {
    font-size: 18px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: 0;
    text-wrap: balance;
}

.button--m {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 100%;
    text-transform: uppercase;
    white-space: nowrap;
}

.link--l {
    font-size: 2rem;
    font-weight: 800;
    line-height: 120%;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link--m {
    font-family: 'Cygre', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 100%;
    text-decoration: underline;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.link--s {
    font-family: 'Cygre', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 120%;
    letter-spacing: 0;
    text-decoration: underline;
}

.link--s,
.link--m,
.link--l {
    transition: opacity 0.3s ease;
}

.link--s:hover,
.link--m:hover,
.link--l:hover {
    opacity: 0.75;
}

.text--m {
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    /*letter-spacing: -0.1em;*/
    /*text-align: center;*/
}

.text--s {
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    /*letter-spacing: -0.1em;*/
    text-align: center;
}

.tab--m {
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    /*letter-spacing: -0.1em;*/
    /*text-align: center;*/
}

.tab--s {
    font-size: 12px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
}

.descriptor {
    font-weight: 500;
    font-size: 1.2rem;  
    line-height: 100%;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.descriptor::before { content: '[ '; }
.descriptor::after { content: ' ]'; }


@media (max-width: 768px) {
    .title--h1 {
        font-size: 3.8rem;
    }

    .title--h2 {
        font-size: 2.8rem
    }

    .title--h3 {
        font-size: 2.4rem;
    }

    .title--h4 {
        font-size: 14px;
    }
}

:root {
    --neutral-0: #FFFFFF;
    --neutral-700: #222529;
    --black: #201C1C;

    --text-primary: #201C1C;
    --text-secondary: #4F4745;

    --surface-light: #F6F3EF;
    --surface-warm: #E4DCD2;
    --surface-dark: #181515;
    --surface-muted: #ECECEC;
    --surface-footer: #95918F;

    --text-primary-08: rgba(32, 28, 28, 0.08);
    --text-primary-15: rgba(32, 28, 28, 0.15);
    --surface-dark-60: rgba(24, 21, 21, 0.6);
    --shadow-soft: rgba(27, 28, 29, 0.12);

    --header-bar-height: 100px;
    --page-top-gap: 2rem;
    --page-header-top: calc(var(--header-bar-height) + var(--page-top-gap));
}

@media (max-width: 768px) {
    :root {
        --page-top-gap: 1.6rem;
    }
}

a {
    color: inherit;
}

h1, h2, h3, h4, body, p {
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html {
    font-size: 10px;
}

html.preload *,
html.preload *::before,
html.preload *::after {
    transition: none !important;
}

@media (min-width: 1600px) {
    html { font-size: 11.11px; }
}

@media (min-width: 1920px) {
    html { font-size: 13.33px; }
}

@media (min-width: 2560px) {
    html { font-size: 17.78px; }
}

@media (min-width: 3440px) {
    html { font-size: 23.89px; }
}

.screen-section {
    position: relative;
    height: 100vh;
}

button {
    cursor: pointer;
    outline: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: normal;
    -webkit-appearance: none;
    appearance: none;
}

body {
    font-family: 'Cygre', sans-serif;
    background-color: var(--surface-warm);
    color: var(--text-primary);
}

::selection {
    background: rgba(32, 28, 28, 0.12);
    color: var(--text-primary);
}


.header-m {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    padding: 22.5px 2rem 22.5px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    z-index: 99;
    background: transparent;
    color: var(--text-primary);
    transform: translateY(0);
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
    will-change: transform, background;
}
.header-m--overlay {
    position: absolute;
    color: var(--neutral-0);
}

.header-m.is-visible {
    position: fixed;
    transform: translateY(-100%);
}

.header-m.is-visible.header-m--overlay {
    transform: translateY(0);
    color: var(--neutral-0);
}

.header-m--scrolled {
    background: var(--text-primary);
    color: var(--neutral-0);
}

.header-m.is-visible:not(.header-m--overlay) {
    position: sticky;
    transform: translateY(0);
}

.header-desktop-content {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}


.header-desktop-content > .header-desktop-nav {
    padding: 0;
}

/*Logo*/
.logo-container {
    flex: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: inherit;
}

.logo-container svg {
    width: 12rem;
    height: auto;
}
.header-menu--button svg {
    width: 2rem;
    height: auto;
    display: block;
    transition: width 0.3s ease;
}

.header-menu--button svg line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.header-desktop-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.header-desktop-nav .link--l {
    color: inherit;
    font-size: 1.6rem;
    text-align: center;
}


.header-menu--button {
    display: flex;
    gap: 0.5rem;
    color: inherit;
    align-items: baseline;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.header-menu--button span {
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: 0.05em;
    display: block;
}
/*Menu-icon*/
.menu-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.logo-container.active {
    color: var(--neutral-700) !important;
}


@media (max-width: 1024px) {
    .header-desktop-nav {
        display: none !important;
    }
}
@media (max-width: 980px) {
    .menu-icon-container{
        justify-content: flex-end;
    }
    .header-m .header-social-links {
        display: none !important;
    }
    .header-menu--button{
        align-items: center;
    }

}
@media(max-width: 768px) {

    .menu-icon-container.active.menu-closed {
        display: none;
    }
    .menu-icon-container.active.menu-opened {
        display: flex;
    }

}


.footer {
    background: var(--surface-footer);
    color: var(--text-primary);
}
.footer__content {
    padding: 8.5rem 20px 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 152rem;
    margin: 0 auto;
}

.footer__intro .title--h1 { margin-bottom: 1.5rem; }
.footer__intro .body--l { margin-bottom: 2rem; }

.footer__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem; /* 16px */
    margin-top: 2rem;
}

.footer__submit {
    width: 100%;
    height: 4.8rem;
    background: var(--text-primary);
    color: var(--neutral-0);
    margin-top: 2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.footer--nav .footer__bottom{
    margin: 7rem auto 0;
}
.footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    max-width: 152rem;
    margin: 9rem auto 0;
}

.footer__form-row > *:only-child {
    grid-column: 1 / -1;
}

.footer .ui-checkbox {
    margin-top: 4.9rem;

}
.footer .ui-checkbox .body--s {
    color: var(--text-primary);
}
.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__logo {
    margin-top: 2rem;
    width: 100%;
}

.footer__logo svg {
    width: 100%;
    height: auto;
    display: block;
}

.footer--nav .footer__nav-col .descriptor,
.footer--nav .footer__nav-group .descriptor {
    display: block;
    margin-bottom: 2rem;
}

.footer__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer__nav-secondary {
    display: flex;
    gap: 12rem;
}

@media (max-width: 768px) {
    .footer__top {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer__form-row{
        grid-template-columns: 1fr;
    }
    .footer .ui-checkbox{
        margin-top: 4rem;
    }
    .footer__bottom {
        margin-top: 4rem;
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer__legal{
        flex-direction: column;
        gap: 1rem;
    }
    .footer__bottom .body--s {
        order: 3;
    }
    .footer__nav-col{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer--nav .footer__nav-secondary {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
        align-items: center;
    }

    .footer--nav .footer__bottom{
        justify-items: center;
        text-align: center;
    }
}
html.is-menu-open,
html.is-menu-open body {
    overflow: hidden;
}

.site-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.site-menu.is-open {
    pointer-events: auto;
}

.site-menu__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    padding: 0;
    background: #18151580;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.site-menu.is-open .site-menu__overlay {
    opacity: 1;
}

.site-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: min(100%, 48rem);
    height: 100%;
    padding: 2rem;
    background: #F6F3EF;
    color: var(--text-primary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.site-menu.is-open .site-menu__panel {
    transform: translateX(0);
}

.site-menu__nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 3rem;
    text-align: right;
    margin-top: calc(64px + 2rem);
}

.site-menu__link {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-menu__link.is-active {
    opacity: 0.45;
}

.site-menu__copyright {
    margin: 0;
    font-family: 'Cygre', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 100%;
    letter-spacing: 0.1em;
    text-align: right;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.is-menu-open .header-m {
    background: transparent;
    mix-blend-mode: normal;
    color: var(--text-primary);
    z-index: 1002;
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.is-menu-open .header-m.is-visible:not(.header-m--overlay) {
    position: fixed;
}

.is-menu-open .logo-container,
.is-menu-open .header-desktop-nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.header-menu--button.is-pinned {
    position: fixed;
    top: var(--menu-btn-top);
    left: var(--menu-btn-left);
    width: var(--menu-btn-width);
    z-index: 1002;
    color: var(--text-primary);
}

.is-menu-open .header-menu--button svg line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.is-menu-open .header-menu--button svg line:nth-child(1) {
    transform: translateY(4px) rotate(30deg);
}

.is-menu-open .header-menu--button svg line:nth-child(2) {
    opacity: 0;
}

.is-menu-open .header-menu--button svg line:nth-child(3) {
    transform: translateY(-4px) rotate(-30deg);
}

@media (max-width: 640px) {
    .site-menu__panel {
        width: 100%;
        padding: 2.4rem 2rem;
    }

    .site-menu__nav {
        gap: 2.4rem;
    }
}

.btn {
    display: flex;
    padding: 23px 49.5px;
    font-family: 'Cygre', sans-serif;
    background-color: var(--neutral-0, #FFFFFF);
    transition: background-color 0.3s ease, color 0.3s ease;
    width: fit-content;
    justify-content: center;
    white-space: nowrap;
    max-height: 60px;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    color: var(--neutral-700);
}
.btn.black{
    color: var(--neutral-0, #FFFFFF);
    background-color: var(--neutral-700, #222529);
}
.btn.black:hover{
    background-color: var(--neutral-0, #FFFFFF);
    color: var(--neutral-700, #222529);
}

.btn:hover {
    background-color: var(--neutral-700, #222529);
    color: var(--neutral-0, #FFFFFF);
}

.footer__submit,
.job-tabs-select__trigger,
.job-tabs__item,
.job-tabs-select__option,
.header-menu--button,
.silence-accordion .ac-trigger {
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.footer__submit:hover {
    background: var(--neutral-0);
    color: var(--text-primary);
}

.job-tabs-select__trigger:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.job-tabs-select__trigger:hover .job-tabs-select__icon path {
    fill: currentColor;
}

.job-tabs__item:not(.is-active):hover,
.job-tabs-select__option:not(.is-active):hover {
    background: var(--text-primary);
    color: var(--surface-light);
}

.header-menu--button:hover,
.silence-accordion .ac-trigger:hover {
    opacity: 0.7;
}

@media (max-width: 768px){
    .btn{
        padding: 23px 24.5px;
    }

}
@media (hover: none) and (pointer: coarse) {
  .btn.black.button--m:hover {
    background-color: var(--neutral-700, #222529) !important;
    color: var(--neutral-0, #FFFFFF) !important;
  }

  .footer__submit:hover,
  .job-tabs-select__trigger:hover,
  .job-tabs__item:not(.is-active):hover,
  .job-tabs-select__option:not(.is-active):hover {
    background: inherit;
    color: inherit;
  }

  .header-menu--button:hover,
  .silence-accordion .ac-trigger:hover {
    opacity: 1;
  }
}
.ui-input {
    width: 100%;
    height: 4rem;
    padding: 1.1rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-primary);
    font-size: 1.5rem;
    line-height: 120%;
    color: var(--text-primary);
}

.ui-input::placeholder {
    color: var(--text-primary);
    opacity: 0.6;
}
.ui-input:focus {
    outline: none;
}

.ui-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}
.ui-checkbox .body--s {
    opacity: 0.6;
}

.ui-checkbox input[type="checkbox"] {
    appearance: none;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.4rem;
    box-shadow: 0 2px 2px 0 var(--shadow-soft);
    border: 0.15rem solid var(--text-primary);
    flex-shrink: 0;
    align-self: flex-start;
}

.ui-checkbox input[type="checkbox"]:checked {
    background: var(--text-primary);
}
.ui-select {
    position: relative;
    width: 100%;
}

.ui-select__trigger {
    width: 100%;
    height: 4rem;
    padding: 1.05rem 2rem;
    background: var(--text-primary);
    color: var(--neutral-0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-select__label,
.ui-select__option {
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 120%;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.ui-select__label {
    pointer-events: none;
}

.ui-select__trigger svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ui-select.active .ui-select__trigger svg {
    transform: rotate(180deg);
}

.ui-select__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    background: var(--text-primary);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.8rem);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.ui-select.active .ui-select__list {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ui-select__option {
    width: 100%;
    padding: 1.05rem 2rem;
    background: var(--text-primary);
    color: var(--neutral-0);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ui-select__option:hover,
.ui-select__option.is-active {
    background: var(--neutral-0);
    color: var(--text-primary);
}
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--text-primary);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.4rem;
    font-family: 'Cygre', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 115%;
    letter-spacing: 0;
    color: inherit;
    text-decoration: none;
}

.breadcrumbs__link {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.breadcrumbs__link:hover {
    opacity: 0.75;
}

.breadcrumbs__current {
    opacity: 1;
}

.breadcrumbs__current:not(.breadcrumbs__current--truncate):not(:last-child) {
    opacity: 0.5;
}

.breadcrumbs--nowrap {
    flex-wrap: nowrap;
    min-width: 0;
}

.breadcrumbs__current--truncate {
    flex: 1 1 auto;
    min-width: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-header {
    padding: var(--page-top-gap) 2rem 0;
    max-width: 152rem;
    margin: 0 auto;
    box-sizing: border-box;
    color: var(--text-primary);
}

.page-header .title--h1,
.about-page__intro .title--h1 {
    margin-top: 1rem;
}

.page-header__intro {
    text-align: center;
    max-width: 70rem;
    margin: 4rem auto 2rem;
}

.page-header__intro .title--h1 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .page-header {
        padding: var(--page-top-gap) 20px 0;
    }

    .page-header__intro {
        margin-top: 3rem;
    }
}

:root {
    --header-height: clamp(6rem, 5.56vw, 12rem); 
}

.bg-main-container {
    position: absolute;
    /* [FIX] контейнер тянется ровно по секции (100vh), а не по 100dvh:
       иначе на мобильных с видимой адресной строкой dvh < vh и снизу
       оставалась полоса видео без затемнения и нижнего градиента */
    inset: 0;
    z-index: -1;
}

.bg-main-container::before,
.bg-main-container::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-main-container::before {
    top: 0;
    height: 35rem;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--surface-dark-60) 0%,
        transparent 100% 
    );
    inset: 0;
    height: auto;
    background:
        linear-gradient(
            180deg,
            var(--surface-dark-60) 0%,
            transparent 100%
        ),
        rgba(24, 21, 21, 0.5);
    background-size: 100% 35rem, 100% 100%;
    background-repeat: no-repeat;
}

.bg-main-container::after {
    bottom: 0;
    height: 22rem;
    background: linear-gradient(180deg, transparent 0%, var(--surface-dark) 100%);

}

.bg-main {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* [FIX] min-height: 100vh убран — конфликтовал с высотой контейнера и
       выпускал видео из-под оверлея; теперь видео ровно по контейнеру */
}

.main-section {
    position: relative;
    height: 100vh;
}

.main-section-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: calc(var(--page-header-top) + 2rem) 2rem 4rem;
}

.main-title-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: fit-content;
    color: var(--neutral-0);
}
.main-title-content a {
    margin-top: 2rem;
    width: fit-content;
}

/*
 * Текст баннера раскладывается в колонки — так же, как цитаты на /about/
 * (.about-page__quotes-grid): та же сетка, тот же gap, тот же слом в одну
 * колонку на мобильных.
 *
 * Гридом управляет сам .main-story-content, а не дополнительная обёртка:
 * содержимое приходит из включаемой области /local/include/index/hero-text.php,
 * которую правит редактор. Колонки строятся по числу абзацев, поэтому
 * добавление или удаление абзаца не требует правки вёрстки.
 *
 * auto-fit + minmax сам схлопывает раскладку в одну колонку, когда на трек
 * не остаётся 20rem, — промежуточные ширины (планшет, узкий ноутбук)
 * не превращаются в нечитаемо узкие столбцы.
 */
.main-story-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 4rem;
    /* Блок прижат к левому краю контента: колонки идут слева и по центру,
       правая треть первого экрана остаётся свободной. */
    align-self: flex-start;
    width: 100%;
    max-width: 74rem;
    color: var(--neutral-0);
}
.main-story-content p {
    margin: 0;
}

.mobile-options{
    display: none;
}

@media (max-width: 768px) {
    .mobile-options{
        display: flex;
    }

    .main-content {
        padding: var(--page-header-top) 2rem 4rem;
    }
    .main-story-content{
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: none;
    }
}
.about-section {
    background: var(--surface-warm);
    position: relative;
}


.about-section__container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4rem;
    padding: 10rem 20px;
    max-width: 152rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.about-section__image {
    align-self: stretch;
    height: 100%;
    overflow: hidden;
}

.about-section__image img {
    width: 65.5rem;
    height: auto;
    aspect-ratio: 655 / 890;
    object-fit: cover;
    display: block;
}
.about-section__content {
    display: flex;
    flex-direction: column;
    align-self: center;
    max-width: 60rem; 
}

.about-section__content .descriptor {
    margin-bottom: 2rem;
}

.about-section__content .title--h2 {
    margin-bottom: 1rem;
}

.about-section__content .body--l {
    margin-bottom: 4rem;
}

.about-section__content .body--m {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .about-section__container {
        grid-template-columns: 1fr;
    }
    .about-section__image img {
        width: 100%;
        aspect-ratio: 330 / 440;
    }
    .about-section__content .body--l {
        margin-bottom: 1.7rem;
    }
}
.values-section {
    position: relative;
    overflow: hidden;
    overflow-x: clip;
    color: var(--neutral-0);
    background-color: var(--black);
    width: 100%;
    max-width: 100%;
}

.values-section__slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 100%;
}

.values-section__slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.values-section__slide::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30rem;
    background: linear-gradient(180deg, transparent 0%, var(--black) 100%);
    pointer-events: none;
    z-index: 1;
}

.values-section__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: var(--black);
}

.values-section__bg {
    width: 100%;
    max-width: 100%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

.values-section__content {
    position: absolute;
    right: clamp(2rem, 8vw, 20rem);
    bottom: 4rem;
    z-index: 2;
    width: min(35rem, calc(100% - 4rem));
    max-width: min(35rem, calc(100% - 4rem));
    min-width: 0;
    color: var(--neutral-0);
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
    will-change: transform;
    pointer-events: auto;
}

.values-section__content .subheading { margin-bottom: 1rem; }
.values-section__content .body--m { margin-bottom: 3rem; }

.values-section__title {
    position: absolute;
    top: 8.5rem;
    left: 2rem;
    z-index: 10;
    color: var(--neutral-0);
    max-width: calc(100% - 4rem);
    pointer-events: none;
}

@media (max-width: 768px) {
    .values-section__title {
        top: calc(4.7rem + 64px);
        left: 1.5rem;
        max-width: calc(100% - 3rem);
    }

    .values-section__content {
        right: 1.5rem;
        left: 1.5rem;
        bottom: 4rem;
        width: auto;
        max-width: none;
    }
}

.project-section {
    background: var(--surface-light);
}

.project-section__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 152rem;
    margin: 0 auto;
    padding: 12rem 2rem;
}

.project-section__image {
    width: 48rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 4rem;
    transition: padding 0.3s ease, width 0.3s ease;
}

.project-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-section .descriptor { margin-bottom: 2rem; }
.project-section .title--h1 { margin-bottom: 2rem; }
.project-section .body--m {
    max-width: 60rem;
    margin-bottom: 4rem;
    color: var(--text-secondary);
}

@media (max-width:768px) {
    .project-section__image {
        padding: 0 4rem;
        width: 100%;
    }
}
.news-block {
    background: var(--text-primary);
    padding: 10rem 20px;
}

.news-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 152rem;
    margin: 0 auto 6rem;
    color: var(--neutral-0);
}

.news-block .swiper {
    max-width: 152rem;
    margin: 0 auto;
}

.news-card {
    background: var(--neutral-0);
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.news-card__image {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    display: block;
}

.news-card picture {
    display: block;
}

.news-card__body {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.news-card__body .descriptor { 
    margin-bottom: 2rem;
}

.news-card__body .title--h3 { 
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__body .body--m { 
    margin-bottom: 3rem;
    color: var(--text-secondary);
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__body .link--m {
    margin-top: auto;
}

.news-block .swiper-wrapper {
    align-items: stretch; 
}

.descriptor--plain::before,
.descriptor--plain::after {
    content: none;
}

.news-link-mobile {
    display: none;
    color: var(--neutral-0);
}

.news-block .swiper-slide{
    transition: width 0.3s ease;
}


@media (max-width: 768px) {

    .news-link-desktop {
        display: none;
    }

    .news-link-mobile {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 6rem;
    }

    .news-block .swiper-wrapper {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        transform: none !important;
    }

    .news-block .swiper-slide {
        width: 100% !important ;
    }
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 152rem;
    margin: 4rem auto 0;
    padding: 0 2rem 10rem;
    box-sizing: border-box;
}

.news-grid .news-card {
    height: 100%;
    box-shadow: 0 0.4rem 2.4rem var(--text-primary-08);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 20px 6rem;
    }
}

/*
 * Африл — раскладка детальной страницы новости.
 *
 * Раскладка выбрана заказчиком из трёх демо-вариантов (см. план
 * .ai-factory/plans/news-detail-layout-variants.md): вариант 2 — картинка
 * слева прилипает к верху окна, текст занимает вторую колонку целиком,
 * галерейная картинка не выводится.
 */

.news-detail {
    /*
     * Отступ прилипающей картинки от верха окна.
     *
     * Шапка (.header-m) при прокрутке вверх становится fixed, её высота —
     * 45px внутренних отступов плюс 24px логотипа ≈ 6.9rem при базовом
     * font-size: 10px. 9rem даёт запас, чтобы картинка не подлезала под шапку.
     *
     * Значение в rem, а не в px, намеренно: reset.css увеличивает базовый
     * font-size на широких экранах (11.11px от 1600px и далее), и вместе с
     * ним обязана расти и шапка, и этот отступ.
     */
    --news-detail-sticky-top: 9rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "media date"
        "media title"
        "media subtitle"
        "media text";
    grid-template-rows: auto auto auto 1fr;
    gap: 0 4rem;
    max-width: 152rem;
    margin: 4rem auto 0;
    padding: 0 2rem 3rem;
    box-sizing: border-box;
}

/*
 * height: 100% здесь недопустим: растянутому на всю область грида элементу
 * прилипать некуда — sticky работает только когда элемент НИЖЕ своей области
 * по высоте. По той же причине нужен align-self: start, иначе грид-элемент
 * растягивается по умолчанию.
 */
.news-detail__media {
    grid-area: media;
    position: sticky;
    top: var(--news-detail-sticky-top);
    align-self: start;
    height: auto;
}

.news-detail__media picture,
.news-detail picture {
    display: block;
    height: auto;
}

.news-detail__image {
    width: 100%;
    height: auto;
    min-height: 0;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    /*
     * Картинка не может быть выше экрана: её верх прилип, значит всё, что не
     * поместилось, не увидят никогда. Плюс прямая арифметика прилипания —
     * элемент держится (высота секции − своя высота) пикселей прокрутки, и
     * каждый лишний пиксель высоты укорачивает эффект ровно на пиксель.
     * Замер на 1444×904: без ограничения картинка занимала 899px и отлипала
     * через четверть прокрутки.
     *
     * max-height, а не height: пропорция 3/4 остаётся ведущей там, где она
     * помещается в экран, и урезается только когда мешает.
     */
    max-height: calc(100vh - var(--news-detail-sticky-top) - 2rem);
}

.news-detail__date {
    grid-area: date;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.news-detail__title {
    grid-area: title;
    margin-top: 4rem;
}

.news-detail__subtitle {
    grid-area: subtitle;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.news-detail__text {
    grid-area: text;
    margin-top: 4rem;
    padding-bottom: 4rem;
    color: var(--text-secondary);
}

.news-detail__text p + p {
    margin-top: 2rem;
}

/*
 * Страховка. В выбранной раскладке галерейная картинка не выводится вовсе —
 * шаблон news.detail/afril/template.php её не печатает. Правило оставлено на
 * случай, если такая разметка придёт из закешированного вывода или из
 * пользовательского HTML в DETAIL_TEXT: без grid-area элемент встал бы в
 * автоматическую ячейку и сломал бы сетку.
 */
.news-detail__gallery-image {
    display: none;
}

@media (max-width: 768px) {
    .news-detail {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "title"
            "subtitle"
            "media"
            "text";
        grid-template-rows: auto;
        gap: 0;
        padding: 0 20px;
    }

    /*
     * На узком экране раскладка одноколоночная, картинка идёт в потоке —
     * прилипание означало бы, что изображение едет поверх текста.
     */
    .news-detail__media {
        position: static;
        height: auto;
        align-self: start;
        margin-top: 4rem;
    }

    .news-detail__media picture,
    .news-detail picture {
        height: auto;
    }

    .news-detail__image {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .news-detail__title {
        margin-top: 2rem;
    }

    .news-detail__text {
        margin-top: 2rem;
        padding-bottom: 6rem;
    }
}

.about-page,
.about-page.screen-section {
    position: relative;
    min-height: 100dvh;
    height: auto;
    color: var(--neutral-0);
    z-index: 2;
}

.about-page__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.about-page__top {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.about-page__bg::before,
.about-page__bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.about-page__bg::before {
    inset: 0;
    height: auto;
    background:
        linear-gradient(
            180deg,
            var(--surface-dark-60) 0%,
            transparent 100%
        ),
        rgba(24, 21, 21, 0.5);
    background-size: 100% 35rem, 100% 100%;
    background-repeat: no-repeat;
}

.about-page__bg::after {
    bottom: 0;
    height: 22rem;
    background: linear-gradient(180deg, transparent 0%, var(--surface-dark) 100%);
}

.about-page__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-page__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100dvh;
    padding: var(--page-header-top) 2rem 4rem;
    box-sizing: border-box;
    gap: 2rem;
}
.about-page__content .breadcrumbs {
    color: var(--neutral-0);
}

.about-page__intro {
    max-width: 74rem;
}

.about-page__intro .body--m {
    margin-top: 2rem;
    max-width: 74rem;
}

/*
 * [FIX] Блок цитат больше не вытаскивается за поле контента.
 *
 * Было: margin-left: -2rem у блока и компенсирующий padding-left: 2rem у грида.
 * Пара гасила падинг секции только для текста, а кавычка оставалась прижатой
 * к самому краю окна (x = 0 при крошках и заголовке на 2rem).
 * Теперь кавычка стоит на той же вертикали, что и остальной контент страницы.
 */
.about-page__quotes {
    flex-shrink: 0;
}
.about-page__quotes-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 14rem;
}

.about-page__quotes-block::before {
    content: '';
    flex-shrink: 0;
    width: 9rem;
    height: 7.5rem;
    background: url(/local/templates/afril/css/../772109060196cfe79bc6.svg) no-repeat left center / contain;
}

.about-page__quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    width: 100%;
    padding-top: 2rem;
}

.about-page__quote {
    color: var(--neutral-0);
    margin: 0;
}

@media (max-height: 800px) {
    .about-page__content {
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .about-page__intro .body--m {
        margin-top: 1rem;
    }

    .about-page__quotes-grid {
        gap: 2rem;
        padding-top: 1rem;
    }

    .about-page__quotes-block::before {
        width: 7rem;
        height: 5.8rem;
    }
}

@media (max-width: 768px) {
    .about-page, .about-page.screen-section {
        height: auto;
    }

    .about-page__content {
        padding: var(--page-header-top) 1.5rem 2rem;
    }
    .about-page__quotes-block {
        flex-direction: row;
        align-items: flex-start;
        margin-right: 0;
    }

    .about-page__quotes-block::before {
        width: 6rem;
        height: 5rem;
    }

    .about-page__quotes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 0;
        padding-left: 1.5rem;
    }
}

.about-formula {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--surface-muted);
    color: var(--text-primary);
}

.about-formula__bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    aspect-ratio: 2880 / 2006;
    z-index: 0;
}

.about-formula__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% bottom;
    display: block;
}



.about-formula__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    width: 100%;
    padding: 8rem 0 40%;
    box-sizing: border-box;
}

.about-formula__content .descriptor {
    color: var(--text-primary);
    text-align: center;
}

.about-formula__marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 6vh;
}

.about-formula__marquee-track {
    display: flex;
    gap: 25rem;
    width: max-content;
    animation: about-formula-marquee 30s linear infinite;
}

.about-formula__marquee-text {
    font-family: 'Cygre', sans-serif;
    font-weight: 800;
    font-size: 12.5rem;
    line-height: 100%;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-primary);
}

.about-formula__text {
    max-width: 74rem;
    padding: 0 2rem;
    text-align: center;
    color: var(--text-primary);
}

@keyframes about-formula-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 3rem));
    }
}
@media (max-width: 1024px) {
    .about-formula__bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 25% bottom;
        transform-origin: center bottom;
    }
}

@media (max-width: 768px) {
    .about-formula__bg {
        aspect-ratio: auto;
        height: 100%;
        overflow: hidden;
    }

   

    .about-formula__marquee {
        margin-bottom: 4vh;
    }

    .about-formula__marquee-text{
        font-size: 8rem;
    }

    .about-formula__text{
        padding: 0 1.5rem;
    }

}
.about-team {
    /* min-height, а не height: блоков наград в админке может быть больше двух —
       при жёсткой высоте список выходил за секцию и наезжал на вводный текст. */
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    box-sizing: border-box;
    color: var(--text-primary);
}

.about-team__inner {
    display: flex;
    flex-direction: column;
    /* height: 100% не работает у родителя с min-height — считаем высоту сами,
       12rem это вертикальные паддинги секции (8rem + 4rem). */
    min-height: calc(100vh - 12rem);
    max-width: 152rem;
    margin: 0 auto;
}

.about-team__intro {
    margin-top: 2rem;
    max-width: 90rem;
}

.about-team__awards {
    list-style: none;
    flex: 1;
    /* верхний отступ держит дистанцию от вводного текста при любом числе наград */
    margin: 6rem 8.8rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4rem;
}

.about-team__award {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--text-primary);
}

.about-team__award-image {
    flex-shrink: 0;
    width: 17rem;
    height: 10.5rem;
    object-fit: cover;
    display: block;
}

.about-team__award-content {
    flex: 1;
    min-width: 0;
}

.about-team__award-content .title--h3 {
    margin-bottom: 2rem;
}

.about-team__award-content .body--l {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-team__award-content .body--m{
    color: var(--text-secondary);
}

.about-team__award-nomination {
    margin: 0;
}

@media (max-width: 768px) {
    .about-team {
        height: auto;
        min-height: 100vh;
        padding: 10rem 0.9rem 10rem 2rem;
    }

    .about-team__inner {
        height: auto;
        min-height: calc(100vh - 10rem);
    }

    .about-team__awards {
        margin-right: 0;
        justify-content: flex-start;
        gap: 4rem;
        margin-top: 5.8rem;
    }

    .about-team__award {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        border-bottom: none;
    }

    .about-team__award-image {
        width: 100%;
        max-width: 17rem;
        height: auto;
        aspect-ratio: 170 / 105;
    }
}

html:has(.projects),
body:has(.projects) {
    overflow-x: clip;
    max-width: 100%;
}

.projects.screen-section {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--header-bar-height));
    min-height: 0;
    box-sizing: border-box;
    padding: var(--page-top-gap) 0 2rem;
    overflow: hidden;
    max-width: 100%;
}

.projects .breadcrumbs {
    flex-shrink: 0;
    padding-inline: 2rem;
}

.projects .page-header__intro {
    flex-shrink: 0;
    margin: 1rem auto 2rem;
    max-width: 70rem;
    padding-inline: 2rem;
    text-align: center;
}

.projects__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    /* [FIX] вертикальный отступ, чтобы увеличенный активный слайд не упирался в текст сверху и снизу */
    padding-block: 3rem;
}

.projects__slider {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    --slide-w: 20rem;
    overflow: hidden;
    max-width: 100%;
}

.projects__swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projects__swiper .swiper-wrapper {
    height: 100%;
    align-items: center;
}

.projects__slide {
    position: relative;
    width: var(--slide-w);
    height: 50%;
    flex-shrink: 0;
    cursor: pointer;
}

.projects__slide.is-active {
    cursor: default;
}

.projects__slider.is-click-transition .projects__swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.projects__slide-media {
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateX(var(--slide-shift, 0px)) scale(var(--slide-scale, 1));
    transform-origin: center center;
    opacity: var(--slide-opacity, 0.4);
    transition:
        transform var(--slide-transition-duration, 450ms) cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity var(--slide-transition-duration, 450ms) ease;
    will-change: transform, opacity;
}

.projects__slider.is-click-transition .projects__slide-media {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), cubic-bezier(0.22, 1, 0.36, 1);
}

.projects__slider.is-repositioning .projects__slide-media {
    transition: none;
}

.projects__slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects__footer {
    position: relative;
    flex-shrink: 0;
    margin-top: 2rem;
    padding: 0 2rem;
}

.projects__progress {
    position: absolute;
    right: 2rem;
    bottom: 0;
    width: 20rem;
    height: 0.3rem;
    background: var(--text-primary-15);
    overflow: hidden;
}

.projects__progress-fill {
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left center;
}

.projects__caption {
    text-align: center;
    max-width: 60rem;
    margin: 0 auto;
}

.projects__caption-title {
    margin-bottom: 1rem;
}

.projects__caption-text {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/*
 * Подпись «Скоро в продаже» — не ссылка. Класс link--l оставлен ради
 * типографики, но его `:hover { opacity: .75 }` на некликабельном элементе
 * изображал бы ссылку, поэтому наведение здесь гасится.
 */
.projects__caption-link {
    pointer-events: none;
}

@media (max-width: 1024px) {
    .projects.screen-section {
        height: auto;
        min-height: 0;
        padding: var(--page-top-gap) 0 4rem;
    }

    .projects .breadcrumbs,
    .projects .page-header__intro {
        padding-inline: 20px;
    }

    .projects .page-header__intro {
        margin-top: 20px;
    }

    .projects__stage {
        flex: none;
        height: clamp(280px, 42vh, 425px);
        min-height: 280px;
        align-items: stretch;
        padding-block: 0;
    }

    .projects__slider {
        --slide-w: 340px;
        height: 100%;
    }

    .projects__swiper .swiper-wrapper {
        align-items: stretch;
    }

    .projects__slide {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .projects.screen-section {
        height: auto;
        min-height: auto;
    }

    .projects__stage {
        height: 425px;
        min-height: 425px;
    }

    .projects__slider {
        height: 425px;
    }

    .projects__slide {
        height: 425px;
    }

    .projects__footer {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        padding: 0;
    }

    .projects__progress {
        position: static;
        order: -1;
        width: 20rem;
        max-width: 20rem;
        margin: 20px auto 40px;
        right: auto;
    }

    .projects__caption {
        order: 0;
    }
}

body:has(.job-page) {
    overflow-x: hidden;
}

.job-page,
.job-page.screen-section {
    position: relative;
    min-height: 100dvh;
    height: auto;
    color: var(--neutral-0);
    z-index: 2;
}

.job-page__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.job-page__bg::before,
.job-page__bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.job-page__bg::before {
    top: 0;
    height: 35rem;
    background: linear-gradient(
        180deg,
        var(--surface-dark-60) 0%,
        transparent 100%
    );
}

.job-page__bg::after {
    bottom: 0;
    height: 22rem;
    background: linear-gradient(180deg, transparent 0%, var(--surface-dark) 100%);
}

.job-page__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-page__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: var(--page-header-top) 2rem 4rem;
    box-sizing: border-box;
    gap: 2rem;
}

.job-page__content .breadcrumbs {
    flex-shrink: 0;
    color: var(--neutral-0);
}

.job-page__intro {
    flex-shrink: 0;
    max-width: 80rem;
}

.job-page__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
    gap: 8vh;
}

.job-page__intro .body--l {
    margin-top: 1.5rem;
}

.job-page__form-block {
    width: 70rem;
    max-width: 100%;
    flex-shrink: 0;
    align-self: flex-end;
}

.job-page__note {
    margin-bottom: 2rem; /* 20px */
}

.job-page__form-card {
    background: var(--surface-light);
    color: var(--text-primary);
    overflow: hidden;
}

.job-tabs {
    display: flex;
}

.job-tabs-select {
    display: none;
    position: relative;
}

.job-tabs__item {
    flex: 1 1 50%;
    padding: 1.6rem 2rem;
    background: var(--surface-light);
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.job-tabs__item.is-active {
    background: var(--text-primary);
    color: var(--surface-light);
}

.job-tabs-select__trigger {
    width: 100%;
    padding: 1.6rem 2rem;
    background: var(--text-primary);
    color: var(--surface-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.job-tabs-select__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.job-tabs-select.is-open .job-tabs-select__icon {
    transform: rotate(180deg);
}

.job-tabs-select__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    background: var(--surface-light);
    border: 1px solid var(--text-primary);
    border-top: none;
}

.job-tabs-select__option {
    width: 100%;
    padding: 1.6rem 2rem;
    background: var(--surface-light);
    color: var(--text-primary);
    text-align: left;
    border-bottom: 1px solid var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.job-tabs-select__option:last-child {
    border-bottom: none;
}

.job-tabs-select__option.is-active {
    background: var(--text-primary);
    color: var(--surface-light);
}

.job-page__panel {
    display: none;
    padding: 0;
}

.job-page__panel.is-active {
    display: block;
}

.job-page__text {
    font-family: 'Cygre', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 115%;
    letter-spacing: 0;
    margin: 0 0 2rem;
    padding: 2rem 2rem 0;
}

.job-form .footer__form-row:first-of-type {
    margin-top: 0;
}

.job-page__panel .footer__form-row,
.job-page__panel .ui-checkbox {
    padding-inline: 2rem;
}

.job-page__form-card .ui-checkbox {
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .job-page__content {
        padding: var(--page-header-top) 1.5rem 2rem;
    }

    .job-page__body {
        gap: 3rem;
    }

    .job-page__intro {
        max-width: 100%;
    }

    .job-page__form-block {
        width: 100%;
        align-self: stretch;
    }

    .job-tabs {
        display: none;
    }

    .job-tabs-select {
        display: block;
    }
}

.contacts-page,
.contacts-page.screen-section {
    position: relative;
    min-height: 100dvh;
    height: auto;
    color: var(--neutral-0);
    z-index: 2;
}

.contacts-page__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.contacts-page__bg::before,
.contacts-page__bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.contacts-page__bg::before {
    top: 0;
    height: 35rem;
    background: linear-gradient(
        180deg,
        var(--surface-dark-60) 0%,
        transparent 100%
    );
}

.contacts-page__bg::after {
    bottom: 0;
    height: 22rem;
    background: linear-gradient(180deg, transparent 0%, var(--surface-dark) 100%);
}

.contacts-page__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contacts-page__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: var(--page-header-top) 2rem 4rem;
    box-sizing: border-box;
    gap: 2rem;
}

.contacts-page__content .breadcrumbs {
    color: var(--neutral-0);
}

.contacts-page__intro {
    max-width: 80rem;
}

.contacts-page__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 0;
    gap: 8vh;
}

.contacts-page__intro .body--l {
    margin-top: 1.5rem;
}

.contacts-page__form-block {
    width: 70rem;
    max-width: 100%;
    flex-shrink: 0;
    align-self: flex-end;
}

.contacts-page__note {
    margin-bottom: 2rem;
}

.contacts-page__form-card {
    background: var(--surface-light);
    color: var(--text-primary);
    overflow: hidden;
}

.contacts-page__form-card .footer__form-row,
.contacts-page__form-card .ui-checkbox {
    padding-inline: 2rem;
}

.contacts-page__form-card .ui-checkbox {
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .contacts-page__content {
        padding: var(--page-header-top) 1.5rem 2rem;
    }

    .contacts-page__body {
        justify-content: space-between;
        gap: 3rem;
    }

    .contacts-page__intro {
        max-width: 100%;
    }

    .contacts-page__form-block {
        width: 100%;
        align-self: stretch;
    }
}

/* Hero */
.silence-hero,
.silence-hero.screen-section {
    position: relative;
    min-height: 100dvh;
    height: auto;
    color: var(--neutral-0);
    z-index: 2;
}

.silence-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.silence-hero__bg::before,
.silence-hero__bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.silence-hero__bg::before {
    top: 0;
    height: 35rem;
    background: linear-gradient(
        180deg,
        var(--surface-dark-60) 0%,
        transparent 100%
    );
}

.silence-hero__bg::after {
    bottom: 0;
    height: 30rem;
    background: linear-gradient(180deg, transparent 0%, var(--surface-dark) 100%);
}

.silence-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.silence-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100dvh;
    padding: calc(var(--page-header-top) + 2rem) 2rem 6rem;
    box-sizing: border-box;
}


.silence-hero__intro .body--l {
    margin-top: 1.5rem;
    max-width: 74rem;
}

@media (max-width: 768px) {
    .silence-hero,
    .silence-hero.screen-section {
        height: auto;
    }

    .silence-hero__content {
        padding: var(--page-header-top) 1.5rem 4rem;
    }
}

/* Approach / marquee */
.silence-approach {
    background: var(--surface-warm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 8rem 0;
    box-sizing: border-box;
    text-align: center;
    color: var(--text-primary);
}

.silence-approach .descriptor {
    padding: 0 2rem;
}

.silence-approach__marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 6vh;
}

.silence-approach__marquee-track {
    display: flex;
    gap: 20rem;
    width: max-content;
    animation: silence-approach-marquee 30s linear infinite;
}

.silence-approach__marquee-text {
    font-family: 'Cygre', sans-serif;
    font-weight: 800;
    font-size: 12.5rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    padding-block: 0.08em;
    color: var(--text-primary);
}

.silence-approach__text {
    max-width: 74rem;
    padding: 0 2rem;
}

@keyframes silence-approach-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 3rem));
    }
}

@media (max-width: 768px) {
    .silence-approach {
        padding: 5rem 0;
    }

    .silence-approach .descriptor,
    .silence-approach__text {
        padding: 0 1.5rem;
    }

    .silence-approach__marquee {
        margin-bottom: 4rem;
    }

    .silence-approach__marquee-text {
        font-size: 6rem;
    }
}

/* Details + accordion */
.silence-details {
    position: relative;
    background: var(--surface-light);
    color: var(--text-primary);
}

.silence-details__panel {
    display: flex;
    align-items: stretch;
    gap: 4.5rem;
    /* [FIX] верхний отступ учитывает фиксированную шапку, иначе изображение упирается в неё */
    padding: calc(var(--header-bar-height) + 4rem) 120px 6rem 2rem;
    box-sizing: border-box;
}

/* Десктоп: панели лежат стопкой, секция пинится и GSAP переключает их по скроллу */
@media (min-width: 769px) {
    .silence-details {
        height: 100vh;
        overflow: hidden;
    }

    .silence-details__panel {
        position: absolute;
        inset: 0;
        height: 100%;
    }
}

.silence-details__image {
    flex: 0 0 50%;
    max-width: 44rem;
    align-self: stretch;
    overflow: hidden;
}

.silence-details__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.silence-details__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

.silence-details__intro .title--h2 {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.silence-details__accordion-block .subheading {
    display: block;
    margin-bottom: 4rem;
}

.silence-accordion {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.silence-accordion .ac {
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid var(--text-primary);
    background: transparent;
    box-sizing: border-box;
}

.silence-accordion .ac-header {
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.silence-accordion .ac-trigger {
    font: inherit;
    color: inherit;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.25rem 0;
    margin: 0;
    border: 0;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.silence-accordion .ac-trigger:focus {
    color: inherit;
}

.silence-accordion .ac-trigger::after,
.silence-accordion .ac.is-active > .ac-header .ac-trigger::after {
    content: none;
}

.silence-accordion__icon {
    position: relative;
    flex-shrink: 0;
    width: 0.8rem;
    height: 0.8rem;
}

.silence-accordion__icon-plus,
.silence-accordion__icon-minus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.silence-accordion__icon-minus {
    opacity: 0;
}

.silence-accordion .ac.is-active .silence-accordion__icon-plus {
    opacity: 0;
}

.silence-accordion .ac.is-active .silence-accordion__icon-minus {
    opacity: 1;
}

.silence-accordion .ac-panel .ac-text {
    font-family: 'Cygre', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 120%;
    letter-spacing: 0;
    color: var(--text-secondary);
    margin: 0;
    padding: 2rem 0;
    max-width: 60rem;
}

/* Двухколоночный контент внутри пункта «Стены» */
.silence-accordion__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
    padding: 2rem 0;
}

.silence-accordion__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.silence-accordion__col .body--m {
    margin: 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .silence-details__panel {
        flex-direction: column;
        padding: 4rem 20px;
        gap: 3rem;
    }

    .silence-accordion__columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .silence-details__image {
        flex: none;
        width: 100%;
        max-width: none;
        aspect-ratio: 3 / 4;
    }

    .silence-details__content {
        gap: 3rem;
    }
}

/* Hero */
.longevity-hero,
.longevity-hero.screen-section {
    position: relative;
    min-height: 100dvh;
    height: auto;
    color: var(--neutral-0);
    z-index: 2;
}

.longevity-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.longevity-hero__bg::before,
.longevity-hero__bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.longevity-hero__bg::before {
    top: 0;
    height: 35rem;
    background: linear-gradient(
        180deg,
        var(--surface-dark-60) 0%,
        transparent 100%
    );
}

.longevity-hero__bg::after {
    bottom: 0;
    height: 30rem;
    background: linear-gradient(180deg, transparent 0%, var(--surface-dark) 100%);
}

.longevity-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.longevity-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100dvh;
    padding: calc(var(--page-header-top) + 2rem) 2rem 6rem;
    box-sizing: border-box;
}

.longevity-hero__intro .body--l {
    margin-top: 1.5rem;
    max-width: 74rem;
}

@media (max-width: 768px) {
    .longevity-hero,
    .longevity-hero.screen-section {
        height: auto;
    }

    .longevity-hero__content {
        padding: var(--page-header-top) 1.5rem 4rem;
    }
}

/* Details panels */
.longevity-details {
    position: relative;
    background: var(--surface-light);
    color: var(--text-primary);
    width: 100%;
    max-width: 100%;
}

.longevity-details__panel {
    display: flex;
    align-items: stretch;
    gap: 4.5rem;
    /* [FIX] верхний отступ учитывает фиксированную шапку, иначе изображение упирается в неё */
    padding: calc(var(--header-bar-height) + 4rem) 120px 6rem 2rem;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .longevity-details {
        height: 100vh;
        overflow: hidden;
    }

    .longevity-details__panel {
        position: absolute;
        inset: 0;
        height: 100%;
    }
}

.longevity-details__image {
    flex: 0 0 50%;
    max-width: 44rem;
    align-self: stretch;
    overflow: hidden;
}

.longevity-details__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.longevity-details__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

.longevity-details__intro .title--h2 {
    max-width: 44rem;
    margin-bottom: 2rem;
}

.longevity-details__intro .body--l {
    max-width: 60rem;
    margin: 0;
    color: var(--text-secondary);
}

.longevity-details__fact {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    max-width: 60rem;
}

.longevity-details__fact-label {
    flex: 0 0 auto;
    align-self: flex-start;
}

.longevity-details__fact-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: var(--text-secondary);
}

.longevity-details__more {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.longevity-details__more .body--m {
    margin: 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .longevity-details__panel {
        flex-direction: column;
        padding: 4rem 20px;
        gap: 3rem;
    }

    .longevity-details__image {
        flex: none;
        width: 100%;
        max-width: none;
        aspect-ratio: 3 / 4;
    }

    .longevity-details__content {
        gap: 3rem;
    }

    .longevity-details__fact {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Hero */
.comfort-hero,
.comfort-hero.screen-section {
    position: relative;
    min-height: 100dvh;
    height: auto;
    color: var(--neutral-0);
    z-index: 2;
}

.comfort-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.comfort-hero__bg::before,
.comfort-hero__bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

.comfort-hero__bg::before {
    top: 0;
    height: 35rem;
    background: linear-gradient(
        180deg,
        var(--surface-dark-60) 0%,
        transparent 100%
    );
}

.comfort-hero__bg::after {
    bottom: 0;
    height: 30rem;
    background: linear-gradient(180deg, transparent 0%, var(--surface-dark) 100%);
}

.comfort-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comfort-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100dvh;
    padding: calc(var(--page-header-top) + 2rem) 2rem 6rem;
    box-sizing: border-box;
}
.comfort-hero__intro {
    min-width: 0;
    max-width: 100%;
}

.comfort-hero__intro .title--h1 {
    max-width: 100%;
    text-wrap: wrap;
    overflow-wrap: break-word;
}

.comfort-hero__title-br {
    display: block;
}
.comfort-hero__intro .body--l {
    margin-top: 1.5rem;
    max-width: 71rem;
    text-wrap: auto;
}

@media (max-width: 768px) {
    .comfort-hero,
    .comfort-hero.screen-section {
        height: auto;
    }

    .comfort-hero__content {
        padding: var(--page-header-top) 1.5rem 4rem;
    }

    .comfort-hero__title-br {
        display: none;
    }
}

/* Details panels */
.comfort-details {
    position: relative;
    background: var(--surface-light);
    color: var(--text-primary);
}

.comfort-details__panel {
    display: flex;
    align-items: stretch;
    gap: 4.5rem;
    /* [FIX] верхний отступ учитывает фиксированную шапку, иначе изображение упирается в неё */
    padding: calc(var(--header-bar-height) + 4rem) 120px 6rem 2rem;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .comfort-details {
        height: 100vh;
        overflow: hidden;
    }

    .comfort-details__panel {
        position: absolute;
        inset: 0;
        height: 100%;
    }
}

.comfort-details__image {
    flex: 0 0 50%;
    max-width: 44rem;
    align-self: stretch;
    overflow: hidden;
}

.comfort-details__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comfort-details__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
}

.comfort-details__intro .title--h2 {
    max-width: 44rem;
    margin: 0;
}

.comfort-details__intro--spaced .title--h2 {
    margin-bottom: 2rem;
}

.comfort-details__intro--spaced .body--m {
    margin: 0;
    max-width: 60rem;
    color: var(--text-primary);
}

.comfort-details__items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 60rem;
}

.comfort-details__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comfort-details__item .subheading {
    margin: 0;
}

.comfort-details__item .subheading,
.comfort-details__item .body--m,
.comfort-details__text .body--m,
.comfort-details__text .body--l {
    margin: 0;
    color: var(--text-primary);
    text-wrap: wrap;
}

.comfort-details__text {
    max-width: 60rem;
}

.comfort-details__text--tight {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.comfort-details__panel--community .comfort-details__content {
    max-width: 60rem;
}

.comfort-details__panel--community .comfort-details__intro .title--h2 {
    max-width: 60rem;
}

@media (max-width: 768px) {
    .comfort-details__panel {
        flex-direction: column;
        padding: 4rem 20px;
        gap: 3rem;
    }

    .comfort-details__image {
        flex: none;
        width: 100%;
        max-width: none;
        aspect-ratio: 3 / 4;
    }

    .comfort-details__content {
        gap: 3rem;
    }
}

/* Base */

/* Components */

/* Sections */


/* End */


/* Start:/local/templates/afril/template_styles.css?17870974034139*/
/*
 * Африл — перекрытия стилей компонентов Bitrix.
 *
 * Основные стили страницы приходят из собранного бандла css/<pageCss>.css,
 * который подключается в header.php через SetAdditionalCSS().
 * Этот файл Bitrix подключает автоматически на каждой странице шаблона —
 * держим здесь только правки под разметку компонентов Bitrix
 * (пагинация, формы, хлебные крошки и т.п.).
 */

/*
 * Сообщения формы обратной связи (bitrix:form.result.new, шаблон afril-feedback).
 *
 * В вёрстке этих блоков нет: макет показывает только «спокойный» сценарий, без
 * ошибок валидации и без экрана после отправки. Поэтому стили живут здесь, а не
 * в бандле — это ровно тот случай, под который заведён template_styles.css.
 *
 * Отступ 2rem повторяет padding-inline полей формы из contacts-page.css:
 * блоки стоят в той же карточке и должны попадать в общую сетку.
 */
:root {
    /* Красного в палитре проекта нет — цвет заведён здесь, только под ошибки формы. */
    --afril-form-error: #b3261e;
}

.afril-form-errors,
.afril-form-note {
    padding: 2rem;
}

.afril-form-errors {
    color: var(--afril-form-error);
    border-left: 0.2rem solid var(--afril-form-error);
}

.afril-form-errors p + p {
    margin-top: 0.8rem;
}

/* Поле, на которое ругнулся модуль form, подчёркиваем тем же цветом. */
.ui-input.is-invalid {
    border-bottom-color: var(--afril-form-error);
}

.afril-form-note .body--m {
    margin-top: 1.2rem;
    opacity: 0.6;
}

/*
 * Блочный редактор: изображение с мобильным вариантом выводится как
 * <picture><source media><img></picture> (Afril\Blocks\Render\Tpl::picture).
 *
 * Правило страховочное, а не исправляющее поломку. Проверено замером в браузере
 * на .silence-hero__bg и .longevity-details__image: без него раскладка НЕ едет.
 * Причина — `height: 100%` у картинки резолвится от ближайшего блочного
 * контейнера, а инлайновый <picture> им не является, поэтому проценты
 * по-прежнему считаются от обёртки. Зазора по базовой линии тоже не возникает:
 * у самой картинки стоит `display: block`.
 *
 * Держим правило потому, что эта устойчивость держится на текущем виде обёрток.
 * Если любая из них станет flex- или grid-контейнером, во flex-поток попадёт
 * инлайновый <picture>, а не <img>, и правила вида `img { height: 100% }`
 * перестанут работать. `display: contents` убирает <picture> из дерева
 * раскладки и делает такой переход безопасным заранее.
 *
 * Живёт здесь, а не в css/*.css: те бандлы собирает webpack из frontend/,
 * и правку затрёт следующей сборкой.
 *
 * Классы перечислены явно — они собираются из $base в hero.php и panels.php,
 * поэтому под звёздочку не подводятся.
 */
.about-page__bg picture,
.silence-hero__bg picture,
.comfort-hero__bg picture,
.longevity-details__image picture,
.comfort-details__image picture,
.silence-details__image picture {
    display: contents;
}

/* End */
/* /local/templates/afril/css/job.css?178730653271808 */
/* /local/templates/afril/template_styles.css?17870974034139 */
