:root{
    color-scheme: dark;
    --accent: #3b82f6;          /* основний синій */
    --accent-light: #38bdf8;    /* світліший для градієнтів */
    --accent-dark: #2563eb;     /* темніший для hover і градієнтів */
    --accent-glow: rgba(59, 130, 246, 0.4);   /* тінь */
}

html{
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100vh;

    /* Основні параметри */
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* Кольори та фон */
    background-color: white;
    color: #e6e8ec;

    /* Типографіка */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Робить шрифти більш чіткими */

    /* Поведінка та верстка */
    min-height: 100vh;
    overflow-x: hidden; /* Запобігає появі горизонтальної смуги прокрутки */
    scroll-behavior: smooth; /* Забезпечує плавну прокрутку до секцій */
}
.main-header{
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 56px;
    background: #545455;
    backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    opacity: 97%;
    justify-content: center;
    align-items: center;
}

.icon{
    width: 10%;
    height: auto;
    margin-top: 1%;
}

.first-div{
    width: 100%;
    height: 94vh;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: black;
    text-align: center;
}

.div-icon{
    width: 20%;
    height: auto;
}

.text{
    font-size: clamp(65px, 5vw, 130px);
    font-weight: 800;
    letter-spacing: -5px;
    line-height: 1.1;
    white-space: nowrap;
    color: white;
}

.buttons{
    display: flex;
    width: 25%;
    margin-top: 8%;
    gap: 3.5%;
}

.button-help{
    width: 45%;
    height: 5vh;
    border-radius: 25px;
    border: none;
    background-color: #1c1c9b;
    cursor: pointer;
    transition: all 75ms linear;
}

.button-help:hover{
    transform: translateY(-10%);
    background-color: #151580;
}
.button-help:active{
    transform: translateY(2%);
    transform: scale(90%);
    background-color: #0d0d6d;
}

.button-team{
    width: 45%;
    height: 5vh;
    border-radius: 25px;
    border: none;
    background-color: #545455;
    cursor: pointer;
    transition: all 75ms linear;
}

.button-team:hover{
    transform: translateY(-10%);
    background-color: #464647;
}
.button-team:active{
    transform: translateY(2%);
    transform: scale(90%);
    background-color: #323233;
}

.url{
    width: 35%;
    height: 4vh;
    display: flex;
    flex-direction: row;
    gap: 5%;
    background-color: #5E5E5F;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    margin-right: 37.5%;
}

.ap{
    color: #aeaeb3;
    text-decoration: none;
    transition: all 100ms linear;
}

.ap:hover{
    color: white;
}

.rek {
    text-align: center;
    color: #1d1d1f;
    padding: 80px 20px;
    background-color: white;
}

