.new-client {
    background: url(../img/ico-new-client.svg) no-repeat
}

.ico-sale {
    background: url(../img/ico-sale.svg) no-repeat
}

.ico-24h {
    background: url(../img/ico-feedback.svg) no-repeat
}

.ico-feedback {
    background: url(../img/ico-24h.svg) no-repeat
}

.grey-wrapper {
    background: #f2f2f1;
    padding: 50px 0 75px;
}

.why-first {
    padding: 0
}

.why-first p {
    display: inline-block;
    width: 45%;
    min-height: 50px;
    padding-left: 75px;
    margin-left: 25px;
    box-sizing: border-box;
    background-size: 50px;
    float: left
}

@media screen and (max-width: 640px) {
    .why-first p {
        width: 99%;
        margin-left: 10px;
        padding-left: 70px
    }
}

.why-second {
    height: 100%;
    padding: 0;
}

.why-second p {
    background: url(../img/ico-arrows.svg) 10px no-repeat;
    box-sizing: border-box;
    background-size: 15px;
    padding: 0 0 0 45px;
    margin-bottom: 20px
}

.why-second p:last-child {
    margin-bottom: 0
}

.img-box {
    width: 40vw;
    overflow: hidden;
    float: left
}

.img-box img {
    min-width: 40vw
}

/* ============================================
   Стилі заголовків секції проєктів
   ============================================ */

/* Заголовок секції "Наші останні проєкти" */
.projects-heading {
    color: #fff;
    font: 300 30px Roboto, sans-serif;
    text-transform: uppercase;
    /* margin: -40px 0 15px; */
    /* padding-top: 85px; */
    margin-top: 0;
    background-clip: content-box;
    display: block
}

/* Підзаголовок категорії (Мобільні додатки / Веб-проєкти) */
.projects-subheading {
    text-align: right;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .65);
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.3px
}

/* ============================================
   Сітка каталогу додатків (CSS Grid)
   ============================================ */

/* Контейнер каталогу — Flexbox для можливості центрування останнього ряду */
.app-catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-top: 20px
}

.app-catalog .app-card {
    width: calc(33.333% - 16px); /* 3 колонки (24px * 2 / 3 = 16px) */
    flex-grow: 0;
    flex-shrink: 0
}

/* Планшет — 2 колонки */
@media screen and (max-width: 1023px) {
    .app-catalog {
        gap: 20px
    }
    .app-catalog .app-card {
        width: calc(50% - 10px) /* 2 колонки (20px / 2 = 10px) */
    }
}

/* Мобільний — 1 колонка */
@media screen and (max-width: 640px) {
    .app-catalog {
        gap: 16px
    }
    .app-catalog .app-card {
        width: 100%
    }
}

/* ============================================
   Картка додатку (.app-card)
   ============================================ */

/* Картка — біла, заокруглена, з тінню та hover-ефектом */
.app-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column
}

/* Hover — картка піднімається вгору і тінь посилюється */
.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .25)
}

/* ============================================
   Зображення картки
   ============================================ */

/* Контейнер зображення — фіксована висота, обрізання */
.app-card__image {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 240px;
    position: relative;
    background: #0a0a0a
}

/* М'яка тінь знизу зображення для розділення з контентом */
.app-card__image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, .2), transparent);
    pointer-events: none;
    z-index: 1
}

/* Зображення — заповнює контейнер, обрізається */
.app-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease
}

/* Hover — легке збільшення зображення */
.app-card:hover .app-card__image img {
    transform: scale(1.04)
}

/* ============================================
   Контент картки (назва, опис, кнопки)
   ============================================ */

/* Контейнер контенту — flex-column з вирівнюванням */
.app-card__content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center
}

/* Назва додатку */
.app-card__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3
}

/* Опис додатку */
.app-card__description {
    margin: 0 0 16px;
    font-size: 14px;
    color: #6b7c8d;
    line-height: 1.5;
    flex-grow: 1
}

/* ============================================
   Кнопки-посилання на маркети
   ============================================ */

/* Контейнер кнопок — flex-wrap */
.app-card__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: auto
}

/* Базовий стиль кнопки-посилання */
.app-card__store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    line-height: 1
}

/* Hover кнопки — легке збільшення */
.app-card__store-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2)
}

/* Active кнопки — натискання */
.app-card__store-btn:active {
    transform: scale(0.97)
}

/* Кнопка App Store — темна */
.app-card__store-btn--appstore {
    background: #1a1a2e;
    color: #fff
}

