:root {
    --primary-color: #172033;
    --secondary-color: #f6f2ea;
    --accent-color: #c28f46;
    --accent-strong: #9b6422;
    --text-color: rgba(23, 32, 51, 0.74);
    --white-color: #ffffff;
    --border-color: rgba(23, 32, 51, 0.12);
    --shadow-soft: 0 24px 70px rgba(23, 32, 51, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--white-color);
    color: var(--primary-color);
    font-family: "Barlow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.site-menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

img.is-missing-image {
    opacity: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0;
}

.preloader,
.responsive-menu {
    display: none !important;
}

.wow,
.fadeInUp {
    visibility: visible !important;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.row > [class*="col-"] {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
}

.align-items-center {
    align-items: center;
}

.align-items-stretch {
    align-items: stretch;
}

.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: padding 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-sticky {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 74px;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 74px;
}

.header-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 118px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.header-brand img {
    width: 126px;
    max-height: 50px;
    object-fit: contain;
}

.header-brand::after {
    display: none;
    content: "AI-ZERE";
}

.header-brand.image-missing::after {
    display: inline-block;
}

.header-brand.image-missing img {
    display: none;
}

.main-menu {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
}

.nav-menu-wrapper {
    width: 100%;
}

.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 38px);
    padding: 0;
    list-style: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent-color);
}

.header-contacts {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 185px;
}

.header-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.header-contact-link img {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.header-contact-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-toggle {
    position: relative;
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white-color);
    cursor: pointer;
}

.navbar-toggle::before,
.navbar-toggle::after {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-color);
    content: "";
    transition: transform 0.2s ease, top 0.2s ease;
}

.navbar-toggle::before {
    top: 16px;
}

.navbar-toggle::after {
    top: 25px;
}

.main-header.is-menu-open .navbar-toggle::before {
    top: 21px;
    transform: rotate(45deg);
}

.main-header.is-menu-open .navbar-toggle::after {
    top: 21px;
    transform: rotate(-45deg);
}

.section-title {
    margin-bottom: 34px;
}

.section-title-center {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-title h3,
.white-title {
    display: inline-flex;
    margin: 0 0 12px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: 0;
}

.section-title p {
    margin-top: 18px;
    color: var(--text-color);
    font-size: 17px;
    line-height: 1.72;
}

.dark-section .section-title h2,
.dark-section .section-title p,
.white-title {
    color: var(--white-color);
}

.az-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(126px, 13vw, 170px) 0 clamp(76px, 8vw, 120px);
    color: var(--white-color);
    background:
        radial-gradient(circle at 15% 18%, rgba(194, 143, 70, 0.36), transparent 34%),
        radial-gradient(circle at 86% 14%, rgba(67, 126, 158, 0.32), transparent 32%),
        linear-gradient(135deg, #141b2d 0%, #243352 52%, #5b4b35 100%);
}

.az-bg,
.az-bg-photo,
.az-rays,
.az-grid,
.az-noise {
    position: absolute;
    inset: 0;
}

.az-bg {
    pointer-events: none;
}

.az-bg-photo {
    opacity: 0.24;
    background:
        linear-gradient(110deg, rgba(7, 13, 27, 0.92), rgba(7, 13, 27, 0.45)),
        radial-gradient(circle at 74% 45%, rgba(255, 255, 255, 0.24), transparent 24%);
}

.az-rays {
    background: conic-gradient(from 35deg at 70% 40%, rgba(255, 255, 255, 0.18), transparent 18%, transparent 72%, rgba(255, 255, 255, 0.12));
    mix-blend-mode: screen;
    opacity: 0.34;
}

.az-grid {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 74%, transparent);
    opacity: 0.32;
}

.az-noise {
    opacity: 0.1;
}

.az-blob {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 42% 58% 62% 38% / 48% 42% 58% 52%;
    background: rgba(194, 143, 70, 0.22);
    filter: blur(34px);
}

.az-blob.b1 {
    top: 10%;
    left: -150px;
}

.az-blob.b2 {
    right: -170px;
    bottom: 18%;
    background: rgba(67, 126, 158, 0.25);
}

.az-blob.b3 {
    top: 18%;
    right: 22%;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.12);
}

.az-inner {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    gap: clamp(38px, 6vw, 86px);
    align-items: center;
}

.az-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.az-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 7px rgba(194, 143, 70, 0.16);
}

.az-title {
    max-width: 820px;
    margin: 0;
    color: var(--white-color);
    font-size: clamp(42px, 6.4vw, 88px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: 0;
}

.az-sub {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.68;
}

.az-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.az-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    overflow: hidden;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: var(--white-color);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.az-btn:hover {
    transform: translateY(-1px);
}

.az-primary {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.az-ghost {
    background: rgba(255, 255, 255, 0.1);
}

.az-arr {
    margin-left: 8px;
}

.az-stats {
    display: grid;
    max-width: 650px;
    margin-top: 42px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.az-stat {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
}

.az-stat b {
    display: block;
    color: var(--white-color);
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 900;
    line-height: 1;
}

.az-stat span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.az-collage {
    position: relative;
    min-height: clamp(460px, 50vw, 640px);
}

.az-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

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

.az-card.c1 {
    top: 0;
    right: 4%;
    width: 72%;
    height: 48%;
}

.az-card.c2 {
    bottom: 13%;
    left: 0;
    width: 56%;
    height: 42%;
}

.az-card.c3 {
    right: 0;
    bottom: 0;
    width: 54%;
    height: 36%;
}

.az-card.image-missing::before,
.project-image.image-missing::before,
.about-us-images .image-missing::before,
.az-photo.image-missing::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, rgba(23, 32, 51, 0.82), rgba(194, 143, 70, 0.42));
    content: "";
}

.az-cap {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(23, 32, 51, 0.68);
    color: var(--white-color);
    font-size: 13px;
    font-weight: 800;
}

.az-chip {
    position: absolute;
    z-index: 2;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.18);
}

