/* Homepage sections (hp-*) */

.hp-section-title {
    margin: 0 0 40px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
}

.hp-section-title--light {
    color: #fff;
}

.hp-btn-primary {
    display: inline-flex;
    align-items: center;
    height: 52px;
    padding: 0 32px;
    background: var(--logo-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hp-btn-primary:hover {
    opacity: 0.88;
}

.hp-btn-outline-light {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 24px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.hp-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.hp-hero {
    position: relative;
    min-height: 580px;
    background-image: url('/assets/img/home/hero.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(5, 16, 28, 0.82) 42%, rgba(5, 16, 28, 0.3) 100%);
    display: flex;
    align-items: center;
}

.hp-hero-inner {
    padding-top: 60px;
    padding-bottom: 80px;
}

.hp-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.hp-hero-content {
    max-width: 640px;
}

.hp-hero-aside {
    display: flex;
    justify-content: flex-end;
}

.hp-email-box {
    width: 100%;
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.hp-email-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #e9edf3;
    border-bottom: 1px solid #d1d9e4;
}

.hp-email-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hp-email-dot--red { background: #f3655c; }
.hp-email-dot--yellow { background: #f3be4a; }
.hp-email-dot--green { background: #56c26a; }

.hp-email-title {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #374b63;
    letter-spacing: 0.01em;
}

.hp-email-meta {
    padding: 14px 18px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e5ebf2;
}

.hp-email-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
}

.hp-email-label {
    width: 54px;
    color: #6c7f92;
    font-weight: 700;
}

.hp-email-value {
    color: #1f2d3d;
    font-weight: 600;
    word-break: break-word;
}

.hp-email-body {
    padding: 16px 18px 18px;
    background: #fff;
}

.hp-email-greeting,
.hp-email-signoff {
    margin: 0;
    font-size: 14px;
    color: #243447;
    line-height: 1.5;
}

.hp-email-request {
    margin: 12px 0 12px;
    min-height: 0;
    height: auto;
    overflow: hidden;
    transition: height 180ms ease;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.55;
    color: #1b2a3a;
}

.hp-email-typer {
    display: inline;
    white-space: pre-line;
}

.hp-email-caret {
    display: inline-block;
    width: 1px;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -2px;
    background: #1b2a3a;
    animation: hpEmailBlink 1s step-end infinite;
}

@keyframes hpEmailBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hp-hero-eyebrow {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--logo-accent);
}

.hp-hero-headline {
    margin: 0 0 22px;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
}

.hp-hero-sub {
    margin: 0 0 36px;
    font-size: 20px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
}

.hp-values {
    position: relative;
    overflow: hidden;
    padding: 104px 0 96px;
    background:
        radial-gradient(1200px 420px at -10% -15%, rgba(16, 84, 58, 0.1), transparent 65%),
        radial-gradient(900px 380px at 115% 110%, rgba(15, 41, 68, 0.08), transparent 62%),
        linear-gradient(165deg, #f8fbfa 0%, #eef3f8 46%, #f7f9f8 100%);
}

.hp-values::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 0, rgba(255, 255, 255, 0.56) 22%, transparent 100%);
    pointer-events: none;
}

.hp-values::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.hp-values .container {
    position: relative;
    z-index: 1;
}

.hp-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.hp-value-card {
    --offset-y: 0px;
    min-height: 100%;
    padding: 34px 28px 30px;
    border: 1px solid rgba(18, 40, 55, 0.09);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(10, 36, 58, 0.08);
    transform: translateY(var(--offset-y));
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s;
}

.hp-value-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--logo-accent), #69c69f);
}

.hp-value-card::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(20, 82, 58, 0.07) 0%, rgba(20, 82, 58, 0) 72%);
    transition: transform 0.35s ease;
    pointer-events: none;
}

.hp-value-card:nth-child(1),
.hp-value-card:nth-child(3) {
    --offset-y: 8px;
}

.hp-value-card:nth-child(2),
.hp-value-card:nth-child(4) {
    --offset-y: -8px;
}

.hp-value-card:hover {
    transform: translateY(calc(var(--offset-y) - 10px));
    box-shadow: 0 20px 38px rgba(10, 36, 58, 0.16);
}

.hp-value-card:hover::after {
    transform: scale(1.08);
}

.hp-value-number {
    width: 46px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(13, 68, 48, 0.16);
    background: rgba(11, 74, 52, 0.07);
    color: #0c4a35;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.hp-value-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: #14202d;
    line-height: 1.35;
}

.hp-value-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: #445668;
}

.hp-brands {
    padding: 94px 0 82px;
    background: #fff;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}

.hp-brands-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 30px;
}

.hp-brands-head > div {
    max-width: 760px;
}

.hp-brands .hp-section-title--light {
    margin-bottom: 14px;
    color: #12263a;
}

.hp-brands-sub {
    margin: 0 0 10px;
    font-size: 20px;
    color: #2f445a;
    line-height: 1.55;
    max-width: 760px;
}

.hp-brands .hp-btn-outline-light {
    border-color: #204f3a;
    color: #204f3a;
    background: #fff;
}

.hp-brands .hp-btn-outline-light:hover {
    background: #f2f8f4;
    border-color: #1a3f2f;
    color: #1a3f2f;
}

.hp-brands-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid #dde6ef;
}

