/* ==========================================================================
   ASTRA COSMETIC: 2026 modernization layer
   Loaded after style.css. Brand colors, fonts and layout are unchanged;
   this file adds motion, polish, accessibility and performance helpers.
   ========================================================================== */

:root {
    --astra-pink: #FE7474;
    --astra-violet: #ADBFFD;
    --astra-peach: #F5CBC4;
    --astra-grey: #747474;
    --astra-black: #373737;
    --astra-dark: #131313;
    --astra-white: #fff;
    --astra-ease: cubic-bezier(.22, .61, .36, 1);
    --astra-header-h: 80px;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--astra-header-h);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::selection {
    background: var(--astra-pink);
    color: var(--astra-white);
}

/* Media-library images get width/height attributes (no layout shift);
   :where() keeps specificity 0, so every existing theme rule still wins. */
:where(img[width][height]) {
    height: auto;
}

/* Balanced headings, no orphans in paragraphs (progressive enhancement). */
h1, h2, h3, .title {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/* Preloader removed (it delayed first paint by ~0.7 s). */
.preloader {
    display: none !important;
}

/* ---------- Accessibility ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000000;
    padding: 12px 20px;
    background: var(--astra-pink);
    color: var(--astra-white);
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    transform: translateY(-200%);
    transition: transform .2s var(--astra-ease);
}
.skip-link:focus {
    transform: translateY(0);
    color: var(--astra-white);
}
:focus {
    outline: none;
}
:focus-visible {
    outline: 2px solid var(--astra-pink);
    outline-offset: 3px;
}
.btn:focus-visible,
.social-box a:focus-visible {
    outline-color: var(--astra-violet);
}
.burger:focus-visible {
    outline-offset: 6px;
}

/* ---------- Header: frosted glass ---------- */
.header {
    transition: background-color .35s var(--astra-ease), box-shadow .35s var(--astra-ease), padding .35s var(--astra-ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .header {
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        backdrop-filter: saturate(160%) blur(14px);
    }
    .header,
    .header.sticky {
        background-color: rgba(255, 255, 255, .94);
    }
    .header.menu-open {
        background-color: var(--astra-white);
    }
}
.header.sticky {
    box-shadow: 0 10px 30px -18px rgba(19, 19, 19, .25);
}
.header .logo-box img {
    transition: max-width .35s var(--astra-ease);
}
.header nav ul a,
.header nav ul span {
    transition: background-color .25s var(--astra-ease), color .25s var(--astra-ease);
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    transition: background-color .25s var(--astra-ease), color .25s var(--astra-ease),
                transform .25s var(--astra-ease), box-shadow .25s var(--astra-ease);
}
@media (hover: hover) {
    .pink-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 30px -16px rgba(173, 191, 253, .95);
    }
}
.pink-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ---------- Links with animated underline ("Детальніше", "Більше", footer) ---------- */
.cart-block__item .text-box a,
.info-box > a,
.footer nav a,
.footer .contact-box a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color .25s var(--astra-ease), background-size .35s var(--astra-ease), opacity .3s ease, top .3s ease, visibility .3s;
}
@media (hover: hover) {
    .cart-block__item .text-box a:hover,
    .info-box > a:hover,
    .footer nav a:hover,
    .footer .contact-box a:hover {
        background-size: 100% 1px;
    }
}

