/* Светлая «чистая» тема и новые блоки (подключается после main.css) */

:root {
    --bg: #FFFFFF;
    --soft: #F3F5F9;
    --soft-2: #E9EDF4;
    --text: #141B2B;
    --muted: #5E6676;
    --accent: #3C6EC3;
    --accent-dark: #2F5AA6;
    --accent-soft: #E3ECFA;
    --dark: #18273D;
    --border: #E3E7EE;
    --radius: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
}

h1, h2, h3 {
    color: var(--text);
}

h2 {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Шапка */
header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 var(--border);
    backdrop-filter: blur(8px);
    padding: 14px 20px;
}

header a,
.header-right,
.header-wrap {
    color: var(--text);
}

header .menu a {
    font-size: 16px;
}

.menu a:hover {
    color: var(--accent);
}

/* Белый логотип перекрашиваем в фирменный тёмно-синий */
header .logo {
    filter: brightness(0) invert(13%) sepia(30%) saturate(1400%) hue-rotate(185deg) brightness(92%);
    width: 200px;
}

.phone-icon {
    filter: brightness(0) invert(13%) sepia(30%) saturate(1400%) hue-rotate(185deg) brightness(92%);
}

.header-right {
    gap: 20px;
    font-size: 16px;
}

.hamburger span {
    background: var(--text);
}

/* Кнопки: основная тёмная, акцентная синяя */
.btn {
    background: var(--dark);
    color: #fff;
    border-radius: 10px;
    transition: background ease 0.3s, transform ease 0.3s;
}

.btn:hover {
    background-color: #0E1828;
    color: #fff;
}

.btn-form {
    color: #fff;
}

.btn-form svg path {
    fill: #fff;
}

/* Первый экран */
#first {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 110px 0 60px;
    background: var(--bg);
    color: var(--text);
}

.hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 40px 30px 0;
}

.first-tag {
    font-size: 16px;
    color: var(--muted);
    padding-bottom: 20px;
}

#first h1 {
    color: var(--text);
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    padding-bottom: 18px;
}

#first .h1-accent {
    color: var(--accent);
}

.first-sub {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.25;
    color: var(--text);
    padding-bottom: 20px;
}

.first-desc {
    max-width: 600px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--muted);
    padding-bottom: 26px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 34px;
}

.hero-pill {
    padding: 9px 16px;
    border-radius: 20px;
    background: var(--soft);
    font-size: 14px;
    color: var(--text);
}

.hero-pill-accent {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-photo {
    flex: 1;
    min-height: 300px;
    border-radius: var(--radius);
    background: url('../img/bg-main.jpg') 70% center / cover no-repeat;
}

.hero-card {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 30px 30px;
}

.hero-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 10px;
}

.hero-card-title {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 22px;
    line-height: 1.2;
}

.hero-card-tag {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
}

.hero-card p:not(.hero-card-title) {
    font-size: 15px;
    line-height: 1.45;
    color: #DCE6F8;
    padding-bottom: 20px;
}

.hero-card .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hero-fact {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background ease 0.3s;
}

.hero-fact:hover {
    background: var(--soft-2);
}

.hero-fact-num {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 34px;
    color: var(--accent);
    padding-bottom: 14px;
}

.hero-fact-title {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
}

.hero-fact p:not(.hero-fact-title) {
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
}

/* Услуги */
#services {
    background: var(--soft);
    border-radius: 0;
    padding: 110px 0;
}

#services h2 {
    color: var(--text);
}

.services-items {
    gap: 12px;
    padding-bottom: 0;
}

.services-item {
    width: calc(25% - 9px);
    height: auto;
    min-height: 360px;
    background: var(--bg);
    border: 0;
    border-radius: var(--radius);
    padding: 28px;
    transition: transform ease 0.3s, box-shadow ease 0.3s;
}

.services-item h3 {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 22px;
    line-height: 1.2;
}

.services-item p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.services-item:hover {
    background: var(--bg);
    color: var(--text);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(20, 27, 43, 0.08);
}

.services-item:hover h3 {
    color: var(--text);
}

.services-item:hover p {
    color: var(--muted);
}

.services-item:hover .svg-dynamic {
    fill: #3C6EC4;
}

.services-item:hover .svg-dynamic2 {
    fill: #EAEDFD;
}

.services-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
}

/* Этапы: четыре карточки в ряд */
#steps {
    background: var(--bg);
    color: var(--text);
    padding: 110px 0 60px;
}

.steps-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 20px;
}

.step-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    padding: 28px;
    border: 0;
    border-radius: var(--radius);
    background: var(--soft);
    font-size: 16px;
    line-height: 1.5;
    color: var(--muted);
    transition: background ease 0.3s;
}

