@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #0b85da;
    --brand-dark: #0672bd;
    --brand-soft: #eef8ff;
    --dark: #080808;
    --text: #1f2933;
    --muted: #5f6673;
    --white: #ffffff;
    --gray-bg: #f7f8fa;
    --border: #e2e5e9;
    --radius-lg: 32px;
    --radius-xl: 40px;
    --container: 1536px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

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

.home-hero {
    width: 100%;
    padding: 88px 0 20px;
    background: var(--gray-bg);
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

.home-hero__container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.home-hero__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.home-hero__slider {
    grid-column: span 3;
    position: relative;
    min-width: 0;
}

.home-hero__slides {
    position: relative;
    min-height: 540px;
}

.home-hero__slide {
    display: none;
    grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.28fr);
    gap: 40px;
    align-items: center;
    min-height: 540px;
}

.home-hero__slide.is-active {
    display: grid;
    animation: heroFade 0.45s ease both;
}

.home-hero__content {
    padding-bottom: 96px;
}

.home-hero__content h1 {
    margin: 0;
    max-width: 600px;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.055em;
    color: var(--dark);
}

.home-hero__content p {
    margin: 28px 0 0;
    max-width: 620px;
    font-size: clamp(17px, 1.34vw, 22px);
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--muted);
}

.home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 300px;
    margin-top: 44px;
    padding: 18px 34px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: 0.25s ease;
}

.home-hero__button:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.home-hero__button svg,
.home-hero__contact-button svg,
.home-hero__arrow svg,
.home-hero__contact-icon svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.home-hero__button path,
.home-hero__contact-button path,
.home-hero__arrow path,
.home-hero__contact-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-hero__image {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--brand-soft);
}

.home-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__controls {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.home-hero__arrow {
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d9dde3;
    border-radius: 999px;
    background: var(--white);
    color: #252525;
    cursor: pointer;
    transition: 0.25s ease;
}

.home-hero__arrow:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

.home-hero__arrow.is-active-arrow {
    border-color: #111111;
}

.home-hero__counter {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-width: 94px;
    font-size: 22px;
    font-weight: 500;
    color: #737780;
    letter-spacing: -0.03em;
}

.home-hero__counter strong {
    font-size: 27px;
    font-weight: 700;
    color: #111111;
}

.home-hero__contact-card {
    grid-column: span 1;
    position: relative;
    min-height: 540px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--brand);
    color: var(--white);
    overflow: hidden;
}

.home-hero__contact-card::before {
    content: "";
    position: absolute;
    top: -74px;
    right: -72px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.home-hero__contact-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-bottom: 112px;
}

