/* e-PAM: nowa strona startowa (PAM Project, 10.2026).
   Dziala tylko na stronie startowej: wszystko pod body.epam-home (ustawiane w Views/Home/Index.cshtml).
   Kolory: grafit #121416, ciepla biel #F4F2EE, pomarancz z logo #E46713 (na jasnym tle #C2540C). */

body.epam-home .body-wrapper { background: #F4F2EE; }
body.epam-home {
    background: #F4F2EE;
    color: #121416;
    font-family: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
html { background-color: #121416; }

/* ---------- naglowek na zdjeciu ---------- */
@media (min-width: 768px) {
    body.epam-home { padding-top: 0; }
    body.epam-home #main-menu {
        position: absolute;
        background: linear-gradient(180deg, rgba(10,11,13,.65) 0%, rgba(10,11,13,0) 100%);
        border: 0;
        box-shadow: none;
        padding-top: 10px;
        padding-bottom: 30px;
    }
}
@media (max-width: 767px) {
    body.epam-home #main-menu { background: #121416; border-color: #121416; }
}
body.epam-home #main-menu .navbar-logo { max-height: 30px !important; margin-top: 18px; }
@media (max-width: 767px) { body.epam-home #main-menu .navbar-logo { max-height: 24px !important; margin-top: 12px; } }
body.epam-home #main-menu .nav > li > a {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    letter-spacing: .04em;
}
body.epam-home #main-menu .nav > li > a:hover,
body.epam-home #main-menu .nav > li > a:focus { color: #E46713; background: transparent; }
body.epam-home #main-menu .navbar-upper .glyphicon { color: #fff; }

/* listy rozwijane na zdjeciu: bardziej przezroczyste szklo */
@media (min-width: 768px) {
    body.epam-home #main-menu .navbar-nav .dropdown-menu { background: rgba(18, 20, 22, .5); }
    body.epam-home #main-menu .navbar-nav > .open > a,
    body.epam-home #main-menu .navbar-nav > .open > a:hover,
    body.epam-home #main-menu .navbar-nav > .open > a:focus { background: transparent !important; color: #E46713 !important; }
}

/* ---------- karuzela ---------- */
body.epam-home .eh-hero { position: relative; margin: 0; }
body.epam-home #carousel-epam .item {
    height: 92vh;
    min-height: 540px;
    max-height: 860px;
    background: #121416;
}
body.epam-home #carousel-epam .item > img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.035);
    transition: transform 9s ease-out;
}
body.epam-home #carousel-epam .item.active > img { transform: scale(1); }
body.epam-home #carousel-epam .item::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(10,11,13,.82) 0%, rgba(10,11,13,.45) 38%, rgba(10,11,13,0) 68%),
        linear-gradient(0deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,0) 35%);
}

/* przenikanie zamiast przesuwania */
body.epam-home .carousel-fade .carousel-inner > .item {
    opacity: 0;
    -webkit-transition: opacity 1.4s ease; transition: opacity 1.4s ease;
    left: 0 !important;
    -webkit-transform: none !important; transform: none !important;
}
body.epam-home .carousel-fade .carousel-inner > .active { opacity: 1; }
body.epam-home .carousel-fade .carousel-inner > .active.left,
body.epam-home .carousel-fade .carousel-inner > .active.right { opacity: 0; z-index: 2; }
body.epam-home .carousel-fade .carousel-inner > .next.left,
body.epam-home .carousel-fade .carousel-inner > .prev.right { opacity: 1; }