.step-item:hover {
    border: 0;
    background: var(--soft-2);
}

.step-num {
    font-size: 15px;
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--bg);
    min-width: 0;
}

.step-item:hover .step-num {
    color: var(--accent);
}

#steps a, .step-bold {
    color: var(--text);
}

/* О компании */
#about {
    color: var(--text);
    padding: 60px 0 110px;
}

.about-left p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.about-number {
    background: var(--soft);
    border: 0;
    border-radius: var(--radius);
}

.about-number:hover {
    background: var(--soft-2);
}

.about-number span {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 38px;
}

.about-number p {
    color: var(--muted);
}

.about-img {
    border-radius: var(--radius);
}

/* Призыв: синяя карточка на всю ширину */
#blue {
    background: var(--bg);
    border-radius: 0;
    padding: 0 0 110px;
    text-align: left;
}

.blue-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: var(--accent);
    border-radius: var(--radius);
    padding: 60px;
    box-sizing: border-box;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.blue-texts {
    max-width: 760px;
    gap: 14px;
}

.blue-head {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 36px;
    line-height: 1.15;
}

.blue-desc {
    font-size: 17px;
    line-height: 1.5;
    color: #DCE6F8;
}

#blue h2,
.blue-texts {
    color: #fff;
}

#blue .btn {
    flex-shrink: 0;
    color: var(--text);
    background: #fff;
}

#blue .btn:hover {
    background: #E3EAF7;
}

/* Клиенты */
#brands {
    background: var(--soft);
    padding: 110px 0;
}

#brands h2 {
    color: var(--text);
}

.logos p {
    background: var(--bg);
    border: 0;
    border-radius: 30px;
    color: var(--text);
}

/* Преимущества: прежние тёмно-синие карточки, только скругления */
#benefits {
    padding-top: 110px;
}

.benefits-item {
    border-radius: var(--radius);
}

.benefits-item img {
    border-radius: 12px;
}

/* Форма: синяя карточка */
#form {
    padding-bottom: 110px;
}

#form > .grid {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 60px;
    box-sizing: border-box;
    width: calc(100% - 40px);
    margin: 0 auto;
}

#form h2 {
    color: #fff;
    max-width: 820px;
    font-size: 36px;
}

p.conf,
p.conf a {
    color: #DCE6F8;
}

.callback-form input,
.callback-form textarea {
    background: #fff;
    border: 0;
    border-radius: 10px;
    color: var(--text);
}

.callback-form input:focus,
.callback-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

input::placeholder, textarea::placeholder {
    color: #8A93A6;
}

.callback-form button {
    color: #fff;
}

/* Попапы */
.overlay {
    background-color: rgba(20, 27, 43, 0.55);
}

.popup-content {
    background-color: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
}

#popup05 .popup-img {
    background-image: url('../img/marketplace2.jpg');
}

/* Блок «Центр поддержки предпринимательства»: слева закреплённый рассказ, справа направления карточками */
#cpp {
    display: flex;
    flex-direction: column;
    padding: 110px 0;
    background: var(--bg);
}

.cpp-top {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    align-items: start;
}

.cpp-intro {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cpp-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 14px;
    margin-bottom: 20px;
}

#cpp h2 {
    padding-bottom: 20px;
}

.cpp-lead {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    padding-bottom: 30px;
}

.cpp-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 22px 0;
    margin-bottom: 30px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cpp-contacts a {
    color: var(--text);
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    transition: color ease 0.3s;
}

.cpp-contacts a:hover {
    color: var(--accent);
}

