/* ============================================
   Pear — Элитная разработка
   Стили центрального сайта компании
   ============================================ */

/* Fonts & Reset */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1068px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */
.accent {
    color: #3a3a3c;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.003em;
    color: #1d1d1f;
}

.section-subtitle {
    text-align: center;
    color: #86868b;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    animation: fadeIn 1.2s ease-out 0.3s both;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 28px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
}

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

.nav a {
    color: #86868b;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: #1d1d1f;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 48px;
    background: #ffffff;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

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

.hero-emblem {
    margin-bottom: 40px;
}

.emblem-img {
    height: 180px;
    width: auto;
    border-radius: 12px;
    filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.08));
    animation: scaleIn 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.003em;
    margin-bottom: 1.2rem;
    color: #1d1d1f;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto 0;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.hero-signature {
    margin-top: 36px;
    padding: 24px 32px;
    border-left: 3px solid #3a3a3c;
    background: #f5f5f7;
    border-radius: 0 16px 16px 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.signature-text {
    font-size: 1rem;
    font-weight: 400;
    color: #515154;
    line-height: 1.8;
    font-style: italic;
    letter-spacing: 0.01em;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #3a3a3c;
    text-transform: uppercase;
}

.badge-year {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 140px 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text p {
    color: #515154;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat {
    padding: 28px 32px;
    border-radius: 18px;
    background: #f5f5f7;
    text-align: center;
    transition: all 0.3s ease;
}

.stat:hover {
    background: #e8e8ed;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #3a3a3c;
    margin-bottom: 4px;
    letter-spacing: -0.003em;
}

.stat-label {
    font-size: 0.85rem;
    color: #86868b;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ============================================
   Projects Section — Carousel
   ============================================ */
.projects {
    padding: 140px 0;
    background: #f5f5f7;
}

.carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 calc(50% - 12px);
    min-width: 0;
}

.project-card {
    padding: 48px 40px;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    height: 100%;
}

.project-card-link .project-card {
    cursor: pointer;
}

.project-card:hover,
.project-card-link:hover .project-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.project-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #3a3a3c;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .project-placeholder,
.project-card-link:hover .project-placeholder {
    background: #e8e8ed;
}

.plus {
    font-size: 1.4rem;
    font-weight: 200;
}

.check {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.project-card p {
    color: #86868b;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Carousel Buttons */
.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover:not(:disabled) {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #c7c7cc;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #3a3a3c;
    width: 24px;
    border-radius: 4px;
}

.carousel-dot:hover {
    background: #86868b;
}

/* ============================================
   Creator Section
   ============================================ */
.creator {
    padding: 140px 0;
    background: #ffffff;
}

.creator .creator-card {
    text-align: center;
    padding: 64px 48px;
    border-radius: 24px;
    background: #f5f5f7;
    transition: all 0.3s ease;
    width: 100%;
}

.creator .creator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.creator-avatar {
    margin-bottom: 24px;
}

.creator-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

.creator-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
    letter-spacing: -0.003em;
}

.creator-role {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3a3a3c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.creator-location {
    font-size: 0.85rem;
    color: #86868b;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.creator-desc {
    font-size: 1.1rem;
    color: #515154;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Source Code Section
   ============================================ */
.source {
    padding: 140px 0;
    background: #f5f5f7;
}

.source-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.source-text {
    color: #515154;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 36px;
    background: #ffffff;
    border-radius: 16px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.source-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

.source-link-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.source-link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.source-link:hover .source-link-arrow {
    transform: translateX(4px);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 140px 0;
    background: #ffffff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    color: #515154;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 48px;
    letter-spacing: 0.01em;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c7c7cc;
}

.contact-value {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -0.003em;
}

a.contact-value:hover {
    color: #3a3a3c;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-tagline {
    color: #86868b;
    font-size: 0.85rem;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.footer-copy {
    color: #c7c7cc;
    font-size: 0.75rem;
    font-weight: 400;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .emblem-img {
        height: 130px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card-link {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .nav {
        display: none;
    }

    .hero-signature {
        padding: 20px 24px;
    }

    .signature-text {
        font-size: 0.9rem;
    }

    .creator .creator-card {
        padding: 48px 32px;
    }

    .creator-img {
        width: 120px;
        height: 120px;
    }

    .creator-name {
        font-size: 1.5rem;
    }

    .source-link {
        padding: 16px 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .emblem-img {
        height: 100px;
    }

    .container {
        padding: 0 20px;
    }

    .project-card {
        padding: 32px 24px;
    }

    .project-card-link {
        flex: 0 0 100%;
    }

    .carousel {
        gap: 8px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .hero-signature {
        padding: 16px 20px;
    }

    .signature-text {
        font-size: 0.85rem;
    }

    .creator .creator-card {
        padding: 36px 24px;
    }

    .creator-img {
        width: 100px;
        height: 100px;
    }

    .creator-name {
        font-size: 1.3rem;
    }

    .source-link {
        padding: 14px 24px;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}