/* EUROSERVIS — pixel-match to reference mockup */
:root {
    --primary: #FF6600;
    --primary-hover: #E55C00;
    --dark: #1A1A1A;
    --text-main: #333333;
    --text-muted: #777777;
    --bg-light: #F7F7F7;
    --white: #FFFFFF;
    --border: #E8E8E8;
    --footer-dark: #1C1C1C;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 12px 22px;
    font-size: 10px;
    letter-spacing: 0.8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: var(--white);
    color: var(--dark);
    border: 1px solid var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
}

.btn i {
    font-size: 10px;
}

/* --- Section tags --- */
.section-tag {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    display: block;
}

.section-tag--with-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag--with-line::before {
    content: '';
    width: 28px;
    height: 2px;
    background-color: var(--primary);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.12;
    color: var(--dark);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 22px 0;
    padding-top: max(22px, env(safe-area-inset-top));
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header--scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 var(--border);
    padding: 14px 0;
    padding-top: max(14px, env(safe-area-inset-top));
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 19px;
    color: var(--dark);
    letter-spacing: -0.2px;
    justify-self: start;
}

.logo__text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo__suffix {
    color: var(--primary);
    font-weight: 800;
    margin-left: 3px;
}

.logo__img {
    width: auto;
    height: 44px;
    display: block;
    flex-shrink: 0;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: contain;
}

.logo--footer .logo__img {
    height: 48px;
}

.nav {
    justify-self: center;
}

.nav ul {
    display: flex;
    gap: 32px;
}

.nav a {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: 0.8px;
}

.nav a:hover {
    color: var(--primary);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.phone-link--icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.phone-link--icon i {
    font-size: 15px;
    color: inherit;
}

.phone-link--icon:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* --- Language switcher --- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.header--scrolled .lang-switcher,
.header:not(.header--scrolled) .lang-switcher {
    background: rgba(255, 255, 255, 0.85);
}

.lang-switcher__btn {
    min-width: 36px;
    padding: 7px 10px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
}

.lang-switcher__btn:hover {
    color: var(--dark);
}

.lang-switcher__btn.is-active {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.lang-switcher__btn.is-active:hover {
    color: var(--primary);
}

.lang-switcher--compact .lang-switcher__btn {
    min-width: 32px;
    padding: 6px 8px;
    font-size: 9px;
}

.lang-switcher--wide {
    width: 100%;
    padding: 4px;
    gap: 4px;
}

.lang-switcher--wide .lang-switcher__btn {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lang-switcher__code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lang-switcher__name {
    font-size: 10px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}

.lang-switcher--wide .lang-switcher__btn.is-active .lang-switcher__name {
    color: var(--primary);
    opacity: 1;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 24px);
    background-color: var(--white);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.96) 30%,
        rgba(255, 255, 255, 0.72) 44%,
        rgba(255, 255, 255, 0.15) 58%,
        rgba(255, 255, 255, 0) 68%
    );
    z-index: 1;
    pointer-events: none;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/hero-1.jpg') no-repeat 62% center / cover;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 520px;
    padding: 40px 0 80px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 62px;
    line-height: 1.02;
    font-weight: 900;
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 34px;
    max-width: 420px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Solutions --- */
.solutions {
    padding: 90px 0 100px;
    background: var(--white);
}

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 44px;
}

.section-desc-split {
    max-width: 380px;
    font-size: 13px;
    color: var(--text-muted);
    border-left: 2px solid var(--primary);
    padding-left: 18px;
    line-height: 1.75;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.solution-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.solution-img {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.solution-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    opacity: 0.92;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.5s ease;
}

.solution-card:hover .solution-img img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
}

.solution-info {
    position: relative;
    padding: 18px 16px 20px;
    min-height: 118px;
}

.solution-icon {
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1;
}

.solution-icon .ti {
    display: block;
    font-size: 28px;
}

.solution-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    padding-right: 24px;
}

.solution-link {
    position: absolute;
    bottom: 18px;
    right: 16px;
    font-size: 13px;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
}

.solution-card:hover .solution-link {
    color: var(--primary);
}

/* --- About company --- */
.about-company {
    padding: 90px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.about-company__inner {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 56px;
    align-items: start;
}

.about-company__text {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-company__text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
}

.about-company__text strong {
    color: var(--dark);
    font-weight: 600;
}

.about-company__media {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 5;
    max-height: 520px;
}

.about-company__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* --- Why us --- */
.why-us {
    padding: 72px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-us-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
}

.why-us-intro .section-title {
    margin-bottom: 30px;
}

.why-us-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1;
}

