/* ============================================
   OLMASTROY — Main Stylesheet
   ============================================ */

/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --c-blue: #086EB5;
    --c-lime: #CBFE0A;
    --c-white: #FFFFFF;
    --c-dark: #111418;
    --c-gray: #F3F5F7;

    --font-main: 'Manrope', sans-serif;
    --font-head: 'Oswald', sans-serif;

    --gap: 20px;
    --container: 1400px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--c-blue); color: var(--c-lime); }

body {
    background-color: var(--c-white);
    color: var(--c-dark);
    font-family: var(--font-main);
    overflow-x: hidden;
}


/* --- 2. PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--c-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader__inner {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader__logo {
    height: 50px;
    width: auto;
}
.preloader__text {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--c-white);
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- 2b. SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--c-blue), var(--c-lime));
    z-index: 9998;
    transition: width 0.1s linear;
}


/* --- 3. UTILITIES --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.flex { display: flex; flex-wrap: wrap; }
.grid { display: grid; }
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }

h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; line-height: 1; }
.text-lime { color: var(--c-lime); }
.text-blue { color: var(--c-blue); }

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

/* --- 4. HEADER --- */
header {
    position: fixed; top: 0; width: 100%;
    padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    color: var(--c-white);
    transition: background 0.3s ease;
}
header.scrolled {
    background: rgba(17, 20, 24, 0.9);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    transition: transform 0.3s var(--ease);
}
.logo:hover { transform: scale(1.03); }
.logo-icon { height: 40px; width: auto; }
.logo-text {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--c-white);
    line-height: 1;
    align-self: center;
    transform: translateY(2px);
}
.logo-accent { color: var(--c-lime); }

nav ul { display: flex; gap: 40px; list-style: none; }
nav a { color: var(--c-white); text-decoration: none; font-weight: 500; position: relative; }
nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--c-lime); transition: 0.3s var(--ease);
}
nav a:hover::after { width: 100%; }

/* --- 5. HERO SECTION --- */
.hero {
    height: 100svh;
    min-height: 500px;
    background: var(--c-dark);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

@supports (background-image: image-set(url('../img/hero-bg.webp') type('image/webp'))) {
    .hero-bg {
        background-image: image-set(
            url('../img/hero-bg.webp') type('image/webp'),
            url('../img/hero-bg.jpg') type('image/jpeg')
        );
    }
}

@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.2); } }

