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

:root {
    --primary-orange: #e87451;
    --primary-orange-strong: #d95f3f;
    --primary-brown: #2d1b1b;
    --dark-bg: #1a0f0f;
    --dark-card: #2d1b1b;
    --dark-card-soft: #372120;
    --dark-border: #4a2b27;
    --text-primary: #ffffff;
    --text-secondary: #c8b9b5;
    --text-muted: #93827d;
    --green: #0f615a;
    --gold: #e6c47a;
    --gradient-primary: linear-gradient(135deg, #f08b65, #d95f3f);
    --gradient-card: linear-gradient(145deg, rgba(45, 27, 27, 0.92), rgba(26, 15, 15, 0.96));
    --shadow-warm: 0 24px 70px rgba(232, 116, 81, 0.22);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 8%, rgba(232, 116, 81, 0.16), transparent 32rem),
        radial-gradient(circle at 90% 24%, rgba(15, 97, 90, 0.16), transparent 34rem),
        var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(26, 15, 15, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 116, 81, 0.16);
}

.nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: color 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(232, 116, 81, 0.24);
    border-radius: 12px;
    background: rgba(45, 27, 27, 0.86);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-primary);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 100dvh;
    padding: 136px 0 88px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
    gap: 72px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(232, 116, 81, 0.24);
    border-radius: 999px;
    background: rgba(232, 116, 81, 0.08);
    color: var(--primary-orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-title {
    max-width: 780px;
    font-size: clamp(46px, 7vw, 78px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f6d5c8 42%, #e87451 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 690px;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    border: 0;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 16px 32px rgba(232, 116, 81, 0.26);
}

.btn-secondary,
.btn-project {
    color: var(--text-primary);
    background: rgba(45, 27, 27, 0.72);
    border: 1px solid rgba(232, 116, 81, 0.22);
}

.btn-secondary:hover,
.btn-project:hover {
    border-color: var(--primary-orange);
    background: rgba(232, 116, 81, 0.12);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 18px;
}

.stat {
    border: 1px solid rgba(232, 116, 81, 0.16);
    border-radius: 18px;
    background: rgba(45, 27, 27, 0.54);
    padding: 20px;
}

.stat strong {
    display: block;
    font-size: 32px;
    line-height: 1;
    color: var(--primary-orange);
    margin-bottom: 8px;
}

.stat span {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.hero-phone {
    position: relative;
    max-width: 380px;
    justify-self: center;
    border-radius: 42px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(232, 116, 81, 0.32), rgba(15, 97, 90, 0.22));
    border: 1px solid rgba(232, 116, 81, 0.2);
    box-shadow: var(--shadow-warm);
}

.hero-phone::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 56px;
    background: radial-gradient(circle at 50% 12%, rgba(232, 116, 81, 0.32), transparent 58%);
    filter: blur(18px);
}

.hero-phone img {
    aspect-ratio: 9 / 19.5;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 32px;
}

.projects,
.about,
.contact {
    padding: 90px 0;
}

.projects {
    background: linear-gradient(180deg, transparent, rgba(232, 116, 81, 0.04));
}

.section-title {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 14px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    max-width: 680px;
    margin: 0 auto 58px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.featured-project {
    width: 100%;
}

.other-projects {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.other-projects h3 {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto 22px;
    font-size: 28px;
    line-height: 1.2;
}

.projects-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 max(24px, calc((100vw - 1200px) / 2)) 20px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--primary-orange) var(--dark-border);
}

.projects-scroll::-webkit-scrollbar {
    height: 8px;
}

.projects-scroll::-webkit-scrollbar-track {
    background: var(--dark-border);
    border-radius: 999px;
}

.projects-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 999px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 315px;
    min-height: 500px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    background: var(--gradient-card);
    border: 1px solid rgba(232, 116, 81, 0.16);
    border-radius: 22px;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(232, 116, 81, 0.48);
    box-shadow: var(--shadow-warm);
}

.project-card.featured {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
}

.project-image {
    position: relative;
    min-height: 210px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.22), transparent 22rem),
        linear-gradient(135deg, #e5c5d4, #edd5a8);
    overflow: hidden;
}