.feature-icon .ti {
    display: block;
    font-size: 30px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.feature-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- Portfolio stats --- */
.portfolio {
    padding: 72px 0;
    background: var(--dark);
    color: var(--white);
}

.portfolio__intro {
    margin-bottom: 48px;
}

.section-tag--light {
    color: var(--primary);
}

.portfolio__heading {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-top: 4px;
}

.portfolio__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.portfolio-stat {
    position: relative;
    padding: 0 32px;
    text-align: left;
}

.portfolio-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 0;
    width: 1px;
    height: calc(100% - 16px);
    background: rgba(255, 255, 255, 0.12);
}

.portfolio-stat:first-child {
    padding-left: 0;
}

.portfolio-stat:last-child {
    padding-right: 0;
}

.portfolio-stat__value {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -3px;
    margin-bottom: 12px;
}

.portfolio-stat__plus {
    font-size: 0.55em;
    letter-spacing: 0;
    vertical-align: super;
    margin-left: 2px;
}

.portfolio-stat__title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.portfolio-stat__text {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
}

/* --- Projects --- */
.projects {
    padding: 90px 0 100px;
    background: var(--white);
}

.section-header-split--projects {
    align-items: flex-end;
}

.section-header-split__action {
    padding-bottom: 6px;
}

.projects-slider-container {
    position: relative;
    overflow: hidden;
}

.projects-wrapper {
    display: flex;
    gap: 18px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.project-card {
    min-width: calc(33.333% - 12px);
    flex-shrink: 0;
}

.project-img {
    height: 280px;
    overflow: hidden;
    background: #ebebeb;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.03);
}

.project-body {
    padding: 14px 2px 4px;
}

.project-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}

.project-tag--az {
    color: #4A7A8A;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.35;
}

.project-loc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 10px;
}

.project-specs {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-specs li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}

.project-specs li span:last-child {
    text-align: right;
    flex-shrink: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #D5D5D5;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    width: 26px;
    border-radius: 4px;
}

/* --- Process --- */
.process {
    padding: 90px 0 100px;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.process-heading {
    margin-bottom: 56px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: #E0E0E0;
    z-index: 0;
}

.process-item {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding-right: 8px;
}

.process-num {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 22px;
    display: block;
    background: var(--white);
    width: fit-content;
    padding-right: 4px;
}

.process-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.process-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Partners --- */
.partners {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    background-color: var(--white);
}

.partners-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.partners-title {
    flex-shrink: 0;
    min-width: 200px;
}

.partners-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.partners-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.partner-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-img:hover {
    opacity: 0.85;
    filter: grayscale(50%);
}

.partner-text {
    font-family: var(--font-heading), sans-serif;
    font-weight: 800;
    opacity: 0.45;
    filter: grayscale(100%);
    line-height: 1.15;
    text-align: center;
    transition: opacity 0.3s ease;
}

.partner-text:hover {
    opacity: 0.75;
}

.partner-text--tke {
    font-size: 22px;
    color: #111;
}

.partner-text--mitsubishi {
    font-size: 9px;
    color: #E60012;
    letter-spacing: 0.3px;
}

.partner-text--hyundai {
    font-size: 10px;
    color: #002C5F;
    letter-spacing: 0.2px;
}

/* --- Footer --- */
.footer-main {
    background-color: #F3F3F3;
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr 0.85fr 1.35fr;
    gap: 32px;
    padding: 48px 0 40px;
    align-items: start;
}

.footer-logo-desc p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 18px;
    margin-bottom: 22px;
    max-width: 230px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E2E2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 13px;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--dark);
    font-size: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

/* --- Footer offices strip --- */
.footer-offices {
    background: var(--white);
    border-bottom: 1px solid #DDD;
    padding: 40px 0 36px;
}

.footer-offices__heading {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-offices__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 56px;
}

.footer-office {
    padding-left: 16px;
    border-left: 3px solid #D8D8D8;
}

.footer-office--ge {
    border-left-color: var(--primary);
}

.footer-office__title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    line-height: 1.35;
}

.footer-office__country {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 4px;
}

.footer-office--az .footer-office__country {
    color: var(--text-muted);
}

