/* ============================================================
   ZETO Central Asia — Corporate Website
   Main Stylesheet
   Structure: Reset → Variables → Layout → Components → Pages → Responsive
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES (design tokens) ===== */
:root {
    --color-blue-900: #1a2744;
    --color-blue-700: #243556;
    --color-blue-500: #2d4a7c;
    --color-red-700: #C41219;
    --color-red-500: #D94A52;
    --color-white: #FFFFFF;
    --color-neutral-50: #F7F9FC;
    --color-neutral-100:#EEF2F7;
    --color-text-900: #1F2937;
    --color-text-600: #4B5563;

    --color-primary:       var(--color-blue-700);
    --color-primary-dark:  var(--color-blue-900);
    --color-primary-light: var(--color-blue-500);
    --color-accent:        var(--color-red-700);
    --color-accent-dark:   var(--color-red-500);
    --color-navy:          var(--color-blue-900);
    --color-navy-light:    var(--color-blue-700);
    --color-bg:            var(--color-neutral-50);
    --color-bg-dark:       var(--color-blue-900);
    --color-text:          var(--color-text-900);
    --color-text-muted:    var(--color-text-600);
    --color-border:        var(--color-neutral-100);
    --color-success:       #27ae60;

    --font-main:   'Noto Sans', 'Segoe UI', Arial, sans-serif;
    --font-size:   16px;
    --line-height: 1.6;

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,.12);
    --shadow-md:   0 4px 12px rgba(0,0,0,.15);
    --shadow-lg:   0 8px 30px rgba(0,0,0,.2);

    --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --container-max: 1200px;
    --container-pad: 20px;
}

/* ===== PERFORMANCE: Hardware Acceleration ===== */
.hero__slide,
.product-card,
.btn,
.modal,
.hero__arrow,
.back-to-top,
.partners__track {
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent any element from creating horizontal scroll */
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: var(--line-height);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul { list-style: none; }

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

/* ===== LAYOUT: container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--color-navy);
    color: rgba(255,255,255,.85);
    font-size: .8rem;
    padding: 7px 0;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.top-bar__location {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar__contacts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar__contacts a {
    color: rgba(255,255,255,.85);
    white-space: nowrap;
}

.top-bar__contacts a:hover { color: var(--color-accent); }

/* ===== HEADER ===== */
.header {
    background: rgba(255,255,255,.94);
    border-bottom: 3px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
    transition: box-shadow var(--transition), background var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 16px;
}

/* Logo */
.header__logo-link { display: inline-flex; align-items: center; }

.header__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.header__logo-mark {
    display: block;
    width: auto;
    height: 104px;
}

.header__logo-sub {
    margin-top: 6px;
    font-size: .9rem;
    letter-spacing: .03em;
    color: #8a9bb0;
}

.logo-icon { width: 52px; height: 52px; flex-shrink: 0; }
.logo-icon--sm { width: 40px; height: 40px; }

.header__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: .5px;
}

.logo-sub {
    font-size: .75rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Header actions */
.header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Nav close button: hidden on desktop, shown inside mobile full-screen overlay */
.nav-close { display: none; }

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-red-700);
    color: var(--color-white);
    border-color: var(--color-red-700);
}

.btn--primary:hover {
    background: var(--color-red-500);
    border-color: var(--color-red-500);
    transform: translateY(-1px) translateZ(0);
}

.btn--accent {
    background: var(--color-red-700);
    color: var(--color-white);
    border-color: var(--color-red-700);
}

.btn--accent:hover {
    background: var(--color-red-500);
    border-color: var(--color-red-500);
    transform: translateY(-1px) translateZ(0);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px) translateZ(0);
}

.btn--full { width: 100%; }

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: linear-gradient(180deg, #233452 0%, #1a2744 100%);
    position: relative;
    z-index: 999;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
}

.main-nav__list {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.main-nav__list > li {
    position: relative;
}

.main-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    color: rgba(255,255,255,.9);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .2px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__link.active {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 280px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--color-accent);
    z-index: 200;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: .85rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition), color var(--transition), padding var(--transition);
}

.dropdown li:last-child a { border-bottom: none; }

.dropdown li a:hover {
    background: var(--color-navy);
    color: var(--color-white);
    padding-left: 24px;
}

/* ===== HERO SLIDER ===== */
.hero {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.hero__video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20, 30, 55, 0.55);
    z-index: 1;
}


.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero__slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
    will-change: transform;
    /* All animation state (transform/transition) is set by JS */
}

.hero__slide.active {
    pointer-events: auto;
}

.hero__content {
    color: var(--color-white);
    max-width: 640px;
}

.hero__title {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    text-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.hero__subtitle {
    font-size: 1.05rem;
    margin-bottom: 28px;
    opacity: .9;
}

/* Slider arrows */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.4);
    color: var(--color-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__arrow:hover { background: rgba(255,255,255,.4); }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* Slider dots */
.hero__dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
    z-index: 10;
}

.hero__dot {
    width: 10px;
    height: 10px;
    min-height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    padding: 0;
}

.hero__dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

/* ===== MAIN CONTENT ===== */
.main-content { padding-bottom: 60px; }

