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

:root {
    --color-bg: #fafafa;
    --color-bg-alt: #f0f0f0;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-primary: #1a3a5c;
    --color-primary-light: #2a5a8c;
    --color-accent: #c9a84c;
    --color-border: #ddd;
    --color-white: #fff;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    --max-width: 1080px;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-k {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.logo-text {
    color: var(--color-primary);
}

.logo-sub {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s, opacity 0.2s;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 640px;
}

/* Hero */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    color: var(--color-white);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(26, 58, 92, 0.88) 0%, rgba(42, 90, 140, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: #d4b35a;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.section-sub {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.about-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.about-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-card-img {
    height: 180px;
    overflow: hidden;
}

.about-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.about-card:hover .about-card-img img {
    transform: scale(1.03);
}

.about-card-body {
    padding: 24px;
}

.about-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.about-card-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Products */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 32px;
    display: grid;
    grid-template-columns: 380px 1fr;
    align-items: center;
}

.product-card-img {
    height: 100%;
    min-height: 240px;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 40px;
}

.product-info h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.product-info p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    max-width: 600px;
}

.products-more {
    margin-top: 24px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.products-more a {
    color: var(--color-primary);
}

/* Contact form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
}

.form-group textarea {
    resize: vertical;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.form-status.error {
    display: block;
    background: #fce4ec;
    color: #c62828;
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand .logo-k {
    background: var(--color-accent);
    color: var(--color-primary);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.5;
}

.footer-credits {
    font-size: 0.75rem;
    opacity: 0.35;
    margin-top: 8px;
    line-height: 1.6;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.footer-credits a:hover {
    color: var(--color-white);
}

/* Mobile */
@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
    }

    .product-card-img {
        min-height: 200px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 70px;
        min-height: 400px;
    }

    .section {
        padding: 56px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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