.muted {
    color: var(--color-muted);
    font-size: 0.9em;
}

:root {
    --color-bg: #f5f7fb;
    --color-bg-alt: #ffffff;
    --color-primary: #ff6f61;
    --color-primary-dark: #e15549;
    --color-secondary: #4b6fff;
    --color-text: #243047;
    --color-muted: #6b7280;
    --color-border: #dde2f2;
    --radius-card: 12px;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global reset-ish */

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page {
    padding-top: 88px; /* space for header */
}

/* Header & navigation */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(209, 213, 219, 0.6);
    backdrop-filter: blur(14px);
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark {
    font-size: 1.6rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.nav {
    flex-shrink: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--color-muted);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
    background-color: rgba(148, 163, 184, 0.15);
    color: var(--color-text);
}

.nav-link-active {
    background-color: rgba(255, 111, 97, 0.12);
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Sections */

.section {
    padding: 3rem 0;
}

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

.section h1,
.section h2 {
    margin-top: 0;
}

.section p {
    max-width: 720px;
}

/* Hero */

.hero {
    background: radial-gradient(circle at top left, #ffe4de, transparent 55%),
                radial-gradient(circle at bottom right, #e0e7ff, transparent 50%),
                linear-gradient(135deg, #ffffff, #f5f7fb);
    padding: 3.5rem 0 3rem;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.02rem;
    color: var(--color-muted);
    max-width: 640px;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
        box-shadow 0.18s ease, transform 0.06s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(248, 113, 113, 0.35);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary-dark);
    border-color: rgba(248, 113, 113, 0.6);
}

.btn-outline:hover {
    background-color: rgba(248, 113, 113, 0.06);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background-color: #3656d8;
    transform: translateY(-1px);
}

.btn-light {
    background-color: #ffffff;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-light:hover {
    background-color: #f9fafb;
}

/* Feature list (home) */

.section-features h2 {
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.feature-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-card);
    padding: 1.35rem 1.35rem 1.1rem;
    border: 1px solid rgba(209, 213, 219, 0.6);
    box-shadow: var(--shadow-soft);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

/* Generic cards grid */

.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-card);
    padding: 1.4rem 1.4rem 1.1rem;
    border: 1px solid rgba(209, 213, 219, 0.6);
    box-shadow: var(--shadow-soft);
}

.card h3,
.card h2 {
    margin-top: 0;
}

/* Services */

.service-list {
    display: grid;
    gap: 1.5rem;
}

/* Last visited: explicit order (#1 = newest) */

.recent-order-note {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(75, 111, 255, 0.08);
    border: 1px solid rgba(75, 111, 255, 0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.recent-visited-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-visited-item {
    position: relative;
}

.recent-rank-bar {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: -0.2rem 0 0.85rem;
}

.recent-rank-num {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(75, 111, 255, 0.35);
}

.recent-rank-num.is-first {
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
}

.recent-rank-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.15rem;
}

.recent-rank-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}

.recent-rank-sub {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.35;
}

.service-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
}

.products-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-thumb {
    width: 100%;
    height: 190px !important;
    max-height: 190px !important;
    display: block;
    overflow: hidden;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    margin-bottom: 0.8rem;
    background: #eef2ff;
}

.product-detail {
    max-width: 760px;
}

.product-hero {
    width: 100%;
    height: 360px !important;
    max-height: 360px !important;
    display: block;
    overflow: hidden;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    background: #eef2ff;
}

/* CTA section */

.section-cta {
    padding: 2.6rem 0 3.2rem;
}

.cta-inner {
    background: linear-gradient(135deg, #4b6fff, #ff6f61);
    border-radius: 18px;
    padding: 1.9rem 1.8rem;
    color: #f9fafb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 18px 32px rgba(30, 64, 175, 0.42);
}

.cta-text h2 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.cta-text p {
    margin: 0;
    max-width: 520px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* News */

.news-list {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.news-card {
    padding: 1.2rem 1.3rem 1.05rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0 0 0.4rem;
}

.news-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.news-summary {
    margin: 0;
}

/* Contacts table */

.table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.contacts-table thead {
    background-color: #eef2ff;
}

.contacts-table th,
.contacts-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.95rem;
}

.contacts-table th {
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid rgba(209, 213, 219, 0.8);
}

.contacts-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.contacts-table tbody tr:hover {
    background-color: #eff6ff;
}

.contacts-table a {
    color: var(--color-secondary);
    text-decoration: none;
}

.contacts-table a:hover {
    text-decoration: underline;
}

/* Status message */

.status-message {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

/* Footer */

.site-footer {
    margin-top: 2.5rem;
    padding: 1.5rem 0 2rem;
    background-color: #0f172a;
    color: #e5e7eb;
}

.footer-inner {
    text-align: center;
    font-size: 0.85rem;
}

.footer-copy {
    margin: 0;
}

/* Utility */

.values-grid {
    align-items: stretch;
}

/* Responsive */

@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .cta-inner {
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .page {
        padding-top: 112px;
    }
}