.page-banner,
.page-content,
.main-content > .container,
.main-content > section {
    animation: pageFadeIn .55s ease both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section title */
.section-title {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 50px 0 36px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title--light { color: var(--color-white); }
.section-title--light::after { background: var(--color-accent); }
.section-title--no-underline::after { display: none; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 30px 0 10px;
}

/* Center final row when exactly two items remain in desktop 4-column grid */
.products-grid > :nth-last-child(2):nth-child(4n + 1) { grid-column: 2; }
.products-grid > :last-child:nth-child(4n + 2) { grid-column: 3; }

/* Center final row when exactly one item remains — place it over the 2 middle columns */
.products-grid > :last-child:nth-child(4n + 1) {
    grid-column: 2 / 4;
    justify-self: center;
    width: calc(50% - 11px);
}

/* Product card */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    border: none;
    padding: 8px;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px) translateZ(0);
    opacity: 1;
}

.product-card__icon {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.product-card__icon img,
.product-card__icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.product-card__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, #f5f7fa 0%, #e6ebf2 100%);
    color: var(--color-primary);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.product-card__title {
    display: block;
    margin-top: 12px;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-primary);
    transition: color var(--transition), transform var(--transition-smooth);
}

.product-card:hover .product-card__icon,
.product-card:focus-visible .product-card__icon {
    transform: translateY(-6px) scale(1.04);
    filter: drop-shadow(0 12px 18px rgba(36,53,86,.12));
}

.product-card:hover .product-card__title,
.product-card:focus-visible .product-card__title {
    color: var(--color-red-700);
    transform: translateY(-2px);
}

/* Homepage CTA buttons row */
.home-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 30px 0 20px;
    flex-wrap: wrap;
}

.home-intro,
.home-news,
.home-request,
.home-contacts {
    margin-top: 34px;
}

.home-news {
    padding-bottom: 28px;
}

.home-panel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.home-intro__grid,
.home-request__grid,
.home-contacts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.home-intro__lead {
    font-size: 1.05rem;
    line-height: 1.8;
}

.home-intro__list {
    display: grid;
    gap: 14px;
}