.hero-content {
    position: relative; z-index: 2;
    color: var(--c-white);
    max-width: 90%;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero-tags {
    display: flex; gap: 20px; margin-bottom: 40px;
    font-family: var(--font-main);
}
.tag {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.btn-main {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 20px 40px;
    background: var(--c-lime);
    color: var(--c-blue);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    cursor: pointer;
}
.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(203, 254, 10, 0.4);
}

/* --- 6. TICKER (MARQUEE) --- */
.ticker-wrap {
    background: var(--c-blue);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.ticker-item {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--c-lime);
    -webkit-text-stroke: 0;
    margin-right: 50px;
    text-transform: uppercase;
}
.ticker-item.highlight {
    color: var(--c-lime);
    -webkit-text-stroke: 0;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 6b. PHOTO RIBBON --- */
.photo-ribbon {
    overflow: hidden;
    background: var(--c-dark);
    line-height: 0;
}
.photo-ribbon__track {
    display: inline-flex;
    animation: marquee 70s linear infinite;
}
.photo-ribbon__item {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
}
.photo-ribbon__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s var(--ease);
}
.photo-ribbon__item:hover .photo-ribbon__img {
    filter: grayscale(0%);
}

/* --- 7. ABOUT & STATS --- */
.about { padding: 120px 0; background: var(--c-white); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: center;
}
.about h2 { font-size: 4rem; margin-bottom: 40px; color: var(--c-blue); }
.about p { font-size: 1.2rem; line-height: 1.6; color: #555; margin-bottom: 30px; }
.about-line { width: 100px; height: 5px; background: var(--c-lime); margin-bottom: 30px; }

.stats-row { display: flex; gap: 60px; margin-top: 40px; }
.stat-item h3 { font-size: 3.5rem; color: var(--c-blue); margin-bottom: 10px; }
.stat-item span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: #999; }

/* --- 8. PROJECTS (Parallax Cards) --- */
.projects { background: var(--c-gray); padding: 120px 0; }
.section-header { margin-bottom: 80px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-header h2 { font-size: 3rem; color: var(--c-dark); }

.project-list { display: flex; flex-direction: column; gap: 40px; }

.project-card {
    display: grid; grid-template-columns: 1.5fr 1fr;
    background: var(--c-white);
    min-height: 400px;
    overflow: hidden;
    transition: 0.5s var(--ease);
    border-left: 5px solid var(--c-blue);
}
.project-card:hover { border-left: 20px solid var(--c-lime); transform: scale(1.02); }
.project-card:nth-child(even) { grid-template-columns: 1fr 1.5fr; }

.p-img {
    height: 100%; width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}
.project-card:hover .p-img { filter: grayscale(0%); }

.p-info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.p-info h3 { font-size: 2.5rem; margin-bottom: 20px; color: var(--c-dark); }
.p-meta { margin-bottom: 30px; font-weight: 700; color: var(--c-blue); }
.p-desc { color: #666; margin-bottom: 40px; line-height: 1.6; }

/* --- 9. SERVICES (Accordion) --- */
.services { padding: 120px 0; background: var(--c-dark); color: var(--c-white); }

.service-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: background 0.3s var(--ease);
}
.service-item.open {
    background: rgba(255,255,255,0.03);
}

.service-header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding-left 0.3s var(--ease);
}
.service-item:hover .service-header {
    padding-left: 20px;
}

.service-item h3 {
    font-size: 2rem;
    transition: color 0.3s var(--ease);
}
.service-item:hover h3,
.service-item.open h3 {
    color: var(--c-lime);
}

.service-arrow {
    color: var(--c-blue);
    transition: transform 0.4s var(--ease), color 0.3s var(--ease);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.service-item:hover .service-arrow,
.service-item.open .service-arrow {
    color: var(--c-lime);
}
.service-item.open .service-arrow {
    transform: rotate(180deg);
}

.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}
.service-item.open .service-body {
    padding-bottom: 40px;
}
.service-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 700px;
}

/* --- 10. CONTACTS --- */
.contacts {
    background: var(--c-blue);
    color: var(--c-white);
    padding: 100px 0;
    position: relative;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.form-box input, .form-box textarea, .form-box select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 20px 0;
    color: var(--c-white);
    font-size: 1.2rem;
    font-family: var(--font-main);
    margin-bottom: 30px;
}
.form-box input::placeholder,
.form-box textarea::placeholder { color: rgba(255,255,255,0.5); }
.form-box input:focus,
.form-box textarea:focus,
.form-box select:focus { outline: none; border-color: var(--c-lime); }
.form-box input:focus-visible,
.form-box textarea:focus-visible,
.form-box select:focus-visible { outline: none; }
.form-box select {
    color: var(--c-white);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 20px;
    cursor: pointer;
}
.form-box select option { color: var(--c-dark); }

/* --- 11. FOOTER --- */
footer {
    background: #054a7a;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--c-lime); }

/* ============================================
   NEW PAGE STYLES
   ============================================ */

/* --- BLOG GRID --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--c-white);
    overflow: hidden;
    transition: 0.4s var(--ease);
    border-radius: 0;
}
.blog-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.blog-card__img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s var(--ease);
    display: block;
}
.blog-card:hover .blog-card__img {
    filter: grayscale(0%);
}
.blog-card__placeholder {
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf1 0%, #d1d8e0 100%);
}
.blog-card__placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.blog-card__body {
    padding: 30px;
}

.blog-card__date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
}

.blog-card__title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 10px 0;
    line-height: 1.2;
    color: var(--c-dark);
}

.blog-card__excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-card__link {
    color: var(--c-blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s var(--ease);
}
.blog-card__link:hover {
    gap: 14px;
}
.blog-card__link::after {
    content: '\2192';
}

/* --- VACANCY CARD --- */
.vacancy-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--c-blue);
    padding: 30px;
    background: var(--c-white);
    transition: 0.3s var(--ease);
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--c-dark);
}
.vacancy-card:hover {
    background: var(--c-gray);
    border-left-color: var(--c-lime);
}

.vacancy-card__title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vacancy-card__meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.vacancy-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    background: var(--c-gray);
    padding: 5px 12px;
    border-radius: 4px;
}

.vacancy-card__arrow {
    font-size: 2rem;
    color: var(--c-blue);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}