.cpp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.cpp-link {
    color: var(--accent);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cpp-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cpp-item {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background ease 0.3s;
}

.cpp-item:hover {
    background: var(--soft-2);
}

.cpp-item-num {
    align-self: flex-start;
    padding: 5px 11px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: var(--bg);
    color: var(--accent);
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
}

.cpp-item-title {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
}

.cpp-item p:not(.cpp-item-title) {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.45;
}

.cpp-item-head {
    background: var(--dark);
    color: #fff;
    justify-content: flex-end;
}

.cpp-item-head:hover {
    background: var(--dark);
}

.cpp-item-head .cpp-item-title {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.cpp-item-head p:not(.cpp-item-title) {
    color: #B9C4D8;
}

.cpp-digital {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 40px;
    margin-top: 12px;
    padding: 50px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
}

.cpp-digital-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cpp-digital h3 {
    color: #fff;
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
}

.cpp-digital-text p {
    color: #DCE6F8;
    font-size: 16px;
    padding-bottom: 30px;
}

.cpp-digital .btn {
    margin-top: auto;
    background: #fff;
    color: var(--text);
}

.cpp-digital .btn:hover {
    background: #E3EAF7;
}

.cpp-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cpp-tile {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background ease 0.3s;
}

.cpp-tile:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cpp-tile-title {
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
}

.cpp-tile p {
    font-size: 14px;
    color: #DCE6F8;
    line-height: 1.4;
}

/* О компании: без группового фото, цифры под текстом, фото справа на всю высоту */
.about-left .about-numbers {
    height: auto;
    margin-top: auto;
    padding-top: 20px;
}

.about-left .about-number {
    height: auto;
    gap: 30px;
}

.about-right .about-img {
    height: 100%;
    min-height: 475px;
}

@media screen and (max-width: 1430px) {
    #first h1 {
        font-size: 50px;
    }

    header .menu {
        gap: 22px;
    }
}

@media screen and (max-width: 1150px) {
    header .header-btn {
        display: none;
    }

    .hero-main {
        grid-template-columns: 1fr;
    }

    .hero-text {
        padding: 10px 0 20px;
    }

    .hero-photo {
        min-height: 340px;
    }


    .services-item {
        width: calc(50% - 6px);
    }

    .steps-items {
        grid-template-columns: 1fr 1fr;
    }

    .blue-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .cpp-top,
    .cpp-digital {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cpp-intro {
        position: static;
    }

    .cpp-digital .btn {
        margin-top: 0;
    }

    /* Раньше на узких экранах вместо этого фото показывалось групповое */
    .about-right .about-img3 {
        display: block;
        min-height: 380px;
    }
}

@media screen and (max-width: 768px) {
    h2 {
        font-size: 30px;
    }

    header .logo {
        width: 170px;
    }

    #first {
        padding: 90px 0 40px;
    }

    #first h1 {
        font-size: 36px;
    }

    .first-tag {
        font-size: 14px;
        padding-bottom: 14px;
    }

    .first-sub {
        font-size: 21px;
    }

    .first-desc {
        font-size: 16px;
    }

    .hero-pills {
        padding-bottom: 26px;
    }

    #first .btn1 {
        width: 100%;
        white-space: nowrap;
    }

    .hero-photo {
        min-height: 220px;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-card-head {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .hero-card-title {
        font-size: 20px;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .hero-fact {
        padding: 20px;
    }

    .hero-fact-num {
        font-size: 28px;
        padding-bottom: 8px;
    }

    .hero-fact-title {
        font-size: 15px;
    }

    #services,
    #cpp,
    #brands {
        padding: 70px 0;
    }

    #steps {
        padding: 70px 0 40px;
    }

    #about {
        padding: 40px 0 70px;
    }

    .services-item {
        width: 100%;
        min-height: 0;
        padding: 22px;
    }

    .steps-items {
        grid-template-columns: 1fr;
    }

    .step-item {
        gap: 20px;
        padding: 22px;
    }

    #blue {
        padding-bottom: 70px;
    }

    .blue-wrap,
    #form > .grid {
        padding: 30px 22px;
    }

    .blue-head,
    #form h2 {
        font-size: 26px;
    }

    #benefits {
        padding-top: 70px;
    }

    #form {
        padding-bottom: 70px;
    }

    .cpp-items,
    .cpp-tiles {
        grid-template-columns: 1fr;
    }

    .cpp-item {
        padding: 22px;
    }

    .cpp-item-num {
        margin-bottom: 8px;
    }

    .cpp-digital {
        padding: 30px 22px;
    }

    .cpp-digital h3 {
        font-size: 28px;
    }

    .about-right .about-img {
        height: 320px;
        min-height: 320px;
        background-position: center 20%;
    }
}

/* Отступы между блоками: 100px. Белые блоки идут друг за другом с отступом сверху,
   а блоки на сером фоне и те, что стоят перед ними, получают отступ и снизу */
#services,
#cpp,
#steps,
#about,
#blue,
#brands,
#benefits,
#form {
    padding-top: 100px;
    padding-bottom: 0;
}

#first {
    padding-bottom: 100px;
}

#services,
#blue,
#brands,
#form {
    padding-bottom: 100px;
}

#services h2,
#steps h2,
#about h2,
#brands h2,
#benefits h2 {
    padding-bottom: 40px;
}

.brands-wrap,
.steps-items,
.about-content,
.benefits-items,
.form-btns {
    margin-top: 0;
    padding-top: 0;
}

@media screen and (max-width: 768px) {
    #services,
    #cpp,
    #steps,
    #about,
    #blue,
    #brands,
    #benefits,
    #form {
        padding-top: 60px;
    }

    #first,
    #services,
    #blue,
    #brands,
    #form {
        padding-bottom: 60px;
    }

    #services h2,
    #steps h2,
    #about h2,
    #brands h2,
    #benefits h2 {
        padding-bottom: 28px;
    }
}

