@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Базовые цвета */
    --color-bg: #f7fafd; /* очень светлый серо-голубой */
    --color-bg-alt: #eef2f6; /* дополнительный фон */
    --color-card: #fff;
    --color-border: #e3e8ee;
    --color-shadow: rgba(36, 60, 120, 0.07);
    --color-text: #1a2233; /* глубокий графит */
    --color-text-soft: #4a5568;
    --color-text-light: #7b8794;
    --color-link: #3a5ba0;
    --color-success: #4bb3fd;
    --color-error: #e57373;
    --max-width: 1440px;
    --transition: 0.3s cubic-bezier(.4,2,.6,1);

    /* Акцентные цвета */
    --color-primary: #3a5ba0; /* приглушённый синий */
    --color-primary-alt: #5b7bbd; /* светлее */
    --color-accent: #5bc0be; /* бирюзовый */
    --color-accent-alt: #a18cd1; /* приглушённый фиолетовый */
    --color-accent-soft: #6c7a89; /* серо-голубой */

    /* Персональные акценты */
    --color-pm: #3a5ba0;      /* Aleksandr: синий, доверие */
    --color-dev: #5bc0be;     /* Michail: бирюзовый, технологичность */
    --color-design: #a18cd1;  /* Evelina: фиолетовый, креативность */
}

body.dark-theme {
    --color-bg: #181c20; /* глубокий графит */
    --color-bg-alt: #23272f;
    --color-card: #23293a;
    --color-border: #23272f;
    --color-shadow: rgba(36, 60, 120, 0.13);
    --color-text: #e6eaf0;
    --color-text-soft: #bfc8d6;
    --color-text-light: #7b8794;
    --color-link: #7bb0ff;
    --color-success: #4bb3fd;
    --color-error: #e57373;

    --color-primary: #7bb0ff;
    --color-primary-alt: #3a5ba0;
    --color-accent: #5bc0be;
    --color-accent-alt: #a18cd1;
    --color-accent-soft: #6c7a89;

    --color-pm: #7bb0ff;
    --color-dev: #5bc0be;
    --color-design: #a18cd1;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', 'Montserrat', 'Poppins', Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    transition: background var(--transition), color var(--transition), border-color var(--transition), filter 0.5s;
    min-height: 100vh;
    /* убран overflow-x: clip */
}
body.dark-theme {
    background: var(--color-bg-dark);
    color: var(--color-text-dark);
}

/* HEADER */
.header-nav {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    gap: 32px;
    align-items: center;
}
.header-nav.open {
    opacity: 1;
    pointer-events: auto;
    z-index: 200;
}
.header-nav a, .header-nav button {
    font-size: 1.08em;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--color-primary);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    position: relative;
}
.header-nav a:hover, .header-nav button:hover, .header-nav a:focus {
    background: var(--color-accent);
    color: #fff;
}
.header-burger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--color-primary);
    cursor: pointer;
    margin-left: 18px;
    z-index: 120;
}
.header-burger.open svg {
    transform: rotate(90deg);
    transition: transform 0.3s;
}
.header-burger svg {
    transition: transform 0.3s;
}
@media (max-width: 900px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--color-card);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 32px var(--color-shadow);
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        padding: 18px 0 12px 0;
        animation: fadeInMenu 0.3s;
    }
    .header-nav.open {
        display: flex;
    }
    .header-burger {
        display: block;
    }
    .header-nav a, .header-nav button {
        width: 100%;
        text-align: left;
        padding: 16px 24px;
        font-size: 1.15em;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
        background: none;
        color: var(--color-primary);
    }
    .header-nav a:last-child, .header-nav button:last-child {
        border-bottom: none;
    }
}
@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.hero .typewriter {
    font-size: 2.5em;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    color: #fff;
    margin-bottom: 0.5em;
}
.cta {
    display: inline-block;
    margin-top: 2em;
    padding: 14px 36px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: background var(--transition), transform var(--transition);
}
.cta:hover, .cta:focus {
    background: var(--color-accent-alt);
    transform: scale(1.05);
}

.centered-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 5vw 40px 5vw;
    text-align: center;
    box-sizing: border-box;
}
/* Разные фоны для секций */
#hero {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
}
#apie {
    background: linear-gradient(135deg, #f7faff 60%, #e0e7ef 100%);
}
#projektai {
    background: linear-gradient(120deg, #e0f2fe 0%, #f7faff 100%);
}
#igudziai {
    background: linear-gradient(120deg, #f7faff 0%, #e0e7ef 100%);
}
#atsiliepimai {
    background: linear-gradient(120deg, #e0e7ef 0%, #f7faff 100%);
}
#kontaktai {
    background: linear-gradient(120deg, #f7faff 0%, #e0f2fe 100%);
}