.vacancy-card:hover .vacancy-card__arrow {
    transform: rotate(-45deg);
    color: var(--c-lime);
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
}
.breadcrumbs a {
    color: var(--c-blue);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover {
    color: var(--c-lime);
}
.breadcrumbs .current {
    color: var(--c-dark);
}
.breadcrumbs-wrapper {
    padding-top: 100px;
    padding-bottom: 20px;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 60px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
    color: var(--c-dark);
    font-weight: 700;
    font-family: var(--font-head);
    transition: 0.3s;
    border: 1px solid #ddd;
}
.page-link:hover,
.page-link.active {
    background: var(--c-blue);
    color: var(--c-white);
    border-color: var(--c-blue);
}
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #999;
}

/* --- LOGIN CARD --- */
.login-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    background: var(--c-dark);
    color: var(--c-white);
    border-radius: 0;
    border-top: 4px solid var(--c-blue);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.login-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding: 15px 0;
    color: var(--c-white);
    font-size: 1rem;
    font-family: var(--font-main);
    margin-bottom: 25px;
    transition: border-color 0.3s;
}
.login-input:focus {
    outline: none;
    border-bottom-color: var(--c-blue);
}
.login-input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* --- PROSE (Article Content) --- */
.prose {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.prose h2 {
    font-size: 2rem;
    margin: 50px 0 20px;
    color: var(--c-dark);
}
.prose h3 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    color: var(--c-dark);
}
.prose p {
    margin-bottom: 20px;
}
.prose ul, .prose ol {
    margin-bottom: 20px;
    padding-left: 30px;
}
.prose li {
    margin-bottom: 8px;
}
.prose img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
}
.prose blockquote {
    border-left: 4px solid var(--c-blue);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--c-gray);
    font-style: italic;
    color: #555;
}
.prose a {
    color: var(--c-blue);
    text-decoration: underline;
}
.prose code {
    background: var(--c-gray);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e74c3c;
}
.prose pre {
    background: var(--c-dark);
    color: #f8f8f2;
    padding: 20px;
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 4px;
}
.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.prose th, .prose td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}
.prose th {
    background: var(--c-gray);
    font-weight: 700;
}
.prose hr {
    border: none;
    height: 2px;
    background: var(--c-gray);
    margin: 40px 0;
}

/* --- FILTER TAGS --- */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.filter-tag {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: transparent;
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    color: var(--c-dark);
}
.filter-tag:hover,
.filter-tag.active {
    background: var(--c-blue);
    color: var(--c-white);
    border-color: var(--c-blue);
}

/* --- STAT CARD (Admin Dashboard) --- */
.stat-card {
    background: var(--c-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.stat-card__icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.stat-card__number {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--c-blue);
    margin-bottom: 5px;
}
.stat-card__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 200;
    background: none;
    border: none;
    padding: 5px;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--c-white);
    transition: 0.3s var(--ease);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- MOBILE NAV OVERLAY --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 20, 24, 0.97);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s var(--ease);
}
.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav ul {
    list-style: none;
    text-align: center;
}
.mobile-nav li {
    margin: 20px 0;
}
.mobile-nav a {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--c-white);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}
.mobile-nav a:hover {
    color: var(--c-lime);
}

/* --- FLASH MESSAGES --- */
.flash-message {
    padding: 15px 45px 15px 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    animation: flashSlideIn 0.3s ease-out;
}
.flash-message.success {
    background: rgba(203, 254, 10, 0.15);
    border-left: 4px solid var(--c-lime);
    color: #333;
}
.flash-message.error, .flash-message.danger {
    background: rgba(255, 0, 0, 0.1);
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}
.flash-message.warning {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid #f39c12;
    color: #d68910;
}
.flash-message.info {
    background: rgba(8, 110, 181, 0.1);
    border-left: 4px solid var(--c-blue);
    color: var(--c-blue);
}
.flash-message__close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.3s;
    line-height: 1;
    padding: 5px;
}
.flash-message__close:hover { opacity: 1; }
@keyframes flashSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- FORM RESPONSE MESSAGE --- */
.form-response {
    padding: 15px 20px;
    margin-top: 15px;
    font-size: 0.95rem;
    display: none;
    border-radius: 4px;
}
.form-response.show { display: block; }
.form-response.success {
    background: rgba(203, 254, 10, 0.2);
    border-left: 4px solid var(--c-lime);
    color: var(--c-white);
}
.form-response.error {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
    color: #ff6b6b;
}