.footer-office__phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.footer-office__phone {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.footer-office__phone:hover {
    color: var(--primary);
}

.footer-office__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-office__details li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-office__details a {
    color: var(--text-main);
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    transition: color 0.2s ease;
}

.footer-office__details a:hover {
    color: var(--primary);
}

.footer-office__details i {
    color: var(--primary);
    font-size: 12px;
    width: 14px;
    flex-shrink: 0;
    margin-top: 3px;
    text-align: center;
}

.footer-office--az .footer-office__details i {
    color: var(--text-muted);
}

.footer-office--az .footer-office__phone:hover,
.footer-office--az .footer-office__details a:hover {
    color: var(--dark);
}

.footer-form p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.65;
    max-width: 220px;
}

.footer-form-btn {
    width: 100%;
    justify-content: space-between;
    padding: 16px 22px;
}

.footer-bar {
    background-color: var(--footer-dark);
    padding: 22px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    padding: 0;
    border: none;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* --- Mobile header actions --- */
.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.offcanvas__lang {
    padding: 0 20px 20px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 20px;
    flex-shrink: 0;
}

.offcanvas__lang-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.menu-toggle {
    display: none;
}

.menu-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 20px;
    height: 20px;
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Offcanvas menu --- */
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.offcanvas-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    height: 100dvh;
    background: var(--white);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.offcanvas.is-open {
    transform: translateX(0);
}

.offcanvas__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.offcanvas__logo {
    font-size: 16px;
}

.offcanvas__logo .logo__img {
    height: 40px;
    margin-right: 8px;
}

.offcanvas__close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--dark);
    transition: background 0.25s ease, color 0.25s ease;
}

.offcanvas__close:hover {
    background: var(--primary);
    color: var(--white);
}

.offcanvas__nav {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    -webkit-overflow-scrolling: touch;
}

.offcanvas__nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offcanvas__link {
    display: block;
    padding: 16px 18px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark);
    border-left: 3px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}

.offcanvas__link:hover,
.offcanvas__link:focus-visible {
    background: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 22px;
}

.offcanvas__footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.offcanvas__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    padding: 4px 0;
}

