:root {
  --primary: #0b3a67;
  --primary-dark: #071d33;
  --accent: #2fb7ff;
  --accent-warm: #f6b73c;
  --text: #1b2633;
  --muted: #607083;
  --line: #dce5ee;
  --bg: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 29, 51, 0.13);
  --shadow-sm: 0 4px 12px rgba(7, 29, 51, 0.08);
  --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="rtl"] { direction: rtl; }
body[dir="rtl"] .language-menu { right: auto; left: 0; }

a { color: inherit; text-decoration: none; }

/* Scroll animations */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"].aos-animate, [data-aos="fade-left"].aos-animate { transform: translateX(0); }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(7,29,51,0.1); }

.navbar {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; transition: transform 0.2s ease; }
.brand:hover { transform: scale(1.02); }
.brand-logo { width: 200px; height: auto; object-fit: contain; display: block; border-radius: 8px; padding: 0; mix-blend-mode: multiply; }

.nav-links { display: flex; align-items: center; gap: 24px; color: #33465b; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 8px 0; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  padding: 10px 20px; color: var(--white) !important;
  background: linear-gradient(135deg, var(--primary), #126aa4);
  border-radius: 999px; font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,58,103,0.3); }

.language-dropdown { position: relative; }
.language-button {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--primary); background: rgba(255,255,255,0.78);
  font: inherit; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.language-button:hover { background: var(--bg); border-color: var(--accent); }

.language-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 160px; padding: 10px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--white); box-shadow: var(--shadow); z-index: 100;
}
.language-dropdown:hover .language-menu,
.language-dropdown:focus-within .language-menu,
.language-dropdown.open .language-menu { display: grid; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.language-menu button {
  padding: 10px 14px; border: 0; border-radius: 10px;
  color: inherit; background: transparent; font: inherit;
  text-align: left; white-space: nowrap; cursor: pointer; transition: background 0.2s ease;
}
.language-menu button:hover { background: #edf6fd; }
body[dir="rtl"] .language-menu button { text-align: right; }

.menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; color: var(--primary); cursor: pointer; }

/* ========== HERO ========== */
.hero {
  min-height: 680px; padding: 80px 24px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  max-width: 1200px; margin: 0 auto;
  background: radial-gradient(circle at 82% 14%, rgba(47,183,255,0.15), transparent 40%),
              linear-gradient(135deg, #f8fcff 0%, #ffffff 50%, #f0f6fa 100%);
}

.hero-badges { display: flex; gap: 12px; margin-bottom: 20px; }
.badge-iso {
  display: inline-block; padding: 6px 16px;
  background: var(--primary); color: var(--white);
  border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}

.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; color: var(--primary-dark); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
h2 { color: var(--primary-dark); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

.hero-desc { color: #3d5065; font-size: 16px; max-width: 560px; line-height: 1.7; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 24px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: linear-gradient(135deg, var(--primary), #126aa4); box-shadow: 0 14px 28px rgba(11,58,103,0.25); }
.button.primary:hover { box-shadow: 0 18px 36px rgba(11,58,103,0.35); }
.button.primary-sm { color: var(--white); background: var(--primary); padding: 10px 20px; font-size: 13px; min-height: 40px; }
.button.secondary { color: var(--primary); background: var(--white); border: 1px solid var(--line); }
.button.secondary:hover { background: var(--bg); border-color: var(--accent); }
.button.full { width: 100%; border-radius: 14px; }

.hero-trust { display: flex; gap: 32px; margin-top: 8px; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.trust-item span { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }

.hero-image { min-height: 400px; display: grid; place-items: center; }
.hero-image img { width: 100%; max-width: 560px; height: auto; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; }

/* ========== SECTION BASE ========== */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* ========== ADVANTAGES ========== */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  padding: 32px 24px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--white); text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.adv-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
}
.adv-card h3 { font-size: 16px; margin-bottom: 8px; }
.adv-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ========== PRODUCT CATEGORIES ========== */
.product-cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 320px; cursor: pointer; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: brightness(1.2); }
.cat-card:hover img { transform: scale(1.08); }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,29,51,0.75) 0%, rgba(7,29,51,0.2) 55%, transparent 100%);
  padding: 32px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); transition: background 0.3s ease;
}
.cat-card:hover .cat-overlay { background: linear-gradient(to top, rgba(7,29,51,0.82) 0%, rgba(7,29,51,0.35) 55%, rgba(7,29,51,0.05) 100%); }
.cat-overlay h3 { color: var(--white); font-size: 20px; margin-bottom: 10px; }
.cat-overlay p { color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }

/* ========== PRODUCT GRID ========== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--white); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px; }
.card-tag {
  display: inline-block; padding: 4px 10px;
  background: #edf6fd; color: var(--primary); border-radius: 4px;
  font-size: 11px; font-weight: 700; margin-bottom: 12px;
}
.card-body h3 { font-size: 17px; margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.card-body a { color: var(--primary); font-weight: 700; font-size: 14px; transition: color 0.2s ease; }
.card-body a:hover { color: var(--accent); }

/* ========== TIMELINE ========== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 24px; border-left: 3px solid var(--primary); }
.timeline-item { position: relative; padding: 16px 0 16px 32px; }
.timeline-item::before { content: ""; position: absolute; left: -35px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--primary); }
.timeline-item .year { display: inline-block; min-width: 56px; padding: 4px 12px; background: linear-gradient(135deg, var(--primary), #126aa4); color: var(--white); border-radius: 6px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.timeline-item p { color: var(--text); font-size: 15px; margin: 0; line-height: 1.5; }

/* ========== ABOUT ========== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-intro { max-width: 800px; margin: 0 auto 40px; color: var(--muted); font-size: 15px; line-height: 1.7; text-align: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.about-years {
  position: absolute; bottom: -20px; left: -20px;
  background: linear-gradient(135deg, var(--primary), #126aa4);
  color: var(--white); padding: 24px 32px; border-radius: 16px;
  text-align: center; box-shadow: var(--shadow);
}
.about-years strong { display: block; font-size: 36px; font-weight: 800; line-height: 1; }
.about-years span { font-size: 12px; opacity: 0.8; }
.about-text h2 { margin-bottom: 16px; }
.about-text > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.about-stats { display: flex; gap: 32px; margin-bottom: 28px; }
.about-stats div { text-align: center; }
.about-stats strong { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.about-stats span { font-size: 12px; color: var(--muted); }

/* ========== WORKSHOP ========== */
.workshop { background: var(--bg); }
.workshop-content { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.workshop-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.workshop-full-image { width: 100%; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; margin-bottom: 16px; max-height: 500px; }
.workshop-image { width: 100%; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; transition: transform 0.3s ease; height: 280px; }
.workshop-image:hover { transform: scale(1.01); }
.workshop-text > p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.workshop-features { display: flex; flex-direction: column; gap: 16px; }
.workshop-features div { padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.workshop-features div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.workshop-features strong { display: block; color: var(--primary); font-size: 15px; margin-bottom: 6px; }
.workshop-features p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

/* ========== WHY CHOOSE US ========== */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.why-card {
  padding: 24px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--white); text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why-icon { margin: 0 auto 12px; color: var(--primary); }
.why-card h4 { font-size: 14px; color: var(--primary); }

/* ========== TESTIMONIALS ========== */
.testimonials { background: var(--bg); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  padding: 32px; border-radius: 20px; background: var(--white);
  border: 1px solid var(--line); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.stars { color: var(--accent-warm); font-size: 18px; margin-bottom: 16px; }
.testimonial-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author strong { display: block; color: var(--primary); font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--muted); }

/* ========== BLOG ========== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  border-radius: 20px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-body { padding: 24px; }
.blog-tag { display: inline-block; padding: 4px 10px; background: #edf6fd; color: var(--primary); border-radius: 4px; font-size: 11px; font-weight: 700; margin-bottom: 12px; }
.blog-body h4 { font-size: 16px; margin-bottom: 10px; color: var(--primary-dark); }
.blog-body p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.blog-date { font-size: 12px; color: var(--muted); }

/* ========== FAQ ========== */
.faq-section { background: var(--bg); }
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border: 0; background: transparent;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--primary-dark);
  cursor: pointer; text-align: left;
}
.faq-toggle { font-size: 24px; font-weight: 300; color: var(--accent); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ========== CONTACT ========== */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 42px; align-items: start; }
.contact-copy { padding: 40px; border-radius: 28px; color: var(--white); background: linear-gradient(145deg, var(--primary-dark), var(--primary)); }
.contact-copy h2 { color: var(--white); font-size: 28px; }
.contact-copy p { color: #cbe1f3; margin-bottom: 20px; }
.contact-copy ul { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-copy li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: #cbe1f3; font-size: 14px; line-height: 1.5; }
.contact-copy li svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.contact-social { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255,255,255,0.12); color: var(--white);
  transition: transform 0.2s ease, background 0.2s ease;
}
.social-link:hover { transform: translateY(-3px); background: rgba(255,255,255,0.2); }

.inquiry-form { padding: 36px; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inquiry-form label { display: block; margin-bottom: 16px; color: #36506b; font-weight: 700; font-size: 14px; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%; margin-top: 8px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 14px; color: var(--text); background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,183,255,0.15); }
.inquiry-form textarea { resize: vertical; }
.form-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ========== FOOTER ========== */
.footer { background: #071d33; color: #8ea0b2; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { width: 180px; height: auto; opacity: 0.9; }
.footer-brand p { color: #cbe1f3; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-links h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-links a { display: block; color: #8ea0b2; font-size: 14px; margin-bottom: 12px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px; text-align: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { font-size: 13px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .hero-content { max-width: 760px; }
  .hero-image { min-height: 300px; }
  .advantages-grid, .product-cats-grid, .product-grid, .testimonial-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .workshop-content { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 16px; right: 16px; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px; border: 1px solid var(--line); border-radius: 18px;
    background: var(--white); box-shadow: var(--shadow); z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .language-dropdown { padding: 8px 0; }
  .language-button { width: 100%; text-align: left; border-radius: 12px; }
  .language-menu { position: static; margin-top: 8px; box-shadow: none; width: 100%; }

  .advantages-grid, .product-cats-grid, .product-grid, .testimonial-grid, .blog-grid, .why-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 18px; }
  .hero-trust { flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-years { left: 16px; bottom: -10px; }
  .footer-links { grid-template-columns: 1fr; }
}

@media print { body { background: #fff; } .product-card, .testimonial-card { box-shadow: none; break-inside: avoid; } .hero-trust, .contact-social { display: none; } }