/* --- PAGE HERO (for inner pages) --- */
.page-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    background: var(--c-dark);
    color: var(--c-white);
}
.page-hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 1;
}
.page-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    margin-top: 20px;
}

/* --- BLOG DETAIL HERO --- */
.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.blog-hero__img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}
.blog-hero__content {
    position: relative;
    z-index: 2;
    color: var(--c-white);
    padding-bottom: 60px;
}
.blog-hero__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- VACANCY DETAIL --- */
.vacancy-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
}
.vacancy-detail .prose {
    max-width: none;
    margin: 0;
}
.vacancy-detail .prose h2 {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.5rem;
    border-left: 3px solid var(--c-blue);
    padding-left: 15px;
    margin-top: 0;
    margin-bottom: 25px;
}
.vacancy-detail .vd-section + .vd-section {
    margin-top: 45px;
    padding-top: 45px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.vacancy-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.vacancy-sidebar form {
    background: var(--c-dark);
    padding: 35px;
    color: var(--c-white);
    border-radius: 12px;
    border-top: 3px solid var(--c-lime);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.vacancy-sidebar form h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.02em;
}
.vacancy-sidebar .form-group {
    margin-bottom: 5px;
}
.vacancy-sidebar input,
.vacancy-sidebar textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 14px 0;
    color: var(--c-white);
    font-size: 0.95rem;
    font-family: var(--font-main);
    margin-bottom: 0;
    transition: border-color 0.3s;
}
.vacancy-sidebar input::placeholder,
.vacancy-sidebar textarea::placeholder {
    color: rgba(255,255,255,0.35);
}
.vacancy-sidebar input:focus,
.vacancy-sidebar textarea:focus {
    outline: none;
    border-color: var(--c-lime);
}
.vacancy-sidebar .btn-main {
    width: 100%;
    margin-top: 25px;
}
.vacancy-sidebar .form-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 20px;
    line-height: 1.4;
}
/* Hero tags for vacancy */
.vd-tags {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.vd-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: 0.3s;
}
.vd-tag svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    flex-shrink: 0;
    display: block;
}

/* --- HEADER INNER --- */
.header--inner {
    mix-blend-mode: normal;
    background: rgba(17, 20, 24, 0.95);
    backdrop-filter: blur(10px);
}

/* --- VACANCY CARD META ICON --- */
.vacancy-card__meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- ACCESSIBILITY --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--c-lime);
    outline-offset: 2px;
}

/* --- INDEX PAGE HELPERS --- */
.section-title--mb60 { margin-bottom: 60px; }
.section-header--flex { display: flex; justify-content: space-between; align-items: center; }
.btn-main--inline { margin: 0; }
.btn-main--full { width: 100%; margin-top: 20px; }

.contacts__text { margin: 30px 0; max-width: 400px; opacity: 0.8; }
.contacts__details { margin-top: 50px; }
.contacts__detail { margin-bottom: 20px; }
.contacts__detail:last-child { margin-bottom: 0; }
.contacts__label { opacity: 0.5; display: block; font-size: 0.9rem; }
.contacts__value { font-size: 1.2rem; font-weight: 700; }
.contacts__value--lime { color: var(--c-lime); text-decoration: none; }
.contacts__value--white { color: var(--c-white); text-decoration: none; }
.contacts__value--sm { font-size: 1.1rem; }
.contacts__address-extra { opacity: 0.6; font-size: 0.95rem; }
.contacts__disclaimer { font-size: 0.8rem; opacity: 0.5; margin-top: 15px; }

.p-img--placeholder { background: var(--c-gray); }

/* --- INPUT ERROR --- */
.input-error {
    border-color: #e74c3c !important;
}
.form-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: -20px;
    margin-bottom: 10px;
    display: block;
    min-height: 1em;
}

