/* Техберг ООД – techberg.bg */

:root {
  --dark: #0e1116;
  --dark-2: #161b22;
  --line-dark: #232b35;
  --text: #141820;
  --text-muted: #4a5260;
  --text-light: #b4bcc6;
  --light: #f5f6f8;
  --line: #e1e4e9;
  --orange: #f59b21;
  --orange-red: #d86143;
  --crimson: #be224c;
  --radius: 14px;
  --font-head: "Manrope", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: #e7eaee;
  background: var(--dark);
}

a { color: var(--orange); }
a:hover { color: #ffb54d; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
}

p { margin: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Бутони */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn-primary { background: var(--orange); color: var(--dark); }
.btn-primary:hover { background: #ffb54d; color: var(--dark); }
.btn-outline { border: 1px solid #3a4450; color: #fff; }
.btn-outline:hover { border-color: var(--orange); color: #fff; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Хедър */
.site-header { background: var(--dark); border-bottom: 1px solid #1f2630; }
.site-header .container {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { display: block; height: 56px; width: auto; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a { color: #c9cfd6; text-decoration: none; }
.main-nav a:hover { color: var(--orange); }
.brand-line {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-red), var(--crimson));
}

/* Секции */
.section { padding: 104px 24px; }
.section-light { background: var(--light); color: var(--text); }
.section-white { background: #fff; color: var(--text); }
.section-dark { background: var(--dark); }

.eyebrow {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--orange); }

.section-title {
  margin-bottom: 56px;
  max-width: 760px;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
}

/* Начало */
.hero {
  padding: 112px 24px 120px;
  background-color: var(--dark);
  background-image:
    linear-gradient(90deg, rgba(14, 17, 22, 0.94) 0%, rgba(14, 17, 22, 0.78) 50%, rgba(14, 17, 22, 0.35) 100%),
    url("../img/hero-bg.svg");
  background-size: cover;
  background-position: center;
}
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero .eyebrow { margin-bottom: 20px; }
.hero h1 {
  margin-bottom: 24px;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  color: #fff;
}
.hero-lead {
  max-width: 620px;
  margin-bottom: 36px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-light);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tiles {
  flex: 1 1 360px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--dark-2);
  font-weight: 600;
  color: #fff;
}
.tile svg { stroke: var(--orange); }

/* Иконки */
.icon {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Услуги */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.service svg { stroke: var(--text); }
.service h3 { font-size: 21px; font-weight: 700; }
.service p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.service-cta {
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: var(--text);
  color: #fff;
}
.service-cta p { color: var(--text-light); }
.service-cta .btn { align-self: flex-start; min-height: 48px; padding: 0 22px; }

/* Как работим */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 3px solid var(--text);
}
.step-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  color: var(--crimson);
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* За нас */
.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about-head { flex: 1 1 360px; min-width: 0; }
.about-head h2 {
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  color: #fff;
}
.about-text {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Контакти */
.contacts .section-title { margin-bottom: 40px; }
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 0;
  font-size: 17px;
}
.contact-list div { display: flex; flex-direction: column; gap: 4px; }
.contact-list dt {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6270;
}
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--crimson); }

/* Футър */
.site-footer { padding: 40px 24px; background: var(--dark); border-top: 1px solid #1f2630; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #8d96a2;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { display: block; height: 32px; width: auto; }

/* Мобилни устройства */
@media (max-width: 480px) {
  .hero { padding: 72px 20px 80px; }
  .section { padding: 72px 20px; }
  .tile { padding: 18px; font-size: 15px; overflow-wrap: anywhere; }
  .service { padding: 24px; }
}
