/* ===== ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ ===== */
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}





:root {
    --header-height: 80px;
}

/* ===== БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Unbounded', sans-serif;
    background: #f0f2f0;
    color: #1a1a1a;
    line-height: 1.6;
    display: flex;
    justify-content: center;
}

.site-wrap {
    max-width: 1400px;
    width: 100%;
    background: #f0f2f0;
    min-height: 100vh;
    position: relative;
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: var(--header-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #555;
}

/* ===== INTRO ===== */
.intro-section {
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding-top: var(--header-height);
    width: 100%;
}

.intro-text {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
}

.intro-content {
    max-width: 600px;
    width: 100%;
}

.intro-title {
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.intro-subtitle {
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.4rem);
    color: #444;
    margin-bottom: 2rem;
}

.intro-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.intro-media {
    flex: 0 0 50%;
    aspect-ratio: 1 / 1;
    padding: 0;
    display: flex;
    align-items: stretch;
    background: #d4d4d4;
    overflow: hidden;
    position: relative;
}

/* ===== СЛАЙДЕР ===== */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #d4d4d4;
}

.slides-wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}

.slides-wrapper img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Прогресс-бар */
.slider-progress {
    position: absolute;
    bottom: 16px;
    left: 15%;
    width: 70%;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.slider-progress-bar {
    width: 0%;
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    transition: none;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-primary {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-secondary {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ===== СЕКЦИИ ===== */
.section {
    padding: 5rem 0;
    background: #ffffff;
    width: 100%;
}

.section:nth-child(odd) {
    background: #fafafa;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* ===== ОБО МНЕ ===== */
.about-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #333;
    line-height: 1.8;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.skill {
    background: #e8e8e8;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* ===== КОНТАКТЫ ===== */
.contacts-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.contacts-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #1a1a1a;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    background: #f0f0f0;
    transition: background 0.2s;
}

.contact-item:hover {
    background: #e0e0e0;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #e0e0e0;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    width: 100%;
}

/* ===== АДАПТИВ (мобилки) ===== */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header {
        padding: 0 1.2rem;
    }
    .nav {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .intro-section {
        flex-direction: column;
        padding-top: var(--header-height);
    }
    .intro-text {
        flex: 0 0 100%;
        padding: 2rem 1.5rem;
        order: 2;
    }
    .intro-media {
        flex: 0 0 100%;
        aspect-ratio: 1 / 1;
        order: 1;
    }
    .section {
        padding: 3rem 0;
    }
    .section h2 {
        font-size: 2rem;
    }
    .contacts-links {
        flex-direction: column;
        align-items: center;
    }
}