.home-intro__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.home-intro__item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.home-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.news-card__date {
    display: inline-block;
    margin-bottom: 10px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.news-card h3 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.news-card p {
    color: var(--color-text-muted);
    font-size: .92rem;
}

.request-benefits {
    display: grid;
    gap: 12px;
    color: var(--color-text-muted);
}

.request-benefits li {
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
}

.request-form {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 22px;
}

.request-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tkp-form {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.tkp-form__intro {
    max-width: 860px;
}

.tkp-form__eyebrow,
.cooperation-page__eyebrow,
.contacts-page__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(36,53,86,.08);
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tkp-form__intro h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 1.55rem;
}

.tkp-form__intro p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.tkp-form__form {
    display: grid;
    gap: 16px;
}

.tkp-form__fieldset {
    border: none;
    padding: 0;
    margin-top: 8px;
}

.tkp-form__fieldset legend {
    padding: 0;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.tkp-form__purposes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tkp-form__check,
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tkp-form__check {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
}

.tkp-form__check input,
.consent-check input {
    margin-top: 3px;
}

.tkp-form__check span,
.consent-check span {
    line-height: 1.6;
    color: var(--color-text);
}

.consent-check {
    border-top: 1px solid var(--color-border);
    padding-top: 14px;
    color: var(--color-text-muted);
}

.consent-check a {
    color: var(--color-primary);
    font-weight: 600;
}

.form-note {
    font-size: .8rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.contacts-page {
    padding-bottom: 72px;
}

.contacts-page__intro,
.cooperation-page__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .85fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.contacts-page__meta,
.cooperation-page__aside {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(36,53,86,.08);
    background: linear-gradient(180deg, rgba(36,53,86,.03), rgba(36,53,86,.01));
}

.contacts-page__meta strong,
.cooperation-page__aside strong {
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.contacts-page__meta p,
.cooperation-page__aside p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.contacts-page__grid,
.cooperation-page__grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.contact-block--details,
.cooperation-page__benefits {
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(36,53,86,.08);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.contact-block__stack {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-block__map {
    min-height: 300px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.contact-block__map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

.cooperation-page__benefits h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.cooperation-page__form {
    display: grid;
    gap: 16px;
}

.legal-page {
    max-width: 960px;
}

.legal-page p + p {
    margin-top: 12px;
}

.home-contacts__list {
    display: grid;
    gap: 12px;
}

.home-contacts__item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}

.home-contacts__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.home-map {
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.home-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.project-card__img,
.project-card__img-placeholder {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: linear-gradient(135deg, #F2F3F5, #D8DCE2);
}

.project-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-card__tag {
    display: inline-block;
    background: #fce8e9;
    color: #a10f15;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.project-card__title {
    font-size: 1rem;
    color: var(--color-text);
}

.project-card__desc,
.project-card__meta {
    font-size: .88rem;
    color: var(--color-text-muted);
}

.projects-page {
    padding-bottom: 72px;
}

.projects-page__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr);
    gap: 24px;
    align-items: start;
}

.projects-page__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(36,53,86,.08);
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.projects-page__status {
    padding: 24px;
    border: 1px solid rgba(36,53,86,.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(36,53,86,.03), rgba(36,53,86,.01));
}

.projects-page__status strong {
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 2rem;
    line-height: 1;
}

.projects-page__status p {
    margin: 0;
    color: var(--color-text-muted);
}

.projects-placeholder {
    margin-top: 28px;
}

.projects-placeholder__panel {
    padding: 38px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(181,18,27,.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid rgba(36,53,86,.08);
    box-shadow: var(--shadow-sm);
}

.projects-placeholder__tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(181,18,27,.08);
    color: var(--color-red-700);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.projects-placeholder__panel h2 {
    margin-bottom: 14px;
    color: var(--color-primary);
}

.projects-placeholder__panel p {
    max-width: 760px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.projects-placeholder__list {
    display: grid;
    gap: 10px;
    margin: 22px 0 28px;
    padding-left: 18px;
    color: var(--color-text);
}

.projects-showcase {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.project-showcase-card {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    border: 1px solid rgba(36,53,86,.08);
    border-radius: 22px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.project-showcase-card__media {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(180deg, #f4f7fb 0%, #e8edf4 100%);
}

.project-showcase-card__cover {
    width: 100%;
    min-height: 280px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

.project-showcase-card__cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f1f4f8 0%, #dfe6ef 100%);
    color: var(--color-primary);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.project-showcase-card__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.project-showcase-card__thumbs img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.project-showcase-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.project-showcase-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-showcase-card__meta span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(36,53,86,.07);
    color: var(--color-primary);
    font-size: .8rem;
    font-weight: 600;
}

.project-showcase-card__body h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.45rem;
}

.project-showcase-card__body p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.project-showcase-card__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.project-showcase-card__footer span {
    color: var(--color-text-muted);
    font-size: .9rem;
}

/* ===== ADMIN CMS ===== */
.admin-page {
    min-height: 100vh;
    padding: 40px 0 60px;
}

.admin-shell {
    display: grid;
    gap: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.admin-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.admin-card h2 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-status {
    min-height: 24px;
    font-size: .9rem;
    color: var(--color-primary);
}

.admin-note {
    font-size: .85rem;
    color: var(--color-text-muted);
}

/* Partners banner — real image */
.partners__label {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.partners__banner {
    text-align: center;
}

.partners__banner img {
    display: block;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* ===== WHY US ===== */
.why-us {
    background: var(--color-navy);
    padding: 50px 0;
    margin-top: 50px;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.why-us__num {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.why-us__label {
    font-size: .9rem;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== PARTNERS ===== */
.partners {
    padding: 50px 0;
    background: var(--color-white);
}

.partners__track-wrapper {
    overflow: hidden;
    position: relative;
}

/* Fade edges */
.partners__track-wrapper::before,
.partners__track-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.partners__track-wrapper::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--color-white) 0%,
        var(--color-white) 42%,
        rgba(255,255,255,0) 100%
    );
}

.partners__track-wrapper::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--color-white) 0%,
        var(--color-white) 42%,
        rgba(255,255,255,0) 100%
    );
}

.partners__track {
    display: flex;
    gap: 30px;
    animation: scrollPartners 22s linear infinite;
    width: max-content;
    padding-inline: 8px;
}

.partner-logo {
    flex: 0 0 auto;
    min-width: 140px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 22px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: .5px;
    transition: border-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.partner-logo--image {
    width: 180px;
    height: 72px;
    min-width: unset;
    padding: 8px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.partner-logo--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .88;
    transition: filter var(--transition), opacity var(--transition);
}

.partner-logo:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.partner-logo--image:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scrollPartners {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== FOOTER ===== */
.footer {
    background:
        radial-gradient(circle at top left, rgba(181,18,27,.14), transparent 28%),
        linear-gradient(180deg, #223353 0%, #162238 100%);
    color: rgba(255,255,255,.8);
    padding-top: 50px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
}

.footer__logo-mark {
    width: auto;
    height: 46px;
    display: block;
    filter: brightness(0) invert(1);
}

.footer__logo-sub {
    margin-top: 4px;
    display: block;
}

.footer__logo .logo-main { color: var(--color-white); }
.footer__logo .logo-sub  { color: rgba(255,255,255,.6); }

.footer__about { font-size: .85rem; line-height: 1.6; color: rgba(255,255,255,.65); }

.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 16px;
    font-size: .82rem;
}

.footer__legal-links a {
    color: rgba(255,255,255,.75);
}

.footer__legal-links a:hover {
    color: var(--color-accent);
}

.footer__heading {
    font-size: .95rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: .3px;
}

.footer__links li { margin-bottom: 8px; }

.footer__links a {
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}

.footer__links a:hover {
    color: var(--color-accent);
    padding-left: 6px;
}

.footer__address {
    font-style: normal;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
}

.footer__address p { margin-bottom: 6px; }
.footer__address a { color: rgba(255,255,255,.7); }
.footer__address a:hover { color: var(--color-accent); }

.footer__bottom {
    padding: 16px 0;
    font-size: .78rem;
    text-align: center;
    color: rgba(255,255,255,.45);
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal__close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.modal__close:hover { color: var(--color-primary); }

.modal__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

/* Form */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(36,53,86,.24);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: .9rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(181,18,27,.14);
}

.form-group textarea { resize: vertical; }

.form-note {
    font-size: .75rem;
    color: var(--color-text-muted);
    margin-top: 10px;
    line-height: 1.4;
}

.modal__success {
    text-align: center;
    padding: 20px 0;
}

.modal__success svg { margin: 0 auto 16px; }

.modal__success p {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 500;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover { transform: translateY(-3px); }

/* ===== SUBPAGE STYLES ===== */
.page-banner {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 50px 0;
}

.page-banner h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-banner p { opacity: .85; max-width: 560px; }

.page-content {
    background: var(--color-white);
    padding: 50px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 14px;
}

.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span { color: rgba(255,255,255,.45); }

/* Content typography */
.content-body h2 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 30px 0 14px;
}

.content-body h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 22px 0 10px;
}

.content-body p { margin-bottom: 14px; line-height: 1.7; }

.content-body ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 14px;
}

.content-body ul li { margin-bottom: 6px; }

/* Card grid for subpages */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 340px));
    gap: 24px;
    margin-top: 30px;
    justify-content: center;
}

.info-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    background: var(--color-bg);
    transition: box-shadow var(--transition), transform var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.info-card__logo {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.info-card__logo img {
    max-width: 180px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.info-card .btn { margin-top: auto; padding-top: 14px; }

.info-card h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.info-card p { font-size: .88rem; color: var(--color-text-muted); }

/* Equipment section anchor highlight */
.equipment-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border);
}

.equipment-section:last-child { border-bottom: none; }

.equipment-section h2 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipment-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Contacts page */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: stretch;
}

.contact-block {
    display: flex;
    flex-direction: column;
}

.contacts-page__forms {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
}

.contacts-page__form-note {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.contact-block .map-grow {
    flex: 1;
    min-height: 250px;
}

/* Make the quick-contact card match the contact details card height */
#contactPageForm {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--color-white);
    border: 1px solid rgba(36,53,86,.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

#contactPageForm > p {
    margin-bottom: 18px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

#contactPageForm .form-group:has(#cpMessage) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#contactPageForm #cpMessage {
    flex: 1;
    resize: none;
    min-height: 180px;
}

.contacts-page__tkp {
    margin-top: -22px;
    padding-top: 20px;
}

.contact-block h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-item svg { flex-shrink: 0; margin-top: 2px; }

.contact-item a { color: var(--color-primary); font-weight: 500; }
.contact-item a:hover { color: var(--color-accent-dark); }

.map-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #F2F3F5, #DEE2E8);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: .9rem;
    margin-top: 16px;
}

/* Certificates page gallery */
.cert-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.cert-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: var(--color-white);
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.cert-item__preview {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #F2F3F5, #D8DCE2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cert-item p { font-size: .82rem; color: var(--color-text-muted); }

.certificates-page {
    padding: 36px 0 72px;
}

.certificates-page__intro {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.certificates-page__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(36,53,86,.08);
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.certificates-page__meta {
    border: 1px solid rgba(36,53,86,.1);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(36,53,86,.03), rgba(36,53,86,.01));
    padding: 22px;
}

.certificates-page__count {
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
}

.certificates-page__meta p {
    margin: 0;
    color: var(--color-text-muted);
}

.certificates-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.certificate-card {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    min-height: 360px;
    background: var(--color-white);
    border: 1px solid rgba(36,53,86,.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.certificate-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 24px;
    border-right: 1px solid rgba(36,53,86,.08);
    background:
        radial-gradient(circle at top left, rgba(181,18,27,.1), transparent 45%),
        linear-gradient(180deg, #f5f7fa 0%, #e9edf3 100%);
}

.certificate-card__preview img {
    width: 100%;
    height: 100%;
    max-height: 310px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 10px 24px rgba(36,53,86,.1);
}

.certificate-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
}

.certificate-card__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(181,18,27,.08);
    color: var(--color-red-700);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.certificate-card__body h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.45rem;
    line-height: 1.2;
}

.certificate-card__body p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: .98rem;
    line-height: 1.7;
}

.certificate-card__body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Cooperation / SGB / KPB page content cards */
.highlight-box {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
}

.highlight-box h2 { color: var(--color-white); margin-bottom: 10px; }
.highlight-box p { opacity: .9; }

/* ===== EQUIPMENT / SGB / KPB LINKS LIST ===== */
.equipment-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
    max-width: 560px;
}

.equip-link {
    display: block;
    padding: 12px 18px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
    font-family: var(--font-main);
    text-align: left;
    width: 100%;
}

.equip-link:hover {
    background: var(--color-white);
    border-color: var(--color-primary);
}

.equip-link--btn {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.equip-link--btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* ===== EQUIPMENT CATALOG SECTIONS ===== */
.equip-section {
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
    padding-top: 32px;
    scroll-margin-top: 80px; /* offset for sticky nav */
}

.equip-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 4px solid var(--color-primary);
}

.equip-section__desc {
    color: var(--color-text);
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 16px;
}

.equip-section__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.equip-section__link,
.equip-section__btn {
    font-size: .88rem;
    padding: 9px 20px;
}

/* ===== VACANCIES SECTION ===== */
.vacancies {
    background: var(--color-bg);
    padding: 48px 0;
    margin-top: -56px;
}

.vacancies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.vacancy-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.vacancy-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.vacancy-card__tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-primary);
    background: rgba(161,15,21,.08);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 12px;
}

.vacancy-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.vacancy-card__meta {
    font-size: .85rem;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vacancy-card__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vacancy-card__desc {
    font-size: .9rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 18px;
}

.vacancies__cta {
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--color-white);
    border: 1px dashed var(--color-primary);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--color-text-muted);
    font-size: .95rem;
}

.vacancies__cta a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ===== ACTIVE NAV STATE ===== */
.main-nav__link.active {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ===== RESPONSIVE: Tablet ===== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid > :nth-last-child(2):nth-child(4n + 1),
    .products-grid > :last-child:nth-child(4n + 2),
    .products-grid > :last-child:nth-child(4n + 1) { grid-column: auto; width: auto; }
    .home-news__grid { grid-template-columns: 1fr; }
    .home-intro__grid,
    .home-request__grid,
    .home-contacts__grid,
    .admin-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-us__grid  { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__col--brand { grid-column: 1 / -1; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 340px)); }
    .cert-gallery { grid-template-columns: repeat(3, 1fr); }
    .certificates-page__intro,
    .projects-page__intro,
    .contacts-page__intro,
    .cooperation-page__intro,
    .certificates-page__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .hero { height: 340px; }
    .hero__title { font-size: 1.6rem; }
    .contacts-grid { grid-template-columns: 1fr; }
    .project-showcase-card { grid-template-columns: 1fr; }
    .contacts-page__grid,
    .cooperation-page__grid,
    .tkp-form__purposes { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE: Mobile ===== */
@media (max-width: 768px) {
    :root { --container-pad: 16px; }

    /* Top bar: single compact row, show only first phone + email */
    .top-bar__inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .top-bar__contacts a:not(:first-child):not(:last-child) { display: none; }

    /* Header */
    .header__actions { display: none; }
    .nav-toggle { display: flex; width: 44px; height: 44px; }
    .header__logo-mark { height: 60px; }

    /* Navigation: true full-screen overlay */
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1050;
        overflow-y: auto;
        overscroll-behavior: contain; /* prevent body scroll-through on iOS */
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .28s ease, transform .28s ease, visibility 0s .28s;
    }
    .main-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .28s ease, transform .28s ease, visibility 0s;
    }

    /* Hide the sticky header entirely when menu is open */
    .header.nav-open {
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    /* Floating × close button inside the nav (visible only on mobile) */
    .nav-close {
        display: flex;
        position: fixed;
        top: 14px;
        right: 16px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        font-size: 1.75rem;
        line-height: 1;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1070; /* above .main-nav */
        transition: background .2s;
        padding: 0;
    }
    .nav-close:hover { background: rgba(255, 255, 255, 0.28); }

    .main-nav__list {
        flex-direction: column;
        min-height: 100dvh;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    .main-nav__link {
        padding: 16px 24px;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: .01em;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }

    /* Dropdown on mobile: static, controlled by .open class only.
       Cancel the desktop :hover rule (it has higher specificity and
       "sticks" on touch, preventing the toggle from closing). */
    .has-dropdown:hover .dropdown { display: none; }
    .has-dropdown .dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border-top: none;
        background: rgba(255,255,255,.05);
    }
    .has-dropdown.open .dropdown { display: block; }
    .dropdown li a { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.08); }
    .dropdown li a:hover { background: rgba(255,255,255,.1); color: var(--color-white); }

    /* Hero */
    .hero { height: 280px; }
    .hero__title { font-size: 1.3rem; }
    .hero__subtitle { font-size: .9rem; }
    /* Products */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .request-form__row { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

    /* Stats */
    .why-us__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Footer */
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }

    /* Cards: full-width single column on mobile */
    .card-grid { grid-template-columns: 1fr; max-width: 100%; }
    .cert-gallery { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; }
    .projects-placeholder__panel { padding: 24px; }
    .project-showcase-card__body { padding: 22px; }
    .contact-block--details,
    .cooperation-page__benefits { padding: 22px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .home-panel { padding: 20px; }
    .product-card { padding: 18px 12px; }
    .product-card__icon { width: 110px; height: 110px; }
    .product-card__title { font-size: .82rem; }
    .hero__title { font-size: 1.1rem; }
    .section-title { font-size: 1.35rem; }
    .cert-gallery { grid-template-columns: 1fr 1fr; }
    .certificate-card__body { padding: 20px; }
    .certificate-card__body h3 { font-size: 1.2rem; }
}

/* ===== RESPONSIVE: Mobile — Additional UX Improvements ===== */

@media (max-width: 768px) {

    /* ── Improve touch targets (min 44x44px for accessibility) ── */
    button, .btn, input, select {
        min-height: 44px;
    }

    /* ── Top bar: hide address to save space, show only clickable contacts ── */
    .top-bar__location { display: none; }
    .top-bar__contacts { gap: 10px; }

    /* ── Page banners ── */
    .page-banner        { padding: 28px 0; }
    .page-banner h1     { font-size: 1.5rem; }
    .page-banner p      { font-size: .9rem; }

    /* ── Inner page content ── */
    .page-content       { padding: 28px 0; }

    /* ── Section headings ── */
    .section-title      { font-size: 1.4rem; margin: 28px 0 20px; }

    /* ── Sections spacing ── */
    .partners           { padding: 28px 0; }
    .why-us             { padding: 32px 0; margin-top: 32px; }
    .main-content       { padding-bottom: 30px; }

    /* ── Home page CTA buttons: stack vertically & full-width ── */
    .home-cta           { flex-direction: column; align-items: center; }
    .home-cta .btn      { width: 100%; max-width: 300px; }

    /* ── Equipment / SGB / KPB link lists: full width ── */
    .equipment-links    { max-width: 100%; }

    /* ── Modal: tighter padding on mobile ── */
    .modal              { padding: 26px 20px; }

    /* ── Contact page map: cap height when columns are stacked ── */
    .contact-block .map-grow        { min-height: 200px; max-height: 260px; }
    .contact-block .map-grow iframe { height: 100%; }

    /* ── Back-to-top: tuck closer to screen edge ── */
    .back-to-top        { bottom: 16px; right: 16px; }

    /* ── Hamburger → X animation (aria-expanded is set by main.js) ── */
    .nav-toggle span {
        transition: transform .25s ease, opacity .25s ease, background .25s ease;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ── Breadcrumb: slightly smaller ── */
    .breadcrumb         { font-size: .75rem; }

    /* ── Hero arrows: hidden on mobile — swipe is already supported ── */
    .hero__arrow        { display: none; }

    /* ── Buttons: keep touch target height but slightly smaller on mobile ── */
    .btn                { padding: 9px 20px; font-size: .85rem; min-height: 44px; }

    /* ── Prevent text selection during touch interactions ── */
    .hero__arrow,
    .hero__dot,
    .nav-toggle,
    .btn {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-touch-callout: none;
        user-select: none;
    }
}

@media (max-width: 480px) {

    /* ── Top bar: more compact on small phones ── */
    .top-bar            { font-size: .73rem; padding: 5px 0; }
    .top-bar__contacts  { gap: 8px; }

    /* ── Header logo: smaller on tiny screens ── */
    .header__logo-mark  { height: 50px; }

    /* ── Page banner: tighter ── */
    .page-banner        { padding: 20px 0; }
    .page-banner h1     { font-size: 1.25rem; }
    .page-banner p      { font-size: .85rem; }

    /* ── Page content: tighter ── */
    .page-content       { padding: 22px 0; }

    /* ── Modal: near full-screen feel ── */
    .modal-overlay      { padding: 10px; }
    .modal              { padding: 20px 14px; border-radius: var(--radius-md); }
    .modal__title       { font-size: 1.1rem; margin-bottom: 16px; }

    /* ── Stats grid: tighter numbers ── */
    .why-us__num        { font-size: 2rem; }
    .why-us__label      { font-size: .78rem; }

    /* ── Footer: less top padding ── */
    .footer             { padding-top: 28px; }

    /* ── Breadcrumb: compact ── */
    .breadcrumb         { font-size: .72rem; }
}

/* ===== Phase 1-5 catalog and about refresh ===== */
.equipment-overview {
    margin-bottom: 28px;
}

.equipment-overview__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.equipment-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    font-size: .92rem;
    box-shadow: var(--shadow-sm);
}

.equipment-chip--active,
.equipment-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.catalog-section {
    margin-top: 42px;
}

.catalog-section__header {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.catalog-section__eyebrow {
    font-size: .9rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.catalog-section__title {
    font-size: 2rem;
    color: var(--color-primary-dark);
}

.catalog-section__desc {
    color: var(--color-text-muted);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.catalog-group__title {
    margin: 26px 0 16px;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.catalog-grid {
    display: grid;
    gap: 20px;
}

.catalog-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(36,53,86,.08);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition);
}

.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(26,39,68,.12);
    border-color: rgba(181,18,27,.22);
}

.catalog-card__image {
    width: 100%;
    min-height: 250px;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e6edf8, #cfd8ea);
    transition: transform var(--transition-smooth);
}

.catalog-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f5f7fa 0%, #e8edf4 100%);
    color: var(--color-primary);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fallback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 92px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-card__body {
    padding: 24px;
}

.catalog-card:hover .catalog-card__image {
    transform: scale(1.03);
}

.catalog-card__body h4 {
    font-size: 1.45rem;
    margin-bottom: 6px;
    color: var(--color-primary-dark);
}

.catalog-card__subtitle {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.catalog-card__purpose {
    color: var(--color-text-muted);
}

.catalog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.catalog-card__tags span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(26,39,68,.07);
    color: var(--color-primary-dark);
    font-size: .85rem;
    font-weight: 500;
}

.catalog-card__details {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 14px 0;
    margin: 18px 0;
}

.catalog-card__details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.catalog-card__details ul {
    list-style: disc;
    padding-left: 22px;
    color: var(--color-text-muted);
}

.catalog-card__details li + li {
    margin-top: 8px;
}

.catalog-card__downloads,
.catalog-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-card__actions {
    margin-top: 14px;
}

.about-layout {
    display: grid;
    gap: 24px;
}

.about-story p + p {
    margin-top: 14px;
}

.about-story .section-title::after,
.about-certificates .section-title::after {
    display: none;
}

.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 360px));
    gap: 20px;
    width: min(100%, 740px);
    justify-content: center;
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
}