/* ---------- Cards & tiles: gentle depth on hover ---------- */
@media (hover: hover) {
    .cart-block__item img {
        transition: transform .5s var(--astra-ease);
    }
    .cart-block__item:hover img {
        transform: translateY(-6px) scale(1.02);
    }
    .production-block__item {
        transition: box-shadow .4s var(--astra-ease), transform .4s var(--astra-ease);
    }
    .production-block__item:hover {
        box-shadow: 0 24px 50px -30px rgba(19, 19, 19, .35);
    }
    .production-block .hash-tag {
        transition: border-color .25s var(--astra-ease), color .25s var(--astra-ease), background-color .25s var(--astra-ease);
    }
    .production-block__item:hover .hash-tag {
        border-color: var(--astra-pink);
    }
    .certificate-block__item img,
    .category-block__item img {
        transition: transform .5s var(--astra-ease);
    }
    .certificate-block__item:hover img,
    .category-block__item:hover img {
        transform: scale(1.03);
    }
    .experience-block__item {
        transition: background-color .3s var(--astra-ease), transform .3s var(--astra-ease);
    }
    .experience-block__item:hover {
        transform: translateY(-4px);
    }
    .social-box a svg path {
        transition: fill .25s var(--astra-ease);
    }
    .social-box a {
        transition: background-color .25s var(--astra-ease), border-color .25s var(--astra-ease), transform .25s var(--astra-ease);
    }
    .social-box a:hover {
        transform: translateY(-2px);
    }
}
.hash-tag-box {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- Forms (Contact Form 7) ---------- */
.question-popup input:not([type="checkbox"]):not([type="submit"]),
.question-popup textarea,
.form__textarea {
    transition: border-color .25s var(--astra-ease), background-color .25s var(--astra-ease), box-shadow .25s var(--astra-ease);
}
.question-popup input:not([type="checkbox"]):not([type="submit"]):focus,
.question-popup textarea:focus,
.form__textarea:focus {
    border-color: var(--astra-pink);
    background-color: rgba(245, 203, 196, .12);
    box-shadow: 0 0 0 4px rgba(254, 116, 116, .12);
}
.question-popup input[type="submit"] {
    transition: background-color .25s var(--astra-ease), color .25s var(--astra-ease), transform .25s var(--astra-ease);
}
.wpcf7-not-valid {
    border-color: var(--astra-pink) !important;
}

/* Popup: softer entrance */
.mfp-bg {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* ---------- Hero video: reserve its box before the file loads (no layout shift) ---------- */
.top-section1 .video-box video {
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: var(--astra-dark);
}
@media (min-width: 768px) and (max-width: 1024px) {
    .top-section1 .video-box video {
        aspect-ratio: 4 / 3;
    }
}
@media (max-width: 767px) {
    .top-section1 .video-box video {
        aspect-ratio: 3 / 4;
    }
}

/* ---------- Map placeholder until Google Maps loads ---------- */
.contact-section #map {
    background:
        radial-gradient(circle at 60% 40%, rgba(254, 116, 116, .12), transparent 45%),
        #f5f5f5;
}

/* ---------- Scroll reveal (js/reveal.js, replaces WOW.js) ---------- */
.reveal-on .wow:not(.is-revealed) {
    visibility: hidden;
    -webkit-animation-name: none !important;
    animation-name: none !important;
}
.reveal-on .wow.is-revealed {
    visibility: visible;
}

/* ---------- Header offset for in-page anchors ---------- */
@media (max-width: 767px) {
    :root { --astra-header-h: 70px; }
}

/* ---------- Footer & address ---------- */
address {
    font-style: normal;
    margin: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Print ---------- */
@media print {
    .header, .footer, .video-box, .instagram-section, #map, .popup { display: none !important; }
    body { color: #000; }
}


/* ==========================================================================
   REDESIGN 2026: same palette and typography, refreshed blocks
   ========================================================================== */

/* ---------- Header: visible navigation + CTA on desktop ---------- */
.header-cta {
    display: none;
}
@media (min-width: 1280px) {
    .header {
        gap: 28px;
    }
    .header .logo-box {
        order: 1;
        flex: 0 0 auto;
    }
    .header nav {
        order: 2;
        position: static;
        flex: 1 1 auto;
        max-width: none;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        background: transparent;
        transition: none;
    }
    .header nav > div {
        display: flex;
        justify-content: center;
    }
    .header nav ul {
        display: flex;
        align-items: center;
        gap: clamp(18px, 2.1vw, 40px);
        text-align: left;
    }
    .header nav ul:not(.language-chooser) a,
    .header nav ul:not(.language-chooser) span {
        position: relative;
        padding: 8px 0;
        border-bottom: none;
        background: none !important;
        color: var(--astra-black);
        font-family: "Manrope", sans-serif;
        font-weight: 600;
        font-size: 14px;
        line-height: 18px;
        white-space: nowrap;
    }
    .header nav ul:not(.language-chooser) a::after,
    .header nav ul:not(.language-chooser) span::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2px;
        height: 1px;
        background: var(--astra-pink);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s var(--astra-ease);
    }
    .header nav ul:not(.language-chooser) a:hover,
    .header nav ul:not(.language-chooser) span {
        color: var(--astra-pink);
    }
    .header nav ul:not(.language-chooser) a:hover::after,
    .header nav ul:not(.language-chooser) span::after {
        transform: scaleX(1);
    }
    .header .burger,
    .header .mobil-lang-box {
        display: none;
    }
    .header .lang-box {
        order: 3;
    }
    .header .header-cta {
        order: 4;
        display: inline-flex;
        align-items: center;
        min-width: 0;
        height: 44px;
        line-height: 44px;
        padding: 0 22px;
        font-size: 14px;
        white-space: nowrap;
    }
}
@media (min-width: 1280px) and (max-width: 1499px) {
    .header .logo-box span {
        display: none;
    }
}

/* ---------- Hero: headline over the factory video ---------- */
.top-section1 {
    position: relative;
    overflow: hidden;
}
.top-section1 .video-box {
    position: relative;
}
.top-section1 .video-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(19, 19, 19, .66) 0%, rgba(19, 19, 19, .38) 45%, rgba(19, 19, 19, 0) 78%);
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 110px 60px 60px;
    pointer-events: none;
}
.hero-overlay__inner {
    max-width: 660px;
    color: var(--astra-white);
    pointer-events: auto;
}
.hero-overlay__eyebrow {
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
    padding-left: 46px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--astra-peach);
}
.hero-overlay__eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 32px;
    height: 1px;
    background: var(--astra-pink);
}
.hero-overlay__title {
    margin: 0;
    padding-bottom: 22px;
    color: var(--astra-white);
    font-size: clamp(34px, 4.1vw, 64px);
    line-height: 1.04;
    letter-spacing: -.04em;
    text-transform: uppercase;
}
.hero-overlay__text {
    max-width: 520px;
    padding-bottom: 34px;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}
