html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth body {
    overflow: hidden;
}

/* ⭐ ключ к супер-плавности */
.lenis {
    will-change: transform;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #f1f1f1;
    background-color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}


html,
body {
    height: 100%;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth body {
    overflow: hidden;
}

.hero {
    height: calc(100vh - 60px);
    /* Placeholder for background image */
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        url("images/hero.jpg") center/cover no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    will-change: transform;
    padding-top: 80px;

}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

}

.button {
    display: inline-block;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: #fff;
    text-decoration: none;

    opacity: 0.9;

    transition: all 0.3s ease;
}

.button:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.button {
    position: relative;
}

.button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;

    width: 0;
    height: 1px;
    background: #fff;

    transition: width 0.3s ease;
}

.button:hover::after {
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about,
.services,
.work-process,
.contact {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.services {
    padding-top: 0px;
    padding-bottom: 0px;
}

.projects {
    width: 100%;
    padding: 0;
    /* ← убрать воздух */
    margin: 0;
    max-width: none;
    /* ← ВАЖНО */
}

.projects-container {
    width: 100%;
}

.projects-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    /* ← ВСЕГДА 2 блока */

    gap: 5px;
    /* расстояние между карточками */
    width: 100%;
    overflow: hidden;
    grid-auto-rows: auto;
}

.project-card {
    position: relative;
    overflow: hidden;
    /* обрезает zoom */
    display: block;
    text-decoration: none;
    color: inherit;
}

.service {
    margin-bottom: 20px;
}

.work-process ol {
    padding-left: 20px;
}

.contact form {
    display: flex;
    flex-direction: column;
    order: 2;
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
}

.contact input,
.contact textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact button {
    background: #fff;
    color: #1a1a1a;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #ccc;
}

.section-bg {
    background:
        linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
        url("images/section-bg.jpg") center/cover no-repeat;

    background-attachment: fixed;
    padding: 100px 0;
}

.project-image {

    width: 100%;
    /* height: 420px; */
    height: 420px;
    display: block;

    background-size: cover;
    background-position: center;
    padding-top: 65%;
    /* высота карточки */
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.projects-grid {}

.project-info {

    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    padding: 40px 25px;

    text-align: center;

    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity .6s cubic-bezier(.22, 1, .36, 1),
        transform .8s cubic-bezier(.22, 1, .36, 1);

    /* затемнение только под текстом */

    background: linear-gradient(transparent 60%,
            rgba(0, 0, 0, 0.65));

}

.project-info h3 {
    text-transform: uppercase;

    font-size: 30px;
    /* ← было ~22 */
    font-weight: 700;
    /* ← BOLD */
    letter-spacing: 2px;

    margin-bottom: 10px;

    line-height: 1.1;
}

.project-info p {
    margin: 4px 0;
    /* ← ключевой момент */
    font-size: 17px;
    opacity: 0.9;
    line-height: 1.45;
}

.project-info p:first-of-type {
    font-size: 16px;
    opacity: 0.75;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}  */

.project-card:hover .project-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.logo {
    width: 420px;
    max-width: 80vw;
    margin-bottom: 80px;
    transform: translateY(-2px);

}

.hero h2 {
    letter-spacing: 2px;
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
    /* 🔥 ключ */
    line-height: 1.2;
}

.hero p {
    max-width: 520px;
    line-height: 1.4;
    opacity: 0.85;
    letter-spacing: 1.6px;
    text-transform: none;
    font-weight: 300;
}

section h2 {
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.about p {
    max-width: 720px;
    line-height: 1.8;
    opacity: 0.9;
}

.service {
    margin-bottom: 35px;
}

.service h3 {
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.work-process ol {
    margin-top: 18px;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.about-title h2 {
    position: sticky;
    top: 120px;
    letter-spacing: 1px;
}

.about-text p {
    max-width: 620px;
    line-height: 1.9;
    opacity: 0.9;
}

.projects h2 {
    margin-bottom: 30px;
    padding-left: 10px;
}

.about {
    padding-top: 90px;
    padding-bottom: 110px;
}

.work-process {
    padding-top: 70px;
    padding-bottom: 70px;
}

.contact {
    padding-top: 0px;
    padding-bottom: 0px;
}

section+section {
    margin-top: 20px;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 80px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(0, 0, 0, 0.25));
    text-align: center;
    position: relative;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-brand {
    font-size: 13px;
    letter-spacing: 1.5px;
    opacity: 0.5;
    transform: translateY(6px);
    text-align: center;
    margin: 0;
    /* margin-left: 25px; */
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.hero-content {
    transform: translateY(-40px);
}

.hero p {
    margin-top: 8px;
}

.hero .button {
    margin-top: 30px;
}

.social-links {
    order: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    justify-content: center;
    transform: translateX(-12px);
}

.footer-brand {
    position: static;
    text-align: center;
    opacity: 0.6;
    margin-top: 10px;
    order: 2;
    transform: translateX(12px);
}

/* ===== SOCIAL ICONS ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    background: none;
    border: none;
    padding: 0;
}

.social-btn img {
    width: 40px;
    /* можно 20–26 по вкусу */
    height: 30px;

    filter: invert(1);
    opacity: 0.8;

    transition: all 0.3s ease;
}

/* hover — архитектурный стиль */
.social-btn:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.1);
}

.social-btn:hover img {
    filter: invert(0);
    opacity: 1;
}

.social-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    /* ← делает иконку белой */
    opacity: 0.85;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hero-link {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-evenly;
    /* равномерно по всей ширине */
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

html,
body {
    min-height: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

#footer-placeholder {
    margin-top: auto;
}

.page-centered_contacts {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* центрируем только по вертикали */
.page-centered_contacts .contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    /* padding-top: -120px; */
}

.page-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* центрируем основной контент */
.page-centered section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-centered .about {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.contact {
    width: 100%;
}

.contact-info {
    order: 0;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.contact:hover .contact-info {
    opacity: 1;
    transform: translateY(0);
}

.contact-item {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

/* underline как у кнопок */
.contact-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.contact-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.contact-item:hover::after {
    width: 100%;
}

.contact-info {}

/* строка */
.contact-row {
    display: grid;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.5;
    letter-spacing: 1px;
    text-align: center;
    grid-template-columns: 1fr;
    gap: 4px
}

/* левая часть */
.contact-row span {
    opacity: 0.5;
    /* letter-spacing: 1px; */
}

/* правая часть */
.contact-row a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

/* hover */
.contact-row a:hover {
    opacity: 0.7;
}

.page-centered .services {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-20px);
}

.contact h2 {
    text-align: center;
    /* margin-top: 380px; */
    margin-bottom: -30px;
}

@media (max-width:1000px) {

    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .nav {
        top: 10px;
        padding: 10px 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
    }

    .nav-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        justify-items: center;
    }

    .nav a {
        font-size: 11px;
        letter-spacing: 1px;
    }

}