.manufacturer-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.manufacturer-card__eyebrow {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-accent);
    font-weight: 700;
}

.manufacturer-card__meta {
    color: var(--color-text-muted);
    font-weight: 500;
}

.about-certificates__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.about-certificates__card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-certificates__card h3 {
    margin-bottom: 14px;
}

.about-certificates__card p {
    margin-bottom: 20px;
}

.about-certificates__card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.vacancies__placeholder p {
    max-width: 820px;
}

.cert-item--detailed {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 20px;
    align-items: stretch;
    padding: 18px;
}

.cert-item__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 900px) {
    .catalog-section__header,
    .catalog-card,
    .manufacturer-grid,
    .cert-item--detailed,
    .certificate-card {
        grid-template-columns: 1fr;
    }

    .certificate-card {
        min-height: 0;
    }

    .certificate-card__preview {
        min-height: 280px;
        border-right: none;
        border-bottom: 1px solid rgba(36,53,86,.08);
    }
}

/* ===== RESPONSIVE: Mobile — Phase 14 Audit Fixes ===== */

/* ── Dropdown chevron indicator (desktop + mobile) ── */
.has-dropdown > .main-nav__link::after {
    content: '▾';
    font-size: .75rem;
    margin-left: 4px;
    opacity: .7;
    transition: transform var(--transition);
    display: inline-block;
}
.has-dropdown.open > .main-nav__link::after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    /* ── Product card icon: prevent overflow in 2-column grid ── */
    /* Column width ≈ (375 - 32 - 14) / 2 ≈ 164px; icon was 200px → clamp it */
    .product-card__icon {
        width: 140px;
        height: 140px;
    }

    /* ── Catalog section title: reduce from 2rem ── */
    .catalog-section__title {
        font-size: 1.5rem;
    }

    /* ── Catalog card header: tighter gap when stacked ── */
    .catalog-section__header {
        gap: 16px;
    }

    /* ── Catalog card image: capped height, cover by default ── */
    .catalog-card__image {
        height: 220px;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }

    /* ── Catalog card body: tighter on mobile ── */
    .catalog-card__body {
        padding: 14px 16px;
    }
    .catalog-card__body h4        { font-size: 1.15rem; margin-bottom: 4px; }
    .catalog-card__subtitle       { font-size: .88rem; margin-bottom: 8px; }
    .catalog-card__purpose        { font-size: .88rem; }
    .catalog-card__tags           { gap: 6px; margin: 12px 0; }
    .catalog-card__tags span      { padding: 5px 8px; font-size: .8rem; }
    .catalog-card__details        { padding: 10px 0; margin: 12px 0; }
    .catalog-card__actions        { margin-top: 10px; }

    /* ── cert-item--detailed: stack on mobile ── */
    .cert-item--detailed {
        grid-template-columns: 1fr;
    }

    /* ── Project showcase cover: reduce height when card is single-column ── */
    .project-showcase-card__cover {
        min-height: 180px;
        max-height: 220px;
    }

    /* ── Contacts / cooperation page: tighter gap when stacked ── */
    .contacts-page__grid,
    .cooperation-page__grid {
        gap: 16px;
    }

    /* ── Equipment action buttons: tighter gap on small nav ── */
    .equip-section__actions {
        gap: 8px;
    }

    /* ── Partners: narrow fade edges so more logos are visible ── */
    .partners__track-wrapper::before,
    .partners__track-wrapper::after {
        width: 40px;
    }

    /* ── Home map: shorter on phones ── */
    .home-map           { min-height: 240px; }
    .home-map iframe    { min-height: 240px; }

    /* ── Scroll offset: account for taller mobile sticky header ── */
    .equip-section      { scroll-margin-top: 130px; }
    .catalog-section    { scroll-margin-top: 130px; }
}

