/* Keep anchor navigation below the responsive sticky header. */
#raides-konfiguratorius {
    scroll-margin-top: calc(var(--header-height, 140px) + 16px);
}

/* Hero */
.home-hero {
    background: var(--gray1);
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(452px, calc(42.291667vw - 157px), 655px) minmax(0, 1fr);
    align-items: start;
    gap: 60px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.home-hero-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 611px;
    border-radius: 16px;
}

.home-hero-photo img {
    position: absolute;
    max-width: none;
    object-fit: cover;
}

/* Preserve the photo scale and focal points in both desktop Figma frames. */
.home-hero-photo-left img {
    width: 664px;
    height: 886px;
    left: clamp(-148px, calc(5.208333vw - 223px), -123px);
    top: -151px;
}

.home-hero-photo-right img {
    width: 555px;
    height: 740px;
    left: clamp(-102px, calc(7.8125vw - 214.5px), -64.5px);
    top: -26px;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-top: 80px;
    text-align: center;
}

.home-hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.home-hero-title {
    font-size: 54px;
    font-weight: 700;
}

.home-hero-highlight {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.home-hero-highlight::after {
    content: '';
    position: absolute;
    bottom: -0.16em;
    left: 0;
    width: 100%;
    height: 0.335em;
    background: url('../../img/underline.svg') center / 100% 100% no-repeat;
    pointer-events: none;
}

.home-hero-description {
    max-width: 540px;
    color: var(--gray10);
    font-size: 18px;
    line-height: 25px;
    font-weight: 400;
}

.home-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 300px;
    max-width: 100%;
    min-height: 55px;
    padding: 15px 24px;
    border-radius: 9999px;
    background: var(--green1);
    color: var(--white1);
}

.home-hero-button:hover {
    background: var(--black1);
}

.home-hero-button:focus-visible {
    outline: 2px solid var(--green1);
    outline-offset: 4px;
}

.home-hero-button img {
    flex-shrink: 0;
}

.home-hero-palette {
    width: 22px;
    height: 22px;
}

@media (min-width: 1201px) {
    .home-hero-inner {
        padding-inline: clamp(50px, calc(10.416667vw - 100px), 100px);
    }
}

@media (min-width: 1201px) and (max-width: 1350px) {
    .home-hero-inner {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 1200px) {
    .home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .home-hero-photo-left {
        height: 200px;
    }

    .home-hero-photo-left img {
        width: 100%;
        height: 100%;
        inset: 0;
    }

    .home-hero-photo-right {
        display: none;
    }

    .home-hero-content {
        gap: 24px;
        padding-top: 0;
    }

    .home-hero-title {
        font-size: 32px;
        line-height: 44px;
    }

    .home-hero-description {
        font-size: 14px;
        line-height: 19px;
    }

    .home-hero-button {
        min-height: 45px;
        padding: 10px 24px;
    }

    .home-hero-palette {
        width: 20px;
        height: 20px;
    }
}

/* Instagram */
.home-instagram {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.home-instagram-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-instagram-follow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
}

.home-instagram-icon {
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url('../../icons/instagram.svg') center / contain no-repeat;
    mask: url('../../icons/instagram.svg') center / contain no-repeat;
}

.home-instagram-follow:hover {
    color: var(--green1);
}

.home-instagram-slider {
    width: 100%;
    min-width: 0;
}

.home-instagram:not(.home-instagram-fallback):not(:has(.sbi_item)) .home-instagram-heading,
.home-instagram-controls[hidden] {
    display: none;
}

/* Keep the native feed renderer; adapt only this home-page instance. */
.home-instagram #sb_instagram {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
}

.home-instagram #sb_instagram #sbi_images.swiper-wrapper {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    padding: 0 !important;
    width: 100%;
    align-items: flex-start;
}

.home-instagram #sb_instagram #sbi_images .sbi_item {
    width: 100% !important;
    min-width: 0;
    padding: 0 !important;
    border-radius: 16px;
}

.home-instagram #sb_instagram .sbi_photo {
    aspect-ratio: 1;
    height: auto !important;
    background-size: cover;
    background-position: center;
}

.home-instagram #sb_instagram .sbi_photo img {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.home-instagram #sb_instagram #sbi_load {
    display: none;
}

.home-instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-instagram-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    user-select: none;
}

.home-instagram-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

.home-instagram-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid var(--gray3);
    border-radius: 50%;
    background: var(--white1);
    color: var(--black1);
    cursor: pointer;
}

.home-instagram-arrow span {
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url('../../icons/arrow-right.svg') center / contain no-repeat;
    mask: url('../../icons/arrow-right.svg') center / contain no-repeat;
}

.home-instagram-prev span {
    transform: rotate(180deg);
}