/* --- ERROR PAGE --- */
.error-page {
    min-height: 100vh;
    background: var(--c-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.error-page__number {
    position: absolute;
    font-family: var(--font-head);
    font-size: clamp(15rem, 40vw, 30rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.error-page__content {
    position: relative;
    z-index: 2;
}
.error-page__title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--c-lime);
    margin-bottom: 20px;
    text-transform: uppercase;
}
.error-page__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state__icon {
    margin-bottom: 30px;
}
.empty-state__icon svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}
.empty-state__title {
    font-family: var(--font-head);
    font-size: 2rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.empty-state__text {
    color: #666;
    font-size: 1rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* --- TIMELINE --- */
.timeline {
    position: relative;
    padding-left: 60px;
    counter-reset: timeline-counter;
}
/* Фоновая линия */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    z-index: 0;
}
/* Прогресс-линия (градиент по скроллу) */
.timeline::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: calc(var(--timeline-progress, 0) * 1%);
    background: linear-gradient(180deg, var(--c-blue) 0%, var(--c-lime) 100%);
    transition: height 0.3s ease-out;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
    counter-increment: timeline-counter;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

/* Точка на линии — 12px, центрирована на 2px линии */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-white);
    border: 2px solid #ddd;
    z-index: 2;
    transition: all 0.5s var(--ease);
}
.timeline-item.timeline-item--visible::before {
    background: var(--c-lime);
    border-color: var(--c-blue);
    animation: timelinePulse 2s ease-in-out 0.3s;
}

/* Номер элемента */
.timeline-card::before {
    content: counter(timeline-counter, decimal-leading-zero);
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--c-blue);
    opacity: 0.35;
    position: absolute;
    top: 20px;
    right: 25px;
}

.timeline-year {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--c-blue);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.timeline-card {
    position: relative;
    background: var(--c-white);
    border-left: 3px solid var(--c-blue);
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease);
}
.timeline-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(8,110,181,0.12);
    border-left-color: var(--c-lime);
}

.timeline-card h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--c-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.timeline-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Каскадное появление */
.timeline-item:nth-child(1) { --delay: 0s; }
.timeline-item:nth-child(2) { --delay: 0.1s; }
.timeline-item:nth-child(3) { --delay: 0.2s; }
.timeline-item:nth-child(4) { --delay: 0.3s; }
.timeline-item:nth-child(5) { --delay: 0.4s; }
.timeline-item:nth-child(6) { --delay: 0.5s; }

.timeline-item.reveal {
    transition-delay: var(--delay, 0s);
}

/* Пульсация точки */
@keyframes timelinePulse {
    0% { box-shadow: 0 0 0 0 rgba(8,110,181,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(8,110,181,0); }
    100% { box-shadow: 0 0 0 0 rgba(8,110,181,0); }
}

/* --- GEOGRAPHY --- */
.geo-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    align-items: start;
}
.geo-layout__map img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.geo-layout__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.geo-card {
    background: var(--c-gray);
    padding: 20px;
    border-left: 4px solid var(--c-blue);
    transition: 0.3s var(--ease);
}
.geo-card:hover {
    border-left-color: var(--c-lime);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.geo-card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--c-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.geo-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- PARTNERS GRID --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.partner-item {
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s var(--ease);
}
.partner-item:hover {
    border-color: var(--c-lime);
    background: rgba(255,255,255,0.03);
}
.partner-item__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
}
.partner-item__icon svg {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: var(--c-lime);
    overflow: visible;
    shape-rendering: geometricPrecision;
}
.partner-item__icon svg * {
    vector-effect: non-scaling-stroke;
}
.partner-item h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--c-white);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.partner-item p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.5;
}
.partner-item--link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.partner-item__meta {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(203, 254, 10, 0.25);
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.documents-preview__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
}
.documents-preview__note {
    margin: 0;
    max-width: 720px;
    color: rgba(255,255,255,0.74);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- DOCUMENTS LIST --- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}
