/*
Theme Name: CraftCode Custom
Theme URI: https://craftcode.com.ua/
Author: CraftCode
Description: Custom WordPress theme converted from the static CraftCode HTML/CSS/JS website.
Version: 1.0.0
Text Domain: craftcode
*/

.section_home {
    background-image: url("assets/img/bg3_dark.jpg");
}

.menu .current-menu-item > a,
.menu .current_page_item > a,
.footer-nav .current-menu-item > a,
.footer-nav .current_page_item > a {
    color: #fff;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid rgba(147, 51, 234, .55);
    border-radius: 999px;
    background: rgba(12, 12, 16, .78);
    box-shadow: inset 0 0 16px rgba(79, 70, 229, .18), 0 0 18px rgba(79, 70, 229, .14);
    color: rgba(255, 255, 255, .32);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.language-switcher a {
    min-width: 34px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #aaa;
    text-align: center;
    text-decoration: none;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.language-switcher a:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.language-switcher a.is-active {
    color: #fff;
    background: linear-gradient(90deg, #4f46e5, #9333ea);
    box-shadow: 0 0 18px rgba(147, 51, 234, .35);
}

.language-switcher span {
    display: none;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: auto;
        margin-right: 64px;
    }
}

.blog-card a {
    text-decoration: none;
}

.craftcode-pagination {
    margin-top: 40px;
    text-align: center;
}

.craftcode-pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.craftcode-pagination a,
.craftcode-pagination span {
    min-width: 40px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #181818;
    color: #fff;
    text-decoration: none;
}

.craftcode-pagination .current,
.craftcode-pagination a:hover {
    background: linear-gradient(90deg, #4f46e5, #9333ea);
}

.single-post-section {
    color: #d6d6d6;
    margin: 150px 0 80px;
}

.single-post-header {
    text-align: center;
}

.single-post-image {
    margin: 30px auto;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}

.single-post-content {
    max-width: 860px;
    margin: 0 auto;
    color: #d6d6d6;
    font-size: 18px;
    line-height: 1.7;
}

.single-post-content h2,
.single-post-content h3 {
    margin-top: 34px;
    color: #fff;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol {
    margin-bottom: 18px;
}

.single-post-content ul,
.single-post-content ol {
    width: auto;
    list-style: initial;
    padding-left: 24px;
    text-align: left;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
}

.cc-work-showcase {
    min-height: 100vh;
    padding: 150px 0 110px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(79, 70, 229, .18), transparent 30%),
        radial-gradient(circle at 82% 74%, rgba(147, 51, 234, .16), transparent 32%),
        #000;
}

.cc-work-shell {
    position: relative;
    width: min(1180px, calc(100% - 28px));
    min-height: 560px;
    margin: 0 auto;
    padding: 68px 0 58px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(58, 154, 226, .94), rgba(43, 117, 215, .92) 46%, rgba(79, 70, 229, .9)),
        linear-gradient(90deg, #4f46e5, #9333ea);
    box-shadow:
        0 34px 95px rgba(79, 70, 229, .34),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

.cc-work-shell::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    pointer-events: none;
}

.cc-work-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 0 35px rgba(255, 255, 255, .22);
    pointer-events: none;
}

.cc-work-glow-left {
    left: 76px;
    bottom: 82px;
    transform: scale(.45);
    opacity: .45;
}

.cc-work-glow-right {
    right: 210px;
    top: 132px;
    transform: scale(.58);
    opacity: .75;
}

.cc-work-heading {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto 30px;
    padding: 0 20px;
    text-align: center;
}

.cc-work-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cc-work-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1;
}

.cc-work-heading p {
    max-width: 520px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
}

.cc-work-carousel {
    position: relative;
    z-index: 2;
    margin-top: 10px;
}

.cc-work-viewport {
    width: min(1040px, 100vw);
    margin: 0 auto;
    overflow: visible;
}

.cc-work-track {
    display: flex;
    align-items: stretch;
    gap: 28px;
    padding: 26px max(24px, calc((100vw - 1040px) / 2 + 24px)) 34px;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
    touch-action: pan-y;
}

.cc-work-card {
    flex: 0 0 clamp(270px, 30vw, 360px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 50px rgba(14, 22, 44, .24);
    transform: scale(.92);
    opacity: .72;
    transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}

.cc-work-card.is-active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 30px 68px rgba(14, 22, 44, .32), 0 0 34px rgba(255, 255, 255, .18);
}

.cc-work-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111;
}

.cc-work-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.cc-work-card:hover .cc-work-image-link img {
    transform: scale(1.055);
}

.cc-work-card-body {
    min-height: 190px;
    padding: 20px 22px 22px;
    color: #1b1d28;
    text-align: center;
}

