/* ===============================
   FONTS
================================== */

@font-face {
    font-family: "Helvetica";
    src: url("/assets/theme/fonts/HelveticaLight.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica";
    src: url("/assets/theme/fonts/HelveticaRegular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Helvetica";
    src: url("/assets/theme/fonts/HelveticaBold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DrukWide";
    src: url("/assets/theme/fonts/DrukWideMedium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DrukWide";
    src: url("/assets/theme/fonts/DrukWideBold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===============================
   ROOT VARIABLES
================================== */

:root {
    --primary-color: #131414;
    --secondary-color: #f89d1b;
    --white-color: #ffffff;
    --black-color: #000;
    --border-color: rgba(255, 255, 255, 0.3);
    --bg-color: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent-hover: #333333;
}

/* ===============================
   GLOBAL & RESET
================================== */

html {
    font-family: "Helvetica", sans-serif;
    scrollbar-gutter: stable;
}

::selection {
    background: rgb(248, 174, 77);
}

/* Универсальное правило для всех элементов */
* {
    /* Синяя подсветка сливается с фоном */
    -webkit-tap-highlight-color: transparent;
    /* Предотвращаем появление контекстного меню на устройствах Apple */
    -webkit-touch-callout: none;
    /* Осторожно относимся к выбору контента */
    -webkit-user-select: none;
    user-select: none;
}


/* ===============================
   UIKIT OVERRIDES / CONTAINER
================================== */
main {
    position: relative;
    background: #131414;
    z-index: 0;
}

.uk-container {
    padding-left: 10px;
    padding-right: 10px;
}

.uk-overlay-primary {
    background: rgba(19, 20, 20, .4);
}

.uk-modal {
    background: rgba(19, 20, 20, .7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Принудительно скрываем эффект при фокусе, оставляя только hover */
.uk-transition-toggle:focus .uk-transition-fade,
.uk-transition-toggle:focus-within .uk-transition-fade {
    opacity: 0;
}

/* Возвращаем видимость только при реальном наведении мыши */
.uk-transition-toggle:hover .uk-transition-fade {
    opacity: 1 !important;
}

/* ===============================
   TYPOGRAPHY
================================== */

.uk-h1,
.uk-h2,
.uk-h3,
.uk-h4,
.uk-h5,
.uk-h6,
.uk-heading-2xlarge,
.uk-heading-3xlarge,
.uk-heading-large,
.uk-heading-medium,
.uk-heading-small,
.uk-heading-xlarge,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Helvetica", sans-serif;
}

/* ===============================
   HERO SECTION
================================== */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    height: auto;
    overflow: hidden;
    font-family: "Helvetica", sans-serif;
    color: var(--white-color);
    font-weight: 400;
    background-color: transparent;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg,
            rgba(19, 20, 20, 0) 0%,
            rgba(19, 20, 20, 0.7) 63.94%);
    pointer-events: none;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-grid {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-top: 100px;
    position: relative;
    z-index: 5;
}

.breadcrumb {
    display: block;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}
/* ===============================
   HEADER
================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    display: grid;
    grid-template-columns: 480px 2fr 240px 240px;
    background: rgba(19, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
    will-change: height, background-color;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition:
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.4s ease,
        backdrop-filter 0.4s ease;
}

.header.scrolled {
    height: 70px;
    width: 100%;
    background: rgba(19, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
    height: 30px;
    will-change: height;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: height 0.4s ease-in-out;
}

.header.scrolled .logo img {
    height: 25px;
    will-change: height;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: height 0.4s ease-in-out;
}

.header-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.header-item.burger,
.header-item.nav-link,
.header-item.work-link,
.header-item.cta {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.header-item.burger:hover,
.header-item.work-link:hover,
.header-item.nav-link:hover {
    background-color: rgba(19, 20, 20, 0.65);
}

.header-item:last-child {
    border-right: none;
}

.work-link,
.nav-link {
    color: #fff;
    font-size: clamp(0.875rem, 0.784rem + 0.3883vw, 1.25rem);
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link:active,
.work-link:hover,
.work-link:active {
    color: #fff;
    text-decoration: none;
}

.cta {
    background-color: var(--secondary-color);
    color: var(--black-color);
    font-weight: 400;
    font-size: clamp(0.875rem, 0.784rem + 0.3883vw, 1.25rem);
    letter-spacing: 1px;
    cursor: pointer;
}

.cta:hover {
    background-color: #e0880a;
    color: var(--black-color);
    text-decoration: none;
}

/* ===============================
   MAIN CONTENT
================================== */

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 40px 80px 40px;
    max-width: 1620px;
    z-index: 1;
}

.main-title {
    display: grid;
    grid-template-columns: 1fr;
    color: var(--white-color);
    font-family: "DrukWide", sans-serif;
    font-size: clamp(1.5rem, 0.8022rem + 2.9773vw, 4.375rem);
    text-transform: uppercase;
    text-wrap: balance;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.line {
    display: block;
    width: 100%;
}

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

.line-bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.keyword {
    display: inline-block;
}

.description {
    font-family: "Helvetica", sans-serif;
    text-transform: none;
    font-weight: 400;
    font-size: clamp(1rem, 0.8786rem + 0.5178vw, 1.5rem);
    line-height: 1.4;
    color: var(--white-color);
    padding-left: 50px;
    padding-top: 10px;
    max-width: 100%;
}

.button-call {
    position: absolute;
    font-family: "Helvetica", sans-serif;
    font-size: calc(0.416667vw + 9px);
    bottom: 90px;
    right: 40px;
    color: var(--white-color);
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s,
        visibility 0.5s;
}

.button-call:hover {
    color: var(--black-color);
    background-color: var(--white-color);
}

.button-call.show {
    opacity: 1;
    visibility: visible;
}

.button-call-fixed {
    position: fixed;
    font-family: "Helvetica", sans-serif;
    bottom: 20px;
    right: 40px;
    font-size: calc(0.416667vw + 9px);
    text-transform: none;
    background-color: rgb(255 255 255 / 85%);
    color: var(--black-color);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s,
        visibility 0.5s;
}

.button-call-fixed:hover {
    color: var(--black-color);
}

.button-call-fixed.show {
    opacity: 1;
    visibility: visible;
}

.title {
    font-family: "DrukWide", sans-serif;
    font-size: clamp(1.5rem, 0.8022rem + 2.9773vw, 4.375rem);
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white-color);
}

.subtitle {
    font-size: 18px;
    max-width: 500px;
    line-height: 1.4;
    opacity: 0.9;
}

/* ===============================
   OFF CANVAS / MENU
================================== */

.uk-offcanvas-bar {
    background-color: #1E1E1E;
    box-shadow: 0 4px 12px rgb(0 0 0 / 50%);
}

.uk-offcanvas-overlay::before {
    background: rgba(19, 20, 20, 0.6);
    backdrop-filter: blur(3px);
    transition: all .3s linear;
}

.menu-overlay {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100%;
    background-color: var(--bg-color);
    background-image: url('../images/menu-bg.webp');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    color: var(--text-muted);
    box-sizing: border-box;
    position: relative;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.uk-offcanvas-bar a.nav-item {
    font-size: clamp(1.5625rem, 1.4108rem + 0.6472vw, 2.1875rem);
    font-weight: 700;
    line-height: 1.36;
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 0;
    transition: 0.3s;
    padding-left: 50px;
}

.uk-offcanvas-bar a.nav-item span {
    transition: 0.3s;
}

.uk-offcanvas-bar a.nav-item:hover span,
.uk-offcanvas-bar a.nav-item.active span {
    padding-left: 20px;
}

.uk-offcanvas-bar a.nav-item.active,
.uk-offcanvas-bar a.nav-item:hover {
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(217, 217, 217, 0.02) 37.86%, rgba(217, 217, 217, 0) 78.24%);
}

.menu-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 50px;
    padding-left: 50px;
    padding-right: 50px;
}

.contact-block h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-block p,
.contact-block a {
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.contact-block .links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    white-space: nowrap;
}

/* ===============================
   WORK SECTION
================================== */

.section-primary {
    background-color: var(--primary-color);
}

.uk-container .work-block {
    margin-top: 170px;
    margin-bottom: 150px;
    display: flex;
    justify-content: flex-end;
}

.title-block {
    display: block;
    font-family: "DrukWide", sans-serif;
    font-size: clamp(1.25rem, 0.6432rem + 2.589vw, 3.75rem);
    line-height: 1;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--white-color);
    margin: 0;
}

.tag-scrollers {
    width: 100%;
    overflow: hidden;
}

.tag-scroller {
    display: grid;
    gap: 10px;
    mask: linear-gradient(90deg, #0000, var(--primary-color) 15%, var(--primary-color) 85%, #0000);
}

.tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list li img {
    display: block;
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.tag-list li.w-sm {
    width: 500px;
}

.tag-list li.w-md {
    width: 850px;
}

.tag-list li.w-lg {
    width: 1200px;
}

.tag-scroller.scrolling .tag-list {
    width: max-content;
    flex-wrap: nowrap;
    animation: horizontal-scroll var(--duration) var(--direction, normal) linear infinite;
}

.tag-scroller.scrolling .tag-list:nth-child(even) {
    --direction: reverse;
}

.tag-scroller:hover .tag-list {
    animation-play-state: paused;
}

@keyframes horizontal-scroll {
    to {
        transform: translateX(calc(-50% - .75rem));
    }
}

.portfolio-link {
    position: relative;
    overflow: hidden;
    display: block;
    max-width: 100%;
}

.portfolio-link:before {
    z-index: 1;
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background: 0;
    transition: all .5s ease;
    transform: translate(0, 100%);
}

.portfolio-link.hover:before {
    background: rgba(19, 20, 20, .7);
    transform: translate(0, 0);
}

.portfolio-block {
    opacity: 0;
    transition: all .5s ease;
    z-index: 1;
}

.portfolio-link.hover .portfolio-block,
.portfolio-link.active .portfolio-block,
.portfolio-link.focus .portfolio-block {
    opacity: 1;
}

.portfolio-title {
    color: var(--white-color);
    font-family: "DrukWide", sans-serif;
    font-size: clamp(0.75rem, 0.568rem + 0.7767vw, 1.5rem);
}

.portfolio-subtitle {
    font-weight: 300;
    font-size: clamp(0.75rem, 0.568rem + 0.7767vw, 1.5rem);
}

/* ===============================
   SERVICES SECTION
================================== */

.uk-container .services-block {
    margin-top: 170px;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

.img-group {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.img-group.active {
    display: grid;
    opacity: 1;
    visibility: visible;
}

.services-section {
    display: grid;
    grid-template-columns: 5.5fr 4.5fr;
    gap: 60px;
    align-items: flex-end;
    max-width: 1920px;
    margin: 0 auto;
}

.services-left {
    display: flex;
    flex-direction: column;
}

.block-title {
    grid-column: 1 / -1;
}

.accordion-item:first-child {
    border-top: 1px solid #333333;
}

.faq-link {
    font-size: clamp(1.125rem, 0.8671rem + 1.1003vw, 2.1875rem);
    line-height: 1.36;
    min-height: 0vw;
    padding-top: 60px;
    margin-bottom: 60px;
    padding-left: 70px;
}

.faq-title {
    align-items: baseline;
}

.faq-title a {
    display: block;
    overflow: hidden;
    text-decoration: none;
    transition: padding 0.4s ease;
}

.uk-open .faq-title a {
    padding-left: 0;
    margin-bottom: 0;
}

.uk-light .faq-title a:hover,
.faq-title:hover {
    cursor: pointer;
}

.faq-content {
    display: flow-root;
    padding: 20px 40px 60px 110px;
}

.link-faq-content {
    color: var(--white-color);
    text-decoration: underline;
}

.faq-plus {
    transition: transform 0.3s ease;
}

li.uk-open .faq-plus {
    transform: rotate(45deg);
    width: calc(22px + (30 - 22) * ((100vw - 360px) / (1920 - 360)));
    height: calc(22px + (30 - 22) * ((100vw - 360px) / (1920 - 360)));
}

.accordion-item {
    border-bottom: 1px solid #333333;
    transition: all 0.4s ease;
}

.services-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: start;
}

.placeholder-img {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.image-large {
    grid-column: 1 / -1;
    height: auto;
    margin-left: -20px;
    width: 100%;
}

.image-small {
    height: 100%;
}

.image-small.one {
    height: 100%;
    position: relative;
    left: 4px;
}

.image-small.two {
    height: 100%;
    position: relative;
    right: -20px;
    top: 20px;
}

.services-image-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-content: start;
}

.placeholder-block-img {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-block-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.image-block-large {
    grid-column: 1 / -1;
    height: auto;
    width: 100%;
}

.image-block-small,
.image-block-small.one,
.image-block-small.two {
    height: 100%;
}

.block-btn {
    display: grid;
    gap: 30px;
}

.view-all-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / -1;
    background: transparent;
    color: var(--white-color);
    border: 1px solid var(--white-color);
    padding: 20px;
    font-size: 1rem;
    text-transform: capitalize;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.4s ease;
}

.view-all-btn:hover {
    border-color: #444;
    color: var(--white-color);
    background-color: #222222;
    text-decoration: none;
}

/* ===============================
   ABOUT SECTION
================================== */

.section-about {
    padding-top: 150px;
}

.about-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 110px;
    min-height: 600px;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.title-about {
    padding-bottom: 75px;
}

.text-scroll-area {
    overflow-y: auto;
    padding-right: 1.5rem;
    max-width: 700px;
    max-height: 550px;
    scrollbar-width: thin;
    scrollbar-color: #222 #444;
}

.text-scroll-area::-webkit-scrollbar {
    width: 3px;
}

.text-scroll-area::-webkit-scrollbar-track {
    background: #444;
}

.text-scroll-area::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 4px;
}

.text-scroll-area p {
    font-family: Helvetica, sans-serif;
    text-transform: none;
    font-weight: 400;
    font-size: clamp(1rem, 0.8786rem + 0.5178vw, 1.5rem);
    line-height: 1.4;
    color: var(--white-color);
}

/* ===============================
   WHY SECTION
================================== */

.uk-container .why-block {
    margin-top: 170px;
    margin-bottom: 100px;
    display: flex;
    justify-content: flex-start;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 130px 80px;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__image {
    width: 100%;
    background-color: #1e1e1e;
    max-height: 360px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 30px;
    flex-shrink: 0;
}

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

.card__title {
    margin: 0 0 20px 0;
    font-size: clamp(1.25rem, 1.0225rem + 0.9709vw, 2.1875rem);
    line-height: 1.36;
    flex-shrink: 0;
}

.card__description {
    font-size: clamp(0.875rem, 0.8143rem + 0.2589vw, 1.125rem);
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

/* ===============================
   OUR BLOCK
================================== */
.uk-container .our-block {
    margin-top: 170px;
    margin-bottom: 100px;
    display: flex;
    justify-content: flex-end;
}

.creative-process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 130px;
    align-items: start;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 50px 40px;
}

.img-small img {
    width: 100%;
}

.img-large {
    grid-column: span 3;
    position: relative;
}

.gallery-grid img.large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-block {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.our-description {
    font-family: Helvetica, sans-serif;
    text-transform: none;
    font-weight: 400;
    font-size: clamp(1rem, 0.8786rem + 0.5178vw, 1.5rem);
    line-height: 1.4;
    color: var(--white-color);
    max-width: 820px;
}

.title-steps {
    font-size: clamp(1.25rem, 1.0225rem + 0.9709vw, 2.1875rem);
    padding-top: 35px;
    padding-bottom: 50px;
}

.steps {
    font-size: clamp(1rem, 0.8786rem + 0.5178vw, 1.5rem);
    line-height: 1.4;
    list-style: none;
    padding: 0;
}

.steps li {
    margin-bottom: 25px;
    position: relative;
    padding-left: 30px;
    color: #fff;
}

.steps li::before {
    content: url('/assets/theme/images/list-marker.svg');
    display: inline-block;
    position: absolute;
    left: 0;
    top: 2px;
}

.our-btn {
    max-width: 730px;
    margin-top: auto;
}

.play-icon {
    width: 100px;
    height: 100px;
    left: 10px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.play-button {
    width: 123px;
    height: 123px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0, 0, 0, 1);
    z-index: 1;
}

.img-large:hover .play-button::after {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

@media (hover: hover) {
    .img-large:hover .play-button::after {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    .img-large:hover .play-icon {
        transform: scale(1.05);
    }
}

.img-large:active .play-button::after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
    border-color: rgba(255, 255, 255, 1);
    transition: all 0.1s ease;
}

@media (max-width: 1200px) {
    .creative-process {
        grid-template-columns: 1fr;

    }

    .content-block {
        order: -1;
    }
}

/* ===============================
   REVIEWS BLOCK
================================== */
.uk-container .reviews-block {
    margin-top: 170px;
    margin-bottom: 100px;
    display: flex;
    justify-content: flex-start;
}

.reviews-btn {
    margin: 100px auto 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 80px;
}

.review-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-areas:
        "photo info"
        "photo text";
    column-gap: 40px;
    align-items: start;
    background-color: var(--bg-color);
    padding: 20px;
}

.review-photo {
    grid-area: photo;
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.review-info {
    grid-area: info;
    padding-bottom: 30px;
}

.review-name {
    font-size: clamp(1.25rem, 1.0225rem + 0.9709vw, 2.1875rem);
    line-height: 1.36;
}

.review-position {
    font-size: clamp(0.875rem, 0.8143rem + 0.2589vw, 1.125rem);
    line-height: 1.4;
}

.review-text {
    font-size: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
    line-height: 1.4;
    color: var(--white-color);
    grid-area: text;
}

/* ===============================
   MASK
================================== */

/* Убираем анимацию по умолчанию */
.mask {
    width: 100%;
    height: 100%;
    position: fixed;
    background: #000;
    /* Сразу черный */
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    /* Виден изначально */
    transition: opacity 1.5s ease, visibility 1.5s ease;
    /* Для плавного исчезновения */
}

/* Этот класс мы добавим через JS, когда страница загрузится */
.mask.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Чтобы не мешал кликам после скрытия */
}

.mask-logo-img {
    opacity: 0;
    width: 300px;
}

/* Анимация логотипа пусть крутится бесконечно, пока идет загрузка */
.mask:not(.loaded) .mask-logo-img {
    animation: loader 3s linear infinite;
}

@keyframes loader {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ===============================
   BLOG
================================== */
.uk-container .blog-block {
    margin-top: 170px;
    margin-bottom: 100px;
    display: flex;
    justify-content: flex-end;
}

.card__image.blog {
    max-height: 300px;
}

.blog-link {
    display: inline-block;
    font-size: 18px;
    line-height: 1.4;
    text-decoration: underline;
    margin-top: 65px;
}

.card__title.blog {
    font-size: clamp(1.25rem, 1.0983rem + 0.6472vw, 1.875rem);
}

/* ===============================
   FAQ
================================== */

/* ОСНОВНАЯ СЕТКА GRID */
.faq-container-bottom {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 90px;
    align-items: start;
}

/* Стили списка FAQ */
.faq-title.faq-title-bottom {
    align-items: center;
}

.faq-link.faq-bottom {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-left: 40px;
    padding-top: 0;
    text-wrap: balance;
}

.uk-open .faq-title.faq-title-bottom a {
    padding-left: 40px;
    margin-bottom: 0;
    padding-top: 0;
}

.faq-content.faq-content-bottom {
    display: flow-root;
    padding: 20px 40px 40px 40px;
}

.faq-item-bottom {
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.faq-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.faq-plus.faq-plus-bottom {
    position: relative;
    margin: auto 0;
}

li.uk-open .faq-plus.faq-plus-bottom {
    margin: 0;
    margin-top: 40px;
}

/* Стили карточки справа */
.cta-card-bottom {
    background-color: var(--bg-color);
    padding: 0 50px 50px 50px;
    position: relative;
}

.cta-image-wrapper-bottom {
    position: relative;
    margin-top: -130px;
    right: -10px;
    margin-left: auto;
    margin-bottom: 65px;
    max-width: 560px;
}

.cta-image-wrapper-bottom img {
    width: 100%;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cta-body-bottom h3 {
    font-size: clamp(1.25rem, 1.0225rem + 0.9709vw, 2.1875rem);
    line-height: 1.36;
    font-weight: 700;
    margin-bottom: 30px;
}

.cta-body-bottom p {
    font-size: clamp(1rem, 0.8786rem + 0.5178vw, 1.5rem);
    line-height: 1.4;
    margin-bottom: 70px;
}

/* Кнопки */
.cta-buttons-bottom {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.view-all-btn.faq-btn {
    margin-top: 0;
}

.btn-white-bottom {
    background: var(--white-color);
    color: var(--black-color) !important;
}

.btn-white-bottom:hover {
    color: var(--white-color) !important;
}

/* ===============================
    FOOTER
================================== */

.footer {
    padding-bottom: 22px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-areas:
        "brand fl uae";
    gap: 40px;
    margin-bottom: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 75px;
}

.footer-logo {
    max-width: 210px;
    height: auto;
}

.footer-legal {
    font-size: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-legal p {
    margin: 0;
}

.contact-block.contact-block-footer h4 {
    font-size: clamp(1.25rem, 1.0225rem + 0.9709vw, 2.1875rem);
    margin-bottom: 60px;
    font-weight: 700;
    line-height: 1.36;
}

.contact-block.contact-block-footer {
    font-size: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
    line-height: 1.4;
    margin: 0;
}

.block-links .links-footer a {
    font-size: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
    line-height: 1.4;
    margin: 0;
}

.links-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    white-space: nowrap;
    gap: 40px;
}

.block-address {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-divider {
    border: none;
    border-top: 1px solid #333;
    margin-bottom: 40px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.footer-nav a {
    text-decoration: none;
    font-size: clamp(1.25rem, 1.1893rem + 0.2589vw, 1.5rem);
    transition: color 0.3s;
}

.footer-nav a.active,.footer-nav a:hover {
    color: var(--secondary-color);
}

/* ===============================
   MAP
================================== */

.contents {
    position: relative;
    width: 100%;
    padding-top: 150px;
    padding-bottom: 115px;
    z-index: 1;
}

.contacts-map, .contents {
    height: 100%;
    min-height: 880px;
    max-height: 880px;
}

.contacts-map {
    width: 100%;
    height: auto;
    position: relative;
}

.contacts-map .map-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.contacts-map .feedback-points {
    width: auto;
    height: 3.5rem;
    background: #fff;
    position: absolute;
    top: 1.5rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.contacts-map .feedback-points .feedback-point {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #d3d3d3;
    width: 11rem;
    cursor: pointer;
    font-family: "Helvetica", sans-serif;
    font-size: 1.7rem;
    font-weight: 400;
    color: #dedede;
    border-right-width: 0;
}

.contacts-map .feedback-points .feedback-point.active {
    background: #f89d1b;
    color: #222;
    border-color: #f89d1b;
}

.map-container {
    position: relative;
    height: 880px;
    width: 100%;
    background-color: #e5e5e5;
    background-image: url('../images/map-placeholder.webp'); 
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: filter 0.3s ease;
}

/* .map-container.is-waiting {
    filter: grayscale(100%);
} */

.map-placeholder-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    color: #fff;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.map-load-btn {
    padding: 12px 24px;
    background: var(--secondary-color);
    color: var(--black-color);
    font-size: 1.3rem;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.map-load-btn:hover {
    background-color: #e0880a;
    color: var(--black-color);
    text-decoration: none;
}

.map-container.is-loaded .map-placeholder-overlay {
    opacity: 0;
    pointer-events: none;
}

.logo-footer {
    display: contents;
}    
/* ===============================
   MEDIA QUERIES
================================== */

@media (min-width: 640px) and (max-width: 959px) {
    .uk-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .button-call-fixed {
        right: 15px;
    }
    .reviews-grid {
        gap: 20px;
    }
    .reviews-btn {
        margin: 50px auto 0;
    }
    .contents {
    padding-top: 30px;
    padding-bottom: 80px;
    }
    
    .contacts-map, .contents {
        min-height: 600px;
        max-height: 600px;
    }
        .contacts-map {
        display: flex;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .uk-offcanvas-bar {
        left: -960px;
        width: 960px;
        padding: 0 !important;
    }
}

@media (min-width: 960px) {
    .uk-container {
        padding-left: 40px;
        padding-right: 40px;
    }
    .tag-scroller {
        gap: 20px;
    }
    .tag-list {
        gap: 20px;
    }
    .contacts-map {
        right: 0;
    }
    .contacts-map .feedback-points {
        right: 0;
        margin: 0 40px;
    }
}

@media (min-width: 961px) and (max-width: 1199px) {
    .cta-image-wrapper-bottom {
        max-width: 65vw;
    }
}

@media (min-width: 1200px) {
    .services-left {
        width: calc(100% + 40px);
        margin-left: -40px;
    }
    .uk-open .faq-title a {
        padding-left: 110px;
        margin-bottom: 0;
    }
    li.accordion-item.uk-open {
        background: linear-gradient(90deg, rgba(217, 217, 217, 0.02) 37.86%, rgba(217, 217, 217, 0) 78.24%);
    }
}

@media (min-width: 1200px) and (max-width: 1600px) {
    .faq-link {
        padding-top: 30px;
        margin-bottom: 30px;
    }
    .faq-content {
        padding: 20px 40px 30px 110px;
    }
}

/* ===== MAX-WIDTH (от большего к меньшему) ===== */

@media (max-width: 1400px) {
    .links-footer {
        gap: 20px;
    }
}

@media (max-width: 1199px) {
    .button-call {
        position: relative;
        bottom: 0;
        right: 0;
        margin: 30px auto 0 auto;
        width: 100%;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .review-info {
        padding-bottom: 0;
    }
    .faq-link.faq-bottom {
        margin-top: 30px;
        margin-bottom: 30px;
        padding-left: 0;
    }
    li.uk-open .faq-plus.faq-plus-bottom {
        margin-top: 30px;
    }
    .uk-open .faq-title.faq-title-bottom a {
        padding-left: 0;
        margin-bottom: 0;
    }
    .faq-content.faq-content-bottom {
        display: flow-root;
        padding: 20px 0 30px 0;
    }
    .faq-container-bottom {
        grid-template-columns: 1fr;
        gap: 170px;
    }
    .faq-list-bottom {
        order: -1;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "fl uae";
    }
    .footer-brand {
        grid-column: span 2;
        margin-bottom: 40px;
        display: flex;
        align-items: center;
        gap: 60px;
    }
    .footer-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .footer-legal {
        text-align: center;
    }
    .contact-block.contact-block-footer {
        text-align: center;
    }
    .links-footer {
        justify-content: center;
    }
    .services-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .faq-link {
        padding-top: 30px;
        margin-bottom: 30px;
        padding-left: 0;
    }
    .faq-title {
        align-items: baseline;
    }
    .faq-content {
        padding: 20px 0 30px 0;
    }
    .header {
        grid-template-columns: 240px 2fr 120px 120px;
    }
    .main-content {
        padding: 0 15px 40px;
    }
    .cta {
        font-weight: 500;
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 20px;
    }
    .card__image {
        max-height: 230px;
        margin-bottom: 30px;
    }
    .card__title {
        margin-bottom: 20px;
    }
    .about-card {
        gap: 30px;
    }
    .placeholder-block-img {
        max-height: 19rem;
        background-color: #1e1e1e;
    }
}

@media (max-width: 1024px) {
    .about-card {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    .content-container {
        order: 1;
    }
    .image-container {
        order: 2;
        height: auto;
    }
    .text-scroll-area {
        overflow: visible;
        padding-right: 0;
    }
    .title {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 960px) {
    .title-steps {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .our-description {
        max-width: 100%;
    }
    .our-btn {
        max-width: 100%;
        margin-top: 50px;
    }
    .creative-process {
        gap: 50px;
    }
    .gallery-grid {
        gap: 10px;
    }
    .blog-link {
        margin-top: 30px;
    }
    .cta-card-bottom {
        padding: 0 30px 30px 30px;
    }
    .cta-image-wrapper-bottom {
        max-width: 80vw;
    }
    .footer-top {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "fl"
            "uae";
    }
    .footer-brand {
        grid-column: span 1;
    }
}

@media (max-width: 959px) and (min-width: 640px) {
    .tag-list li img {
        height: 250px;
    }
    .tag-list li.w-sm {
        width: 400px;
    }
    .tag-list li.w-md {
        width: 600px;
    }
    .tag-list li.w-lg {
        width: 900px;
    }
}

@media (max-width: 959px) and (min-width: 641px) {
    .uk-container .work-block,
    .uk-container .services-block,
    .uk-container .why-block,
    .uk-container .our-block,
    .uk-container .reviews-block,
    .uk-container .blog-block {
        margin-top: 100px;
        margin-bottom: 80px;
    }
    .section-about {
        padding-top: 100px;
    }
    .title-about {
        padding-bottom: 80px;
    }
}

@media (max-width: 850px) {
    .line-bottom {
        grid-template-columns: 1fr;
    }
    .description {
        padding-left: 0;
        margin-top: 10px;
        font-size: 3.5vw;
    }
    .logo img,
    .header.scrolled .logo img {
        height: 20px;
        width: 143px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 80px;
        grid-template-columns: 100px 2fr 100px;
    }
    .menu-icon {
        height: 25px;
        width: 43px;
    }
    .work-link {
        display: none;
    }
    .main-content {
        padding: 0 10px 40px;
        justify-content: flex-end;
    }
    .subtitle {
        font-size: 14px;
    }
    .menu-overlay {
        background-size: 100%;
    }
    .nav-item {
        font-size: 1.5rem;
    }
    .uk-offcanvas-bar a.nav-item {
        padding-left: 30px;
        line-height: 1.1;
    }
    .menu-nav {
        gap: 10px;
    }
    .menu-footer {
        padding-left: 30px;
        padding-right: 30px;
    }
    .contact-block .links {
        gap: 0;
    }
}

@media (max-width: 767.98px) {
    .uk-offcanvas-bar {
        width: 100vw;
        left: -100%;
        padding: 0 !important;
    }
}

@media (max-width: 640px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .card__image {
        max-height: 220px;
        margin-bottom: 20px;
    }
    .card__title {
        margin-bottom: 20px;
    }
    .uk-container .work-block,
    .uk-container .services-block,
    .uk-container .why-block,
    .uk-container .our-block,
    .uk-container .reviews-block,
    .uk-container .blog-block {
        margin-top: 60px;
        margin-bottom: 40px;
    }
    .section-about {
        padding-top: 60px;
    }
    .title-about {
        padding-bottom: 40px;
    }
    .faq-plus {
        height: 22px;
        width: 22px;
        margin-top: 30px;
    }
    .mask-logo-img {
        width: 200px;
    }
}

@media (max-width: 639px) {
    .tag-list li img {
        height: 160px;
    }
    .tag-list li.w-sm {
        width: 300px;
    }
    .tag-list li.w-md {
        width: 400px;
    }
    .tag-list li.w-lg {
        width: 600px;
    }
    .button-call-fixed {
        right: 10px;
    }
    .creative-process {
        gap: 30px;
    }
    .gallery-grid {
        gap: 5px;
    }
    .steps li {
        margin-bottom: 20px;
    }
    .our-btn {
        max-width: 100%;
        margin-top: 30px;
    }
    .play-icon {
        width: 80px;
        height: 80px;
    }
    .play-button {
        width: 100px;
        height: 100px;
    }
    .review-card {
        grid-template-areas:
            "photo info"
            "text text";
        grid-template-columns: 100px 1fr;
        row-gap: 20px;
        column-gap: 20px;
    }
    .review-photo {
        width: 100px;
        height: 100px;
    }
    .review-text {
        margin-top: 0;
    }
    .reviews-grid {
        gap: 10px;
    }
    h3.review-name {
        margin-bottom: 15px;
    }
    .reviews-btn {
        margin: 40px auto 0;
    }
    .cta-image-wrapper-bottom {
        right: 0;
        margin-bottom: 30px;
    }
    .cta-body-bottom h3 {
        margin-bottom: 15px;
    }
    .cta-body-bottom p {
        margin-top: 0;
        margin-bottom: 30px;
    }
    .cta-buttons-bottom {
        gap: 20px;
    }
    .header.scrolled {
        height: 60px;
    }
    .menu-icon {
        height: 24px;
        width: 40px;
    }
    .logo img,
    .header.scrolled .logo img {
        height: 14px;
        width: 101px;
    }
    .faq-link.faq-bottom {
        margin-top: 20px;
        margin-bottom: 20px;
        padding-left: 0;
    }
    li.uk-open .faq-plus.faq-plus-bottom {
        margin-top: 20px;
    }
    .faq-content.faq-content-bottom {
        display: flow-root;
        padding: 20px 0 20px 0;
    }
    .faq-plus.faq-plus-bottom {
        position: relative;
        margin: auto 0;
    }
    .cta-card-bottom {
        padding: 0 10px 10px 10px;
    }
    .contents {
    padding-top: 60px;
    padding-bottom: 60px;
    }
    
    .contacts-map, .contents {
        min-height: 500px;
        max-height: 500px;
    }
    .contacts-map {
        display: flex;
        justify-content: center;
    }
    
    .uk-slider-items img {
        background-color: #1e1e1e;
        max-height: 200px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-nav {
        grid-template-columns: 1fr 1fr;
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .image-container {
        height: auto;
    }
    .menu-footer {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .menu-nav {
        justify-content: flex-start;
        padding-top: 40px;
    }
    .menu-overlay {
        background-position: right 100% bottom 0%;
    }
}

/* ===== СПЕЦИАЛЬНЫЕ (в конце) ===== */

@media (prefers-reduced-motion) {
    .tag-list {
        flex-flow: row nowrap;
        overflow: auto;
        scrollbar-width: none;
        scrollbar-color: transparent transparent;
    }
    .tag-list::-webkit-scrollbar-track {
        background: transparent;
    }
    .tag-list::-webkit-scrollbar-thumb {
        background: transparent;
    }
    .tag-list::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}