/* Адаптивность блока выбора участников */
.team-select-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 48px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 24px 0;
    min-height: 340px;
    height: 340px;
    scroll-behavior: smooth;
}
.team-member {
    min-width: 260px;
    max-width: 320px;
    flex: 0 0 320px;
    margin-bottom: 0;
    padding: 18px 12px;
    transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow var(--transition), border-color var(--transition), opacity 0.4s;
    position: relative;
    top: 0;
    opacity: 0.7;
    z-index: 1;
    transform: scale(0.95) translateY(0);
}
.team-member.selected {
    opacity: 1;
    z-index: 2;
    transform: scale(1.12) translateY(-32px);
    box-shadow: 0 12px 32px var(--color-shadow);
}
.team-member:not(.selected) {
    filter: blur(0.5px);
}
@media (max-width: 900px) {
    .team-select-grid {
        min-height: 260px;
        height: 260px;
        gap: 18px;
    }
    .team-member {
        min-width: 200px;
        max-width: 240px;
        flex: 0 0 220px;
        padding: 10px 4px;
    }
}

.team-member.selected {
    border-color: var(--color-accent);
    box-shadow: 0 6px 24px var(--color-shadow);
    z-index: 2;
    transform: scale(1.07);
}
body.dark-theme .team-member {
    background: var(--color-card-dark);
    border-color: #23293a;
}
.highlight-btn {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 10px 6px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    transition: background var(--transition);
}
.highlight-btn:hover, .highlight-btn:focus {
    background: var(--color-accent);
    outline: none;
}
.resume {
    flex: 1;
    padding: 20px;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}