/* Кнопка со стрелкой: при наведении кружок со стрелкой перескакивает справа налево */
.btn-arrow {
    --btn-bg: var(--dark);
    --btn-fg: #fff;
    --btn-h: 56px;
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: var(--btn-fg);
    font-family: 'Onest', Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    text-decoration: none;
}

.btn-arrow-text {
    display: flex;
    align-items: center;
    height: var(--btn-h);
    padding: 0 30px;
    border-radius: 100px;
    background: var(--btn-bg);
    white-space: nowrap;
}

.btn-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--btn-h);
    height: var(--btn-h);
    border-radius: 50%;
    background: var(--btn-bg);
    overflow: hidden;
    transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1), margin 0.45s cubic-bezier(0.65, 0, 0.35, 1), transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-arrow-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-arrow-start {
    width: 0;
    margin-right: 0;
    transform: scale(0);
}

.btn-arrow-end {
    margin-left: 4px;
}

.btn-arrow:hover .btn-arrow-start,
.btn-arrow:focus-visible .btn-arrow-start {
    width: var(--btn-h);
    margin-right: 4px;
    transform: scale(1);
}

.btn-arrow:hover .btn-arrow-end,
.btn-arrow:focus-visible .btn-arrow-end {
    width: 0;
    margin-left: 0;
    transform: scale(0);
}

.btn-arrow-light {
    --btn-bg: #fff;
    --btn-fg: var(--text);
}

.btn-arrow-wide {
    width: 100%;
}

.btn-arrow-wide .btn-arrow-text {
    flex: 1;
    justify-content: center;
}

.cpp-digital .btn-arrow {
    margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
    .btn-arrow-icon {
        transition: none;
    }
}

@media screen and (max-width: 1150px) {
    .cpp-digital .btn-arrow {
        margin-top: 0;
    }
}

@media screen and (max-width: 768px) {
    .btn-arrow {
        --btn-h: 52px;
        font-size: 16px;
    }

    .btn-arrow-text {
        padding: 0 24px;
    }

    #first .btn-arrow {
        width: 100%;
    }

    #first .btn-arrow .btn-arrow-text {
        flex: 1;
        justify-content: center;
    }
}

/* Остальные кнопки в том же стиле */
button.btn-arrow {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.callback-form button.btn-arrow {
    width: max-content;
    color: var(--btn-fg);
}

.callback-form button.btn-arrow-wide {
    width: 100%;
}

.btn-arrow-sm {
    --btn-h: 44px;
    font-size: 15px;
}

.btn-arrow-sm .btn-arrow-text {
    padding: 0 20px;
}

.btn-arrow-sm .btn-arrow-icon svg {
    width: 18px;
    height: 18px;
}

.btn-arrow-glass {
    --btn-bg: rgba(255, 255, 255, 0.16);
    --btn-fg: #fff;
}

.btn-arrow-soft {
    --btn-bg: var(--accent-soft);
    --btn-fg: var(--accent-dark);
}

.btn-arrow-text,
.btn-arrow-icon {
    transition-property: width, margin, transform, background-color;
}

.btn-arrow-glass:hover {
    --btn-bg: rgba(255, 255, 255, 0.26);
}

/* В карточке услуги стрелка срабатывает при наведении на всю карточку */
.services-item .btn-more {
    align-self: flex-start;
    justify-content: flex-start;
    padding: 0;
    background: none;
}

.services-item:hover .btn-more .btn-arrow-start {
    width: var(--btn-h);
    margin-right: 4px;
    transform: scale(1);
}

.services-item:hover .btn-more .btn-arrow-end {
    width: 0;
    margin-left: 0;
    transform: scale(0);
}

.form-btns .btn-arrow {
    flex: 1;
    width: auto;
}

.form-btns .btn-arrow .btn-arrow-text {
    flex: 1;
    justify-content: center;
}

.form-btn-row {
    align-items: center;
}

@media screen and (max-width: 768px) {
    .form-btns {
        flex-direction: column;
    }

    .form-btns .btn-arrow {
        width: 100%;
    }

    .form-btn-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .callback-form button.btn-arrow {
        width: 100%;
    }

    .callback-form button.btn-arrow .btn-arrow-text {
        flex: 1;
        justify-content: center;
    }
}

.services-item:hover .btn-more {
    color: var(--btn-fg);
}

#form h2 {
    padding-bottom: 36px;
}

@media screen and (max-width: 768px) {
    #form h2 {
        padding-bottom: 24px;
    }
}

.btn-form.btn-arrow svg {
    position: static;
}

/* Пять плиток: последняя занимает две ячейки, чтобы ряд был заполнен */
@media screen and (min-width: 769px) {
    .cpp-tile:nth-child(5):last-child {
        grid-column: span 2;
    }
}
