@charset "UTF-8";
/* Import theme + layout (global reset + vars + header/footer) */
@import "global.css";
@import "layout.css";

.hero {
}
.hero__container {
}

.hero__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}
.hero__img {
    justify-self: center;
    width: 100%;
    position: relative;
    img {
        width: 100%;
    }
    /* &::before {
		display: inline-block;
		position: absolute;
		content: 'id: drone 0.93';
		right: 45px;
		top: 105px;
		background-color: var(--accent-color);
		padding: 16px 10px;
	} */
}

.hero__content {
    display: grid;
    gap: var(--sm-margin);
}

.hero__title {
    span {
        color: var(--accent-color);
    }
}

.hero__subtitle {
    position: relative;
    font-size: 1.125rem;
}
.hero__note {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}
.hero__note > p {
    font-size: inherit;
}
.hero__note > .img {
    cursor: pointer;
    display: inline-block;
    animation: blinking 2s infinite ease-in-out;
    margin: 2px;
}
.hero__modul-text {
    font-size: inherit;
    padding: 0px;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    transition: all 0.5s ease 0s;
    text-align: right;
}
.hero__modul-text.__show,
.hero__subtitle:hover .hero__modul-text,
.hero__subtitle:focus-within .hero__modul-text {
    padding: 2rem;
    visibility: visible;
    overflow: visible;
    max-height: none;
    opacity: 1;
}

.hero__modul-text {
    position: relative;
    display: inline-block;
    margin-top: 1.5rem;
    margin-right: 0.625rem;
    max-width: fit-content;
    background-color: var(--accent-color);
}
.hero__modul-text:before {
    content: "";
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: -15px;
    background-color: var(--accent-color);
    clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}
@media (min-width: 768px) {
    .hero__wrapper {
        grid-template-columns: repeat(12, 1fr);
    }

    .hero__img {
        grid-area: 1 / 1 / 2 / 6;
        justify-self: start;
    }

    .hero__content {
        grid-area: 1 / 6 / 2 / 13;
        grid-row: 1;
        padding-top: 8%;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, auto);
        gap: 15px;
    }
    .hero__title {
        grid-area: 1 / 1 / 2 / 2;
        span {
            font-size: 0.875em;
        }
    }
    .hero__subtitle {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        grid-area: 2 / 1 / 3 / 2;
    }
    .hero__note {
        display: inline-flex;
        gap: 1rem;
        flex-direction: row-reverse;
    }

    .hero__modul-text.__show,
    .hero__subtitle:hover .hero__modul-text,
    .hero__subtitle:focus-within .hero__modul-text {
        height: 100%;
    }
    .hero__modul-text:before {
        left: auto;
        right: 0;
    }
}
/* ==================== ACHIEVEMENTS ==================== */
.achievements__title {
    margin-bottom: 2rem;
}

.achievements__list {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 0.75rem;
    align-items: start;
}

.achievements__item {
    display: contents;
}

.achievements__header {
    display: contents;
}

.achievements__header:hover > .achievements__body {
    background-color: rgba(255, 255, 255, 0.05);
}

.achievements__icon {
    color: var(--main-color);
    flex-shrink: 0;
    position: relative;
    margin-top: 1.25rem;
}
.achievements__icon > svg {
    position: relative;
    z-index: 2;
}
.achievements__icon::before {
    content: "";
    height: 500%;
    position: absolute;
    width: 3px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 0.25rem;
    z-index: 1;
    top: -500%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease 0s;
}
.achievements__icon::after {
    content: "";
    height: 200%;
    position: absolute;
    width: 3px;
    background-color: transparent;
    border-radius: 0.25rem;
    z-index: 1;
    top: -50%;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease 0s;
}

.achievements__item:first-child .achievements__icon {
    margin-top: 0;
}
.achievements__item:first-child .achievements__icon::before {
    display: none;
}
.achievements__item:first-child .achievements__icon::after {
    top: 0%;
}
.achievements__item:last-child .achievements__icon::after {
    top: auto;
    bottom: 5%;
}