@media (max-width: 480px) {
    /* ── Download buttons: stack vertically so all 3 are easy to tap ── */
    .catalog-card__downloads {
        flex-direction: column;
    }
    .catalog-card__downloads .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Catalog section title: compact on phones ── */
    .catalog-section__title {
        font-size: 1.25rem;
    }

    /* ── Catalog card image: capped height on small phones ── */
    .catalog-card__image {
        height: 190px;
        max-height: 190px;
        object-fit: cover;
    }

    /* ── Certificate card preview: shorter on small phones ── */
    .certificate-card__preview {
        min-height: 200px;
    }

    /* ── Catalog action buttons: stack on tiny screens ── */
    .catalog-card__actions {
        flex-direction: column;
    }
    .catalog-card__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Certificate card body: compact ── */
    .certificate-card__body {
        padding: 16px;
    }
    .certificate-card__body h3 {
        font-size: 1.1rem;
    }
    .certificate-card__label {
        font-size: .72rem;
    }

    /* ── Project showcase card body: compact ── */
    .project-showcase-card__body {
        padding: 16px;
        gap: 12px;
    }
    .project-showcase-card__body h3 {
        font-size: 1.2rem;
    }
}

/* ===== RESPONSIVE: Phase 15 — Comprehensive Mobile Polish ===== */

