:root {
  --primary: #0d9488; --primary-dark: #0f766e; --primary-light: #f0fdfa;
  --text: #1e293b; --text-muted: #64748b; --bg: #f8fafc;
  --card: #ffffff; --border: #e2e8f0; --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.04);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
header { background: var(--card); border-bottom: 1px solid var(--border); padding: .85rem 1rem; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--primary); text-decoration: none; }
.lang-switch { display: flex; gap: .4rem; }
.lang-switch a { padding: .25rem .6rem; border-radius: 6px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--text-muted); border: 1px solid var(--border); transition: all .15s; }
.lang-switch a:hover { border-color: var(--primary); color: var(--primary); }
.lang-switch a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.container { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
main { padding: 2rem 0 3rem; }
.breadcrumb { font-size: .83rem; color: var(--text-muted); margin-bottom: 1.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { color: var(--border); }
.hero { margin-bottom: 2rem; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: .5rem; }
.hero p { font-size: 1rem; color: var(--text-muted); max-width: 620px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem; }
.card h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.card h3 { font-size: 1rem; font-weight: 700; margin: 1.2rem 0 .4rem; }
.card p { color: var(--text-muted); margin-bottom: .8rem; line-height: 1.7; }
.card ul { color: var(--text-muted); padding-left: 1.2rem; margin-bottom: .8rem; }
.card ul li { margin-bottom: .35rem; line-height: 1.7; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.tool-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.tool-card:hover { box-shadow: 0 8px 24px rgba(13,148,136,.12); transform: translateY(-2px); }
.tool-card .tc-name { font-weight: 700; margin-bottom: .25rem; }
.tool-card .tc-desc { font-size: .83rem; color: var(--text-muted); margin-bottom: .5rem; }
.tool-card .tc-badge { display: inline-block; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-size: .82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: .3rem; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 1rem; color: var(--text); background: var(--bg); transition: border-color .15s; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { background: var(--primary); color: #fff; border: none; padding: .75rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s; width: fit-content; }
.contact-form button:hover { background: var(--primary-dark); }
.info-box { background: var(--primary-light); border: 1px solid rgba(13,148,136,.2); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; font-size: .92rem; color: var(--text); }
footer { border-top: 1px solid var(--border); padding: 1.5rem 0; text-align: center; font-size: .85rem; color: var(--text-muted); }
footer a { color: var(--primary); text-decoration: none; margin: 0 .5rem; }
footer a:hover { text-decoration: underline; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }
[dir="rtl"] .card ul { padding-left: 0; padding-right: 1.2rem; }
@media (max-width: 600px) { .card { padding: 1.25rem; } }