.home-instagram-arrow:hover {
    border-color: var(--green1);
    color: var(--green1);
}

.home-instagram .home-instagram-pagination {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.home-instagram .home-instagram-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--gray4);
    opacity: 1;
}

.home-instagram .home-instagram-pagination .swiper-pagination-bullet-active {
    background: var(--black1);
}

.home-instagram :focus-visible {
    outline: 2px solid var(--green1);
    outline-offset: 4px;
}

/* Mobile */
@media (max-width: 768px) {
    .home-instagram {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .home-instagram-heading {
        gap: 8px;
    }

    .home-instagram-heading h2 {
        font-size: 24px;
    }

    .home-instagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-instagram-controls {
        gap: 20px;
        margin-top: 0;
    }

    .home-instagram-arrow {
        width: 40px;
        height: 40px;
    }

    .home-instagram-arrow span {
        width: 16px;
        height: 16px;
    }

    .home-instagram .home-instagram-pagination {
        gap: 6px;
    }

    .home-instagram .home-instagram-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* Uses */
.home-uses {
    padding-bottom: 80px;
}

.home-uses-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px;
    border-radius: 32px;
    background: var(--green1);
}

.home-uses-inner > h2 {
    color: var(--white1);
    text-align: center;
}

.home-uses-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.home-uses-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
    padding: 32px 24px;
    border-radius: 32px;
    background: var(--gray1);
}

.home-uses-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 334 / 289.04;
    border-radius: 8px;
}

.home-uses-photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.home-uses-photo-child img {
    width: 184.4311%;
    height: 213.1193%;
    left: -42.2156%;
    top: -45.6684%;
}

.home-uses-photo-phrases img {
    width: 112.2754%;
    height: 172.9864%;
    left: -6.2874%;
    top: -31.4835%;
}

.home-uses-photo-home img {
    width: 105.0898%;
    height: 161.9153%;
    left: -2.3952%;
    top: -25.2560%;
}

.home-uses-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1200px) {
    .home-uses-inner {
        padding: 32px;
    }

    .home-uses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .home-uses {
        padding-bottom: 50px;
    }

    .home-uses-inner {
        gap: 24px;
        padding: 24px 16px;
        border-radius: 24px;
    }

    .home-uses-inner > h2 {
        font-size: 24px;
    }

    .home-uses-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-uses-card {
        gap: 24px;
        padding: 16px;
        border-radius: 20px;
    }

    .home-uses-photo {
        height: 200px;
        border-radius: 12px;
    }
}

/* Story */
.home-story {
    padding-bottom: 80px;
}

.home-story-inner {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(0, 600px);
    align-items: center;
    gap: 80px;
    max-width: 1300px;
    margin: auto;
}

.home-story-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-story-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-story-kicker {
    font-size: 18px;
    color: var(--gray10);
    text-transform: uppercase;
}

.home-story-title {
    font-size: 54px;
    font-weight: 700;
}

.home-story-highlight {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.home-story-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.16em;
    width: 100%;
    height: 0.335em;
    background: url('../../img/underline.svg') center / 100% 100% no-repeat;
    pointer-events: none;
}

.home-story-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
    line-height: 25px;
}

.home-story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.home-story-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 55px;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 9999px;
}

.home-story-button-primary {
    background: var(--green1);
    color: var(--white1);
}

.home-story-button-primary:hover {
    background: var(--black1);
}

.home-story-button-primary img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.home-story-button-secondary {
    border-color: var(--gray3);
}

.home-story-button-secondary:hover {
    border-color: var(--green1);
    color: var(--green1);
}

.home-story-button-secondary span {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url('../../icons/arrow-right.svg') center / contain no-repeat;
    mask: url('../../icons/arrow-right.svg') center / contain no-repeat;
}

.home-story-button:focus-visible {
    outline: 2px solid var(--green1);
    outline-offset: 4px;
}

.home-story-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1300px) {
    .home-story-inner {
        gap: 40px;
    }

    .home-story-title {
        font-size: 44px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .home-story {
        padding-bottom: 50px;
    }

    .home-story-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .home-story-photo {
        grid-row: 1;
        height: 200px;
    }

    .home-story-content {
        gap: 24px;
    }

    .home-story-heading {
        gap: 8px;
    }

    .home-story-kicker {
        font-size: 14px;
    }

    .home-story-title {
        font-size: 32px;
        line-height: 44px;
    }

    .home-story-copy {
        line-height: 22px;
    }

    .home-story-actions {
        flex-direction: column;
        gap: 12px;
    }

    .home-story-button {
        min-height: 45px;
        padding: 10px 24px;
    }

    .home-story-button-primary img {
        width: 20px;
        height: 20px;
    }

    .home-story-button-secondary span {
        width: 18px;
        height: 18px;
    }
}