.hero-overlay__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.ghost-btn {
    border: 1px solid rgba(255, 255, 255, .75);
    background: transparent;
    color: var(--astra-white);
    line-height: 58px;
}
@media (hover: hover) {
    .ghost-btn:hover {
        background: var(--astra-white);
        border-color: var(--astra-white);
        color: var(--astra-dark);
        transform: translateY(-2px);
    }
}
@media (max-width: 1024px) {
    .hero-overlay {
        padding: 90px 30px 36px;
        align-items: flex-end;
    }
    .hero-overlay__text {
        font-size: 16px;
        padding-bottom: 24px;
    }
}
@media (max-width: 767px) {
    .top-section1 .video-box::after {
        background: linear-gradient(0deg, rgba(19, 19, 19, .78) 0%, rgba(19, 19, 19, .45) 45%, rgba(19, 19, 19, 0) 75%);
    }
    .hero-overlay {
        padding: 80px 20px 26px;
    }
    .hero-overlay__eyebrow {
        margin-bottom: 14px;
        padding-left: 30px;
        font-size: 11px;
        letter-spacing: .08em;
    }
    .hero-overlay__eyebrow::before {
        width: 20px;
    }
    .hero-overlay__title {
        font-size: 28px;
        padding-bottom: 12px;
    }
    .hero-overlay__text {
        font-size: 14px;
        line-height: 1.5;
        padding-bottom: 18px;
    }
    .hero-overlay__eyebrow {
        display: none;
    }
    .hero-overlay__actions {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .hero-overlay__actions .btn {
        flex: 1 1 50%;
        min-width: 0;
        height: 48px;
        padding: 0 10px;
        line-height: 48px;
        font-size: 13px;
        white-space: nowrap;
    }
    .hero-overlay__actions .ghost-btn {
        line-height: 46px;
    }
}

/* ---------- Trust strip ---------- */
.trust-strip {
    border-bottom: 1px solid #F0EEEE;
    background: var(--astra-white);
}
.trust-strip__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}
.trust-strip__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 34px 40px;
    border-right: 1px solid #F0EEEE;
}
.trust-strip__item:last-child {
    border-right: none;
}
.trust-strip__value {
    font-size: clamp(24px, 2.3vw, 36px);
    line-height: 1.1;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: var(--astra-pink);
}
.trust-strip__label {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--astra-grey);
}
@media (max-width: 1024px) {
    .trust-strip__list {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-strip__item {
        padding: 24px 30px;
        border-bottom: 1px solid #F0EEEE;
    }
    .trust-strip__item:nth-child(2n) {
        border-right: none;
    }
    .trust-strip__item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}
@media (max-width: 767px) {
    .trust-strip__item {
        padding: 18px 18px;
    }
    .trust-strip__value {
        font-size: 20px;
    }
    .trust-strip__label {
        font-size: 12px;
    }
}

/* ---------- Process ("How we work") ---------- */
.process-section {
    padding: 130px 0;
    background-color: rgba(245, 203, 196, .2);
    text-align: center;
}
.process-section__eyebrow {
    display: block;
    margin-bottom: 14px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--astra-pink);
}
.process-section .container {
    max-width: 1400px;
}
.process-section h2 {
    max-width: 676px;
    margin: 0 auto 56px;
}
.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    background: var(--astra-white);
}
.process-list__item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 44px 34px 46px;
    border-right: 1px solid #F0EEEE;
    background-color: var(--astra-white);
    transition: background-color .35s var(--astra-ease);
}
.process-list__item:last-child {
    border-right: none;
}
.process-list__item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--astra-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--astra-ease);
}
@media (hover: hover) {
    .process-list__item:hover {
        background-color: rgba(173, 191, 253, .22);
    }
    .process-list__item:hover::before {
        transform: scaleX(1);
    }
}
.process-list__num {
    display: block;
    margin-bottom: 30px;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--astra-pink);
}
.process-list__title {
    padding-bottom: 14px;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.process-list__text {
    flex: 1 1 auto;
    padding-bottom: 20px;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--astra-grey);
}
.process-list__link {
    align-self: flex-start;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--astra-black);
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: color .25s var(--astra-ease), background-size .35s var(--astra-ease);
}
.process-list__link:hover {
    color: var(--astra-pink);
}
@media (max-width: 1199px) {
    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-list__item:nth-child(2n) {
        border-right: none;
    }
    .process-list__item:nth-child(-n+2) {
        border-bottom: 1px solid #F0EEEE;
    }
}
@media (max-width: 767px) {
    .process-section {
        padding: 64px 0;
    }
    .process-section h2 {
        margin-bottom: 30px;
    }
    .process-list {
        grid-template-columns: 1fr;
    }
    .process-list__item {
        padding: 28px 22px 30px;
        border-right: none;
        border-bottom: 1px solid #F0EEEE;
    }
    .process-list__item:last-child {
        border-bottom: none;
    }
    .process-list__num {
        margin-bottom: 16px;
        font-size: 40px;
    }
    .process-list__title {
        font-size: 18px;
        line-height: 24px;
    }
}

