:root {
    --orange: #FF6600;
    --black: #1E2022;      
    --dark-grey: #2B2E33;  
    --light-grey: #3A3F44; 
    --grey: #B0B5B9;       
    --white: #F8F9FA;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(30, 32, 34, 0.85); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.logo {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05); 
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
.nav a:not(.nav-cta):hover { color: var(--orange); }

.lang-switch { display: flex; border: 1px solid var(--light-grey); border-radius: 4px; overflow: hidden; height: 34px; margin: 0 5px; }
.lang-btn { background: transparent; border: none; color: #888; padding: 0 12px; cursor: pointer; font-size: 0.7rem; font-weight: 900; transition: var(--transition); display: flex; align-items: center; }
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--orange); color: white; }

.burger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; }
.burger span { width: 30px; height: 2px; background-color: var(--white); transition: 0.3s ease; }
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--orange); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--orange); }

.hero {
    height: 100vh; display: flex; align-items: center; padding: 0 5%; position: relative;
    background: linear-gradient(90deg, rgba(30, 32, 34, 0.95) 20%, rgba(30, 32, 34, 0.5) 100%), url('./assets/portfolio/bg.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-content { position: relative; z-index: 2; max-width: 850px; }
.hero-tagline { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 5px; margin-bottom: 25px; font-size: 0.85rem; display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--orange); animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite; }
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--orange); } }
h1 { font-size: clamp(3rem, 10vw, 6rem); line-height: 0.85; font-weight: 900; margin-bottom: 35px; letter-spacing: -2px; }
.accent { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.6); }
.hero-desc { font-size: 1.1rem; max-width: 550px; margin-bottom: 45px; color: var(--grey); font-weight: 300; }

.section { padding: 120px 0; border-bottom: 1px solid var(--light-grey); }
.section-label { font-size: 0.75rem; text-transform: uppercase; color: var(--orange); letter-spacing: 4px; margin-bottom: 60px; display: block; font-weight: 700; }

.about-wow-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.wow-image-wrapper { position: relative; border-radius: 8px; overflow: visible; }
.wow-main-img { width: 100%; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); filter: contrast(1.1) brightness(0.9); }

.glass-badge { position: absolute; bottom: -30px; right: -30px; background: rgba(43, 46, 51, 0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 25px 35px; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.4); display: flex; align-items: center; gap: 15px; z-index: 10; }
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

.badge-num { font-size: 3.5rem; font-weight: 900; color: var(--orange); line-height: 1; }
.badge-text { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--white); font-weight: 700; line-height: 1.4; }

.wow-content h3 { font-size: 2.8rem; line-height: 1.1; margin-bottom: 30px; font-weight: 900; }
.wow-content .highlight { color: var(--orange); }
.wow-text p { color: var(--grey); font-size: 1.1rem; line-height: 1.7; margin-bottom: 20px; }

.credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--light-grey); }
.cred-item { background: var(--dark-grey); padding: 25px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); transition: var(--transition); }
.cred-item:hover { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.cred-icon { margin-bottom: 15px; color: var(--orange); }
.cred-icon .material-symbols-outlined { font-size: 2.5rem; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }
.cred-item h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.cred-item p { font-size: 0.9rem; color: var(--grey); line-height: 1.5; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card { background: var(--dark-grey); padding: 60px 45px; transition: var(--transition); position: relative; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); }
.service-card:hover { border-color: var(--orange); transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.card-num { font-size: 5rem; font-weight: 900; opacity: 0.03; position: absolute; top: 10px; right: 20px; }
.service-card h3 { font-size: 1.6rem; margin-bottom: 20px; font-weight: 700; }
.service-card p { color: var(--grey); font-size: 0.95rem; line-height: 1.7; }

.portfolio-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.filter-btn { background: transparent; border: 1px solid var(--light-grey); color: var(--grey); padding: 10px 25px; border-radius: 4px; cursor: pointer; font-family: inherit; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

.portfolio-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-card {
    position: relative;
    display: block;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.portfolio-card.hide { display: none; }

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-image {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
}

.card-image img {
    width: 100%; height: 100%; 
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; 
    width: 100%; height: 80%;
    background: linear-gradient(to top, rgba(30, 32, 34, 1) 0%, rgba(30, 32, 34, 0.8) 40%, transparent 100%);
}

.card-content {
    position: absolute;
    bottom: 0; left: 0; 
    width: 100%;
    padding: 35px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: var(--transition);
}

.portfolio-card:hover .view-link { gap: 15px; }
.view-link .material-symbols-outlined { font-size: 1.2rem; }

.calc-cta-wrapper { 
    background: var(--dark-grey); 
    border-radius: 8px; 
    padding: 80px 40px; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.03); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    transition: var(--transition);
}
.calc-cta-wrapper:hover { 
    border-color: var(--orange); 
    transform: translateY(-5px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.calc-cta-wrapper h3 { 
    font-size: 2.2rem; 
    font-weight: 900; 
}
.calc-cta-wrapper p { 
    color: var(--grey); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin-bottom: 15px; 
    line-height: 1.6;
}

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.contact-info h3 { font-size: 3rem; margin-bottom: 30px; font-weight: 900; }
.contact-info p { color: var(--grey); margin-bottom: 15px; font-size: 1.1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 20px; margin-bottom: 20px; background: var(--dark-grey); border: 1px solid var(--light-grey); color: white; font-family: inherit; border-radius: 4px; outline: none; transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }

.btn-primary { background: var(--orange); color: var(--white); padding: 20px 45px; border: 1px solid var(--orange); border-radius: 4px; font-weight: 900; text-transform: uppercase; cursor: pointer; letter-spacing: 2px; font-size: 0.85rem; transition: var(--transition); display: inline-block; text-align: center; }
.btn-primary:hover { background: transparent; color: var(--orange); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,102,0,0.2); }
.btn-secondary { background: var(--white); color: var(--black); padding: 20px 45px; border: 1px solid var(--white); border-radius: 4px; text-decoration: none; font-weight: 900; text-transform: uppercase; display: inline-block; margin-left: 20px; letter-spacing: 2px; font-size: 0.85rem; transition: var(--transition); text-align: center; }
.btn-secondary:hover { background: transparent; color: var(--white); transform: translateY(-3px); }

.footer { padding: 60px 0; text-align: center; font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 2px; border-top: 1px solid var(--light-grey); }

@media (max-width: 1024px) {
    .about-wow-grid { grid-template-columns: 1fr; gap: 40px; }
    .glass-badge { right: 20px; bottom: -20px; padding: 15px 25px; }
    .badge-num { font-size: 2.5rem; }
    .contact-wrapper { gap: 40px; }
}

@media (max-width: 900px) {
    .header { padding: 15px 5%; }
    .burger { display: flex; } 
    .nav { position: fixed; top: 0; right: -100%; width: 100%; max-width: 350px; height: 100vh; background: var(--dark-grey); flex-direction: column; justify-content: center; align-items: center; gap: 30px; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 40px rgba(0,0,0,0.8); border-left: 1px solid var(--light-grey); }
    .nav.active { right: 0; }
    .nav a { font-size: 1.2rem; }
    .lang-switch { margin: 20px 0; }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .hero-content { text-align: center; }
    .hero-desc { margin: 0 auto 40px; }

    .hero-btns { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 350px; margin: 0 auto; }
    .btn-primary, .btn-secondary { width: 100%; margin-left: 0; margin-top: 0; }
    .hero-tagline { white-space: normal; border-right: none; animation: none; width: auto; line-height: 1.4; margin-bottom: 20px; }
    h1 { font-size: clamp(2.5rem, 8vw, 4rem); letter-spacing: -1px; }

    .credentials-grid { grid-template-columns: 1fr; }
    .calc-cta-wrapper { padding: 50px 20px; }
    .calc-cta-wrapper h3 { font-size: 1.8rem; }
}

.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); will-change: opacity, transform; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.calc-page { padding-top: 120px; background: var(--black); min-height: 100vh; }
.calc-header-top { margin-bottom: 40px; }
.calc-header-top h1 { font-size: 2.5rem; margin-bottom: 10px; }
.calc-sub { color: var(--grey); font-size: 1.1rem; }

.calc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }

.calc-panel { background: var(--dark-grey); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); padding: 35px; margin-bottom: 30px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.summary-panel { position: sticky; top: 100px; }

.panel-header { display: flex; align-items: center; margin-bottom: 25px; border-bottom: 1px solid var(--light-grey); padding-bottom: 15px; }
.step-num { background: var(--orange); color: white; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; margin-right: 15px; font-size: 1.1rem; box-shadow: 0 5px 15px rgba(255,102,0,0.3); }
.panel-header h3 { font-size: 1.2rem; font-weight: 900; letter-spacing: 1px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
.input-field { display: flex; flex-direction: column; gap: 8px; }
.input-field label { font-size: 0.8rem; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.input-field input { padding: 15px; background: var(--black); border: 1px solid var(--light-grey); border-radius: 4px; color: white; outline: none; transition: var(--transition); font-family: inherit; }
.input-field input:focus { border-color: var(--orange); }

.add-work-form { 
    background: var(--black); 
    padding: 25px; 
    border-radius: 8px; 
    border: 1px solid var(--light-grey); 
    margin-bottom: 25px; 
}
.add-work-row { 
    display: flex; 
    gap: 20px; 
    align-items: flex-end; 
    margin-top: 20px; 
}
.size-field { 
    flex: 1; 
}

.input-field select {
    width: 100%;
    padding: 15px;
    background: var(--black);
    border: 1px solid var(--light-grey);
    border-radius: 4px;
    color: white;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0B5B9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}
.input-field select:focus { border-color: var(--orange); }
.input-field select optgroup { background: var(--dark-grey); color: var(--grey); font-weight: 700; font-style: normal; }
.input-field select option { background: var(--black); color: var(--white); font-weight: 400; padding: 10px; }

#add-item-btn { height: 52px; display: flex; align-items: center; justify-content: center; }

.added-items-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}
.added-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: rgba(255,255,255,0.02); 
    border: 1px solid var(--light-grey); 
    padding: 18px 25px; 
    border-radius: 6px; 
    transition: var(--transition); 
}
.added-item:hover { 
    border-color: rgba(255,102,0,0.4); 
    background: rgba(255,255,255,0.04);
}
.item-info { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
}
.item-name { 
    color: var(--white); 
    font-weight: 700; 
    font-size: 1rem; 
}
.item-math { 
    color: var(--grey); 
    font-size: 0.85rem; 
}
.item-action { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
.item-price { 
    font-weight: 900; 
    color: var(--orange); 
    font-size: 1.2rem; 
}
.del-btn { 
    background: rgba(255, 71, 87, 0.1); 
    border: 1px solid rgba(255, 71, 87, 0.3); 
    color: #ff4757; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 8px; 
    border-radius: 4px;
    transition: var(--transition); 
}
.del-btn:hover { 
    background: #ff4757; 
    color: white; 
    transform: scale(1.05); 
}

.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--grey); font-size: 0.95rem; font-weight: 700; }
.summary-row strong { color: var(--white); font-size: 1.1rem; }
.summary-divider { height: 1px; background: var(--light-grey); margin: 20px 0; }
.total-row { font-size: 1.2rem; align-items: center; }
.total-row .accent-text { color: var(--orange); font-size: 2.2rem; font-weight: 900; }

.trust-badge { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 4px; margin: 25px 0; background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.3); }
.trust-badge .material-symbols-outlined { color: #2ecc71; font-size: 2rem; }

.submit-note {
    font-size: 0.8rem;
    color: var(--grey);
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}
.w-100 { width: 100%; justify-content: center; display: flex; align-items: center; }

@media (max-width: 1024px) {
    .calc-grid { grid-template-columns: 1fr; }
    .summary-panel { position: static; }
    .info-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
}

@media (max-width: 600px) {
    .add-work-row { flex-direction: column; align-items: stretch; }
    .added-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .item-action { width: 100%; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
}

.project-detail { padding-top: 120px; background: var(--black); min-height: 100vh; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--grey); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 30px; transition: var(--transition); }
.back-link:hover { color: var(--orange); }

.project-title { font-size: 3rem; font-weight: 900; margin-bottom: 50px; line-height: 1.1; }

.project-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }

.project-info h3 { font-size: 1.2rem; color: var(--orange); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-weight: 700; }
.project-text p { color: var(--grey); font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; }

.project-gallery { display: flex; flex-direction: column; gap: 15px; }
.gallery-main img { width: 100%; height: 450px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); transition: opacity 0.3s ease; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.gallery-thumbs img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; cursor: pointer; transition: var(--transition); border: 2px solid transparent; opacity: 0.7; }
.gallery-thumbs img:hover { opacity: 1; transform: translateY(-3px); }
.gallery-thumbs img.active-thumb { border-color: var(--orange); opacity: 1; }

@media (max-width: 900px) {
    .project-grid { grid-template-columns: 1fr; }
    .project-title { font-size: 2.2rem; }
    .gallery-main img { height: 300px; }
    .gallery-thumbs img { height: 80px; }
}

/* ── Project Gallery ───────────────────────────────── */
.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    margin-bottom: 12px;
}
.gallery-main img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
    position: relative;
    background: #1a1a1a;
    flex-shrink: 0;
}
.thumb img, .thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.thumb.active-thumb { border-color: #c8a96e; }
.thumb:hover { border-color: rgba(200,169,110,.5); }

.thumb-video { display: flex; align-items: center; justify-content: center; }
.thumb-play {
    position: absolute;
    font-size: 28px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
    pointer-events: none;
}

.form-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .875rem;
    margin-top: 10px;
}
.form-msg.success {
    background: rgba(76,175,129,.12);
    border: 1px solid rgba(76,175,129,.3);
    color: #7dcca8;
}
.form-msg.error {
    background: rgba(224,84,84,.12);
    border: 1px solid rgba(224,84,84,.3);
    color: #f08080;
}