.cc-work-card-body span {
    display: block;
    margin-bottom: 8px;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cc-work-card-body h2 {
    margin: 0 0 10px;
    background: none;
    color: #232636;
    -webkit-text-fill-color: currentColor;
    font-size: 20px;
    line-height: 1.15;
}

.cc-work-card-body p {
    margin: 0;
    color: #656b7b;
    font-size: 14px;
    line-height: 1.45;
}

.cc-work-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.cc-work-link:hover {
    color: #9333ea;
    text-decoration: none;
}

.cc-work-arrow {
    position: absolute;
    top: 43%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(8, 8, 15, .36);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    transition: transform .25s ease, background .25s ease;
}

.cc-work-arrow:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-2px);
}

.cc-work-arrow-prev {
    left: max(18px, calc(50% - 575px));
}

.cc-work-arrow-next {
    right: max(18px, calc(50% - 575px));
}

.cc-work-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.cc-work-dots button {
    width: 42px;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
    transition: background .25s ease, width .25s ease;
}

.cc-work-dots button.is-active {
    width: 54px;
    background: #fff;
}

@media (max-width: 768px) {
    .cc-work-showcase {
        padding: 125px 0 70px;
    }

    .cc-work-shell {
        width: calc(100% - 18px);
        min-height: 0;
        padding: 48px 0 42px;
    }

    .cc-work-heading {
        margin-bottom: 12px;
    }

    .cc-work-track {
        gap: 18px;
        padding-inline: 24px;
    }

    .cc-work-card {
        flex-basis: min(82vw, 330px);
    }

    .cc-work-arrow {
        display: none;
    }
}

.cc_portfolio_section {
    position: relative;
    min-height: 100vh;
    padding: 140px 28px 90px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 14% 20%, rgba(37, 99, 235, .22), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(147, 51, 234, .16), transparent 30%),
        linear-gradient(180deg, #020711 0%, #050810 52%, #000 100%);
}

.cc_portfolio_bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 12%, rgba(38, 132, 255, .08) 12.1% 12.3%, transparent 12.4% 76%, rgba(79, 70, 229, .08) 76.1% 76.25%, transparent 76.4%),
        radial-gradient(circle at 50% 56%, rgba(37, 99, 235, .24), transparent 34%);
    opacity: .9;
}

.cc_portfolio_inner {
    position: relative;
    z-index: 1;
    width: min(1540px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, .78fr) minmax(500px, 1.58fr) minmax(280px, .9fr);
    gap: clamp(26px, 4vw, 58px);
    align-items: center;
}

.cc_portfolio_intro,
.cc_portfolio_details {
    border: 1px solid rgba(47, 137, 255, .2);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 18, 34, .74), rgba(5, 8, 16, .42));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(14px);
}

.cc_portfolio_intro {
    padding: 30px;
}

.cc_portfolio_label,
.cc_portfolio_status,
.cc_portfolio_meta_group h3 {
    display: block;
    color: #2f8cff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cc_portfolio_intro h1 {
    margin: 12px 0 18px;
    color: #fff;
    font-size: clamp(38px, 4vw, 64px);
    line-height: .98;
}

.cc_portfolio_intro p {
    margin: 0;
    color: rgba(230, 237, 255, .76);
    font-size: 17px;
    line-height: 1.55;
}

.cc_portfolio_advantages,
.cc_portfolio_features {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.cc_portfolio_advantages li,
.cc_portfolio_features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(240, 246, 255, .82);
    font-size: 15px;
}

.cc_portfolio_advantages i,
.cc_portfolio_features i {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 19px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f8cff, #4f46e5);
    color: #fff;
    font-size: 10px;
    box-shadow: 0 0 16px rgba(47, 140, 255, .45);
}

.cc_portfolio_stage {
    min-width: 0;
}

.cc_portfolio_macbook {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform .35s ease;
    filter: drop-shadow(0 34px 48px rgba(0, 0, 0, .58));
}

.cc_portfolio_macbook::before {
    content: "";
    position: absolute;
    inset: -11% -9% 6%;
    border-radius: 40px;
    background: radial-gradient(circle at 55% 40%, rgba(47, 140, 255, .28), transparent 58%);
    filter: blur(18px);
    z-index: -1;
}

.cc_portfolio_lid {
    position: relative;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 24px 24px 10px 10px;
    background: linear-gradient(145deg, #161a22, #060910 48%, #161b22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -20px 40px rgba(0, 0, 0, .42);
}

.cc_portfolio_camera {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #02050a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.cc_portfolio_screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #05070c;
}

.cc_portfolio_screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .28s ease, transform .55s ease;
}