.services-grid .doc-item {
    display: grid;
    align-content: center;
    position: relative;
    overflow: hidden;
    padding: 30px 25px;
    background: var(--c-white);
    border-left: 3px solid var(--c-blue);
    border-bottom: none;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: 0.3s var(--ease);
    color: var(--c-dark);
}
.services-grid .doc-item:hover {
    border-left-color: var(--c-lime);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--c-white);
    padding-left: 25px;
}
.services-grid .doc-item__num {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--c-blue);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
    min-width: auto;
}
.services-grid .doc-item__text {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--c-dark);
}
.doc-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: 0.3s var(--ease);
    font-size: 1.05rem;
    color: var(--c-dark);
}
.doc-item:hover {
    background: rgba(8, 110, 181, 0.05);
    padding-left: 35px;
}
.documents-intro {
    max-width: 920px;
    margin-bottom: 32px;
}
.documents-intro p {
    margin: 0;
    color: #4d5761;
    font-size: 1rem;
    line-height: 1.7;
}
.doc-item__content {
    flex: 1;
    min-width: 0;
}
.doc-item__num {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--c-blue);
    font-weight: 700;
    min-width: 35px;
    flex-shrink: 0;
}
.doc-item__meta {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(8, 110, 181, 0.08);
    color: var(--c-blue);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.doc-item__description {
    margin: 8px 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #667085;
}
.doc-item__action {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(8, 110, 181, 0.08);
    color: var(--c-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- PARTNER CARDS --- */
.partner-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.partner-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 35px;
    background: var(--c-gray);
    border-left: 4px solid transparent;
    transition: 0.4s var(--ease);
}
.partner-card:hover {
    border-left-color: var(--c-blue);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.partner-card__logo {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: 0.4s var(--ease);
}
.partner-card:hover .partner-card__logo img {
    filter: grayscale(0%);
}
.partner-card__info h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--c-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.partner-card__info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* --- HR CONTACTS --- */
.hr-contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* ============================================
   PROJECTS GRID PAGE
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-grid-card {
    background: var(--c-white);
    overflow: hidden;
    transition: 0.4s var(--ease);
}
.project-grid-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.project-grid-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.project-grid-card__img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s var(--ease);
    display: block;
}
.project-grid-card:hover .project-grid-card__img {
    filter: grayscale(0%);
}
.project-grid-card__placeholder {
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf1 0%, #d1d8e0 100%);
}
.project-grid-card__placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}
.project-grid-card__body {
    padding: 25px;
}
.project-grid-card__category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-blue);
    font-weight: 700;
    margin-bottom: 8px;
}
.project-grid-card__title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--c-dark);
    margin-bottom: 10px;
}
.project-grid-card__meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

/* ============================================
   SCROLL TO TOP & COOKIE BANNER
   ============================================ */

/* --- SCROLL TO TOP --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--c-blue);
    color: var(--c-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--c-lime);
    color: var(--c-blue);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 20, 24, 0.95);
    backdrop-filter: blur(10px);
    color: var(--c-white);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 95;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-banner__text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
    flex: 1;
}
.cookie-banner__btn {
    flex-shrink: 0;
    padding: 12px 30px;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .photo-ribbon__item { width: 280px; height: 210px; }
    .hero h1 { font-size: 4rem; }
    .about-grid, .project-card, .contact-grid { grid-template-columns: 1fr; }
    .project-card { height: auto; }
    .project-card:nth-child(even) { grid-template-columns: 1fr; }
    .p-img { height: 300px; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .vacancy-detail { grid-template-columns: 1fr; }
    .vacancy-sidebar { position: static; }
    .service-item h3 { font-size: 1.5rem; }
    .geo-layout { grid-template-columns: 1fr; }
    .geo-layout__cards { grid-template-columns: repeat(4, 1fr); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    header { padding: 15px 20px; }

    nav { display: none; }
    .hamburger { display: flex; }

    .hero h1 { font-size: 3rem; }
    .hero-tags { flex-wrap: wrap; gap: 10px; }
    .tag { font-size: 0.75rem; padding: 8px 14px; }

    .about h2 { font-size: 2.5rem; }
    .stats-row { flex-direction: column; gap: 30px; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .section-header h2 { font-size: 2rem; }

    .blog-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }

    .vacancy-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .vacancy-card__title { font-size: 1.4rem; }

    .contact-grid { gap: 40px; }

    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }

    .page-hero h1 { font-size: 3rem; }
    .page-hero { padding-top: 100px; padding-bottom: 40px; }

    .p-info { padding: 30px; }
    .p-info h3 { font-size: 1.8rem; }

    .ticker-item { font-size: 2rem; }

    .service-header { padding: 25px 0; }

    .btn-main {
        clip-path: none;
        border-radius: 8px;
    }

    .breadcrumbs-wrapper {
        padding-top: 75px;
    }

    .timeline { padding-left: 45px; }
    .timeline::before,
    .timeline::after { left: 14px; }
    .timeline-item::before { left: -35px; width: 10px; height: 10px; }
    .timeline-year { font-size: 1.4rem; }
    .timeline-card { padding: 20px; }
    .timeline-card::before { top: 15px; right: 15px; font-size: 0.75rem; }

    .geo-layout__cards { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: 1fr; }
    .documents-preview__footer { flex-direction: column; align-items: flex-start; }

    .docs-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hr-contacts-grid { grid-template-columns: 1fr; gap: 30px; }
    .partner-cards { grid-template-columns: 1fr; }
    .partner-card { flex-direction: column; text-align: center; }
    .partner-card__logo { width: 100px; height: 70px; }

    .cookie-banner {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    .cookie-banner__btn {
        width: 100%;
    }
    .scroll-top {
        clip-path: none;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .photo-ribbon__item { width: 200px; height: 150px; }
    .container { padding: 0 16px; }
    .ticker-item { font-size: 1.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero-tags { gap: 6px; }
    .tag { font-size: 0.7rem; padding: 6px 10px; }
    .about h2 { font-size: 2rem; }
    .stat-item h3 { font-size: 2.5rem; }
    .section-header h2 { font-size: 1.5rem; }
    .p-info { padding: 20px; }
    .p-info h3 { font-size: 1.4rem; }
    .service-header { padding: 20px 0; }
    .service-item h3 { font-size: 1.1rem; }
    .service-body p { font-size: 0.9rem; }
    .blog-card__title { font-size: 1.2rem; }
    .vacancy-card { padding: 20px; }
    .vacancy-card__title { font-size: 1.2rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .btn-main { padding: 15px 30px; font-size: 0.9rem; }
    .services-grid { grid-template-columns: 1fr; }
    .geo-layout__cards { grid-template-columns: 1fr; }
    .doc-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .doc-item__action {
        margin-left: 55px;
    }
}

/* --- SECTION BACKGROUND HELPERS --- */
.section--gray-bg { background: var(--c-gray); padding: 120px 0; }
.section--dark-bg { background: var(--c-dark); padding: 60px 0 120px; color: var(--c-white); }
.section--white-bg { padding: 120px 0; background: var(--c-white); }
.section--default { padding: 120px 0; }