/* ── 1. Hero: explicit height so height:100% on slider works ───── */
@media (max-width: 768px) {
    .hero {
        height: 240px;
    }
    .hero__title    { font-size: 1.1rem; }
    .hero__subtitle { font-size: .82rem; }
}

/* ── 2. Modal: scrollable on small phones ─────────────────────── */
@media (max-width: 480px) {
    .modal-overlay {
        align-items: flex-end; /* slide up from bottom on phones */
        padding: 0;
    }

    .modal {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 92dvh;
        max-height: 92vh; /* fallback */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }
}

/* ── 3. Breadcrumb: allow wrapping so it never overflows ─────── */
.breadcrumb { flex-wrap: wrap; }

/* ── 4. Contact page — textarea: shorter on mobile ────────────── */
@media (max-width: 768px) {
    #contactPageForm #cpMessage {
        min-height: 120px;
    }
}

/* ── 5. Contact block map: cap height on mobile ───────────────── */
@media (max-width: 768px) {
    .contact-block__map {
        min-height: 220px;
        max-height: 280px;
    }

    .contact-block__map iframe {
        min-height: 220px;
        height: 260px;
    }
}

/* ── 6. equip-section actions: stack fully on very small phones ── */
@media (max-width: 400px) {
    .equip-section__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .equip-section__actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ── 7. Top bar contacts: wrap gracefully on narrow screens ────── */
@media (max-width: 400px) {
    .top-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .top-bar__contacts {
        flex-wrap: wrap;
        gap: 6px 12px;
    }
}

/* ── 8. About-certificates grid: ensure single column on mobile ── */
@media (max-width: 600px) {
    .about-certificates__grid {
        grid-template-columns: 1fr;
    }
}

/* ── 9. Manufacturer grid: full width on mobile ───────────────── */
@media (max-width: 768px) {
    .manufacturer-grid {
        width: 100%;
    }
}

/* ── 10. Content body typography: scale down on phones ─────────── */
@media (max-width: 480px) {
    .content-body h2 { font-size: 1.2rem; }
    .content-body h3 { font-size: 1rem; }
}

/* ── 11. why-us__grid: tighter numbers on narrow phones ─────────── */
@media (max-width: 360px) {
    .why-us__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .why-us__num  { font-size: 1.8rem; }
    .why-us__label { font-size: .72rem; }
}

/* ── 12. Footer legal links: stack on very small phones ─────────── */
@media (max-width: 380px) {
    .footer__legal-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* ── 13. Home intro items: tighter padding on tiny screens ──────── */
@media (max-width: 380px) {
    .home-intro__item { padding: 12px 14px; font-size: .9rem; }
    .home-intro__lead { font-size: .95rem; }
}

/* ── 14. Projects-page status number: scale on mobile ───────────── */
@media (max-width: 480px) {
    .projects-page__status strong { font-size: 1.5rem; }
}

/* ── 15. Cert gallery: 1-column on very small screens ───────────── */
@media (max-width: 360px) {
    .cert-gallery { grid-template-columns: 1fr; }
}

/* ── 16. Back-to-top: avoid overlapping footer content ──────────── */
@media (max-width: 480px) {
    .back-to-top { bottom: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.2rem; }
}

/* ── 17. Catalog chips: larger touch targets ─────────────────────── */
@media (max-width: 768px) {
    .equipment-overview__chips { display: none; }
}

/* ── 18. Products grid: ensure 2-col on 480px is not too cramped ── */
@media (max-width: 360px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .product-card { padding: 6px; }
    .product-card__icon { width: 100px; height: 100px; }
}

/* ── 19. TKP form: easier layout on mobile ───────────────────────── */
@media (max-width: 480px) {
    .tkp-form__fieldset { padding: 14px 14px 16px; }
    .tkp-form__purposes { grid-template-columns: 1fr; }
}

/* ── 20. Section title: ensure it doesn't overflow ──────────────── */
@media (max-width: 480px) {
    .section-title { font-size: 1.25rem; word-break: break-word; }
}

/* ── 21. Page banner: tighter on small phones ───────────────────── */
@media (max-width: 360px) {
    .page-banner { padding: 18px 0; }
    .page-banner h1 { font-size: 1.15rem; }
}

/* ── 22. Home contacts map: slightly taller on large phones ─────── */
@media (min-width: 481px) and (max-width: 768px) {
    .home-map, .home-map iframe { min-height: 260px; }
}

/* ── 23. Nav list: ensure each item has a large enough touch target ── */
@media (max-width: 768px) {
    .main-nav__link { min-height: 48px; display: flex; align-items: center; }
    .dropdown li a { min-height: 44px; display: flex; align-items: center; }
}

/* ── 24. Modal close button: larger touch area ───────────────────── */
@media (max-width: 768px) {
    .modal__close {
        top: 10px; right: 12px;
        width: 36px; height: 36px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.8rem;
    }
}

/* ── 25. Input / select: prevent iOS zoom (font-size >= 16px) ─────── */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1rem; /* 16px — prevents iOS auto-zoom on focus */
    }
}