.calc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
    gap: 10px;
}
.calc-empty .material-symbols-outlined { font-size: 40px; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

a.cred-item {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    cursor: pointer;
}

.cred-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--grey); 
    opacity: 1;      
    transform: translateX(0);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.cred-arrow .material-symbols-outlined {
    font-size: 1.2rem;
}

.cred-item:hover .cred-arrow {
    color: var(--orange); 
    transform: translateX(4px);
}
a.cred-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px transparent;
    transition: var(--transition);
}

.pub-hero {
    padding: 160px 5% 100px;
    position: relative;
    border-bottom: 1px solid var(--light-grey);
    overflow: hidden;
}
.pub-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,102,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.pub-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.pub-tagline {
    color: var(--orange); font-weight: 700; text-transform: uppercase;
    letter-spacing: 5px; margin-bottom: 25px; font-size: 0.8rem;
    display: flex; align-items: center; gap: 12px;
}
.pub-tagline::before { content: ''; width: 30px; height: 2px; background: var(--orange); }

.pub-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.95; font-weight: 900;
    letter-spacing: -2px; margin-bottom: 30px;
}
.pub-hero h1 .accent { color: var(--orange); }
.pub-desc {
    color: var(--grey); font-size: 1.05rem; line-height: 1.8;
    font-weight: 300; margin-bottom: 40px; max-width: 480px;
}

.stats-strip {
    display: flex; gap: 40px; padding-top: 40px;
    border-top: 1px solid var(--light-grey);
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 2.5rem; font-weight: 900; color: var(--orange); line-height: 1; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--grey); font-weight: 700; }

.award-card {
    background: var(--dark-grey);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 40px;
    position: relative; overflow: hidden;
}
.award-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--orange), transparent);
}
.award-icon {
    width: 64px; height: 64px;
    background: rgba(255,102,0,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
}
.award-icon .material-symbols-outlined { font-size: 2rem; color: var(--orange); font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }
.award-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 15px; line-height: 1.2; }
.award-desc { color: var(--grey); font-size: 0.95rem; line-height: 1.7; font-style: italic; }
.award-source {
    margin-top: 25px; padding-top: 20px;
    border-top: 1px solid var(--light-grey);
    font-size: 0.8rem; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}