.project-card:nth-child(2n) .project-image {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 20rem),
        linear-gradient(135deg, #a8cae8, #98c8a8);
}

.project-card:nth-child(3n) .project-image {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 20rem),
        linear-gradient(135deg, #e6c47a, #d98a63);
}

.project-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 80px;
    background: linear-gradient(to top, rgba(26, 15, 15, 0.86), transparent);
}

.project-image img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.045);
}

.project-card.featured .project-image {
    min-height: 430px;
}

.project-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.project-card.featured .project-content {
    padding: 44px;
}

.project-title {
    color: var(--text-primary);
    font-size: 25px;
    line-height: 1.18;
    font-weight: 900;
    margin-bottom: 6px;
}

.project-card.featured .project-title {
    font-size: clamp(34px, 4vw, 52px);
}

.project-tagline {
    color: var(--primary-orange);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.project-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 22px;
}

.feature {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(232, 116, 81, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.feature-mark {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary-orange);
    box-shadow: 0 0 0 5px rgba(232, 116, 81, 0.12);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 18px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(232, 116, 81, 0.22);
    background: rgba(232, 116, 81, 0.09);
    color: var(--primary-orange);
    font-size: 12px;
    font-weight: 800;
}

.about-content {
    max-width: 1040px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 42px;
}

.about-intro h3 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.about-lead {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 34px;
}

.achievement-card,
.story-card,
.contact-card {
    background: var(--gradient-card);
    border: 1px solid rgba(232, 116, 81, 0.16);
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.achievement-card {
    padding: 26px 20px;
    text-align: center;
}

.achievement-card:hover,
.story-card:hover,
.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 116, 81, 0.45);
    box-shadow: 0 18px 38px rgba(232, 116, 81, 0.18);
}

.achievement-number {
    display: block;
    min-height: 44px;
    color: var(--primary-orange);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 10px;
}

.achievement-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

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

.story-card {
    padding: 26px;
}

.story-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.story-card p {
    color: var(--text-secondary);
}

.contact {
    background: linear-gradient(180deg, transparent, rgba(232, 116, 81, 0.05));
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.contact-card {
    padding: 36px;
    color: var(--text-primary);
    text-align: center;
    text-decoration: none;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    color: #fff;
    background: var(--gradient-primary);
    font-size: 13px;
    font-weight: 900;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
}

.footer {
    padding: 34px 0;
    text-align: center;
    border-top: 1px solid rgba(232, 116, 81, 0.16);
    background: rgba(45, 27, 27, 0.68);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 200;
    inset: 0;
    padding: 48px 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal.open {
    display: block;
}

.modal-content {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 36px;
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(232, 116, 81, 0.24);
    background: var(--dark-card);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(232, 116, 81, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    background: rgba(26, 15, 15, 0.75);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.modal-image {
    max-height: 460px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 18px;
    margin-bottom: 26px;
}

.modal-body h2 {
    padding-right: 42px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

.modal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 22px 0 6px;
}

.modal-list li {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-secondary);
    background: rgba(232, 116, 81, 0.09);
    border: 1px solid rgba(232, 116, 81, 0.14);
}

@media (max-width: 900px) {
    .hero-grid,
    .project-card.featured,
    .story-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 42px;
    }

    .hero-phone {
        max-width: 320px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 32px, 1200px);
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(232, 116, 81, 0.2);
        border-radius: 18px;
        background: rgba(45, 27, 27, 0.98);
        transform: translateY(-14px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        display: block;
        padding: 13px 12px;
        border-radius: 12px;
    }

    .nav-menu a:hover {
        background: rgba(232, 116, 81, 0.09);
    }

    .nav-menu a::after {
        display: none;
    }

    .hero {
        padding: 112px 0 70px;
    }

    .hero-title {
        font-size: clamp(40px, 13vw, 58px);
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-stats,
    .project-features,
    .modal-list {
        grid-template-columns: 1fr;
    }

    .projects,
    .about,
    .contact {
        padding: 68px 0;
    }

    .projects-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-card {
        width: 292px;
    }

    .project-card.featured .project-image {
        min-height: 360px;
    }

    .project-card.featured .project-content,
    .modal-content {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