.hp-brand-item {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(12.5% - 10px);
    min-height: 72px;
    padding: 12px 16px;
    border: 1px solid #d8e2eb;
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hp-brand-item:hover {
    background: #f8fbff;
    border-color: #bfd0e1;
    transform: translateY(-2px);
}

.hp-brand-img {
    max-width: 102px;
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.hp-brand-item:hover .hp-brand-img {
    opacity: 1;
}

.hp-categories {
    padding: 96px 0 86px;
    background: #fff;
}

.hp-categories .hp-section-title {
    position: relative;
    margin: 0 0 44px;
    max-width: 560px;
    padding-bottom: 14px;
    color: #142335;
    letter-spacing: 0.01em;
}

.hp-categories .hp-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 92px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--logo-accent), #63c39a);
}

.hp-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.hp-category-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(120px, 24%, 180px);
    align-items: center;
    column-gap: 24px;
    min-height: 214px;
    padding: 30px;
    background: #f1f5f1;
    border: 1px solid #d9e8dc;
    border-radius: 8px;
}

.hp-category-img {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.hp-category-title {
    grid-column: 1;
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.28;
    color: #1c2229;
}

.hp-category-sub {
    grid-column: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.58;
    color: #08410a;
}

.hp-about {
    padding: 90px 0;
    background: #f5f6f7;
}

.hp-about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.hp-about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.hp-about-text {
    margin: 0 0 36px;
    font-size: 17px;
    line-height: 1.75;
    color: #444;
}

.hp-about-stats {
    display: flex;
    gap: 36px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.hp-stat {
    display: flex;
    flex-direction: column;
}

.hp-stat-number {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: var(--logo-accent);
}

.hp-stat-number sup {
    font-size: 20px;
    position: relative;
    top: -0.6em;
    color: var(--logo-accent);
}

.hp-stat-label {
    margin-top: 6px;
    font-size: 14px;
    color: #666;
    line-height: 1.35;
}

.hp-clients {
    padding: 80px 0 90px;
    background: #fff;
}

.hp-clients-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 40px;
}

.hp-clients-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    padding: 16px 0;
    border-bottom: 1px solid #ebebeb;
}

.hp-clients-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--logo-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1100px) {
    .hp-hero-layout { grid-template-columns: 1.1fr 0.9fr; gap: 30px; }
    .hp-hero-headline { font-size: 46px; }
    .hp-section-title { font-size: 34px; }
    .hp-values-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-value-card:nth-child(1),
    .hp-value-card:nth-child(2),
    .hp-value-card:nth-child(3),
    .hp-value-card:nth-child(4) { --offset-y: 0px; }
    .hp-brand-item { flex-basis: calc(25% - 10px); }
    .hp-clients-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hp-hero { min-height: 0; }
    .hp-hero-overlay {
        position: relative;
        inset: auto;
    }
    .hp-hero-layout { grid-template-columns: 1fr; gap: 24px; }
    .hp-hero-aside { justify-content: flex-start; }
    .hp-email-box { max-width: 100%; }
    .hp-hero-headline { font-size: 38px; }
    .hp-hero-sub { font-size: 18px; }
    .hp-categories-grid { grid-template-columns: 1fr; }
    .hp-category-card { grid-template-columns: minmax(0, 1fr) 150px; column-gap: 20px; }
    .hp-category-img { max-width: 150px; }
    .hp-category-title { font-size: 22px; }
    .hp-category-sub { font-size: 14px; }
    .hp-about-inner { grid-template-columns: 1fr; gap: 40px; }
    .hp-brands-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hp-brands-sub { font-size: 18px; }
    .hp-brand-item { flex-basis: calc(33.333% - 10px); }
}

@media (max-width: 700px) {
    .hp-hero { min-height: 0; }
    .hp-hero-headline { font-size: 30px; }
    .hp-email-meta { padding: 12px 14px 8px; }
    .hp-email-body { padding: 14px; }
    .hp-email-request { min-height: 3.6em; padding: 0; }
    .hp-values { padding: 60px 0; }
    .hp-values-grid { grid-template-columns: 1fr; gap: 16px; }
    .hp-value-card:nth-child(1),
    .hp-value-card:nth-child(2),
    .hp-value-card:nth-child(3),
    .hp-value-card:nth-child(4) { --offset-y: 0px; }
    .hp-brands { padding: 60px 0; }
    .hp-brands-sub { font-size: 17px; line-height: 1.5; }
    .hp-brand-item { flex-basis: calc(50% - 10px); min-height: 64px; padding: 10px 12px; }
    .hp-brand-img { max-width: 92px; max-height: 34px; }
    .hp-categories { padding: 70px 0 60px; }
    .hp-categories .hp-section-title { margin-bottom: 30px; padding-bottom: 10px; }
    .hp-categories .hp-section-title::after { width: 72px; height: 3px; }
    .hp-category-card {
        grid-template-columns: minmax(0, 3fr) minmax(92px, 1fr);
        column-gap: 16px;
        min-height: 0;
        padding: 22px 18px;
    }
    .hp-category-img { max-width: 112px; }
    .hp-category-title { font-size: 20px; margin-bottom: 8px; }
    .hp-category-sub { font-size: 13px; line-height: 1.5; }
    .hp-about { padding: 60px 0; }
    .hp-about-stats { gap: 24px; }
    .hp-stat-number { font-size: 34px; }
    .hp-clients { padding: 60px 0; }
    .hp-clients-list { grid-template-columns: 1fr; }
    .hp-section-title { font-size: 28px; margin-bottom: 28px; }
}

@media (max-width: 520px) {
    .hp-hero-eyebrow { font-size: 11px; }
    .hp-hero-headline { font-size: 26px; }
    .hp-hero-sub { font-size: 16px; }
    .hp-btn-primary { height: 46px; padding: 0 24px; font-size: 15px; }
    .hp-category-card { grid-template-columns: minmax(0, 72%) minmax(84px, 28%); }
    .hp-category-img { max-width: 96px; }
}