.cc_portfolio_screen_reflection {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .16), transparent 28%),
        linear-gradient(180deg, transparent 72%, rgba(47, 140, 255, .22));
    mix-blend-mode: screen;
}

.cc_portfolio_base {
    position: relative;
    height: 26px;
    margin: -1px -70px 0;
    border-radius: 0 0 44px 44px;
    background: linear-gradient(180deg, #d7dce5 0%, #626b78 38%, #1d222b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 20px 35px rgba(0, 0, 0, .52);
    text-align: center;
}

.cc_portfolio_base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 118px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 0 0 12px 12px;
    background: rgba(0, 0, 0, .22);
}

.cc_portfolio_base span {
    position: relative;
    top: 8px;
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
}

.cc_portfolio_controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 34px;
}

.cc_portfolio_nav {
    width: 52px;
    height: 52px;
    border: 1px solid #2f8cff;
    border-radius: 50%;
    background: rgba(8, 14, 26, .74);
    color: #2f8cff;
    box-shadow: 0 0 24px rgba(47, 140, 255, .22);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.cc_portfolio_nav:hover {
    transform: translateY(-2px);
    background: #2f8cff;
    color: #fff;
}

.cc_portfolio_counter {
    min-width: 138px;
    color: rgba(255, 255, 255, .36);
    font-size: 32px;
    font-weight: 800;
    text-align: center;
}

.cc_portfolio_counter span:first-child {
    color: rgba(255, 255, 255, .9);
    font-size: 46px;
}

.cc_portfolio_counter em {
    margin: 0 8px;
    font-style: normal;
}

.cc_portfolio_pagination {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.cc_portfolio_pagination button {
    width: 28px;
    height: 3px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    transition: width .25s ease, background .25s ease;
}

.cc_portfolio_pagination button.is-active {
    width: 46px;
    background: #2f8cff;
}

.cc_portfolio_details {
    padding: 32px;
}

.cc_portfolio_details h2 {
    margin: 10px 0 4px;
    background: none;
    color: #fff;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1;
    text-align: left;
}

.cc_portfolio_type {
    margin: 0 0 18px;
    color: rgba(230, 237, 255, .76);
    font-size: 20px;
}

.cc_portfolio_description {
    max-width: 420px;
    color: rgba(230, 237, 255, .78);
    font-size: 16px;
    line-height: 1.55;
}

.cc_portfolio_meta_group {
    margin-top: 24px;
}

.cc_portfolio_meta_group h3 {
    margin-bottom: 12px;
}

.cc_portfolio_chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc_portfolio_chips span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 13px;
    border: 1px solid rgba(47, 140, 255, .64);
    border-radius: 8px;
    background: rgba(47, 140, 255, .08);
    color: rgba(245, 249, 255, .9);
    font-size: 13px;
}

.cc_portfolio_cta {
    width: min(100%, 330px);
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f8cff, #1f7af4);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 36px rgba(47, 140, 255, .28);
    transition: transform .25s ease, box-shadow .25s ease;
}

.cc_portfolio_cta:hover {
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 22px 44px rgba(47, 140, 255, .38);
}

.cc_portfolio_section.is-changing .cc_portfolio_screen img,
.cc_portfolio_section.is-changing .cc_portfolio_details {
    opacity: .18;
    transform: translateY(8px);
}

.cc_portfolio_details,
.cc_portfolio_screen img {
    transition: opacity .25s ease, transform .25s ease;
}

@media (max-width: 1180px) {
    .cc_portfolio_inner {
        grid-template-columns: 1fr;
    }

    .cc_portfolio_stage {
        order: -1;
    }

    .cc_portfolio_intro,
    .cc_portfolio_details {
        width: min(760px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .cc_portfolio_section {
        padding: 118px 14px 64px;
    }

    .cc_portfolio_intro,
    .cc_portfolio_details {
        padding: 22px;
    }

    .cc_portfolio_lid {
        padding: 8px;
        border-radius: 16px 16px 8px 8px;
    }

    .cc_portfolio_base {
        height: 18px;
        margin-inline: -22px;
    }

    .cc_portfolio_controls {
        gap: 14px;
        margin-top: 24px;
    }

    .cc_portfolio_nav {
        width: 48px;
        height: 48px;
    }

    .cc_portfolio_counter {
        min-width: 100px;
        font-size: 24px;
    }

    .cc_portfolio_counter span:first-child {
        font-size: 34px;
    }

    .cc_portfolio_details h2 {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc_portfolio_macbook,
    .cc_portfolio_details,
    .cc_portfolio_screen img,
    .cc_portfolio_nav,
    .cc_portfolio_cta {
        transition: none;
    }
}

/* Portfolio MacBook layout refinement */
.cc_portfolio_section {
    min-height: auto;
    padding: 136px 28px 86px;
    background:
        radial-gradient(circle at 18% 28%, rgba(47, 140, 255, .14), transparent 24%),
        radial-gradient(circle at 82% 64%, rgba(147, 51, 234, .12), transparent 28%),
        linear-gradient(180deg, #05070c 0%, #050710 46%, #020205 100%);
}

.cc_portfolio_bg {
    background:
        linear-gradient(90deg, transparent 0 14%, rgba(47, 140, 255, .055) 14.08% 14.22%, transparent 14.3% 78%, rgba(147, 51, 234, .052) 78.08% 78.22%, transparent 78.3%),
        radial-gradient(circle at 52% 46%, rgba(47, 140, 255, .12), transparent 32%);
    opacity: 1;
}

.cc_portfolio_inner {
    width: min(1500px, 100%);
    grid-template-columns: minmax(0, 1.42fr) minmax(330px, .72fr);
    grid-template-areas:
        "intro intro"
        "stage details";
    gap: 34px clamp(30px, 4vw, 64px);
}

.cc_portfolio_intro {
    grid-area: intro;
    width: 100%;
    max-width: none;
    padding: 0 0 22px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    display: grid;
    grid-template-columns: minmax(280px, 520px) minmax(280px, 560px);
    gap: 24px clamp(32px, 5vw, 80px);
    align-items: end;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cc_portfolio_label {
    grid-column: 1;
}

.cc_portfolio_intro h1 {
    grid-column: 1;
    margin: 10px 0 0;
    font-size: clamp(40px, 5vw, 70px);
}

.cc_portfolio_intro p {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 560px;
    align-self: center;
    color: rgba(230, 237, 255, .68);
}

.cc_portfolio_advantages {
    grid-column: 2;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-self: end;
    gap: 10px 18px;
}

.cc_portfolio_advantages li {
    min-height: 34px;
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(47, 140, 255, .22);
    border-radius: 999px;
    background: rgba(8, 14, 26, .58);
    font-size: 14px;
}

.cc_portfolio_stage {
    grid-area: stage;
    align-self: center;
}

.cc_portfolio_details {
    grid-area: details;
    align-self: center;
    display: block;
    width: 100%;
    padding: 30px;
    border-color: rgba(47, 140, 255, .28);
    background:
        linear-gradient(180deg, rgba(11, 17, 31, .84), rgba(6, 8, 16, .68)),
        radial-gradient(circle at 100% 0%, rgba(47, 140, 255, .13), transparent 42%);
}

.cc_portfolio_macbook {
    max-width: 780px;
}

.cc_portfolio_lid {
    border-color: rgba(255, 255, 255, .22);
    background: linear-gradient(145deg, #151922, #060810 48%, #121722);
}

.cc_portfolio_details h2 {
    font-size: clamp(32px, 3vw, 48px);
}

.cc_portfolio_description {
    max-width: none;
}

@media (max-width: 1180px) {
    .cc_portfolio_inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "stage"
            "details";
    }

    .cc_portfolio_intro {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cc_portfolio_label,
    .cc_portfolio_intro h1,
    .cc_portfolio_intro p,
    .cc_portfolio_advantages {
        grid-column: 1;
        grid-row: auto;
    }

    .cc_portfolio_stage {
        order: initial;
    }

    .cc_portfolio_details {
        width: min(760px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .cc_portfolio_section {
        padding: 116px 14px 62px;
    }

    .cc_portfolio_intro {
        padding-bottom: 18px;
    }

    .cc_portfolio_advantages {
        display: grid;
    }
}

/* Portfolio MacBook stability and premium layout */
.cc_portfolio_section {
    min-height: auto;
    padding: 112px 28px 64px;
}

.cc_portfolio_inner {
    width: min(1380px, 100%);
    grid-template-columns: minmax(0, 60fr) minmax(360px, 40fr);
    grid-template-areas:
        "intro intro"
        "stage details";
    gap: 34px clamp(40px, 4vw, 60px);
    align-items: center;
}

.cc_portfolio_intro {
    grid-area: intro;
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(320px, 1fr);
    align-items: end;
    gap: 18px 48px;
    width: 100%;
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid rgba(59, 130, 246, .18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.cc_portfolio_intro .cc_portfolio_label,
.cc_portfolio_intro h1 {
    grid-column: 1;
}

.cc_portfolio_intro h1 {
    margin: 8px 0 0;
    font-size: clamp(40px, 4.4vw, 64px);
    line-height: .98;
}

.cc_portfolio_intro p {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 610px;
    margin: 0;
}

.cc_portfolio_advantages {
    grid-column: 2;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc_portfolio_advantages li {
    min-height: 34px;
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(59, 130, 246, .22);
    border-radius: 999px;
    background: rgba(8, 15, 30, .55);
}

.cc_portfolio_stage {
    grid-area: stage;
    align-self: center;
}

.cc_portfolio_macbook {
    max-width: 690px;
}

.cc_portfolio_macbook::before {
    inset: -15% -13% -2%;
    background:
        radial-gradient(circle at 52% 42%, rgba(37, 99, 235, .42), transparent 42%),
        radial-gradient(circle at 34% 70%, rgba(59, 130, 246, .2), transparent 38%);
    filter: blur(24px);
}

.cc_portfolio_details {
    grid-area: details;
    align-self: center;
    width: min(100%, 470px);
    margin: 0;
    padding: 30px;
    border: 1px solid rgba(59, 130, 246, .35);
    border-radius: 28px;
    background: rgba(8, 15, 30, .72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 0 0 40px rgba(37, 99, 235, .16);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cc_portfolio_details.hidden,
.cc_portfolio_details.is-hidden {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.cc_portfolio_section.is-changing .cc_portfolio_details {
    opacity: 1 !important;
    transform: none;
}

.cc_portfolio_section.is-changing .cc_portfolio_screen img {
    opacity: .22;
    transform: translateY(6px) scale(.995);
}

.cc_portfolio_details h2 {
    font-size: clamp(32px, 3vw, 46px);
}

.cc_portfolio_description {
    max-width: none;
}

.cc_portfolio_controls {
    margin-top: 28px;
}

@media (max-width: 1180px) {
    .cc_portfolio_section {
        padding: 108px 20px 62px;
    }

    .cc_portfolio_inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "stage"
            "details";
        gap: 30px;
    }

    .cc_portfolio_intro {
        grid-template-columns: 1fr;
        gap: 14px;
        width: min(820px, 100%);
        margin: 0 auto;
    }

    .cc_portfolio_intro .cc_portfolio_label,
    .cc_portfolio_intro h1,
    .cc_portfolio_intro p,
    .cc_portfolio_advantages {
        grid-column: 1;
        grid-row: auto;
    }

    .cc_portfolio_stage {
        order: initial;
    }

    .cc_portfolio_macbook {
        max-width: min(690px, 100%);
    }

    .cc_portfolio_details {
        width: min(720px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .cc_portfolio_section {
        padding: 96px 14px 52px;
    }

    .cc_portfolio_inner {
        gap: 24px;
    }

    .cc_portfolio_intro {
        padding-bottom: 18px;
    }

    .cc_portfolio_intro h1 {
        font-size: clamp(38px, 13vw, 54px);
    }

    .cc_portfolio_advantages {
        /* display: grid; */
        display: flex;
        justify-content: center;
    }

    .cc_portfolio_details {
        padding: 22px;
        border-radius: 22px;
    }

    .cc_portfolio_controls {
        margin-top: 22px;
    }
}

/* Header balance and portfolio visual tuning */
.hero_section_nav_wrapper .top-bar {
    min-height: 34px;
    padding: 6px 40px;
    background: rgba(8, 8, 12, .96);
    border-bottom: 1px solid rgba(79, 70, 229, .26);
}

.hero_section_nav_wrapper .contacts {
    gap: 18px;
}

.hero_section_nav_wrapper .navbar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    gap: 24px;
    overflow: visible;
}

.hero_section_nav_wrapper .logo {
    justify-self: start;
}

.hero_section_nav_wrapper .menu {
    justify-self: center;
}

.hero_section_nav_wrapper .header_btn {
    justify-self: end;
}

.hero_section_nav_wrapper .language-switcher {
    position: absolute;
    top: -31px;
    right: 248px;
    z-index: 1002;
    min-height: 24px;
    padding: 2px;
    gap: 4px;
    border: 1px solid rgba(147, 51, 234, .2);
    background: rgba(12, 12, 18, .7);
    box-shadow: none;
}

.hero_section_nav_wrapper .language-switcher a {
    min-width: 28px;
    padding: 4px 7px;
    font-size: 11px;
    line-height: 1;
}

.hero_section_nav_wrapper .language-switcher a.is-active {
    background: linear-gradient(90deg, #4f46e5, #9333ea);
    box-shadow: 0 0 14px rgba(79, 70, 229, .26);
}

.cc_portfolio_section {
    padding: 106px 28px 58px;
    background:
        radial-gradient(circle at 46% 52%, rgba(79, 70, 229, .18), transparent 34%),
        radial-gradient(circle at 76% 22%, rgba(147, 51, 234, .1), transparent 30%),
        linear-gradient(180deg, #05060d 0%, #070711 48%, #020205 100%);
}

.cc_portfolio_bg {
    background:
        linear-gradient(90deg, transparent 0 16%, rgba(79, 70, 229, .045) 16.08% 16.18%, transparent 16.26% 78%, rgba(147, 51, 234, .05) 78.08% 78.18%, transparent 78.26%),
        radial-gradient(circle at 50% 58%, rgba(47, 140, 255, .08), transparent 31%);
    opacity: .86;
}

.cc_portfolio_inner {
    width: min(1280px, 100%);
    grid-template-columns: minmax(0, 1.38fr) minmax(350px, .82fr);
    gap: 24px clamp(34px, 3.6vw, 52px);
}

.cc_portfolio_intro {
    display: block;
    width: min(620px, 100%);
    padding: 0 0 18px;
    border-bottom-color: rgba(147, 51, 234, .18);
}

.cc_portfolio_intro h1 {
    margin: 8px 0 12px;
    font-size: clamp(38px, 4vw, 58px);
}

.cc_portfolio_intro p {
    max-width: 440px;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.cc_portfolio_advantages {
    margin-top: 20px;
    gap: 9px;
}

.cc_portfolio_advantages li {
    min-height: 32px;
    padding: 6px 12px 6px 8px;
    background: rgba(14, 14, 22, .68);
    border-color: rgba(147, 51, 234, .24);
}

.cc_portfolio_macbook {
    max-width: 660px;
}

.cc_portfolio_macbook::before {
    inset: -10% -8% -2%;
    background:
        radial-gradient(circle at 50% 54%, rgba(37, 99, 235, .24), transparent 42%),
        radial-gradient(circle at 62% 62%, rgba(147, 51, 234, .2), transparent 34%);
    filter: blur(22px);
}

.cc_portfolio_details {
    width: min(100%, 430px);
    padding: 28px;
    background: linear-gradient(180deg, rgba(12, 13, 24, .82), rgba(6, 7, 13, .72));
    border-color: rgba(119, 92, 255, .38);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 30px rgba(79, 70, 229, .13);
}

.cc_portfolio_details h2 {
    font-size: clamp(30px, 2.7vw, 42px);
}

.cc_portfolio_cta {
    min-height: 56px;
    background: linear-gradient(90deg, #4f46e5, #9333ea);
    box-shadow: 0 14px 34px rgba(79, 70, 229, .24);
}

.cc_portfolio_controls {
    padding-top: 28px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.cc_portfolio_nav {
    background: rgba(8, 8, 14, .72);
    border-color: rgba(119, 92, 255, .45);
    color: #2f8cff;
}

@media (max-width: 1180px) {
    .hero_section_nav_wrapper .navbar {
        grid-template-columns: auto 1fr auto;
    }

    .hero_section_nav_wrapper .language-switcher {
        top: -31px;
        right: 226px;
    }

    .cc_portfolio_intro {
        width: min(760px, 100%);
    }

    .cc_portfolio_inner {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .hero_section_nav_wrapper .top-bar {
        padding: 6px 14px;
    }

    .hero_section_nav_wrapper .navbar {
        display: flex;
    }

    .hero_section_nav_wrapper .language-switcher {
        top: -31px;
        right: 14px;
    }
}

@media (max-width: 576px) {
    .hero_section_nav_wrapper .contacts {
        width: 100%;
        justify-content: center;
        gap: 10px;
        padding-right: 72px;
        font-size: 12px;
    }

    .hero_section_nav_wrapper .contacts span {
        display: none;
    }

    .cc_portfolio_section {
        padding-top: 92px;
    }

    .cc_portfolio_intro {
        padding-bottom: 14px;
    }

    .cc_portfolio_intro h1 {
        font-size: clamp(36px, 12vw, 50px);
    }
}

.cc_portfolio_stage {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cc_portfolio_macbook,
.cc_portfolio_controls,
.cc_portfolio_pagination {
    width: min(660px, 100%);
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 1180px) {
    .cc_portfolio_inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "stage"
            "details";
    }

    .cc_portfolio_stage {
        align-items: center;
        width: 100%;
    }

    .cc_portfolio_macbook,
    .cc_portfolio_controls,
    .cc_portfolio_pagination {
        width: 100%;
        max-width: 660px;
        margin-inline: auto;
    }

    .cc_portfolio_intro,
    .cc_portfolio_details {
        width: 100%;
        max-width: 720px;
    }
}

/* Reference portfolio pass */
.hero_section_nav_wrapper {
    height: 68px;
    background: rgba(5, 7, 16, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero_section_nav_wrapper .top-bar {
    position: absolute;
    top: 0;
    right: 322px;
    z-index: 1003;
    height: 68px;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.hero_section_nav_wrapper .contacts {
    height: 68px;
    gap: 0;
    color: rgba(255, 255, 255, .82);
}

.hero_section_nav_wrapper .contacts a {
    display: inline-flex;
    align-items: center;
    min-height: 68px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.hero_section_nav_wrapper .contacts a::before {
    content: "\f095";
    margin-right: 10px;
    color: #6d5dfc;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.hero_section_nav_wrapper .contacts span {
    display: none;
}

.hero_section_nav_wrapper .navbar {
    height: 68px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.hero_section_nav_wrapper .logo {
    font-size: 28px;
}

.hero_section_nav_wrapper .menu {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    gap: 28px;
}

.hero_section_nav_wrapper .menu a {
    font-size: 14px;
    color: rgba(255, 255, 255, .76);
}

.hero_section_nav_wrapper .language-switcher {
    margin-left: auto;
    position: static;
    min-height: 68px;
    padding: 0 18px 0 0;
    gap: 10px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .13);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero_section_nav_wrapper .language-switcher a {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1;
    box-shadow: none;
}

.hero_section_nav_wrapper .language-switcher a.is-active,
.hero_section_nav_wrapper .language-switcher a:hover {
    color: #8b5cf6;
    background: transparent;
    box-shadow: none;
}

.hero_section_nav_wrapper .language-switcher span {
    display: inline;
    color: rgba(255, 255, 255, .34);
}

.hero_section_nav_wrapper .header_btn {
    width: 154px;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
}

.cc-overlay-menu {
    top: 68px;
}

.cc_portfolio_section {
    padding: 118px 28px 46px;
}

.cc_portfolio_inner {
    width: min(1188px, 100%);
    grid-template-columns: minmax(0, 690px) minmax(340px, 368px);
    grid-template-areas:
        "intro details"
        "stage details"
        "controls controls"
        "pagination pagination";
    align-items: end;
    gap: 18px 84px;
}

.cc_portfolio_label {
    display: none;
}

.cc_portfolio_intro {
    align-self: center;
    justify-self: center;
    /* width: 100%;
    max-width: 560px; */
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cc_portfolio_intro h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 3.8vw, 52px);
    line-height: 1;
}

.cc_portfolio_intro p {
    max-width: 600px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.cc_portfolio_advantages {
    margin-top: 12px;
    gap: 26px;
}

.cc_portfolio_advantages li {
    min-height: 30px;
    padding: 6px 13px 6px 9px;
    font-size: 12px;
}

.cc_portfolio_advantages i,
.cc_portfolio_features i {
    width: 16px;
    height: 16px;
    font-size: 9px;
}

.cc_portfolio_stage {
    align-self: end;
    display: contents;
}

.cc_portfolio_macbook {
    grid-area: stage;
    justify-self: end;
}

.cc_portfolio_macbook {
    width: 100%;
    max-width: 690px;
}

.cc_portfolio_lid {
    padding: 11px;
    border-width: 2px;
    border-radius: 16px 16px 7px 7px;
    background: linear-gradient(145deg, #191c24, #05070c 48%, #161922);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.cc_portfolio_camera {
    top: 5px;
    width: 5px;
    height: 5px;
}

.cc_portfolio_screen {
    border-radius: 8px 8px 4px 4px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.cc_portfolio_base {
    height: 24px;
    margin: -1px -58px 0;
    border-radius: 0 0 52% 52% / 0 0 88% 88%;
}

.cc_portfolio_base span {
    top: 7px;
    font-size: 9px;
}

.cc_portfolio_details {
    align-self: end;
    width: 100%;
    max-width: 368px;
    min-height: 492px;
    padding: 30px 31px;
    border-radius: 12px;
}

.cc_portfolio_status,
.cc_portfolio_meta_group h3 {
    font-size: 11px;
}

.cc_portfolio_details h2 {
    margin-top: 14px;
    font-size: clamp(27px, 2.4vw, 34px);
    line-height: 1.08;
}

.cc_portfolio_type {
    margin-bottom: 18px;
    font-size: 15px;
}

.cc_portfolio_description {
    font-size: 14px;
    line-height: 1.55;
}

.cc_portfolio_meta_group {
    margin-top: 24px;
}

.cc_portfolio_chips {
    gap: 9px;
}

.cc_portfolio_chips span {
    min-height: 30px;
    padding: 0 13px;
    font-size: 12px;
}

.cc_portfolio_features {
    gap: 13px;
}

.cc_portfolio_features li {
    font-size: 14px;
}

.cc_portfolio_cta {
    width: 100%;
    min-height: 56px;
    margin-top: 30px;
    font-size: 14px;
}

.cc_portfolio_controls {
    grid-area: controls;
    width: min(1068px, 100%);
    margin: 34px auto 0;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.cc_portfolio_nav {
    width: 58px;
    height: 58px;
}

.cc_portfolio_counter {
    min-width: 190px;
    font-size: 26px;
}

.cc_portfolio_counter span:first-child {
    font-size: 38px;
}

.cc_portfolio_pagination {
    grid-area: pagination;
    width: min(220px, 100%);
    margin: -14px auto 0;
}

@media (max-width: 1280px) {
    .hero_section_nav_wrapper .top-bar {
        right: 306px;
    }

    .hero_section_nav_wrapper .navbar {
        gap: 22px;
        padding-inline: 24px;
    }

    .hero_section_nav_wrapper .menu {
        gap: 22px;
    }
}

@media (max-width: 1180px) {
    .hero_section_nav_wrapper .top-bar {
        display: none;
    }

    .hero_section_nav_wrapper .navbar {
        grid-template-columns: auto 1fr auto auto;
    }

    .cc_portfolio_inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "stage"
            "details"
            "controls"
            "pagination";
        align-items: center;
    }

    .cc_portfolio_intro,
    .cc_portfolio_details,
    .cc_portfolio_macbook,
    .cc_portfolio_controls {
        max-width: 690px;
    }

    .cc_portfolio_intro {
        align-self: auto;
    }

    .cc_portfolio_macbook {
        justify-self: center;
    }

    .cc_portfolio_details {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .hero_section_nav_wrapper .navbar {
        display: flex;
        height: 68px;
    }

    .hero_section_nav_wrapper .language-switcher {
        min-height: 0;
        padding-right: 8px;
        border-right: 0;
        margin-left: auto;
    }

    .cc_portfolio_section {
        padding: 94px 14px 42px;
    }

    .cc_portfolio_intro h1 {
        font-size: clamp(34px, 11vw, 46px);
    }

    .cc_portfolio_advantages {
        gap: 10px;
    }

    .cc_portfolio_details {
        padding: 24px;
    }
}

.blog-categories,
.blog-card-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.blog-categories {
    margin: -22px auto 44px;
}

.blog-categories a,
.blog-card-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(79, 70, 229, .35);
    border-radius: 999px;
    background: rgba(12, 12, 18, .74);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.blog-categories a:hover,
.blog-categories a.is-active,
.blog-card-categories a:hover {
    color: #fff;
    border-color: rgba(147, 51, 234, .7);
    background: linear-gradient(90deg, rgba(79, 70, 229, .38), rgba(147, 51, 234, .34));
    text-decoration: none;
}

.blog-card-categories {
    justify-content: flex-start;
    margin-bottom: 14px;
}

.blog-card-categories a {
    min-height: 26px;
    padding: 0 10px;
    font-size: 12px;
}


/* Service SEO content additions */
.service-intro .service-text-card,.service-benefits-text .service-text-card,.service-rich-text .service-text-card{background:#151518;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:28px;color:rgba(255,255,255,.72);box-shadow:0 16px 40px rgba(0,0,0,.18)}
.service-text-card p{margin:0 0 16px;line-height:1.75}.service-text-card p:last-child{margin-bottom:0}.service-text-card a,.service-section a:not(.main_btn){color:#9ca3ff;text-decoration:none}.service-text-card a:hover,.service-section a:not(.main_btn):hover{color:#fff;text-decoration:none}.service-text-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:28px;align-items:start}.service-task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:24px}.service-task-item{background:#151518;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:18px;color:#e7e7e7;line-height:1.45;transition:.25s ease}.service-task-item:hover{transform:translateY(-3px);border-color:rgba(79,70,229,.55)}.service-benefits-text .service-list{align-self:start}.service-rich-text h2{max-width:900px}.service-faq .accordion{text-align:left}
@media(max-width:992px){.service-text-grid{grid-template-columns:1fr}.service-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:576px){.service-intro .service-text-card,.service-benefits-text .service-text-card,.service-rich-text .service-text-card{padding:20px}.service-task-grid{grid-template-columns:1fr}.service-faq .accordion{text-align:left}}

/* Mobile header spacing */
@media (max-width: 768px) {
    .hero_section_nav_wrapper .language-switcher {
        gap: 6px;
        padding-right: 4px;
        font-size: 11px;
    }

    .hero_section_nav_wrapper .language-switcher a,
    .hero_section_nav_wrapper .language-switcher span {
        font-size: 11px;
        line-height: 1;
    }
}

@media (max-width: 420px) {
    .hero_section_nav_wrapper .language-switcher {
        gap: 5px;
        padding-right: 2px;
        font-size: 10px;
    }

    .hero_section_nav_wrapper .language-switcher a,
    .hero_section_nav_wrapper .language-switcher span {
        font-size: 10px;
    }
}