.offcanvas__phone i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.offcanvas__cta {
    width: 100%;
    padding: 16px 24px;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
    .offcanvas,
    .offcanvas-overlay,
    .menu-toggle__bar {
        transition: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .why-us-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .why-us-inner,
    .about-company__inner {
        grid-template-columns: 1fr;
    }

    .about-company__media {
        max-height: 360px;
        order: -1;
    }

    .project-card {
        min-width: calc(33.333% - 12px);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 40px;
    }

    .process-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 32px;
    }

    .footer-logo-desc {
        grid-column: 1 / -1;
    }

    .footer-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 64px;
    }

    .header {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 1px 0 var(--border);
        padding: 10px 0;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .header--scrolled {
        padding: 8px 0;
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .nav,
    .header-contacts {
        display: none;
    }

    .logo {
        font-size: 16px;
        min-width: 0;
        flex: 1;
    }

    .logo__img {
        height: 38px;
        margin-right: 8px;
    }

    .header-mobile-actions {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero h1 {
        font-size: 44px;
    }

    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-desc-split {
        max-width: 100%;
    }

    .partners-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .partners-logos {
        width: 100%;
        justify-content: flex-start;
    }

    .portfolio__stats {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .portfolio-stat {
        padding: 0;
    }

    .portfolio-stat::after {
        display: none;
    }

    .portfolio-stat:not(:last-child) {
        padding-bottom: 36px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .solution-img {
        height: 160px;
    }

    .solution-info {
        min-height: auto;
        padding: 14px 14px 16px;
    }

    .why-us-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-company,
    .solutions,
    .projects,
    .process {
        padding: 72px 0;
    }

    .why-us-intro .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 10px 0;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .header--scrolled {
        padding: 8px 0;
        padding-top: max(8px, env(safe-area-inset-top));
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 16px);
        padding-bottom: 0;
    }

    .hero__bg {
        background-position: center center;
    }

    .hero::after {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.88) 38%,
            rgba(255, 255, 255, 0.45) 62%,
            rgba(255, 255, 255, 0.1) 100%
        );
    }

    .hero-content {
        max-width: 100%;
        padding: 32px 0 48px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 13px;
        max-width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .solutions,
    .projects,
    .process {
        padding: 64px 0;
    }

    .why-us {
        padding: 56px 0;
    }

    .portfolio {
        padding: 56px 0;
    }

    .portfolio__heading {
        font-size: 26px;
    }

    .portfolio-stat__value {
        font-size: 52px;
    }

    .portfolio-stat__text {
        max-width: 100%;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .solution-card {
        display: flex;
        flex-direction: column;
    }

    .solution-img {
        height: 200px;
        min-height: unset;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .solution-info {
        padding: 16px 16px 18px;
        min-height: auto;
    }

    .solution-name {
        font-size: 14px;
        padding-right: 28px;
    }

    .solution-link {
        position: absolute;
        bottom: 16px;
        right: 16px;
        margin-top: 0;
    }

    .why-us-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 4px 14px;
        align-items: start;
    }

    .feature-icon {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .feature-icon .ti {
        font-size: 26px;
    }

    .feature-title {
        font-size: 13px;
    }

    .feature-desc {
        font-size: 12px;
    }

    .about-company {
        padding: 56px 0;
    }

    .about-company__media {
        max-height: 280px;
        aspect-ratio: 16 / 10;
    }

    .about-company__text p {
        font-size: 14px;
    }

    .section-header-split {
        margin-bottom: 32px;
        gap: 16px;
    }

    .section-desc-split {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--primary);
        padding-top: 14px;
        width: 100%;
    }

    .project-card {
        min-width: calc(88% - 10px);
    }

    .project-title {
        font-size: 13px;
        line-height: 1.4;
    }

    .project-specs li {
        font-size: 11px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .projects-slider-container {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .project-img {
        height: 240px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-item {
        padding: 20px 0;
        border-bottom: 1px solid var(--border);
    }

    .process-item:last-child {
        border-bottom: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
        padding: 28px 0 24px;
    }

    .footer-logo-desc,
    .footer-form {
        grid-column: 1 / -1;
    }

    .footer-logo-desc {
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border);
    }

    .footer-logo-desc .logo__text {
        white-space: normal;
    }

    .footer-logo-desc p {
        max-width: none;
        margin-top: 14px;
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 1.65;
    }

    .footer-col h4 {
        margin-bottom: 10px;
    }

    .footer-col ul li {
        margin-bottom: 4px;
    }

    .footer-col ul li a {
        font-size: 13px;
        line-height: 1.45;
        display: inline-block;
        padding: 3px 0;
    }

    .footer-form {
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .footer-form p {
        max-width: none;
        margin-bottom: 14px;
    }

    .footer-offices__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-offices {
        padding: 28px 0 24px;
    }

    .footer-offices__heading {
        margin-bottom: 16px;
    }

    .footer-office {
        padding-left: 12px;
    }

    .footer-office__title {
        margin-bottom: 10px;
    }

    .footer-office__phones {
        margin-bottom: 10px;
    }

    .footer-office__details li {
        font-size: 12px;
        word-break: break-word;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 10px;
        line-height: 1.5;
    }

    .footer-bar {
        padding: 18px 0;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }

    .footer-office__phone {
        font-size: 15px;
        word-break: break-word;
    }

    .offcanvas__link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .partners {
        padding: 48px 0;
    }

    .partners-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }

    .partner-img {
        height: 22px;
        margin: 0 auto;
    }

    .partner-text {
        font-size: 9px !important;
    }

    .section-header-split--projects .section-header-split__action {
        width: 100%;
    }

    .section-header-split--projects .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 58px;
    }

    .logo {
        font-size: 13px;
    }

    .logo__img {
        height: 34px;
        margin-right: 6px;
    }

    .header-mobile-actions {
        gap: 6px;
    }

    .header-icon-btn {
        width: 42px;
        height: 42px;
    }

    .offcanvas {
        width: min(300px, 92vw);
    }

    .hero h1 {
        font-size: 30px;
    }

    .section-tag {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .solution-img {
        height: 180px;
    }

    .project-card {
        min-width: calc(92% - 4px);
    }

    .project-img {
        height: 280px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .btn {
        padding: 14px 24px;
    }

    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-dots {
        margin-top: 24px;
    }

    .portfolio-stat__value {
        font-size: 44px;
    }

    .partners-heading {
        font-size: 18px;
    }

    .footer-grid {
        gap: 20px 16px;
        padding: 24px 0 20px;
    }

    .footer-logo-desc {
        padding-bottom: 16px;
    }

    .footer-form {
        padding-top: 16px;
    }

    .footer-col h4 {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .footer-col ul li a {
        font-size: 12px;
    }

    .logo--footer .logo__img {
        height: 40px;
    }
}

/* --- Touch devices --- */
@media (hover: none) and (pointer: coarse) {
    .solution-card:hover {
        box-shadow: none;
    }

    .solution-card:hover .solution-img img {
        filter: grayscale(40%);
        transform: none;
    }

    .solution-card:active .solution-img img {
        filter: grayscale(0%);
    }

    .btn,
    .header-icon-btn,
    .lang-switcher__btn,
    .offcanvas__link {
        min-height: 44px;
    }
}