.home-hero__contact-photo {
    width: 100px;
    height: 100px;
    border-radius: 999px 0 0 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.home-hero__contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__contact-icon {
    width: 128px;
    height: 100px;
    margin-left: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 999px 999px 0;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.home-hero__contact-icon svg {
    width: 36px;
    height: 36px;
}

.home-hero__contact-content {
    position: relative;
    z-index: 2;
}

.home-hero__contact-content span {
    display: block;
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-hero__contact-content h2 {
    margin: 0;
    max-width: 350px;
    font-size: clamp(29px, 2.2vw, 40px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.home-hero__contact-button {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 60px;
    margin-top: 44px;
    padding: 16px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 999px;
    background: var(--white);
    color: var(--brand);
    text-decoration: none;
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: 0.25s ease;
}

.home-hero__contact-button:hover {
    transform: translateY(-2px);
    background: #f2f9ff;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1280px) {
    .home-hero {
        padding-top: 72px;
    }

    .home-hero__grid {
        gap: 24px;
    }

    .home-hero__content h1 {
        font-size: clamp(36px, 4.2vw, 56px);
    }

    .home-hero__image {
        height: 480px;
    }

    .home-hero__contact-card {
        padding: 28px;
    }

    .home-hero__contact-top {
        margin-bottom: 92px;
    }
}

@media (max-width: 1100px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
    }

    .home-hero__slider,
    .home-hero__contact-card {
        grid-column: span 1;
    }

    .home-hero__slides {
        min-height: auto;
    }

    .home-hero__slide {
        min-height: auto;
    }

    .home-hero__contact-card {
        min-height: auto;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 28px;
        align-items: center;
    }

    .home-hero__contact-top {
        margin-bottom: 0;
    }

    .home-hero__contact-button {
        width: auto;
        min-width: 210px;
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .home-hero {
        padding: 40px 0 24px;
        border-radius: 0 0 26px 26px;
    }

    .home-hero__slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-hero__content {
        padding-bottom: 0;
        order: 2;
    }

    .home-hero__image {
        order: 1;
        height: 420px;
        border-radius: 28px;
    }

    .home-hero__controls {
        position: static;
        margin-top: 28px;
    }

    .home-hero__contact-card {
        grid-template-columns: 1fr;
    }

    .home-hero__contact-top {
        justify-content: center;
    }

    .home-hero__contact-content {
        text-align: center;
    }

    .home-hero__contact-content h2 {
        max-width: 100%;
    }

    .home-hero__contact-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding-top: 24px;
        background: var(--white);
    }

    .home-hero__container {
        padding: 0 14px;
    }

    .home-hero__grid {
        gap: 22px;
    }

    .home-hero__content h1 {
        font-size: 33px;
        line-height: 1.14;
        letter-spacing: -0.045em;
    }

    .home-hero__content p {
        margin-top: 18px;
        font-size: 15.5px;
        line-height: 1.7;
    }

    .home-hero__button {
        width: 100%;
        min-width: unset;
        margin-top: 28px;
        padding: 17px 22px;
        font-size: 15.5px;
    }

    .home-hero__image {
        height: 320px;
        border-radius: 24px;
    }

    .home-hero__controls {
        width: 100%;
        justify-content: space-between;
    }

    .home-hero__arrow {
        width: 56px;
        height: 56px;
    }

    .home-hero__counter {
        justify-content: center;
        min-width: auto;
        font-size: 19px;
    }

    .home-hero__counter strong {
        font-size: 24px;
    }

    .home-hero__contact-card {
        padding: 24px;
        border-radius: 28px;
    }

    .home-hero__contact-photo {
        width: 88px;
        height: 88px;
    }

    .home-hero__contact-icon {
        width: 110px;
        height: 88px;
    }

    .home-hero__contact-content span {
        font-size: 15px;
    }

    .home-hero__contact-content h2 {
        font-size: 27px;
    }

    .home-hero__contact-button {
        min-height: 56px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .home-hero__image {
        height: 260px;
    }

    .home-hero__content h1 {
        font-size: 29px;
    }

    .home-hero__arrow {
        width: 52px;
        height: 52px;
    }
}
/* =========================
   CRM BANNER
========================= */

.crm-banner {
    width: 100%;
    padding: 90px 0;
    overflow: hidden;
}

.crm-banner__container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 24px;
}

.crm-banner__grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 0.95fr);
    align-items: center;
    gap: 48px;
}

.crm-banner__content {
    max-width: 760px;
}

.crm-banner__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(42px, 6vw, 92px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #031b5b;
}

.crm-banner__title-main {
    color: #031b5b;
}

.crm-banner__title-highlight {
    color: #3f6df2;
}

.crm-banner__text {
    margin: 34px 0 0;
    max-width: 780px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 1.7vw, 28px);
    line-height: 1.65;
    font-weight: 400;
    color: #9a9a9a;
    letter-spacing: -0.02em;
}

.crm-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 280px;
    min-height: 96px;
    margin-top: 56px;
    padding: 20px 34px;
    border-radius: 18px;
    background: #0b85da;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 40px rgba(11, 133, 218, 0.20);
}

.crm-banner__button:hover {
    background: #086cad;
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(11, 133, 218, 0.24);
}

.crm-banner__button svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.crm-banner__button path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.crm-banner__visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crm-banner__visual img {
    width: 100%;
    max-width: 920px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1280px) {
    .crm-banner {
        padding: 80px 0;
    }

    .crm-banner__grid {
        gap: 36px;
    }

    .crm-banner__button {
        min-width: 240px;
        min-height: 82px;
        font-size: 22px;
    }
}

@media (max-width: 1024px) {
    .crm-banner {
        padding: 64px 0;
    }

    .crm-banner__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .crm-banner__content {
        max-width: 100%;
    }

    .crm-banner__visual {
        order: 2;
    }

    .crm-banner__content {
        order: 1;
    }

    .crm-banner__text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .crm-banner {
        padding: 48px 0;
    }

    .crm-banner__container {
        padding: 0 16px;
    }

    .crm-banner__title {
        font-size: clamp(38px, 10vw, 56px);
        line-height: 1.08;
    }

    .crm-banner__text {
        margin-top: 22px;
        font-size: 18px;
        line-height: 1.75;
    }

    .crm-banner__button {
        width: 100%;
        min-width: unset;
        min-height: 68px;
        margin-top: 34px;
        border-radius: 16px;
        font-size: 20px;
    }

    .crm-banner__button svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .crm-banner {
        padding: 36px 0;
    }

    .crm-banner__title {
        font-size: 34px;
    }

    .crm-banner__text {
        font-size: 16px;
    }

    .crm-banner__button {
        min-height: 62px;
        font-size: 18px;
        padding: 18px 20px;
    }
}