/* ===== CSS VARIABLES ===== */
:root {
    --orange: #E8480A;
    --orange-dark: #C73A06;
    --orange-light: #FF6B35;
    --navy: #0A1628;
    --navy-mid: #132040;
    --cream: #F4F6FA;
    --white: #ffffff;
    --gray-100: #EEF1F7;
    --gray-200: #D8DCE8;
    --gray-500: #7A82A0;
    --gray-700: #3A3F54;
    --text: #161C2D;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 4px 24px rgba(10,22,40,0.08);
    --shadow-md: 0 8px 40px rgba(10,22,40,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    background: var(--cream);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover, .btn-primary:active { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover, .btn-ghost:active { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn.full-width { width: 100%; }

/* SECTION TAGS */
.section-tag {
    display: inline-block;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(232,72,10,0.08);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    border-left: 3px solid var(--orange);
}
.section-tag.light { color: var(--orange-light); background: rgba(255,107,53,0.12); border-left-color: var(--orange-light); }
.section-header { text-align: center; margin-bottom: 48px; padding: 0 8px; }
.section-header h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 14px; }
.section-header p { color: var(--gray-500); font-size: 1rem; max-width: 540px; margin: 0 auto; font-weight: 300; }
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }

/* HEADER */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    transition: var(--transition);
}
header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--gray-200), var(--shadow);
    padding: 12px 32px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--orange);
    letter-spacing: -0.02em;
    background: rgba(232,72,10,0.1);
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid rgba(232,72,10,0.2);
    line-height: 1;
}
.logo-sub { font-weight: 400; font-size: 0.72rem; color: var(--white); line-height: 1.35; max-width: 110px; }
header.scrolled .logo-sub { color: var(--navy); }
nav ul { display: flex; align-items: center; gap: 4px; }
nav ul li a { font-weight: 400; font-size: 0.9rem; color: rgba(255,255,255,0.9); padding: 7px 14px; border-radius: 6px; transition: var(--transition); }
header.scrolled nav ul li a { color: var(--navy); }
nav ul li a:hover { color: var(--orange); background: rgba(232,72,10,0.06); }
nav ul li a.nav-cta { background: var(--orange); color: var(--white) !important; font-weight: 500; padding: 8px 18px; }
nav ul li a.nav-cta:hover { background: var(--orange-dark); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; -webkit-tap-highlight-color: transparent; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
header.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE NAV */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 998;
    padding: 90px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav ul li a {
    display: block;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}
.mobile-nav ul li a:hover, .mobile-nav ul li a:active {
    background: rgba(255,255,255,0.06);
    color: var(--orange-light);
    border-left-color: var(--orange-light);
}

/* HERO */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1A2F50 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 20px 60px;
    position: relative;
    overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; opacity: 0.05; background: var(--orange); }