/* ═══════════════════════════════════════════════════════════════════
   26. IMAGE ZOOM BUTTON & LIGHTBOX
   ═══════════════════════════════════════════════════════════════════ */

/* ── Zoom wrapper (injected by JS around <picture>/<img>) ── */
.img-zoom-wrap {
    position: relative;
    display: block;
}

.img-zoom-wrap > picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Keep catalog-card grid cell sized correctly */
.catalog-card .img-zoom-wrap {
    min-height: 250px;
    overflow: hidden;
}

/* ── Zoom button (magnifier + plus icon) ── */
.img-zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    z-index: 3;
    opacity: 0;           /* hidden until hover / always visible on touch */
    padding: 0;
    flex-shrink: 0;
}

/* Show on hover of the parent wrapper */
.img-zoom-wrap:hover .img-zoom-btn {
    opacity: 1;
}

.img-zoom-btn:hover {
    background: #fff;
    transform: scale(1.12);
}

.img-zoom-btn svg {
    width: 18px;
    height: 18px;
    color: #1a2744;
    display: block;
    pointer-events: none;
}

/* On touch screens always show the button (no hover) */
@media (hover: none) {
    .img-zoom-btn {
        opacity: 0.88;
    }
}

/* ── Lightbox overlay ── */
.img-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.img-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox__content {
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__content img {
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55);
    user-select: none;
    display: block;
}