.achievements__icon svg {
    width: 36px;
    height: 36px;
}
.achievements__item-title {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.achievements__body {
    width: 100%;
    text-align: left;
    color: var(--main-color);
    padding: 1.25rem;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transition: background-color 0.4s ease-out;
}

.achievements__item._active {
    .achievements__icon::after {
        background-color: var(--accent-color);
    }
    .achievements__body {
        background-color: var(--accent-color);
    }
}

.achievements__body-content {
    margin-top: 0.25rem;
}

.achievements__body p {
    line-height: 1.5;
    opacity: 0.9;
}
.achievements__icon-background {
    fill: var(--main-color);
    transition: fill 0.4s ease-out;
}
.achievements__icon-element {
    fill: var(--base-color);
    transition: fill 0.4s ease-out;
}
.achievements__item._active .achievements__icon-background {
    fill: var(--accent-color);
}

.achievements__item._active .achievements__icon-element {
    fill: var(--main-color);
}

.achievements__item._active .achievements__icon {
}
/* ==================== PRODUCT ==================== */
.product__wrapper {
    display: grid;
    gap: var(--md-margin);
}
.product__content {
    display: flex;
    flex-direction: column;
    gap: var(--md-margin);
    justify-content: center;
}
.product__tag {
    width: fit-content;
    max-height: 3.125rem;
    font-weight: 400;
}

.product__title {
    margin-bottom: -0.5rem;
}

.product__subtitle {
    font-weight: 400;
    text-transform: none;
}

.product__description {
    opacity: 0.9;
}

.product__quote {
}

.product__quote-icon {
    width: 2rem;
    height: 1.625rem;
}

.product__quote-text {
    margin-top: 1rem;
    opacity: 0.85;
}

.product__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.product__author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.product__author-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product__author-name {
    font-weight: 600;
}

.product__author-title {
    opacity: 0.6;
}

/* --- Slider --- */
.product__slider {
    margin-top: 2.25rem;
    max-height: calc(90vh - var(--header-height));
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease 0s;
    clip-path: polygon(
        0% 0%,
        calc(100% - 30px) 0%,
        100% 30px,
        100% 100%,
        30px 100%,
        0% calc(100% - 30px)
    );
}

.slider__track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider__slide {
    flex: 0 0 100%;
    min-width: 0;
    aspect-ratio: 1 / 1.5;
    overflow: hidden;
}

.slider__slide img, .slider__slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease 0s;
    clip-path: polygon(
        0% 0%,
        calc(100% - 10px) 0%,
        100% 10px,
        100% 100%,
        10px 100%,
        0% calc(100% - 10px)
    );
}
.slider__nav:hover {
    background-color: rgba(var(--base-color-rgb), 0.8);
}

.slider__nav--prev {
    left: 1rem;
}

.slider__nav--next {
    right: 1rem;
    img {
        transform: rotate(180deg);
    }
}

.slider__nav img {
    width: 16px;
    height: 16px;
}

.slider__nav:disabled {
    background-color: rgba(var(--main-color-rgb), 0.2);
    cursor: not-allowed;
}

.slider__pagination {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.slider__dot {
    width: 20px;
    height: 3px;
    background-color: rgba(var(--main-color-rgb), 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider__dot:hover {
    background-color: rgba(var(--main-color-rgb), 0.7);
}

.slider__dot._active {
    background-color: var(--main-color);
}

/* ### CAREER SECTION ### */
.сareer {
}
.career__container {
}
.career__wrapper {
	position: relative;
    padding: 2rem 1.5rem;
    background-color: var(--accent-color);
}
/* ### VIDEO ### */
.orbital__title {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	padding: 1rem 1.3rem;
    min-width: 13.75rem;
	text-align: center;
	transition: all 0.3s ease 0s;
	background-color: var(--accent-color);
	span {
		color: var(--base-color);
	}
	&:hover {
		color: var(--accent-color);
		background-color: var(--main-color);
		filter: drop-shadow(2px 8px 18px var(--accent-color));
		span {
			color: var(--base-color);
		}
	}
}
.orbital__video-wrapper {
    height: 0;
    padding-bottom: 56.25%;
    margin-bottom: var(--md-margin);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0% 0%, calc(100% - 30px) 0%, 100% 30px, 100% 100%, 30px 100%, 0% calc(100% - 30px));
}

.orbital__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    overflow: hidden;
}
.career__title {
}
.career__text {
    margin-top: 0.625rem;
}
.career__btn {
    font-size: 1rem;
    margin-top: 1.25rem;
    color: var(--base-color);
    background-color: var(--main-color);
    padding: 1rem 3.2813rem;
    clip-path: polygon(
        0% 0%,
        calc(100% - 30px) 0%,
        100% 15px,
        100% 100%,
        30px 100%,
        0% calc(100% - 15px)
    );
    &:hover {
        color: var(--main-color);
        background-color: var(--base-color);
        filter: drop-shadow(2px 8px 18px var(--main-color));
    }
}
/* ### Form ### */
.contacts {
    padding: 3rem 0 5.5625rem 0;
    background: var(--accent-color);
    position: relative;
    overflow: hidden;
    &::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 30%;
        background: url(../images/BaBayte_footer.png) no-repeat;
        background-size: contain;
        bottom: -20%;
        left: 50%;
        transform: translateX(-50%) scale(1.5);
    }
}
.contacts__container {
}
.contacts__wrapper {
}
.contacts__sender {
}
.contacts__title {
    line-height: 1.29em;
    text-align: center;
}
.contacts__title-2 {
    margin-top: 2.625rem;
}
.contacts__intro {
    text-align: center;
}
#contact-form {
    margin-top: 1.125rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    grid-column-gap: 0px;
    grid-row-gap: 0.25rem;
}
.contacts-group {
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contacts-input {
    width: 100%;
    background-color: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    padding: var(--md-margin);
    font-size: 1rem;
    font-family: inherit;
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contacts-input::placeholder {
    color: var(--main-color);
    opacity: 0.7;
}

.contacts-input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.3);
}