.shape-1 { width: 500px; height: 500px; top: -180px; right: -180px; }
.shape-2 { width: 350px; height: 350px; bottom: -80px; left: -120px; }
.shape-3 { width: 180px; height: 180px; top: 42%; left: 8%; opacity: 0.03; }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 720px; }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding: 7px 18px;
    border-radius: 4px;
    margin-bottom: 28px;
}
.hero-title {
    font-weight: 900;
    font-size: clamp(2.2rem, 8vw, 4.6rem);
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-title em {
    display: block;
    font-style: italic;
    font-weight: 300;
    font-size: 0.5em;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}
.hero-title .accent { color: var(--orange-light); }
.hero-desc { color: rgba(255,255,255,0.62); font-weight: 300; font-size: clamp(0.93rem, 2.5vw, 1.08rem); max-width: 520px; margin: 0 auto 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    position: relative;
    z-index: 1;
    margin-top: 56px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
}
.stat { flex: 1; text-align: center; padding: 20px 12px; }
.stat-num { display: block; font-weight: 700; font-size: 1.8rem; color: var(--white); line-height: 1; }
.stat-label { display: block; font-weight: 300; font-size: 0.65rem; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 5px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

/* SERVICES */
.services { padding: 80px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-card { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.service-card:hover { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), var(--shadow-md); transform: translateY(-2px); }
.service-card.featured { grid-row: span 2; background: var(--navy); border-color: var(--navy); }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,0.65); }
.service-icon { font-size: 1.8rem; margin-bottom: 18px; }
.service-card h3 { font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; color: var(--navy); }
.service-card p { color: var(--gray-700); font-size: 0.92rem; line-height: 1.7; font-weight: 400; }
.service-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.service-list li { font-weight: 300; font-size: 0.875rem; color: rgba(255,255,255,0.65); padding-left: 18px; position: relative; }
.service-list li::before { content: '–'; position: absolute; left: 0; color: var(--orange-light); font-weight: 700; }

/* ABOUT */
.about { padding: 80px 0; background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about-text p { color: var(--gray-700); font-size: 0.95rem; font-weight: 400; margin-bottom: 14px; line-height: 1.75; }
.about-values { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.value { background: var(--white); border-left: 3px solid var(--orange); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.value strong { display: block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.value span { color: var(--gray-700); font-size: 0.9rem; line-height: 1.65; font-weight: 300; }
.about-advantages { background: var(--navy); border-radius: var(--radius-lg); padding: 36px; }
.about-advantages h3 { font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 28px; }
.advantage-list { display: flex; flex-direction: column; gap: 22px; }
.advantage-item { display: flex; gap: 14px; align-items: flex-start; }
.advantage-icon { font-size: 1.2rem; flex-shrink: 0; width: 36px; height: 36px; background: rgba(255,255,255,0.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.advantage-item strong { display: block; color: var(--white); font-weight: 500; font-size: 0.95rem; margin-bottom: 3px; }
.advantage-item p { color: rgba(255,255,255,0.5); font-size: 0.84rem; margin: 0; font-weight: 300; line-height: 1.6; }

/* MARKET */
.market { padding: 72px 0; background: var(--orange); }
.market .section-tag { background: rgba(255,255,255,0.18); color: var(--white); border-left-color: rgba(255,255,255,0.6); }
.market-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.market-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; transition: var(--transition); -webkit-tap-highlight-color: transparent; }
.market-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.market-card span { font-size: 2rem; display: block; margin-bottom: 12px; }
.market-card h4 { color: var(--white); font-weight: 500; font-size: 0.9rem; }

/* CLIENTS */
.clients { padding: 80px 0; background: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 680px; margin: 0 auto; }
.project-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: var(--transition); }
.project-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-logo { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; margin: 0 auto 18px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; }
.project-logo img { width: 100%; height: 100%; object-fit: cover; }
.project-logo-fallback { font-weight: 900; font-size: 1.4rem; color: var(--orange); }
.project-card h4 { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.project-card p { color: var(--gray-500); font-size: 0.85rem; font-weight: 300; }

/* CONTACT */
.contact { padding: 80px 0; background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.contact-info > p { color: rgba(255,255,255,0.6); font-size: 0.95rem; font-weight: 300; margin-bottom: 32px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); transition: var(--transition); color: var(--white); }
a.contact-detail:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,107,53,0.4); }
.contact-detail span:first-child { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.contact-detail strong { display: block; font-weight: 500; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange-light); margin-bottom: 2px; }
.contact-detail div > span { font-size: 0.875rem; color: rgba(255,255,255,0.7); font-weight: 300; }

/* FORM */
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.form-group input, .form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(232,72,10,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { text-align: center; padding: 12px; background: #E8F5E9; color: #2E7D32; border-radius: 6px; font-size: 0.9rem; font-weight: 500; }

/* FOOTER */
footer { background: #060E1C; color: rgba(255,255,255,0.5); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 20px 28px; flex-wrap: wrap; }
.footer-brand .logo-mark { font-size: 1.7rem; }
.footer-brand p { font-weight: 300; font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 6px; }
.footer-tagline { font-style: italic; color: rgba(255,255,255,0.25) !important; font-size: 0.75rem !important; font-weight: 300 !important; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-weight: 400; font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-links a:hover { color: var(--orange-light); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.07); border-radius: 8px; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 20px; text-align: center; font-size: 0.78rem; font-weight: 300; color: rgba(255,255,255,0.28); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }

/* ================================================================
   TABLET (max 1024px)
================================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card.featured { grid-row: span 1; }
    .market-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ================================================================
   MOBILE (max 768px)
================================================================ */
@media (max-width: 768px) {
    header { padding: 14px 20px; }
    header.scrolled { padding: 10px 20px; }
    nav { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: block; }

    .hero { padding: 88px 20px 48px; min-height: 100svh; }
    .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
    .hero-actions .btn { width: 100%; padding: 15px 20px; font-size: 0.9rem; }
    .hero-stats { margin-top: 40px; max-width: 100%; border-radius: var(--radius); }
    .stat { padding: 16px 10px; }
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.6rem; }
    .stat-divider { height: 36px; }

    .services { padding: 60px 0; }
    .service-card { padding: 24px; }
    .service-card.featured { grid-row: span 1; }

    .about { padding: 60px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-advantages { padding: 28px 24px; }

    .market { padding: 56px 0; }
    .market-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .market-card { padding: 22px 16px; }

    .clients { padding: 60px 0; }
    .projects-grid { grid-template-columns: 1fr; max-width: 340px; }

    .contact { padding: 60px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 28px 20px; }

    .footer-inner { flex-direction: column; text-align: center; align-items: center; gap: 20px; padding: 36px 20px 24px; }
    .footer-links { justify-content: center; }
    .footer-social { justify-content: center; }
}

/* ================================================================
   SMALL MOBILE (max 480px)
================================================================ */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 80px 16px 40px; }
    .hero-badge { font-size: 0.68rem; padding: 6px 12px; }
    .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); letter-spacing: -0.02em; }
    .hero-desc { font-size: 0.88rem; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: clamp(1.55rem, 6vw, 1.9rem); }
    .service-card { padding: 20px; }
    .service-card h3 { font-size: 1.05rem; }
    .market-card { padding: 18px 12px; }
    .market-card span { font-size: 1.6rem; }
    .market-card h4 { font-size: 0.78rem; }
    .about-advantages { padding: 22px 18px; }
    .contact-form { padding: 22px 16px; gap: 14px; }
    .footer-links { gap: 12px; }
    .footer-links a { font-size: 0.8rem; }
}

/* ================================================================
   TOUCH DEVICES
================================================================ */
@media (hover: none) {
    .service-card:hover, .market-card:hover, .project-card:hover { transform: none; box-shadow: none; }
    .btn-primary:hover { background: var(--orange); }
}