.party-block {
    display: grid; grid-template-columns: 1fr 1.4fr;
    gap: 60px; align-items: center;
}
.party-badge {
    background: var(--dark-grey);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; padding: 50px 40px;
    text-align: center; position: relative; overflow: hidden;
}
.party-badge::after {
    content: 'СВОБОДА';
    position: absolute; bottom: -10px; right: -10px;
    font-size: 4rem; font-weight: 900; color: rgba(255,102,0,0.04);
    letter-spacing: -2px; pointer-events: none;
}
.party-year { font-size: 5rem; font-weight: 900; color: var(--orange); line-height: 1; }
.party-since { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--grey); font-weight: 700; margin-top: 5px; }
.party-divider { width: 40px; height: 2px; background: var(--orange); margin: 25px auto; }
.party-name-label { font-size: 1.4rem; font-weight: 900; }

.party-content h3 { font-size: 2rem; font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.party-content h3 span { color: var(--orange); }
.party-content p { color: var(--grey); font-size: 1rem; line-height: 1.8; margin-bottom: 20px; }
.party-quote {
    background: rgba(255,102,0,0.07);
    border: 1px solid rgba(255,102,0,0.2);
    border-radius: 8px; padding: 20px 25px;
    font-size: 0.95rem; color: var(--white); line-height: 1.7; font-style: italic;
}

.timeline { display: flex; flex-direction: column; }
.timeline-item {
    display: grid;
    grid-template-columns: 140px 1px 1fr;
    gap: 0 40px;
}
.timeline-year { text-align: right; padding-top: 4px; padding-bottom: 60px; }
.year-num { font-size: 1.8rem; font-weight: 900; color: var(--orange); line-height: 1; display: block; }
.year-sub { font-size: 0.75rem; text-transform: uppercase; color: var(--grey); letter-spacing: 1px; font-weight: 700; }
.timeline-line { display: flex; flex-direction: column; align-items: center; padding-bottom: 60px; }
.line-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,102,0,0.15); margin-top: 8px; }
.line-track { flex: 1; width: 1px; background: var(--light-grey); margin-top: 8px; }
.timeline-item:last-child .line-track { display: none; }
.timeline-body { padding-bottom: 60px; }

.event-card {
    background: var(--dark-grey);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px; padding: 30px 35px;
    transition: var(--transition);
}
.event-card:hover { border-color: rgba(255,102,0,0.3); transform: translateX(6px); }
.event-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--orange); font-weight: 700; margin-bottom: 15px;
}
.event-tag .material-symbols-outlined { font-size: 1rem; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }
.event-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 12px; line-height: 1.2; }
.event-text { color: var(--grey); font-size: 0.95rem; line-height: 1.75; }

.event-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}
.event-photos a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
    aspect-ratio: 4/3;
    background: var(--light-grey);
}
.event-photos a:hover { border-color: var(--orange); transform: scale(1.02); }
.event-photos img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.event-photos a:hover img { transform: scale(1.08); }

.event-photos.cols-2 { grid-template-columns: repeat(2, 1fr); }