textarea.contacts-input {
    resize: vertical;
    min-height: 7.5rem; /* (120px) */
}

.contacts-input.error {
    border-color: #e74c3c !important;
}

.contacts-error-message {
    display: none;
    color: #e74c3c;
    font-size: 1rem;
    margin-top: var(--sm-margin);
    font-weight: 500;
}

.contacts-error-message.active {
    display: block;
}

.contacts-button {
    width: 100%;
    padding: var(--md-margin);
    background-color: var(--main-color);
    color: var(--base-color);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    border: none;
    margin-top: 0.5rem;
    /* Використано змінну */
    cursor: var(--hover-cursor);
    transition: all 0.3s ease;

    --snip-size: var(--md-margin);
    clip-path: polygon(
        0% 0%,
        calc(100% - var(--snip-size)) 0%,
        100% var(--snip-size),
        100% 100%,
        var(--snip-size) 100%,
        0% calc(100% - var(--snip-size))
    );
}

.contacts-button:hover {
    opacity: 0.8;
    background-color: var(--base-color);
    color: var(--main-color);
}

.contacts__get-touch {
    text-align: center;
}

@media (min-width: 568px) {
    .contacts::before {
        bottom: -7vw;
    }
	.slider__slide {
		aspect-ratio: 1 / 1.25;
	}
}
/* === A. Tablet (min-width: 768px) === */
@media (min-width: 768px) {
    h1 {
        font-size: 2.2rem; /* ~40px */
    }
    h2 {
        font-size: 1.7rem; /* 32px */
    }
    h3 {
        font-size: 1.35rem; /* 24px */
    }
    .product__wrapper {
        text-align: center;
        justify-items: center;
    }
    .product__author {
        justify-content: center;
    }
    .product__tag {
        width: 100%;
    }
    .product__quote-text {
        display: inline;
    }
	.slider__slide {
		aspect-ratio: 1 / 1;
	}
}
/* === B. Small Desktop (min-width: 992px) === */
@media (min-width: 992px) {
    h1 {
        font-size: 2.9rem; /* ~56px */
    }
    h2 {
        font-size: 2.2rem; /* 40px */
    }
    h3 {
        font-size: 1.775rem; /* 30px */
    }
    p {
        font-size: 1rem;
    }
    .product__wrapper {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        text-align: left;
    }
    .product__content {
        grid-area: 1 / 8 / 2 / 13;
    }
    .product__slider {
        grid-area: 1 / 1 / 2 / 7;
    }
    .product__tag {
        width: fit-content;
    }
    .product__quote-text {
        display: block;
    }
    .product__author {
        justify-content: start;
    }
    .contacts__wrapper {
        display: grid;
        gap: var(--gap-rem);
        align-items: center;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: 1fr;
    }
    .contacts__sender {
        grid-area: 1 / 1 / 2 / 7;
    }
    .contacts__get-touch {
        grid-area: 1 / 7 / 2 / 13;
    }
    .contacts::before {
        bottom: -3vw;
        transform: translateX(-20%) scale(2.5);
    }
    #contact-form {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, auto);
        gap: 0.5rem;
    }
    .contacts-message {
        grid-area: 2 / 1 / 3 / 3;
    }
    .contacts-button {
        grid-area: 3 / 1 / 4 / 3;
    }
    .career__wrapper {
        text-align: center;
        margin: 0 auto;
        max-width: fit-content;
    }
    .career__text {
        margin-left: auto;
        margin-right: auto;
        max-width: 60rem;
    }
}

/* === C. Standard Desktop (min-width: 1200px) === */
@media (min-width: 1200px) {
    h1 {
        font-size: 3.5rem; /* 64px */
    }
    h2 {
        font-size: 2.5rem; /* 44px */
    }
    h3 {
        font-size: 1.9rem; /* 32px */
    }
    .contacts::before {
        bottom: -3vw;
        transform: translateX(10%) scale(3.5);
    }
    .product__slider {
        max-width: 66vw;
    }
}

/* === D. Max Desktop (min-width: 1440px) - Кінцевий розмір === */
@media (min-width: 1440px) {
    h1 {
        font-size: 4.5rem; /* 72px */
    }
    h2 {
        font-size: 3rem; /* 48px */
    }
    h3 {
        font-size: 2.25rem; /* 36px */
    }
	.orbital__title {
		transform: translateX(-50%) translateY(-75%);
	}
	.slider__slide {
		aspect-ratio: 1.5 / 1;
	}
}