/* ---------- Inner pages: breadcrumbs ---------- */
.breadcrumbs {
    margin-bottom: 22px;
}
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: var(--astra-grey);
}
.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    margin-right: 6px;
    color: #C9C9C9;
}
.breadcrumbs__item a {
    color: var(--astra-grey);
    transition: color .25s var(--astra-ease);
}
.breadcrumbs__item a:hover {
    color: var(--astra-pink);
}
.breadcrumbs__item[aria-current] {
    color: var(--astra-black);
}

/* ---------- Inner pages: CTA under H1 ---------- */
.page-cta {
    margin-top: 34px;
    position: relative;
    z-index: 2;
}
@media (max-width: 767px) {
    .page-cta {
        margin-top: 20px;
    }
    .page-cta .btn {
        height: 50px;
        line-height: 50px;
        min-width: 220px;
    }
    .breadcrumbs {
        margin-bottom: 14px;
    }
}

/* ---------- Process block: current step on inner pages ---------- */
.process-section--inner {
    background-color: var(--astra-white);
    border-top: 1px solid #F0EEEE;
}
.process-section--inner .process-list {
    background: rgba(245, 203, 196, .2);
}
.process-section--inner .process-list__item {
    background-color: transparent;
}
.process-list__item.is-current {
    background-color: var(--astra-pink);
}
.process-list__item.is-current::before {
    display: none;
}
.process-list__item.is-current .process-list__num,
.process-list__item.is-current .process-list__title {
    color: var(--astra-white);
}
.process-list__item.is-current .process-list__text {
    color: rgba(255, 255, 255, .9);
}
@media (hover: hover) {
    .process-list__item.is-current:hover {
        background-color: var(--astra-pink);
    }
}
.process-list__here {
    align-self: flex-start;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--astra-white);
}

/* ---------- Policy pages: readable long-form text ---------- */
.privacy-block {
    max-width: 860px;
}
.privacy-block h2 {
    margin: 46px 0 14px;
    padding-bottom: 0;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.privacy-block p,
.privacy-block li {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: #4A4A4A;
}
.privacy-block p {
    margin-bottom: 14px;
}
.privacy-block p em {
    display: inline-block;
    font-style: normal;
    font-size: 14px;
    color: var(--astra-grey);
    padding: 4px 14px;
    border: 1px solid #EEE;
    border-radius: 50px;
}
.privacy-block ul:not(.privacy-list) {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.privacy-block ul:not(.privacy-list) li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
}
.privacy-block ul:not(.privacy-list) li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--astra-pink);
}
.privacy-block a {
    color: var(--astra-pink);
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
}
.privacy-block strong {
    font-weight: 600;
    color: var(--astra-black);
}
@media (max-width: 767px) {
    .privacy-block h2 {
        margin-top: 32px;
        font-size: 19px;
        line-height: 26px;
    }
    .privacy-block p,
    .privacy-block li {
        font-size: 15px;
        line-height: 25px;
    }
}

/* ---------- 404 quick links ---------- */
.error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
}
.error-links a {
    color: var(--astra-black);
    background-image: linear-gradient(var(--astra-pink), var(--astra-pink));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: color .25s var(--astra-ease);
}
.error-links a:hover {
    color: var(--astra-pink);
}
