/* ============================================================
   Tehnukte — shared stylesheet
   ============================================================ */
:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --blue: #1a3a8a;
  --blue-soft: #2b4eb8;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-blue: #f0f4fc;
  --yellow: #ffcb05;
  --green: #00a651;
  --orange: #ff6f00;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .10);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== Top bar ===== */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; opacity: .95; }
.topbar-info span::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--yellow); margin-right: 8px;
  vertical-align: middle;
}
.topbar a { color: #fff; }
.lang-switcher { display: flex; gap: 4px; }
.lang-switcher button {
  background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 4px 10px; font-size: 12px; font-weight: 600;
  border-radius: 6px; cursor: pointer; transition: all .2s;
}
.lang-switcher button:hover { background: rgba(255,255,255,.12); }
.lang-switcher button.active {
  background: var(--yellow); color: var(--blue); border-color: var(--yellow);
}

/* ===== Header / nav ===== */
header.main {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 24px; color: var(--ink);
  letter-spacing: -.5px;
}
.logo-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 4px 12px rgba(227, 6, 19, .25);
}
.logo-text small {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--ink-soft); letter-spacing: 1px;
  text-transform: uppercase; margin-top: -2px;
}
.nav-links {
  display: flex; gap: 26px; list-style: none;
  font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--ink); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 3px; background: var(--red); border-radius: 3px 3px 0 0;
}
.nav-cta {
  background: var(--red); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; transition: all .2s;
  position: relative;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-cta .badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--yellow); color: var(--ink);
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.nav-cta .badge.hidden { display: none; }
.burger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0; transition: all .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; transition: all .2s;
  text-align: center; justify-content: center;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 14px rgba(227, 6, 19, .3);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, .4);
}
.btn-outline {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-yellow {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 4px 14px rgba(255, 203, 5, .3);
}
.btn-yellow:hover { background: #f7b800; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ===== Section base ===== */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--red); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 40px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 16px;
}
.section-head p { font-size: 17px; color: var(--ink-soft); }
.section-head.left { text-align: left; margin-left: 0; }

.bg-soft { background: var(--bg-soft); }
.bg-blue { background: var(--bg-blue); }

/* ===== Page header (inner pages) ===== */
.page-head {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.page-head h1 {
  font-size: 46px; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 14px;
  line-height: 1.1;
}
.page-head p.lead {
  font-size: 18px; color: var(--ink-soft);
  max-width: 720px;
}

/* ===== Cards ===== */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-blue); color: var(--blue);
  display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--ink-soft); }

/* ===== Forms ===== */
.form-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--line);
}
.form-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-soft); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px; font-family: inherit;
  background: #fff;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 58, 138, .1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; background: var(--red); color: #fff;
  padding: 14px; border-radius: 8px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }
.form-note {
  font-size: 12px; color: var(--ink-soft);
  text-align: center; margin-top: 12px;
}
.form-success {
  background: #dcfce7; color: #166534;
  border: 1px solid #86efac; border-radius: 8px;
  padding: 14px; margin-bottom: 14px;
  font-size: 14px; display: none;
}
.form-success.show { display: block; }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 16px; font-weight: 600;
  text-align: left; color: var(--ink);
}
.faq-q .ic {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--bg-blue);
  color: var(--blue); display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
  transition: transform .25s, background .2s;
}
.faq-item.open .faq-q .ic {
  background: var(--red); color: #fff; transform: rotate(45deg);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 26px;
  color: var(--ink-soft); font-size: 15px; line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 26px 22px; }

/* ===== Footer ===== */
footer.main {
  background: #0a1530; color: #c9d2e3;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand .logo-text small { color: #8893b3; }
.footer-brand p { font-size: 14px; opacity: .75; max-width: 320px; }
.footer-col h4 {
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { opacity: .75; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: var(--yellow); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px; display: grid; place-items: center;
  transition: all .2s; opacity: 1;
}
.socials a:hover { background: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; opacity: .7;
}
.footer-bottom a.tk-link { color: var(--yellow); opacity: 1; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  z-index: 300; opacity: 0; transition: all .25s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== CTA block ===== */
.cta-block {
  background: linear-gradient(135deg, var(--blue) 0%, #0f2466 100%);
  color: #fff;
  text-align: center;
  padding: 70px 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 203, 5, .15), transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(227, 6, 19, .15), transparent 40%);
}
.cta-block > * { position: relative; z-index: 2; }
.cta-block h2 {
  font-size: 38px; font-weight: 800;
  margin-bottom: 14px; letter-spacing: -1px;
  line-height: 1.2;
}
.cta-block p {
  font-size: 17px; opacity: .9; margin-bottom: 28px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ===== Tag pill ===== */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-blue); color: var(--blue);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.tag.red { background: #fee2e2; color: var(--red); }
.tag.green { background: #dcfce7; color: var(--green); }
.tag.yellow { background: #fef3c7; color: #b45309; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 36px; }
.hidden { display: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 20px 24px;
    border-bottom: 1px solid var(--line); gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  }
  .nav-links.open a.active::after { display: none; }
  .burger { display: block; }
  .section-head h2 { font-size: 32px; }
  .page-head h1 { font-size: 34px; }
  .cta-block { padding: 50px 26px; }
  .cta-block h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-info { display: none; }
  .page-head { padding: 40px 0 30px; }
  .page-head h1 { font-size: 28px; }
}
