/* Страница «re:Kassa в 1С» (ru/1c, kz/1c) */

.c1-h2 { font-size: 60px; font-weight: 500; line-height: 1; letter-spacing: -1.6px; }
.c1-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; line-height: 1; white-space: nowrap;
    transition: opacity .2s;
}
.c1-btn:hover { opacity: .85; }
.c1-btn--green { background: var(--c-green); color: #fff; }
.c1-btn--white { background: #fff; color: #000; }

/* ---------- первый экран ---------- */
.c1-hero { padding: calc(var(--header-h) + 106px) 0 0; color: #fff; text-align: center; }
.c1-hero h1 { max-width: 800px; margin: 0 auto; font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -1.6px; }
.c1-hero mark { display: inline-block; padding: 0 8px; background: var(--c-green); color: #fff; border-radius: 12px; }

/* карточки «для бухгалтеров / кассиров / предпринимателей»; на мобильном — карусель */
.personas { margin-top: 58px; padding-bottom: 200px; }
.personas__nav { display: none; }
.carousel__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.persona { text-align: center; }
.persona__frame {
    position: relative; margin-top: 88px; aspect-ratio: 380 / 249;
    border: 2px solid #fff; border-radius: 36px;
}
.persona__frame img {
    position: absolute; left: 0; right: 0; bottom: 0; width: 99%; height: auto; margin: 0 auto;
}
/* как в Tilda: при наведении фото приподнимается и увеличивается */
.persona__frame img { transform-origin: 50% 50%; transition: transform .5s; }
@media (hover: hover) {
    .persona__frame:hover img { transform: translateY(-22px) scale(1.16); }
}
.persona__label { margin-top: 23px; font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -.7px; }
.persona__label span { display: block; font-weight: 400; color: rgba(255, 255, 255, .75); }

/* ---------- интеграция: три круга ---------- */
.c1-integr { padding-bottom: 118px; color: #fff; text-align: center; }
.circles { display: flex; justify-content: center; gap: 12px; margin-top: 49px; }
.circle {
    display: flex; justify-content: center; width: 289px; aspect-ratio: 1; padding: 88px 14px 0; border-radius: 50%;
    background: #fff center / cover no-repeat;
    color: #000; font-size: 19px; font-weight: 500; line-height: 1;
}
.circle--1 { background-image: url('../img/6631-333-Frame_1349.svg'); }
.circle--2 { background-image: url('../img/6534-346-Frame_1347.svg'); }
.circle--3 { background-image: url('../img/6333-633-Frame_1350.svg'); }
.c1-integr .c1-btn { margin-top: 47px; height: 40px; }

/* ---------- виды интеграций ---------- */
.types { padding: 95px 0 96px; background: var(--c-bg); border-radius: 48px; }
.types__grid {
    display: grid; grid-template-columns: 473px minmax(0, 1fr); gap: 12px 23px;
    max-width: 1188px; margin: 0 auto;
}
.types__title { padding: 18px 0 0 24px; color: #000; }
.tcard {
    position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px;
    border-radius: 20px; background: center / cover no-repeat;
}
.tcard--free { min-height: 202px; background-color: #26545d; background-image: url('../img/3333-383-Frame_2087325841.svg'); color: #fff; }
.tcard--partner { min-height: 259px; background-color: #ff1957; background-image: url('../img/6633-386-Frame_2087325843.svg'); color: #fff; }
.tcard--consult { min-height: 259px; background: #fff; color: #000; }
.tcard__label { font-size: 14px; line-height: 1.2; opacity: .6; }
.tcard__list { margin-top: 10px; display: grid; gap: 11px; }
.tcard__list li { position: relative; padding-left: 26px; font-size: 28px; font-weight: 500; line-height: 1.04; letter-spacing: -.7px; }
.tcard__list li::before {
    content: ''; position: absolute; left: 4px; top: .42em; width: 9px; height: 9px; border-radius: 50%; background: currentColor;
}
.tcard__btns { display: flex; justify-content: flex-end; gap: 12px; margin-top: auto; padding-top: 24px; }
.tcard__contacts { margin-top: 14px; display: grid; gap: 12px; font-size: 14px; font-weight: 500; }
.tcard__contacts li { display: flex; align-items: center; gap: 6px; }
.tcard__contacts img { width: 24px; height: 24px; flex: none; }
.tcard__contacts a:hover { color: var(--c-teal); }
.tcard--consult .tcard__btns { justify-content: flex-start; }
.tcard--consult .c1-btn { padding: 0 18px; }

/* ---------- вопросы ---------- */
.c1-faq { padding: 220px 0 108px; color: #fff; }
.c1-faq .c1-h2 { text-align: center; }
.c1-faq .faq__list { max-width: 1060px; margin: 53px auto 0; }
.c1-faq .qa summary { font-size: 22px; line-height: 1.5; }
.c1-faq .qa__a { color: rgba(255, 255, 255, .75); }
.c1-faq .qa__a a { color: var(--c-orange); }
.c1-faq .qa__a a:hover { text-decoration: underline; }
.c1-faq .qa__a ul { padding-left: 20px; list-style: disc; }

/* ---------- попап «консультация партнёра» ---------- */
.c1-form { margin-top: 28px; display: grid; gap: 16px; }
.c1-form .field input {
    width: 100%; height: 56px; padding: 0 20px; border: 1px solid var(--c-green); border-radius: 5px;
    background: transparent; color: #fff; font-size: 16px; outline: none;
}
.c1-form .field input::placeholder { color: rgba(255, 255, 255, .5); }
.c1-form .field input:focus { border-width: 2px; padding: 0 19px; }
.c1-form .field--error input { border-color: #ff5a5a; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input {
    flex: none; width: 20px; height: 20px; margin: 1px 0 0; appearance: none; -webkit-appearance: none;
    border: 2px solid var(--c-green); border-radius: 0; cursor: pointer;
}
.check input:checked { background: var(--c-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23003837' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.check a { color: var(--c-green); }
.check a:hover { text-decoration: underline; }
.check.field--error input { border-color: #ff5a5a; }
.c1-form .btn { width: 100%; height: 56px; border-radius: 5px; background: var(--c-green); font-size: 16px; font-weight: 600; }
.c1-form .btn:hover { background: #00cf67; }
.c1-form .btn[disabled] { opacity: .6; cursor: default; }
.c1-form .form-msg--error { color: #ff7a7a; }
.popup .form-done { min-height: 220px; }

/* ---------- адаптив ---------- */
@media (max-width: 1199px) {
    .c1-hero h1 { font-size: 52px; }
    .c1-h2 { font-size: 48px; }
    .persona__label { font-size: 22px; }
    .circle { width: 240px; padding-top: 72px; font-size: 16px; }
    .types__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .tcard__list li { font-size: 24px; }
}
@media (max-width: 959px) {
    .c1-hero h1 { font-size: 40px; }
    .personas { padding-bottom: 120px; }
    .carousel__track { gap: 14px; }
    .persona__frame { margin-top: 60px; border-radius: 24px; }
    .persona__label { font-size: 18px; }
    .circle { width: 200px; padding: 58px 10px 0; font-size: 14px; }
    .types { border-radius: 32px; }
    .types__grid { grid-template-columns: minmax(0, 1fr); }
    .types__title { padding: 0 0 12px 8px; }
    .tcard--consult { order: 1; }
}
@media (max-width: 639px) {
    .c1-hero { padding-top: calc(var(--header-h) + 40px); }
    .c1-hero h1 { font-size: 26px; letter-spacing: -.5px; }
    .c1-hero mark { padding: 0 4px; border-radius: 6px; }

    .personas { position: relative; margin-top: 26px; padding-bottom: 96px; }
    .personas__nav { display: flex; justify-content: center; gap: 10px; }
    .personas__nav button {
        width: 35px; height: 35px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
        background: #194847 center / 40px no-repeat;
    }
    .personas__nav [data-dir="-1"] { background-image: url('../img/6335-373-left.svg'); }
    .personas__nav [data-dir="1"] { background-image: url('../img/3134-613-right.svg'); }
    .carousel__track {
        display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 calc(-1 * var(--gutter));
    }
    .carousel__track::-webkit-scrollbar { display: none; }
    .persona { flex: 0 0 100%; padding: 0 calc(var(--gutter) + 16px); scroll-snap-align: center; }
    .persona__frame { margin-top: 64px; border-radius: 20px; }
    .persona__label { margin-top: 20px; font-size: 16px; }

    .c1-h2 { font-size: 22px; letter-spacing: -.5px; }
    .c1-integr { padding-bottom: 60px; }
    .circles { gap: 6px; margin-top: 24px; }
    .circle { width: calc((100% - 12px) / 3); max-width: 120px; padding: 30px 5px 0; font-size: 10px; line-height: 1.1; }
    .c1-integr .c1-btn { width: 150px; height: 32px; margin-top: 24px; font-size: 12px; }

    .types { padding: 46px 0 50px; border-radius: 24px; }
    .types__title { padding: 0 0 12px 12px; }
    .tcard { padding: 24px 22px 22px; }
    .tcard--free, .tcard--partner, .tcard--consult { min-height: 0; }
    .tcard__label { font-size: 12px; }
    .tcard__list li { padding-left: 22px; font-size: 20px; letter-spacing: -.5px; }
    .tcard__list li::before { width: 7px; height: 7px; }
    .tcard__btns { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
    .tcard__contacts { font-size: 12px; }

    .c1-faq { padding: 90px 0 60px; }
    .c1-faq .faq__list { margin-top: 28px; }
    .c1-faq .qa summary { font-size: 15px; }

    .popup__box { padding: 46px 20px 26px; }
    .popup__title { font-size: 20px; }
    .c1-form .field input { height: 50px; }
}
