/* tesy.petkanski.com — TESY конвектори от Петкански
   Cozy-winter theme: deep night blue + warm ember accent. Mobile-first. */

:root {
  --bg: #0d1b2a;
  --bg-soft: #13263a;
  --bg-card: #16293e;
  --text: #eef3f8;
  --muted: #a8b8c8;
  --accent: #f2a35c;        /* warm ember */
  --accent-strong: #e8833a;
  --accent-contrast: #221204;
  --border: #24384f;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --max-width: 68rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-contrast);
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 27, 42, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.brand-flame { font-size: 1.5rem; }
.brand-text { font-weight: 700; font-size: 1.15rem; display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { font-size: 0.68rem; font-weight: 500; color: var(--muted); }
.site-nav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a:focus { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--accent-contrast);
  box-shadow: 0 6px 20px rgba(232, 131, 58, 0.35);
}
.btn-accent:hover { color: var(--accent-contrast); box-shadow: 0 8px 26px rgba(232, 131, 58, 0.5); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.05rem; }
.btn-header { padding: 0.45rem 1rem; font-size: 0.85rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(242, 163, 92, 0.16), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(64, 123, 181, 0.22), transparent 55%),
    linear-gradient(180deg, #0d1b2a 0%, #10233a 60%, #0d1b2a 100%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 70% 40%, rgba(242, 163, 92, 0.10), transparent 65%);
  animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.15); }
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy .eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.8rem; margin: 0 0 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.15; margin: 0 0 1rem; font-weight: 800;
}
.accent {
  background: linear-gradient(120deg, var(--accent), #ffd9a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; margin: 0 0 1.75rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-trust {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--muted); font-size: 0.92rem;
}
.hero-media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(242, 163, 92, 0.08), transparent 60%),
    #0b1622;
}
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 0.6rem; line-height: 1.25; }
.section-lead { color: var(--muted); max-width: 42rem; margin: 0 0 2rem; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1.25rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(242, 163, 92, 0.5); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-icon { font-size: 1.9rem; margin-bottom: 0.6rem; }
.card-dark { background: #10202f; }

/* ---------- Product cards ---------- */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-media {
  background: linear-gradient(180deg, #f4f6f8 0%, #e7ebef 100%);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.product-media img { max-height: 220px; width: auto; object-fit: contain; }
.product-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-tag {
  align-self: flex-start;
  background: rgba(242, 163, 92, 0.15); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 999px; padding: 0.25rem 0.7rem; margin: 0 0 0.6rem;
}
.model-code { color: var(--muted); font-weight: 500; font-size: 0.85em; }
.product-body ul { list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1; }
.product-body li {
  color: var(--muted); font-size: 0.95rem; padding-left: 1.3rem; position: relative;
  margin-bottom: 0.35rem;
}
.product-body li::before { content: "•"; position: absolute; left: 0.4rem; color: var(--accent); }
.product-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.product-cta .btn { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
}
table { width: 100%; border-collapse: collapse; min-width: 34rem; }
th, td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); }
thead th {
  color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(242, 163, 92, 0.07);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(242, 163, 92, 0.05); }
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; line-height: 1.4; }
.contact-list a { font-weight: 600; }
.contact-map iframe {
  width: 100%; height: 380px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 2.6rem; margin-top: 0;
  background: #0b1622; color: var(--muted); font-size: 0.9rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; text-align: center; }
.footer-note { max-width: 46rem; margin: 0 auto; font-size: 0.82rem; opacity: 0.8; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow { animation: none; }
  .card:hover, .btn-accent:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 56rem) {
  .hero { padding: 5.5rem 0 5rem; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  .site-nav { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; overflow-x: auto; }
  .btn-header { margin-left: auto; }
  .hero-cta .btn { width: 100%; }
}