/* tekst na slajdzie */
body.epam-home .eh-cap {
    position: absolute; left: 0; right: 0; top: max(140px, 19vh); z-index: 3;
    color: #fff; text-align: left; text-shadow: none;
}
body.epam-home .eh-cap .container > * { max-width: 620px; }
body.epam-home .eh-cap .container > h2 { max-width: none; }
body.epam-home .eh-cap h2 .nw { white-space: nowrap; }
body.epam-home .eh-eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
    color: #E46713;
}
body.epam-home .eh-eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; display: inline-block; }
body.epam-home .eh-cap h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    font-size: clamp(44px, 5vw, 72px); line-height: 1.08; letter-spacing: -.015em;
    margin: 22px 0 20px; color: #fff;
}
body.epam-home .eh-cap h2 em,
body.epam-home .eh-intro h2 em { font-style: italic; color: #E46713; }
body.epam-home .eh-cap p { font-size: 18px; font-weight: 300; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0 0 30px; max-width: 46ch; }
body.epam-home .eh-btn {
    display: inline-block;
    padding: 16px 28px;
    background: #E46713; color: #121416;
    font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    text-decoration: none;
    transition: background .3s, color .3s;
}
body.epam-home .eh-btn:hover, body.epam-home .eh-btn:focus { background: #fff; color: #121416; text-decoration: none; }

/* paski postepu i strzalki */
body.epam-home .eh-ctrl { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 4; }
body.epam-home .eh-ctrl .container { display: flex; align-items: center; gap: 28px; }
body.epam-home .eh-bars.carousel-indicators {
    position: static; left: auto; width: auto; margin: 0; padding: 0;
    display: flex; gap: 10px; flex: 1; max-width: 420px; text-align: left;
}
body.epam-home .eh-bars li {
    flex: 1; height: 2px; width: auto; margin: 0; border: 0; border-radius: 0;
    background: rgba(255,255,255,.3); text-indent: 0;
}
body.epam-home .eh-bars li.active { height: 2px; width: auto; margin: 0; background: #E46713; }
body.epam-home .eh-arrows { margin-left: auto; display: flex; gap: 10px; }
body.epam-home .eh-arrows a {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 18px; text-decoration: none;
    transition: background .3s, border-color .3s;
}
body.epam-home .eh-arrows a:hover { background: #E46713; border-color: #E46713; color: #121416; }

/* ---------- opis pod karuzela ---------- */
body.epam-home .body-content { padding-top: 0; }
body.epam-home .body-content > hr,
body.epam-home #footer-slogan { display: none; }
body.epam-home .eh-intro { padding: 110px 0 60px; }
body.epam-home .eh-intro .eh-eyebrow { color: #C2540C; }
body.epam-home .eh-intro h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400; font-size: clamp(40px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -.01em;
    margin: 18px 0 0; color: #121416;
}
body.epam-home .eh-intro h2 .nw { white-space: nowrap; }
body.epam-home .eh-intro h2 em { color: #C2540C; }
body.epam-home .eh-intro p { font-size: 18px; font-weight: 300; line-height: 1.7; color: #4A4E55; margin: 70px 0 0; max-width: 56ch; }

/* ---------- kafelki (Box 1-3 z konfiguracji) ---------- */
body.epam-home .row.thumbnails { display: flex; flex-wrap: wrap; border-top: 1px solid #E2DED6; margin: 0 0 110px; }
body.epam-home .row.thumbnails > .col-md-4 { padding: 0; border-right: 1px solid #E2DED6; }
body.epam-home .row.thumbnails > .col-md-4:last-child { border-right: 0; }
body.epam-home .thumbnails .thumbnail {
    position: relative;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    padding: 44px 40px 48px; margin: 0; height: 100%;
    display: flex; flex-direction: column;
}
body.epam-home .thumbnails .thumbnail::before {
    content: ""; position: absolute; top: -1px; left: 40px; width: 0; height: 2px; background: #E46713; transition: width .5s;
}
body.epam-home .thumbnails .thumbnail:hover::before { width: 64px; }
body.epam-home .thumbnails .thumbnail .caption { padding: 0; }
body.epam-home .thumbnails .thumbnail img { width: 84px; height: 84px; margin: 0 0 18px !important; }
body.epam-home .thumbnails .thumbnail h4 {
    font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.15;
    margin: 0 0 14px; color: #121416;
}
body.epam-home .thumbnails .thumbnail p { color: #5A5E66; font-size: 16px; font-weight: 300; line-height: 1.6; margin: 0; }
body.epam-home .thumbnails .thumbnail-button { margin-top: auto; }
body.epam-home .thumbnails .thumbnail-button .caption { padding: 22px 0 0; }
body.epam-home .thumbnails .thumbnail .btn,
body.epam-home .thumbnails .thumbnail .btn-primary {
    width: auto; background: transparent; border: 0; border-radius: 0; box-shadow: none;
    padding: 0; color: #121416;
    font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-align: left;
    display: inline-flex; align-items: center; gap: 12px;
}
body.epam-home .thumbnails .thumbnail .btn::after { content: ""; width: 28px; height: 1px; background: #C2540C; transition: width .35s; }
body.epam-home .thumbnails .thumbnail:hover .btn::after { width: 56px; }
body.epam-home .thumbnails .thumbnail .btn:hover,
body.epam-home .thumbnails .thumbnail .btn:focus { color: #C2540C; background: transparent; }

/* ---------- stopka ---------- */
body.epam-home footer { background: #121416; color: #8B8F96; margin: 0; padding: 26px 15px; font-size: 13px; }
body.epam-home footer p { max-width: 1140px; margin: 0 auto; }

/* ---------- naglowek: podpis przy logo, menu, przycisk Zaloguj (poprawka 2) ---------- */
@media (min-width: 768px) {
    body.epam-home #main-menu a.hidden-xs.pull-left { display: flex !important; align-items: center; gap: 14px; padding-top: 14px; text-decoration: none; }
    body.epam-home #main-menu a.hidden-xs.pull-left .navbar-logo { margin-top: 0; }
    body.epam-home #main-menu .navbar-upper { margin-top: 14px; }
    body.epam-home #main-menu .navbar-upper .glyphicon { display: none; }
    body.epam-home #main-menu .navbar-upper a { font-size: 14px; line-height: 20px; padding: 10px 12px; }
    body.epam-home #main-menu .navbar-lower { margin-top: 14px; text-transform: none; font-weight: 500; }
    body.epam-home #main-menu .navbar-lower li { margin-left: 6px; }
    body.epam-home #main-menu .navbar-lower li a { padding: 10px 12px; line-height: 20px; font-size: 14px; text-transform: none; }
    body.epam-home #main-menu #lgoinLink { border: 1px solid rgba(255,255,255,.5); padding: 9px 20px; margin-left: 8px; color: #fff; transition: background .3s, border-color .3s; }
    body.epam-home #main-menu #lgoinLink:hover { background: #E46713; border-color: #E46713; color: #121416; }
}
body.epam-home .eh-sub {
    border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.3; color: rgba(255,255,255,.7);
}
body.epam-home .eh-sub b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: #fff; }

/* ---------- karuzela: dwa przyciski, licznik, Przewin ---------- */
body.epam-home .eh-actions { display: flex; flex-wrap: wrap; gap: 14px; }
body.epam-home .eh-btn-line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 15px 27px; }
body.epam-home .eh-btn-line:hover, body.epam-home .eh-btn-line:focus { background: transparent; color: #fff; border-color: #fff; }
body.epam-home .eh-count { font-family: "Playfair Display", Georgia, serif; font-size: 20px; color: rgba(255,255,255,.45); white-space: nowrap; font-variant-numeric: tabular-nums; }
body.epam-home .eh-count b { font-weight: 400; color: #fff; }
body.epam-home .eh-scroll {
    position: absolute; z-index: 4; right: 40px; top: 50%; transform: translateY(-50%);
    writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5);
}

/* ---------- pas „Zobacz e-PAM w dzialaniu” ---------- */
body.epam-home .eh-band { position: relative; min-height: 420px; overflow: hidden; background: #121416; color: #fff; }
body.epam-home .eh-band > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
body.epam-home .eh-band::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.6) 45%, rgba(10,11,13,.1) 80%);
}
body.epam-home .eh-band .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
body.epam-home .eh-band h2 {
    font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-size: 52px; line-height: 1.1;
    margin: 20px 0 30px; max-width: 16ch; color: #fff;
}
body.epam-home .eh-band h2 em { font-style: italic; color: #E46713; }

/* ---------- stopka z logo ---------- */
body.epam-home footer.eh-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 28px 15px; padding-left: max(15px, calc((100% - 1140px) / 2)); padding-right: max(15px, calc((100% - 1140px) / 2));
    border-top: 1px solid rgba(255,255,255,.08);
}
body.epam-home footer.eh-footer p { margin: 0; max-width: none; }
body.epam-home .eh-flogo { height: 18px; width: auto; }

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 991px) {
    body.epam-home .eh-cap h2 { font-size: 48px; }
    body.epam-home .eh-scroll { display: none; }
    body.epam-home .eh-intro h2 { font-size: 40px; }
    body.epam-home .eh-intro p { margin-top: 24px; }
    body.epam-home .row.thumbnails > .col-md-4 { width: 100%; border-right: 0; border-bottom: 1px solid #E2DED6; }
    body.epam-home .thumbnails .thumbnail { padding: 36px 0; }
    body.epam-home .thumbnails .thumbnail::before { left: 0; }
}
@media (max-width: 767px) {
    body.epam-home .row.thumbnails { display: flex !important; }
    body.epam-home #carousel-epam .item { height: 80vh; min-height: 520px; }
    body.epam-home #carousel-epam .item::after { background: linear-gradient(0deg, rgba(10,11,13,.9) 0%, rgba(10,11,13,.5) 55%, rgba(10,11,13,.35) 100%); }
    body.epam-home .eh-cap { top: auto; bottom: 110px; }
    body.epam-home .eh-cap h2 { font-size: 38px; }
    body.epam-home .eh-cap h2 .nw { white-space: normal; }
    body.epam-home .eh-cap p { font-size: 16px; }
    body.epam-home .eh-arrows { display: none; }
    body.epam-home .eh-scroll { display: none; }
    body.epam-home .eh-band h2 { font-size: 34px; }
    body.epam-home .eh-btn-line { display: none; }
    body.epam-home .eh-intro { padding: 60px 0 30px; }
    body.epam-home .eh-intro h2 .nw { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    body.epam-home #carousel-epam .item > img { transition: none; transform: none; }
    body.epam-home .carousel-fade .carousel-inner > .item { transition: none; }
}