.az-chip.t1 {
    top: 10%;
    left: 0;
}

.az-chip.t2 {
    top: 52%;
    right: 2%;
}

.az-chip.t3 {
    bottom: 3%;
    left: 12%;
}

.az-glow {
    position: absolute;
    inset: 16% 12%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(194, 143, 70, 0.22);
    filter: blur(46px);
}

.about-us,
.our-projects {
    padding: clamp(72px, 8vw, 120px) 0;
    background: var(--white-color);
}

.about-us-images {
    position: relative;
    min-height: 520px;
}

.about-img-1,
.about-img-2,
.about-experience-image,
.project-image {
    position: relative;
}

.about-img-1 {
    width: 74%;
}

.about-img-2 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56%;
}

.image-anime,
.about-experience-image {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 8px;
    background: #efe7d9;
}

.image-anime img,
.about-experience-image img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.about-img-1 .image-anime img {
    min-height: 430px;
}

.about-img-2 .image-anime {
    border: 10px solid var(--white-color);
    box-shadow: var(--shadow-soft);
}

.about-img-2 .image-anime img {
    min-height: 300px;
}

.about-experience-box {
    display: grid;
    margin-top: 26px;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.about-experience-image img {
    min-height: 128px;
}

.about-experience-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fbf8f2;
}

.icon-box {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: var(--white-color);
}

.icon-box img {
    width: 28px;
    height: 28px;
}

.about-experience-content h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.what-we-do {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 120px) 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(194, 143, 70, 0.2), transparent 30%),
        linear-gradient(135deg, #101827 0%, #1e2d48 100%);
    color: var(--white-color);
}

.az-work__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.16;
}

.what-we-do .container {
    position: relative;
    z-index: 1;
}

.az-work__lead,
.az-work__note {
    color: rgba(255, 255, 255, 0.78) !important;
}

.az-work__list {
    display: grid;
    gap: 12px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.az-work__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    line-height: 1.45;
}

.az-work__right {
    position: relative;
}

.az-photo {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.az-photo img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.az-photo__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 42%, transparent 58%);
    opacity: 0.45;
}

.az-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.az-tag {
    display: inline-flex;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 800;
}

.section-row {
    margin-bottom: 26px;
}

.our-Project-nav {
    margin-bottom: 38px;
}

.our-Project-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.our-Project-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--white-color);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.our-Project-nav a:hover,
.our-Project-nav .active-btn {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--white-color);
}

.project-item-box {
    margin-bottom: 28px;
}

.project-item-box.is-hidden {
    display: none;
}

.project-item {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white-color);
    box-shadow: 0 18px 46px rgba(23, 32, 51, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.project-image {
    overflow: hidden;
    background: #efe7d9;
}

.project-image a,
.project-image figure {
    display: block;
    margin: 0;
}

.project-image figure {
    aspect-ratio: 4 / 3;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.04);
}

.project-tag {
    position: absolute;
    top: 14px;
    left: 14px;
}

.project-tag a,
.project-tag span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--white-color);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.project-content,
.az-catalog-card__content {
    padding: 20px;
}

.project-content h3,
.az-catalog-card__content h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.18;
}

.project-content a:hover,
.az-catalog-card__content a:hover {
    color: var(--accent-color);
}

.az-reveal {
    opacity: 1;
    transform: none;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        width: 33.333333%;
    }

    .col-lg-6 {
        width: 50%;
    }

    .col-lg-12 {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .header-contacts {
        display: none;
    }

    .navbar .container {
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
    }

    .navbar .container {
        justify-content: space-between;
    }

    .navbar-toggle {
        display: block;
    }

    .main-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        left: 12px;
        display: block;
        padding: 18px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--white-color);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .main-header.is-menu-open .main-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 6px;
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        background: #f8f5ee;
    }

    .az-inner {
        grid-template-columns: 1fr;
    }

    .az-collage {
        min-height: 520px;
    }

    .about-us-images {
        min-height: 460px;
        margin-bottom: 38px;
    }

    .about-experience-box {
        grid-template-columns: 1fr;
    }

    .what-we-do-content {
        margin-bottom: 34px;
    }
}

@media (max-width: 767px) {
    .container,
    .az-inner {
        width: min(100% - 24px, 1200px);
    }

    .az-hero {
        padding-top: 112px;
    }

    .az-title {
        font-size: clamp(38px, 13vw, 58px);
    }

    .az-stats {
        grid-template-columns: 1fr;
    }

    .az-collage {
        min-height: 420px;
    }

    .az-card.c1 {
        width: 82%;
    }

    .az-card.c2 {
        width: 68%;
    }

    .az-card.c3 {
        width: 66%;
    }

    .az-chip {
        display: none;
    }

    .about-us,
    .what-we-do,
    .our-projects {
        padding: 64px 0;
    }

    .about-us-images {
        min-height: 390px;
    }

    .about-img-1 {
        width: 86%;
    }

    .about-img-2 {
        width: 66%;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .az-photo,
    .az-photo img {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .az-actions,
    .az-btn {
        width: 100%;
    }

    .about-us-images {
        min-height: auto;
    }

    .about-img-1,
    .about-img-2 {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
    }

    .about-img-2 {
        margin-top: 16px;
    }
}
