* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090a0f;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;

    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(10px);

    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    color: #8b8d99;
    font-size: 14px;
    transition: 0.3s;
}

.nav a:hover {
    color: white;
}

.language {
    display: flex;
    gap: 5px;
    padding: 5px;

    border: 1px solid #22242d;
    border-radius: 20px;
}

.language button {
    border: none;
    background: transparent;
    color: #777985;

    padding: 6px 9px;
    border-radius: 15px;

    cursor: pointer;
}

.language .active {
    background: white;
    color: black;
}

.side-navigation {
    position: fixed;
    right: 30px;
    top: 50%;

    display: flex;
    flex-direction: column;
    gap: 14px;

    transform: translateY(-50%);

    z-index: 50;
}

.dot {
    width: 9px;
    height: 9px;

    background: #555865;
    border-radius: 50%;

    transition: 0.3s;
}

.dot.active {
    width: 25px;
    border-radius: 10px;
    background: white;
}

.section {
    min-height: 100vh;

    max-width: 1200px;
    margin: auto;

    padding: 130px 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    flex-direction: row;
    align-items: center;
    gap: 80px;
}

.hero-image img {
    width: 390px;
    height: 390px;

    object-fit: cover;

    border-radius: 35px;

    border: 1px solid #282a33;
}

.hero-content {
    max-width: 560px;
}

.small-title {
    color: #777985;
    font-size: 14px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 70px;
    margin-bottom: 20px;
}

.description {
    color: #9698a4;
    font-size: 18px;
    line-height: 1.7;
}

.buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-block;

    padding: 13px 22px;

    border: 1px solid #30323b;
    border-radius: 25px;

    font-size: 14px;

    transition: 0.3s;
}

.button:hover {
    border-color: white;
}

.button.primary {
    background: white;
    color: black;
}

.socials {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.socials a {
    color: #777985;
    font-size: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 25px;

    color: #777985;
    font-size: 13px;
    letter-spacing: 3px;

    margin-bottom: 40px;
}

.section-title::after {
    content: "";
    height: 1px;
    background: #20222a;
    flex: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.about-text h2,
.projects-header h2,
.contact-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.about-text > p:not(.small-title),
.projects-header p:not(.small-title),
.contact-text > p:not(.small-title) {
    color: #92949f;
    line-height: 1.7;
}

.skills {
    margin-top: 35px;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill {
    padding: 20px;

    border: 1px solid #22242d;
    border-radius: 18px;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.skill span {
    color: #777985;
    font-size: 14px;
}

.about-card {
    padding: 25px;

    border: 1px solid #22242d;
    border-radius: 25px;

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.about-card div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.about-card span {
    color: #777985;
    font-size: 12px;
}

.channel-content {
    max-width: 700px;
}

.channel-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.channel-content > p:not(.small-title) {
    color: #92949f;
    line-height: 1.7;
}

.channel-links {
    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-top: 35px;
}

.channel-links a {
    display: block;

    padding: 20px 25px;

    border: 1px solid #22242d;
    border-radius: 18px;

    color: #ffffff;

    transition: 0.3s;
}

.channel-links a:hover {
    border-color: #555865;
    transform: translateX(5px);
}

.skills-header {
    margin-bottom: 35px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    overflow: hidden;

    border: 1px solid #22242d;
    border-radius: 22px;

    background: #0d0e14;

    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #444650;
}

.skill-image {
    width: 100%;
    height: 190px;
}

.skill-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skill-info {
    padding: 22px;
}

.skill-info h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.skill-info p {
    color: #777985;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 20px;
}

.skill-info a {
    font-size: 14px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 70px;
}

.contact-links {
    display: block;

    padding: 20px 25px;

    border: 1px solid #22242d;
    border-radius: 18px;

    color: #ffffff;

    transition: 0.3s;
}

.contact-links a {
    display: block;

    padding: 20px 25px;

    border: 1px solid #22242d;
    border-radius: 18px;

    color: #ffffff;

    transition: 0.3s;
}

.contact-form {
    padding: 25px;

    border: 1px solid #22242d;
    border-radius: 22px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    color: #888a95;
    font-size: 13px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 14px;

    background: #0b0c12;
    color: white;

    border: 1px solid #22242d;
    border-radius: 12px;

    outline: none;
}

.contact-form textarea {
    height: 130px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #555865;
}

.contact-form .button {
    cursor: pointer;
}

footer {
    padding: 80px 20px;

    text-align: center;
}

footer h2 {
    margin-bottom: 15px;
}

footer p {
    color: #555865;
    font-size: 13px;
}

.hero-image {
    display: block !important;
    width: 390px !important;
    height: 390px !important;
    flex-shrink: 0 !important;
}

.hero-image img {
    display: block !important;
    width: 390px !important;
    height: 390px !important;
    object-fit: cover;
}


/* МОБИЛЬНАЯ ВЕРСИЯ */

@media (max-width: 800px) {

    .header {
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .side-navigation {
        display: none;
    }

    .section {
        padding: 110px 25px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 40px;
    }

    .hero-image img {
        width: 260px;
        height: 260px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .description {
        font-size: 16px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .about-text h2,
    .projects-header h2,
    .contact-text h2 {
        font-size: 32px;
    }

    .channel-content h2 {
    font-size: 32px;
}
}