.event-location {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 20px; font-size: 0.8rem; color: var(--grey);
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.event-location .material-symbols-outlined { font-size: 1rem; color: var(--orange); font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }

.pub-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.pub-project-card {
    background: var(--dark-grey);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px; padding: 35px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.pub-project-card:hover { border-color: var(--orange); transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.pub-project-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: var(--orange); transition: height 0.4s ease;
}
.pub-project-card:hover::before { height: 100%; }
.pub-project-icon {
    width: 52px; height: 52px; border-radius: 8px;
    background: rgba(255,102,0,0.1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.pub-project-icon .material-symbols-outlined { font-size: 1.6rem; color: var(--orange); font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }
.pub-project-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.pub-project-card p { font-size: 0.9rem; color: var(--grey); line-height: 1.7; }
.pub-project-place { margin-top: 20px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); font-weight: 700; }

.pub-section-label {
    font-size: 0.75rem; text-transform: uppercase; color: var(--orange);
    letter-spacing: 4px; margin-bottom: 60px;
    display: flex; align-items: center; gap: 12px; font-weight: 700;
}
.pub-section-label .material-symbols-outlined { font-size: 1rem; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }
.pub-section-label::after { content: ''; flex: 1; height: 1px; background: var(--light-grey); max-width: 80px; }

@media (max-width: 900px) {
    .pub-hero-inner { grid-template-columns: 1fr; gap: 50px; }
    .party-block { grid-template-columns: 1fr; gap: 40px; }
    .timeline-item { grid-template-columns: 80px 1px 1fr; gap: 0 20px; }
    .year-num { font-size: 1.3rem; }
    .stats-strip { gap: 25px; }
    .event-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .timeline-year { display: none; }
    .timeline-item { grid-template-columns: 1px 1fr; gap: 0 20px; }
    .pub-hero h1 { font-size: 2.2rem; }
    .stats-strip { flex-wrap: wrap; gap: 20px; }
    .event-card { padding: 22px 20px; }
    .event-photos { grid-template-columns: 1fr 1fr; }
}

.award-photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.award-photo-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}
.award-photo-card:hover img {
    transform: scale(1.04);
}
.award-photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 25px;
    background: linear-gradient(to top, rgba(30,32,34,0.97) 0%, rgba(30,32,34,0.7) 70%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 15px;
}
.award-caption-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: rgba(255,102,0,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.award-caption-icon .material-symbols-outlined {
    font-size: 1.2rem; color: var(--orange);
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}
.award-photo-caption .award-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}
.award-photo-caption .award-source {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange);
    font-weight: 700;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.pub-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 102, 0, 0.4);
    padding: 12px 22px;
    border-radius: 4px;
    transition: var(--transition);
}
.pub-ext-link:hover {
    background: rgba(255, 102, 0, 0.08);
    border-color: var(--orange);
    gap: 12px;
}
.pub-ext-link .material-symbols-outlined {
    font-size: 1.1rem;
    transition: var(--transition);
}

.lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}
.lb-overlay.active { display: flex; }

.lb-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.lb-close {
    position: fixed;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 9001;
}
.lb-close:hover { background: rgba(255,102,0,0.3); border-color: var(--orange); }

.lb-nav {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    border-radius: 50%;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 9001;
}
.lb-nav:hover { background: rgba(255,102,0,0.2); border-color: var(--orange); }
.lb-prev { left: 20px; }
.lb-next { right: 80px; }

@media (max-width: 600px) {
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

.gallery-main {
    position: relative;
    transition: opacity 0.18s ease;
}
.gal-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(30,32,34,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}
.gal-arrow:hover { background: rgba(255,102,0,0.4); border-color: var(--orange); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }

.gal-expand {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(30,32,34,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 6px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}
.gal-expand:hover { background: rgba(255,102,0,0.4); border-color: var(--orange); }
.gal-expand .material-symbols-outlined { font-size: 1.1rem; }

@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.skeleton-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--black);
    padding-top: 130px;
    transition: opacity 0.4s ease;
}
.skeleton-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.skel {
    background: linear-gradient(
        90deg,
        var(--dark-grey) 0px,
        var(--light-grey) 200px,
        var(--dark-grey) 400px
    );
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
}

.skel-back  { width: 140px; height: 16px; margin-bottom: 30px; border-radius: 4px; }
.skel-title { width: 55%; height: 42px; margin-bottom: 50px; border-radius: 6px; }

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}
.skeleton-left  { display: flex; flex-direction: column; gap: 16px; }
.skeleton-right { display: flex; flex-direction: column; gap: 12px; }

.skel-label { width: 30%; height: 14px; }
.skel-text  { width: 100%; height: 14px; }
.skel-text.short { width: 60%; }
.skel-btn   { width: 180px; height: 44px; margin-top: 10px; border-radius: 4px; }

.skel-main-img  { width: 100%; aspect-ratio: 16/9; border-radius: 8px; }
.skeleton-thumbs { display: flex; gap: 8px; }
.skel-thumb { width: 80px; height: 60px; flex-shrink: 0; border-radius: 6px; }

@media (max-width: 900px) {
    .skeleton-grid { grid-template-columns: 1fr; }
}

.portfolio-card.hidden-card {
    display: none;
}