.rek2 {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.rek-desc {
    max-width: 600px;
    margin: 24px auto 0;
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.4;
    color: #6e6e73;
}

.lagues {
    display: flex;
    flex-wrap: wrap;           /* на телефоні переносяться в новий рядок */
    justify-content: center;
    gap: 28px;
    margin-top: 48px;
}

.lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lang-item span {
    font-size: 13px;
    color: #6e6e73;
}

.lang {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--c);
    color: var(--t, #fff);     /* якщо --t не задано, текст білий */
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lang:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.project{
    width: 100%;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
    gap: 2%;
    text-align: center;
}

.opus-my-langue{
    max-width: 600px;
    margin: 24px auto 0;
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.4;
    color: white;
}

.project-opus{
    display: block;
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.download{
    display: flex;
    flex-direction: row;
}

.image-my-langue-syntax{
    border-radius: 25px;
}

.my-langue {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.opus-my-langue {
    display: block;
    margin-bottom: 32px;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
}

.donwload {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.image-my-langue-syntax {
    flex: 1 1 50%;       
    min-width: 0;
    max-width: 50%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.opus-my-langue-download {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    font-size: 18px;
    line-height: 1.5;
    color: #6e6e73;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.downlaod-compiler {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    background: #22c55e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.downlaod-compiler:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.fot{
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: black;
    height: 3.5vh;
    font-family: serif;
}

.posl {
    background: #f5f5f7;
    padding: 80px 20px;
    text-align: center;
}

.opus-pos {
    margin: 0 0 56px;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1d1d1f;
}

.per {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 4.5%;
}

.can {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.can img {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
}

.name-can {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
}

.opus-can {
    font-size: 15px;
    color: #6e6e73;
}

/* секція і картка: 100% ширини, чорний фон, без заокруглення */
.team {
    width: 100%;
    background: #000;
    padding: 0;
}

.team-card {
    width: 100%;
    max-width: none;
    padding: 80px 20px;
    background: #000;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

/* контент по центру, не на весь екран */
.team-inner {
    max-width: 760px;
    margin: 0 auto;
}

/* іконка команди із заокругленням */
.team-icon-wrap {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    padding: 6px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    box-shadow: 0 8px 24px var(--accent-glow);
}

.team-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    background: #111;
}

.team-title {
    margin: 0;
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.team-desc {
    margin: 8px 0 36px;
    font-size: 17px;
    color: #a1a1a6;
}

/* учасники */
.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 140px;
}

.avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    box-shadow: 0 6px 16px var(--accent-glow);
    transition: transform 0.3s ease;
}

.member:hover .avatar {
    transform: translateY(-4px) scale(1.05);
}

.member-name {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.member-role {
    font-size: 14px;
    color: #a1a1a6;
}

/* блок проєкту */
.team-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    border-radius: 20px;
    background: #111;
    border: 1px solid #222;
}

.project-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a1a1a6;
}

.project-name {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

/* кнопка-посилання: ніякого синього в усіх станах */
.team .project-link,
.team .project-link:link,
.team .project-link:visited,
.team .project-link:hover,
.team .project-link:active,
.team .project-link:focus {
    color: #fff;
    text-decoration: none;
}

.project-link {
    margin-top: 12px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.project-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.contact {
    padding: 100px 20px;
    background: #f5f5f7;
    text-align: center;
    scroll-margin-top: 80px;
}

.contact-title {
    margin: 0 0 28px;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #1d1d1f;
}

.contact-mail,
.contact-mail:visited {
    display: inline-block;
    margin-bottom: 28px;
    font-size: clamp(20px, 3vw, 32px);
    color: #0066cc;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.contact-mail:hover {
    color: #004a99;
    text-decoration: underline;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.contact-pill,
.contact-pill:visited {
    padding: 12px 22px;
    border-radius: 999px;
    background: #e3f0fd;
    color: #0066cc;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-pill:hover {
    background: #cfe4fa;
    transform: translateY(-2px);
}

.contact-pill:focus-visible,
.contact-mail:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 3px;
}

/* ============ ПЛАНШЕТ (до 1024px) ============ */
@media (max-width: 1024px) {
    body {
        height: auto;
    }

    /* шапка */
    .main-header {
        justify-content: space-between;
        padding: 0 20px;
    }

    .icon {
        width: 44px;
        margin-top: 0;
    }

    .url {
        width: auto;
        height: 38px;
        margin-right: 0;
        padding: 0 28px;
        gap: 28px;
    }

    /* перший екран */
    .first-div {
        height: auto;
        min-height: calc(100svh - 56px);
        padding: 60px 20px;
    }

    .div-icon {
        width: 30%;
        max-width: 260px;
    }

    .text {
        font-size: clamp(40px, 8vw, 80px);
        letter-spacing: -2px;
        white-space: normal;
    }

    .buttons {
        width: 60%;
        max-width: 420px;
        gap: 16px;
    }

    .button-help,
    .button-team {
        height: 44px;
    }

    /* проєкти */
    .project {
        height: auto;
        padding: 80px 20px;
        gap: 24px;
    }

    .donwload {
        gap: 24px;
    }

    /* що я роблю */
    .per {
        gap: 40px;
    }

    .fot {
        height: auto;
        padding: 12px;
    }
}

/* ============ ТЕЛЕФОН (до 768px) ============ */
@media (max-width: 768px) {
    /* шапка */
    .main-header {
        padding: 0 12px;
    }

    .icon {
        width: 36px;
    }

    .url {
        flex: 1;
        height: 36px;
        margin-left: 12px;
        padding: 0 12px;
        gap: 0;
        justify-content: space-around;
        font-size: 13px;
    }

    /* перший екран */
    .first-div {
        padding: 40px 16px;
    }

    .div-icon {
        width: 45%;
        max-width: 200px;
    }

    .text {
        font-size: clamp(32px, 10vw, 52px);
        letter-spacing: -1px;
    }

    .buttons {
        width: 100%;
        max-width: 340px;
        margin-top: 32px;
        gap: 12px;
    }

    .button-help,
    .button-team {
        width: 50%;
        height: 46px;
        font-size: 15px;
    }

    /* про мене + мови */
    .rek {
        padding: 56px 16px;
    }

    .lagues {
        gap: 20px;
        margin-top: 36px;
    }

    .lang {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }

    /* проєкти: картинка зверху, текст під нею */
    .project {
        padding: 56px 16px;
    }

    .my-langue {
        padding: 0;
    }

    .donwload {
        flex-direction: column;
        gap: 24px;
    }

    .image-my-langue-syntax {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .opus-my-langue-download {
        flex: none;
        width: 100%;
        font-size: 16px;
    }

    /* що я роблю */
    .posl {
        padding: 56px 16px;
    }

    .opus-pos {
        display: block;
        margin-bottom: 36px;
    }

    .per {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .can {
        width: 100%;
        max-width: 280px;
    }

    /* команда */
    .team-card {
        padding: 56px 16px;
    }

    .team-members {
        gap: 20px;
        margin-bottom: 28px;
    }

    .member {
        width: 100px;
    }

    .team-project {
        padding: 22px 16px;
    }

    .project-name {
        font-size: 26px;
    }

    .project-link {
        font-size: 15px;
        text-align: center;
    }

    /* контакти */
    .contact {
        padding: 64px 16px;
    }

    .fot {
        font-size: 14px;
    }
}

/* ============ МАЛЕНЬКИЙ ТЕЛЕФОН (до 480px) ============ */
@media (max-width: 480px) {
    .url {
        font-size: 12px;
        padding: 0 8px;
    }

    .text {
        font-size: clamp(28px, 9.5vw, 40px);
    }

    .buttons {
        flex-direction: column;
        max-width: 260px;
    }

    .button-help,
    .button-team {
        width: 100%;
    }

    .lagues {
        gap: 16px;
    }

    .lang {
        width: 56px;
        height: 56px;
    }

    .member {
        width: 92px;
    }

    .avatar {
        width: 64px;
        height: 64px;
    }

    .team-icon-wrap {
        width: 80px;
        height: 80px;
    }

    .contact-pill {
        padding: 11px 18px;
        font-size: 14px;
    }
}