:root {
    --primary-color: #eebb00;
    --primary-light-color: #eed313;
    --primary-dark-color: #eea200;
    --complementary-color: #0034ee;
    --secondary-color: #4caf50;
    --background-color: #f8f9fa;
    --text-primary-color: #212529;
    --text-secondary-color: #6c757d;
    --header-bg: #ffffff;
    --footer-bg: #212529;
    --footer-text: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --gray-color: #888888;
    --gray-light-color: #CCCCCC;
    --gray-dark-color: #444444;
    --font-family: system-ui, -apple-system, sans-serif;
    --container-width: 1140px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 700;
}

a {
    color: var(--primary-dark-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary-color);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--text-secondary-color);
}

.logo-img {
    height: 36px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-primary-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
}

.main-nav a:hover, .main-nav a.active {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Main Content */
main {
    flex: 1;
}

.section {
    padding: 20px 0;
    margin-bottom: 40px;
}

.hero {
    background: linear-gradient(135deg, var(--gray-color), var(--gray-light-color));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-secondary-color);
    max-width: 800px;
    margin: 0 auto;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-secondary-color);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* News archive */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-post {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.news-post:last-child {
    border-bottom: none;
}

.news-post-date {
    color: var(--text-secondary-color);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.news-post-title {
    margin: 0 0 8px;
}

/* Layout grid (home, products, app info) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* App cards: shared shell + layout variants */
.app-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none !important; /* Override standard link style */
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: inherit;
}

.app-card--products {
    padding: 80px 30px 30px;
    align-items: center;
}

.app-card-details {
    width: 100%;
    text-align: center;
}

.app-card-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.app-card-icon-placeholder {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary-color);
    background: var(--border-color);
}

.app-card-icon-container .app-card-icon-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    font-size: 2rem;
}

.app-card-icon-img {
    object-fit: contain;
    flex-shrink: 0;
}

.app-card-icon-container .app-card-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.app-card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary-color);
}

.app-card-desc {
    margin: 0;
    color: var(--text-secondary-color);
    font-size: 0.95rem;
}

.app-card--home {
    min-width: 300px;
    padding: 20px 22px;
    align-items: stretch;
    text-align: left;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.app-card-header .app-card-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.app-card-header .app-card-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.25rem;
}

.app-card--home .app-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.app-card-tasks {
    margin: 14px 0 0;
    padding-left: 1.25em;
    width: 100%;
    color: var(--text-secondary-color);
    font-size: 0.95rem;
    line-height: 1.45;
}

.app-card-tasks li + li {
    margin-top: 0.35em;
}

/* App rating */
.rating-widget {
    margin-bottom: 3rem;
}

.rating-widget + .app-reviews-widget {
    margin-top: 1.25rem;
}

.rating-widget__label {
    font-size: 2.5rem;
    color: var(--text-secondary-color);
    margin-bottom: 0.35rem;
}

.rating-widget__value {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary-color);
}

/* App Info */
.app-hero {
    background-color: #e9ecef;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.app-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.app-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary-color);
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

/* App info: rotating reviews */
.rounded-white-box {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 1.25rem 1.35rem;
}

.app-reviews-stars {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 0.55rem;
}

.app-reviews-star {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.app-reviews-viewport {
    display: grid;
}

.app-review-slide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
}

.app-review-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-review-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary-color);
    margin-bottom: 0.55rem;
}

.app-review-text {
    margin: 0;
    color: var(--text-primary-color);
    font-size: 1rem;
    line-height: 1.55;
}

/* Stores: badges for app stores */
.section--stores {
    padding-bottom: 120px;
}

.store-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.badge {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--text-primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.badge:has(img) {
    padding: 0;
    background: none;
    border-radius: 4px;
}

.badge img {
    display: block;
    height: 48px;
    width: auto;
}

.badge:hover {
    background-color: #000;
    color: white;
    text-decoration: none;
}

.badge:has(img):hover {
    background: none;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light-color);
    color: white;
    text-decoration: none;
}

/* App Description */
.page-header {
    background-color: #f1f3f5;
    padding: 40px 0;
    margin-bottom: 60px;
}

.desc-block {
    margin-bottom: 40px;
}

.desc-block h3 {
    margin-bottom: 20px;
}

.desc-image {
    display: block;
    margin: 0 auto;
}

/* Privacy policy (Markdown) */
.privacy-policy-content {
    max-width: 900px;
}

.privacy-policy-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-policy-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.privacy-policy-body p,
.privacy-policy-body ul,
.privacy-policy-body ol {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-policy-body ul,
.privacy-policy-body ol {
    padding-left: 1.5rem;
}

.privacy-policy-body li {
    margin-bottom: 0.35rem;
}

.privacy-policy-body hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 2rem 0;
}

.privacy-policy-body a {
    color: var(--primary-color, #0066cc);
}

.privacy-policy-body code {
    font-family: monospace;
    font-size: 0.9em;
    background-color: #f1f3f5;
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

.privacy-policy-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    display: block;
    overflow-x: auto;
}

.privacy-policy-body th,
.privacy-policy-body td {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.privacy-policy-body th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switch a {
    color: var(--footer-text);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 4px;
}

.lang-switch a:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