.section-title--dark {
    font-family: var(--font-head);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 80px;
    color: var(--c-dark);
}
.section-title--white {
    font-family: var(--font-head);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--c-white);
}
.section-title--dark-sm {
    font-family: var(--font-head);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--c-dark);
}
.section-subtitle { color: #666; margin-bottom: 60px; font-size: 1.1rem; }
.section-subtitle--light { color: rgba(255,255,255,0.6); margin-bottom: 80px; font-size: 1.1rem; }
.section-subtitle--80 { margin-bottom: 80px; }

/* --- TESTIMONIALS CAROUSEL --- */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}
.testimonials-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s var(--ease);
}
.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--c-white);
    padding: 35px;
    border-left: 3px solid var(--c-blue);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: 0.3s var(--ease);
}
.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.testimonial-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}
.testimonial-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-card__author strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--c-dark);
}
.testimonial-card__author span {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: 2px;
}
.testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.testimonial-card__avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #999;
}
.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.testimonials-nav__btn {
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    background: var(--c-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: var(--c-dark);
}
.testimonials-nav__btn:hover {
    background: var(--c-blue);
    color: var(--c-white);
    border-color: var(--c-blue);
}

@media (max-width: 1024px) {
    .testimonial-card { flex: 0 0 calc(50% - 15px); }
}
@media (max-width: 768px) {
    .testimonial-card { flex: 0 0 100%; }
    .testimonials-track { gap: 15px; }
}

/* --- PROJECT GALLERY --- */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 60px;
}
.project-gallery__item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}
.project-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.project-gallery__item:hover .project-gallery__img {
    filter: grayscale(0%);
    transform: scale(1.05);
}
.project-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--c-white);
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(100%);
    transition: 0.4s var(--ease);
}
.project-gallery__item:hover .project-gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox__caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    text-align: center;
    max-width: 600px;
}
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--c-white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    line-height: 1;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--c-white);
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    padding: 20px;
    line-height: 1;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
.lightbox__counter {
    position: absolute;
    top: 25px;
    left: 30px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-family: var(--font-head);
}

@media (max-width: 1024px) {
    .project-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .project-gallery { grid-template-columns: 1fr; }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor { display: none; }
    body { cursor: auto; }
}