.photo {
    width: 90px;
    height: 90px;
    margin-right: 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo img {
    width: 100%;
    height: auto;
    display: block;
}
.portfolio-detail {
    min-height: 120px;
    padding: 30px 20px;
    background: var(--color-card);
    margin: 0 0 40px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--color-shadow);
    opacity: 1;
    transform: none;
    transition: background var(--transition);
}
body.dark-theme .portfolio-detail {
    background: var(--color-card-dark);
}
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 40px;
}
.project-card {
    background: var(--color-card);
    border-radius: 14px;
    box-shadow: 0 2px 8px var(--color-shadow);
    max-width: 400px;
    min-width: 260px;
    flex: 1 1 320px;
    padding: 0 0 24px 0;
    transition: box-shadow var(--transition), transform var(--transition);
}
.project-card img {
    width: 100%;
    border-radius: 14px 14px 0 0;
    display: block;
}
.project-card:hover, .project-card:focus {
    box-shadow: 0 8px 32px var(--color-shadow);
    transform: translateY(-6px) scale(1.03);
    outline: none;
}
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    justify-content: center;
    margin: 40px 0 0 0;
    padding: 0;
    list-style: none;
}
.skills-list li {
    background: var(--color-accent);
    color: #fff;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: background var(--transition);
}
body.dark-theme .skills-list li {
    background: var(--color-accent-alt);
}
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-top: 40px;
}
blockquote {
    background: var(--color-card);
    border-left: 5px solid var(--color-accent);
    border-radius: 10px;
    padding: 24px 32px;
    font-style: italic;
    max-width: 420px;
    min-width: 220px;
    box-shadow: 0 2px 8px var(--color-shadow);
    margin: 0;
    transition: background var(--transition);
}
body.dark-theme blockquote {
    background: var(--color-card-dark);
}
blockquote footer {
    margin-top: 12px;
    font-size: 0.95em;
    color: var(--color-primary);
}
/* Контактная форма — фон, иконки, анимация */
#kontaktai {
    position: relative;
    overflow: hidden;
}
#kontaktai::before {
    content: '';
    position: absolute;
    left: -60px; top: 30px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 80%);
    opacity: 0.12;
    z-index: 0;
}
.contact-form {
    background: var(--color-card);
    box-shadow: 0 4px 24px var(--color-shadow);
    border-radius: 18px;
    padding: 32px 24px 24px 24px;
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
    animation: fadeInUp 1s;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    font-size: 1em;
    font-family: 'Inter', Arial, sans-serif;
    background: var(--color-card);
    color: var(--color-text);
    transition: border-color var(--transition), background var(--transition);
}
body.dark-theme .contact-form input,
body.dark-theme .contact-form textarea {
    background: var(--color-card-dark);
    color: var(--color-text-dark);
    border-color: #23293a;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}
.contact-form input[type="text"],
.contact-form input[type="email"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding-left: 38px;
    background-repeat: no-repeat;
    background-position: 10px 50%;
}
.contact-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 90px;
    resize: vertical;
    margin-top: 8px;
    padding-left: 12px;
    background: none;
}
.contact-form input[name="name"] { background-image: url('data:image/svg+xml;utf8,<svg fill="%2338bdf8" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.7 0 8 1.34 8 4v2H4v-2c0-2.66 5.3-4 8-4zm0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8z"/></svg>'); }
.contact-form input[name="email"] { background-image: url('data:image/svg+xml;utf8,<svg fill="%2338bdf8" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>'); }
.contact-form input[name="phone"] { background-image: url('data:image/svg+xml;utf8,<svg fill="%2338bdf8" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.11-.21c1.21.49 2.53.76 3.88.76a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.07 21 3 13.93 3 5a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.35.27 2.67.76 3.88a1 1 0 0 1-.21 1.11l-2.2 2.2z"/></svg>'); }
.contact-form button {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    font-size: 1.2em;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 2px 8px var(--color-shadow);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.contact-form button::after {
    content: '→';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    opacity: 0.7;
    transition: right 0.3s;
}
.contact-form button:hover::after {
    right: 16px;
    opacity: 1;
}
.contact-form button {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.contact-form button:hover, .contact-form button:focus {
    background: var(--color-accent);
    transform: scale(1.04);
    outline: none;
}
.direct-contacts {
    margin-top: 24px;
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.direct-contacts ul {
    padding: 0;
    list-style: none;
}
.direct-contacts li {
    margin-bottom: 8px;
    font-size: 1.05em;
}
/* FOOTER */
footer {
    position: relative;
    background: rgba(255,255,255,0.92);
    color: var(--color-text);
    text-align: center;
    padding: 48px 0 24px 0;
    font-size: 1.08em;
    border-top: 1.5px solid var(--color-border);
    margin-top: 40px;
    transition: background var(--transition);
    overflow: hidden;
    box-shadow: 0 -2px 12px var(--color-shadow);
}
footer .footer-bg-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 7vw;
    color: var(--color-primary);
    opacity: 0.07;
    font-weight: 900;
    letter-spacing: 8px;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}
footer nav, footer p, .footer-socials {
    position: relative;
    z-index: 1;
}
footer nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
footer nav a {
    color: var(--color-primary);
    margin: 0 8px;
    text-decoration: underline;
    font-size: 1.08em;
    transition: color 0.2s;
}
footer nav a:hover {
    color: var(--color-accent);
}
.footer-socials {
    margin: 18px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 32px;
}
.footer-socials a {
    color: var(--color-accent);
    font-size: 2.2em;
    opacity: 0.8;
    transition: color 0.2s, opacity 0.2s, transform 0.2s;
}
.footer-socials a:hover {
    color: var(--color-primary);
    opacity: 1;
    transform: scale(1.15);
}
@media (max-width: 900px) {
    footer {
        padding: 32px 0 16px 0;
        font-size: 1em;
    }
    footer nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }
    .footer-socials {
        gap: 18px;
        font-size: 1.3em;
    }
}

/* Typewriter effect */
.typewriter {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Inter', monospace;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
}
.typewriter .cursor {
    display: inline-block;
    color: var(--color-accent);
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* Designer palette */
.palette {
    margin: 16px 0 8px 0;
}
.palette span {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
/* Animated code for dev */
.code-anim {
    background: #222;
    color: #b5ffb5;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
    font-size: 1em;
    margin-top: 10px;
    white-space: pre;
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
/* Parallax effect */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.4,2,.6,1), transform 0.8s cubic-bezier(.4,2,.6,1);
}
.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
@media (max-width: 900px) {
    .team-select-grid, .projects-grid, .testimonials-grid {
        flex-direction: column;
        gap: 18px;
    }
    .centered-section {
        padding: 40px 4vw 24px 4vw;
    }
    .hero-content {
        padding: 0 4vw;
    }
    .numerology {
        gap: 18px;
        font-size: 1.2em;
    }
}
@media (max-width: 600px) {
    .sticky-nav {
        flex-direction: column;
        padding: 8px 2vw;
    }
    .logo {
        font-size: 1.1em;
    }
    .team-member {
        width: 98vw;
        min-width: 0;
    }
    .project-card {
        min-width: 0;
        max-width: 98vw;
    }
    .photo {
        margin-right: 8px;
        width: 60px;
        height: 60px;
    }
}
html {
    scroll-behavior: smooth;
} 

/* Стрелки и экшен-кнопки */
.arrow-down {
    display: inline-block;
    margin: 24px auto 0 auto;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    animation: bounce 1.5s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

/* Анимированная нумерология */
.numerology {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 40px 0 0 0;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
}
.numerology .num {
    font-size: 2.6em;
    color: var(--color-accent);
    margin-bottom: 6px;
    display: block;
    transition: color 0.3s;
}
.numerology .desc {
    font-size: 0.5em;
    color: var(--color-text);
    font-weight: 400;
    margin-top: 2px;
} 

.team-member .resume {
    min-width: 0;
    flex: 1 1 0;
    word-break: break-word;
    padding: 20px 0 20px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 900px) {
    .team-member .resume {
        padding: 10px 0 0 0;
        text-align: left;
    }
} 

@media (min-width: 901px) {
    .sticky-nav {
        background: #fff;
        backdrop-filter: none;
    }
}

@media (max-width: 900px) {
    .sticky-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 1000;
    }
    footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        z-index: 1000;
        box-shadow: 0 -2px 12px var(--color-shadow);
    }
    body {
        padding-top: 56px;
        padding-bottom: 80px;
    }
} 

/* Новый футер в стиле murmur.lt */
footer {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 64px 0 24px 0;
    border-top: none;
    margin-top: 0;
    box-shadow: none;
    position: relative;
}
.footer-logo {
    margin-bottom: 24px;
    font-size: 2.3em;
    color: #fff;
    letter-spacing: 0.18em;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.footer-nav a {
    color: #fff;
    font-size: 1.1em;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.footer-nav a:hover {
    opacity: 1;
    color: var(--color-accent);
}
.footer-contacts {
    margin-bottom: 24px;
    font-size: 1.08em;
    opacity: 0.92;
}
.footer-contacts a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 8px;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-socials a {
    color: #fff;
    font-size: 2.2em;
    opacity: 0.8;
    transition: color 0.2s, opacity 0.2s, transform 0.2s;
}
.footer-socials a:hover {
    color: var(--color-accent);
    opacity: 1;
    transform: scale(1.15);
}
.footer-copyright {
    font-size: 0.98em;
    opacity: 0.6;
    margin-top: 18px;
    letter-spacing: 0.04em;
}
@media (max-width: 900px) {
    .footer-logo {
        font-size: 1.5em;
    }
    .footer-nav {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }
    .footer-socials {
        gap: 18px;
        font-size: 1.3em;
        margin-bottom: 18px;
    }
    footer {
        padding: 40px 0 16px 0;
    }
} 

/* Аккордеон для Įgūdžiai */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px 32px;
    align-items: start;
    margin: 40px 0 0 0;
    padding: 0;
    list-style: none;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.skill-accordion {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--color-shadow);
    overflow: visible;
    margin-bottom: 0;
    transition: box-shadow 0.2s;
    position: relative;
}
.skill-accordion.open {
    box-shadow: 0 8px 32px var(--color-shadow);
}
.skill-accordion-btn {
    width: 100%;
    background: none;
    border: none;
    font-size: 1.13em;
    font-weight: 600;
    color: var(--color-primary);
    padding: 18px 24px 12px 24px;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    position: relative;
}
.skill-accordion-btn:hover, .skill-accordion-btn:focus {
    background: var(--color-accent);
    color: #fff;
}
.skill-accordion-desc {
    background: var(--color-bg-light);
    color: var(--color-text);
    font-size: 1.05em;
    padding: 0 24px 16px 24px;
    transition: max-height 0.4s cubic-bezier(.4,2,.6,1), padding 0.3s;
    max-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.skill-accordion.open .skill-accordion-desc {
    max-height: 200px;
    padding: 0 24px 16px 24px;
} 

/* Блок участников: выбранный — translateY(-20px), остальные — blur(2px), opacity 0.5 */
.team-member {
    transition: transform 0.5s cubic-bezier(.4,2,.6,1), box-shadow var(--transition), border-color var(--transition), opacity 0.4s, filter 0.4s;
    filter: none;
    opacity: 1;
}
.team-member.selected {
    transform: scale(1.12) translateY(-20px);
    z-index: 2;
    filter: none;
    opacity: 1;
}
.team-member:not(.selected) {
    filter: blur(2px);
    opacity: 0.5;
} 

/* Новая masonry-сетка для Įgūdžiai */
.skills-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 32px;
    max-width: 900px;
    margin: 48px auto 0 auto;
    min-height: 900px;
}
/* Skills masonry grid: 1 column on mobile */
@media (max-width: 900px) {
    .skills-masonry-grid {
        grid-template-columns: 1fr;
        gap: 18px 0;
        min-height: 500px;
    }
}
/* Фоновая текстура для Įgūdžiai */
#igudziai {
    position: relative;
    background: linear-gradient(120deg, #f7faff 0%, #e0e7ef 100%);
    overflow: hidden;
}
#igudziai::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.13;
    background-image: url('data:image/svg+xml;utf8,<svg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke="%236c7a89" stroke-width="1.2" stroke-linecap="round"><path d="M20 40 l60 10"/><path d="M100 60 l40 30"/><path d="M200 80 l70 5"/><path d="M60 200 l30 60"/><path d="M180 220 l80 20"/><path d="M120 120 l60 10"/><path d="M220 160 l40 40"/><path d="M40 280 l60 10"/><path d="M260 300 l40 10"/><path d="M80 40 l10 60"/><path d="M300 100 l10 40"/><path d="M160 180 l10 60"/></g></svg>');
    background-repeat: repeat;
    background-size: 320px 320px;
}
#igudziai > * { position: relative; z-index: 1; }

/* Contact form: уменьшить ширину и добавить отступы */
.contact-form {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 13px 16px;
    font-size: 1.08em;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    margin: 0;
    box-sizing: border-box;
}
.contact-form textarea {
    min-height: 90px;
    resize: vertical;
}
.contact-form button {
    margin-top: 8px;
}

/* Header: на всю ширину экрана, контент по центру */
.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(247,250,253,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px 0 rgba(36,60,120,0.07), 0 1px 0 0 var(--color-border);
    border-bottom: 1.5px solid var(--color-border);
    transition: background 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    /* убраны любые transform/left/right/overflow-x */
}
.header-nav {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}
.logo {
    margin-right: 32px;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.08em;
}
@media (max-width: 900px) {
    .sticky-nav {
        flex-direction: row;
        padding: 0 8px;
    }
    .header-nav {
        max-width: 100vw;
        gap: 18px;
    }
    .logo {
        margin-right: 12px;
    }
} 

/* Новый современный header */
.sticky-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(247,250,253,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px 0 rgba(36,60,120,0.07), 0 1px 0 0 var(--color-border);
    border-bottom: 1.5px solid var(--color-border);
    transition: background 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    /* убраны любые transform/left/right/padding */
}
body.dark-theme .sticky-nav {
    background: rgba(24,28,32,0.88);
    box-shadow: 0 2px 16px 0 rgba(36,60,120,0.13), 0 1px 0 0 var(--color-border);
    border-bottom: 1.5px solid var(--color-border);
}
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 36px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.logo {
    font-size: 2.1em;
    font-weight: 700;
    letter-spacing: 0.13em;
    color: var(--color-primary);
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(36,60,120,0.07);
    flex: 0 0 auto;
    transition: color 0.2s;
}
.header-nav {
    display: flex !important;
    gap: 36px;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
}
.header-nav a {
    font-size: 1.13em;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--color-primary);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    position: relative;
    letter-spacing: 0.01em;
}
.header-nav a:hover, .header-nav a:focus {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--color-shadow);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}
#theme-toggle {
    font-size: 1.45em;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    padding: 6px 8px;
    transition: background 0.18s, color 0.18s;
}
#theme-toggle:hover, #theme-toggle:focus {
    background: var(--color-accent);
    color: #fff;
}
.header-burger {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--color-primary);
    cursor: pointer;
    margin-left: 8px;
    z-index: 120;
    border-radius: 50%;
    padding: 4px 6px;
    transition: background 0.18s, color 0.18s;
}
.header-burger:hover, .header-burger:focus {
    background: var(--color-accent);
    color: #fff;
}
@media (max-width: 900px) {
    .header-inner {
        padding: 0 10px;
        height: 60px;
    }
    .logo {
        font-size: 1.3em;
        margin-right: 0;
    }
    .header-nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-card);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 32px var(--color-shadow);
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
        padding: 18px 0 12px 0;
        animation: fadeInMenu 0.3s;
        z-index: 200;
    }
    .header-nav.open {
        display: flex !important;
    }
    .header-nav a {
        width: 100%;
        text-align: left;
        padding: 16px 24px;
        font-size: 1.15em;
        border-radius: 0;
        border-bottom: 1px solid var(--color-border);
        background: none;
        color: var(--color-primary);
    }
    .header-nav a:last-child {
        border-bottom: none;
    }
    .header-actions {
        gap: 8px;
    }
    .header-burger {
        display: block;
    }
} 