/* Кнопка Google Play — градієнт */
.app-card__store-btn--google {
    background: linear-gradient(135deg, #00c853, #009688);
    color: #fff
}

/* Кнопка Веб-версія — бірюзова */
.app-card__store-btn--web {
    background: rgba(0, 159, 147, .9);
    color: #fff
}

/* Кнопка неактивна — сіра, без взаємодії */
.app-card__store-btn--disabled {
    background: #bdc3c7 !important;
    color: #ffffff !important;
    pointer-events: none;
    cursor: default;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.8
}

/* SVG іконки в кнопках */
.app-card__store-btn svg {
    flex-shrink: 0
}

/* ============================================
   Веб-проєкти — адаптація каталогу
   ============================================ */

/* Веб-каталог — 2 колонки на ПК */
.app-catalog--web {
    grid-template-columns: repeat(2, 1fr)
}

/* Веб-каталог — 1 колонка на мобільному */
@media screen and (max-width: 640px) {
    .app-catalog--web {
        grid-template-columns: 1fr
    }
}

/* Зображення веб-проєкту — менша висота */
.app-card--web .app-card__image {
    height: 180px
}

/* ============================================
   Адаптивність карток
   ============================================ */

@media screen and (max-width: 640px) {
    /* Менша висота зображення на мобільних */
    .app-card__image {
        height: 200px
    }

    /* Менший padding контенту */
    .app-card__content {
        padding: 14px 16px 16px
    }

    /* Менший шрифт заголовку */
    .app-card__title {
        font-size: 15px
    }

    /* Менший шрифт опису */
    .app-card__description {
        font-size: 13px
    }

    /* Заголовок секції — менший розмір */
    .projects-heading {
        font-size: 25px
    }
}

/* .order-form {
    padding: 50px 0 75px;
} */

.order-form .down-title {
    text-transform: none;
    padding-top: 10px;
    font-weight: 300
}

.buy-form {
    padding: 0 0 10px 10px
}

.buy-form ul {
    list-style: none;
    padding: 0
}

.buy-form ul input, .buy-form ul textarea {
    resize: none;
    border: 1px solid #a9a9a9;
    border-left: 5px solid #a9a9a9;
    padding: 6px 10px;
    width: 100%;
    font: 17px Roboto, sans-serif;
    color: #a9a9a9;
    outline: none;
    box-sizing: border-box
}

.buy-form ul li {
    margin-bottom: 20px
}

.buy-form ul label {
    margin-bottom: 7px;
    display: block
}

.our-projects {
    background: rgba(0, 159, 147, .9)
}

.footer {
    background-color: #191f21;
    padding: 50px 0 75px;
    text-align: center
}

.contact-link {
    margin-bottom: 25px
}

.copyright {
    font-size: 14px;
    width: 90vw;
    margin: 0 auto;
    padding: 9px 5px;
    border-top: 1px solid #2d2d2d
}

.footer-call, .footer-message, .footer-social {
    width: 210px;
    height: 47px;
    box-sizing: border-box;
    display: inline-block;
    position: relative;
    padding-left: 60px;
    text-align: left;
    margin: 0 15px 25px;
    vertical-align: top
}

.footer-call a, .footer-message a, .footer-social a {
    color: #b1b1b1;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s ease
}

.footer-call a:hover, .footer-message a:hover, .footer-social a:hover {
    color: #fff
}

.footer-call a:before {
    left: -1px;
    background: 5px 5px url(../img/ico-call.svg) no-repeat
}

.footer-call a:before, .footer-message a:before, .footer-social a:before {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    top: -3px
}

.footer-message a:before {
    left: 0;
    background: url(../img/ico-message2.svg) no-repeat
}

.footer-social a:before {
    left: -1px;
    background: url(../img/telegram_logo.svg) no-repeat;
    background-size: contain
}

.center {
    vertical-align: top;
    display: inline-block;
    width: 50%
}

@-webkit-keyframes a {
    0% {
        -webkit-transform: perspective(400px) rotateX(90deg);
        transform: perspective(400px) rotateX(90deg);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        opacity: 0
    }
    40% {
        -webkit-transform: perspective(400px) rotateX(-20deg);
        transform: perspective(400px) rotateX(-20deg);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in
    }
    60% {
        -webkit-transform: perspective(400px) rotateX(10deg);
        transform: perspective(400px) rotateX(10deg);
        opacity: 1
    }
    80% {
        -webkit-transform: perspective(400px) rotateX(-5deg);
        transform: perspective(400px) rotateX(-5deg)
    }
    to {
        -webkit-transform: perspective(400px);
        transform: perspective(400px)
    }
}

@keyframes a {
    0% {
        -webkit-transform: perspective(400px) rotateX(90deg);
        transform: perspective(400px) rotateX(90deg);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        opacity: 0
    }
    40% {
        -webkit-transform: perspective(400px) rotateX(-20deg);
        transform: perspective(400px) rotateX(-20deg);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in
    }
    60% {
        -webkit-transform: perspective(400px) rotateX(10deg);
        transform: perspective(400px) rotateX(10deg);
        opacity: 1
    }
    80% {
        -webkit-transform: perspective(400px) rotateX(-5deg);
        transform: perspective(400px) rotateX(-5deg)
    }
    to {
        -webkit-transform: perspective(400px);
        transform: perspective(400px)
    }
}

.flipInX {
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    -webkit-animation-name: a;
    animation-name: a
}

@-webkit-keyframes b {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0)
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

@keyframes b {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0)
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

.fadeInDown {
    -webkit-animation-name: b;
    animation-name: b
}

@-webkit-keyframes c {
    0% {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes c {
    0% {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.fadeIn {
    -webkit-animation-name: c;
    animation-name: c
}

@-webkit-keyframes d {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0)
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

@keyframes d {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0)
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

.fadeInUp {
    -webkit-animation-name: d;
    animation-name: d
}

@-webkit-keyframes e {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0)
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

@keyframes e {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0)
    }
    to {
        opacity: 1;
        -webkit-transform: none;
        transform: none
    }
}

.fadeInLeft {
    -webkit-animation-name: e;
    animation-name: e
}

@media screen and (max-width: 610px) {
    .mobile {
        display: block !important;
        font-size: .9em
    }
}

@media screen and (max-width: 725px) {
    .center {
        text-align: center;
        display: block;
        width: 100%
    }
}