/*
Theme Name: TARS Group
Theme URI: https://cm18485-wordpress-y7pjy.tw1.ru
Description: Корпоративный сайт ТОО «ТАРС Group» — автоматизация нефтегазовых объектов, АСУ ТП, ИСУН, метрология, резервуары РВС. Кастомная тема.
Author: claudedev
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.1
Requires PHP: 7.4
Text Domain: tarsgroup
*/


/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red: #E31E24;
  --red-dark: #C41A20;
  --red-soft: #FEE9EA;
  --red-glow: rgba(227, 30, 36, 0.25);

  --ink: #1E232B;
  --ink-2: #2A2F38;
  --ink-3: #353B45;

  --gray: #64707F;
  --gray-2: #8B95A1;
  --gray-3: #B4BCC5;

  --line: #E9EEF3;
  --line-2: #F0F3F7;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FB;
  --bg-cream: #FAFBFC;

  --plant-bg: url('assets/plant-bg.jpg');

  --shadow-sm: 0 1px 2px rgba(30, 35, 43, 0.04), 0 1px 3px rgba(30, 35, 43, 0.06);
  --shadow-md: 0 4px 6px rgba(30, 35, 43, 0.04), 0 10px 24px rgba(30, 35, 43, 0.06);
  --shadow-lg: 0 12px 24px rgba(30, 35, 43, 0.06), 0 24px 48px rgba(30, 35, 43, 0.08);
  --shadow-card: 0 1px 2px rgba(30, 35, 43, 0.03), 0 8px 24px rgba(30, 35, 43, 0.05);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --t-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1280px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

ul, ol { list-style: none; }

::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }

.text-red { color: var(--red); }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  padding: 10px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-left { display: flex; gap: 28px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.78); transition: color var(--t-fast); }
.topbar-item:hover { color: #fff; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
.topbar-right { color: rgba(255, 255, 255, 0.78); font-size: 13px; }

.header {
  background: #f6f6f6;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--t-base), padding var(--t-base);
}
.header.scrolled { box-shadow: 0 1px 0 rgba(30, 35, 43, 0.06), 0 4px 16px rgba(30, 35, 43, 0.04); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: opacity var(--t-fast);
}
.logo:hover img { opacity: 0.85; }

.nav { display: flex; gap: 38px; align-items: center; }
.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--t-base);
}
.nav-link:hover { color: var(--red); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--red); }
.nav-link.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(227, 30, 36, 0.25);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(227, 30, 36, 0.32);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; transition: transform var(--t-base); }
.btn-primary:hover svg { transform: translateX(3px); }

.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  padding: 80px 0 70px;
  color: #fff;
  overflow: hidden;
  background: #0F1217;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(135deg, rgba(15, 18, 23, 0.92) 0%, rgba(15, 18, 23, 0.70) 50%, rgba(15, 18, 23, 0.94) 100%),
    url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.78);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(227, 30, 36, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(15, 18, 23, 0.3) 0%, rgba(15, 18, 23, 0.5) 100%);
}
.hero .container { position: relative; z-index: 1; }

.hero-content {
  max-width: 640px;
  margin: 0;
  text-align: left;
}
.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 26px;
  text-align: left;
}
.hero h1 .text-red { color: var(--red); }
.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  font-weight: 400;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
  margin: 44px 0 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 56px;
  align-items: flex-start;
}
.stat-item .stat-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

/* ============================================================
   SECTION ATOMS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section-dark { background: var(--ink); color: #fff; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.section-title .text-red { color: var(--red); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head-text { max-width: 720px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--t-fast);
  padding-bottom: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.link-arrow svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--t-base); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px 36px 32px;
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.service-card.dark .service-title { color: #fff; }
.service-card.dark .service-desc { color: rgba(255, 255, 255, 0.7); }
.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--red-soft);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: transform var(--t-base);
}
.service-card.dark .service-icon-wrap {
  background: rgba(255, 255, 255, 0.08);
}
.service-icon-wrap svg { width: 24px; height: 24px; color: var(--red); }
.service-card:hover .service-icon-wrap { transform: scale(1.06) rotate(-3deg); }
.service-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 28px;
  flex-grow: 1;
}
.service-metric {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  letter-spacing: -0.005em;
}
.badge-popular {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ============================================================
   ISUN SECTION
   ============================================================ */
.isun {
  position: relative;
  padding: 110px 0;
  background: #0F1217;
  color: #fff;
  overflow: hidden;
}
.isun-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(15, 18, 23, 0.95) 0%, rgba(15, 18, 23, 0.82) 100%),
    url('assets/plant-bg.jpg');
  background-size: cover;
  background-position: center;
}
.isun .container { position: relative; z-index: 1; }
.isun-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.pill-badge svg { width: 14px; height: 14px; }
.isun h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.isun-desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
  max-width: 480px;
}
.isun-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-bottom: 36px;
}
.isun-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.check-circle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.check-circle svg { width: 12px; height: 12px; color: #fff; }

.isun-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.isun-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 36px;
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.isun-card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.steps-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.step-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: background var(--t-base), transform var(--t-base);
}
.step-row:hover {
  background: var(--line);
  transform: translateX(4px);
}
.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.step-body { flex-grow: 1; }
.step-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.step-desc { font-size: 13px; color: var(--gray); }

.isun-card-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.foot-stat-label { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.foot-stat-val { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); }
.foot-stat:last-child .foot-stat-val { color: var(--red); }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
  margin-bottom: 80px;
}
.why-text-block {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.why-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray);
  margin-bottom: 40px;
}
.why-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-stats .stat-num { color: var(--red); font-size: 38px; }
.why-stats .stat-label { color: var(--gray); font-size: 13px; }
.why-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  min-height: 460px;
  box-shadow: var(--shadow-lg);
}
.why-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--red-soft);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--red); }
.feature-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-hero {
  position: relative;
  padding: 110px 0 90px;
  background: #0F1217;
  color: #fff;
  overflow: hidden;
}
.portfolio-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15, 18, 23, 0.92) 0%, rgba(15, 18, 23, 0.86) 50%, rgba(15, 18, 23, 0.94) 100%),
    var(--plant-bg);
  background-size: cover;
  background-position: center;
}
.portfolio-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 18, 23, 0.4) 0%, transparent 40%, rgba(15, 18, 23, 0.45) 100%);
}
.portfolio-hero .container { position: relative; z-index: 1; }
.portfolio-hero-content {
  text-align: left;
  margin-bottom: 80px;
}
.portfolio-hero .eyebrow { color: var(--red); }
.portfolio-hero h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 4.8vw, 60px);
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.portfolio-hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0;
}
.portfolio-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 100%);
  margin-bottom: 56px;
}
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  text-align: center;
}
.portfolio-stats .stat-item { text-align: center; }
.portfolio-stats .stat-num { font-size: 46px; }
.portfolio-stats .stat-label { color: rgba(255, 255, 255, 0.7); }

.projects-section { padding: 80px 0 110px; background: var(--bg-soft); }
.projects-list { display: flex; flex-direction: column; gap: 20px; max-width: 1180px; margin: 0 auto; }
.project-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.project-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.project-tag {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.project-info {
  font-size: 13px;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-info svg { width: 13px; height: 13px; opacity: 0.7; }
.project-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.project-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray);
  margin-bottom: 22px;
}
.project-works-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.project-works { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tag {
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.project-results {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
.results-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.results-list { display: flex; flex-direction: column; gap: 11px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.result-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.result-check svg { width: 10px; height: 10px; color: var(--red); }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 60px 0 100px; }
.cta-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 80px 80px;
  background: #0F1217;
  color: #fff;
  isolation: isolate;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--plant-bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 18, 23, 0.88) 0%, rgba(15, 18, 23, 0.74) 50%, rgba(15, 18, 23, 0.92) 100%);
  z-index: -1;
}
.cta-content { position: relative; max-width: 640px; }
.cta-box h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.cta-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  max-width: 540px;
}
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.cta-email-line {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cta-email-line a { color: var(--red); transition: color var(--t-fast); }
.cta-email-line a:hover { color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-logo-mark {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.footer-brand-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.footer-brand-tag { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-about {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 280px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: none;
  margin-bottom: 24px;
}
.footer-list { display: flex; flex-direction: column; gap: 14px; }
.footer-list a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--t-fast);
}
.footer-list a:hover { color: #fff; }

.footer-contact-list { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.footer-contact-row svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer-contact-row a { color: rgba(255, 255, 255, 0.78); transition: color var(--t-fast); }
.footer-contact-row a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); transition: color var(--t-fast); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 80ms; }
.fade-up.delay-2 { transition-delay: 160ms; }
.fade-up.delay-3 { transition-delay: 240ms; }
.fade-up.delay-4 { transition-delay: 320ms; }
.fade-up.delay-5 { transition-delay: 400ms; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { opacity: 0; animation: heroFade 900ms cubic-bezier(0.4, 0, 0.2, 1) 120ms forwards; }
.hero-subtitle { opacity: 0; animation: heroFade 900ms cubic-bezier(0.4, 0, 0.2, 1) 260ms forwards; }
.hero-divider { opacity: 0; animation: heroFade 900ms cubic-bezier(0.4, 0, 0.2, 1) 400ms forwards; }
.hero-stats .stat-item { opacity: 0; animation: heroFade 900ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.hero-stats .stat-item:nth-child(1) { animation-delay: 480ms; }
.hero-stats .stat-item:nth-child(2) { animation-delay: 560ms; }
.hero-stats .stat-item:nth-child(3) { animation-delay: 640ms; }

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(227, 30, 36, 0.25); }
  50% { box-shadow: 0 2px 14px rgba(227, 30, 36, 0.42); }
}
.btn-primary.attention { animation: subtlePulse 2.4s ease-in-out infinite; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .isun-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; margin-bottom: 60px; }
  .feature-cards { grid-template-columns: 1fr; gap: 18px; }
  .project-card { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .project-results { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta-box { padding: 56px 40px; }
}

@media (max-width: 768px) {
  .topbar { font-size: 11.5px; padding: 7px 0; }
  .topbar .container { flex-direction: row; gap: 14px; align-items: center; justify-content: flex-start; }
  .topbar-left { flex-direction: row; flex-wrap: nowrap; gap: 14px; align-items: center; min-width: 0; overflow: hidden; }
  .topbar-item { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nav { display: none; }
  .burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
  .burger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: var(--t-fast);
  }
  .header .btn { padding: 10px 18px; font-size: 13px; }
  .hero { min-height: 540px; padding: 70px 0 60px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-item .stat-num { font-size: 36px; }
  .why-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .portfolio-stats { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-box { padding: 44px 28px; }
  .isun-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .service-card, .feature-card { padding: 28px 24px; }
  .isun-card { padding: 28px 22px; }
  .project-card { padding: 24px 22px; }
  .topbar { font-size: 11px; padding: 6px 0; }
  .topbar-left { gap: 10px; }
  .topbar-item svg { width: 13px; height: 13px; }
}


/* ============================================================
   INNER PAGES — shared additions (TARS Group)
   ============================================================ */

/* ---- Page hero (compact, dark) ---- */
.page-hero {
  position: relative;
  background: #0F1217;
  color: #fff;
  overflow: hidden;
  padding: 72px 0 64px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(15,18,23,0.92) 0%, rgba(15,18,23,0.78) 55%, rgba(15,18,23,0.94) 100%),
    var(--hero-img, url('assets/plant-bg.jpg'));
  background-size: cover;
  background-position: center;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--t-fast); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: 0.45; }
.breadcrumb span.current { color: rgba(255,255,255,0.85); }
.page-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin-bottom: 20px;
}
.page-hero h1 .text-red { color: var(--red); }
.page-hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
}

/* ---- Generic prose / content typography ---- */
.prose p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose-center { max-width: 760px; margin: 0 auto; text-align: center; }
.single-col { max-width: 820px; margin: 0 auto; }
.prose h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 20px;
}
.prose h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 8px 0 14px;
}

/* ---- Section lead under a title (replaces eyebrow, calm + readable) ---- */
.section-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 720px;
  margin-top: 18px;
}
.section-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Check list (red ticks) ---- */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.check-list .result-check { margin-top: 2px; }

/* ---- Two-column content + aside ---- */
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.split.even { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Info / aside card ---- */
.aside-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}
.aside-card h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.aside-list { display: flex; flex-direction: column; gap: 14px; }
.aside-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.aside-row:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-row .k { color: var(--gray); }
.aside-row .v { font-weight: 600; color: var(--ink); text-align: right; }

/* ---- Numbered capability list ---- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.cap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.cap-item:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cap-num {
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  width: 30px;
}
.cap-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---- Brand chips (equipment) ---- */
.brand-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.01em;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.brand-chip:hover { border-color: var(--red); color: var(--red); }

/* ---- Stat band ---- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-band .sb-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat-band .sb-label { font-size: 14px; color: var(--gray); }

/* ---- Reference list table ---- */
.ref-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); }
.ref-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ref-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  padding: 16px 18px;
  letter-spacing: 0.01em;
}
.ref-table tbody td { padding: 16px 18px; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; vertical-align: top; }
.ref-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.ref-table .c-num { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--red); white-space: nowrap; }
.ref-table .c-date { white-space: nowrap; color: var(--gray); }
.ref-table .c-company { font-weight: 600; color: var(--ink); }
.ref-cards { display: none; }

/* ---- Review cards ---- */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.review-quote-mark { color: var(--red); width: 34px; height: 34px; margin-bottom: 16px; }
.review-text { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin-bottom: 22px; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--red-soft); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.review-name { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.review-role { font-size: 13px; color: var(--gray); }

/* ---- License cards ---- */
.license-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.license-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.license-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--red-soft);
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.license-icon svg { width: 24px; height: 24px; color: var(--red); }
.license-card h3 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.license-card p { font-size: 14px; line-height: 1.55; color: var(--gray); }

/* ---- Contact layout ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-block { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.contact-item-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--red-soft); border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 20px; height: 20px; color: var(--red); }
.contact-item .ci-label { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.contact-item .ci-value { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.contact-item .ci-value a { color: var(--ink); transition: color var(--t-fast); }
.contact-item .ci-value a:hover { color: var(--red); }

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-card h2 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 8px; letter-spacing: -0.01em; }
.form-card .form-sub { font-size: 14.5px; color: var(--gray); margin-bottom: 26px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--gray-2); margin-top: 14px; line-height: 1.5; }
.form-msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-msg.ok { display: block; background: var(--red-soft); color: var(--red-dark); }

/* ---- Map ---- */
.map-wrap { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); margin-top: 56px; }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---- Service overview cards (link cards) ---- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.photo-band { margin-top: 56px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-band img { display: block; width: 100%; height: 380px; object-fit: cover; }
.svc-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 36px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card .service-icon-wrap { margin-bottom: 24px; }
.svc-card h3 { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 12px; letter-spacing: -0.01em; }
.svc-card p { font-size: 14.5px; line-height: 1.6; color: var(--gray); margin-bottom: 22px; flex-grow: 1; }
.svc-card .link-arrow { color: var(--red); padding-bottom: 0; }

/* ---- Anchor offset for sticky header ---- */
.anchor { scroll-margin-top: 100px; }

/* ---- Mobile nav drawer ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 84vw);
  background: #fff;
  z-index: 200;
  box-shadow: -12px 0 40px rgba(30,35,43,0.18);
  transform: translateX(100%);
  transition: transform var(--t-base);
  padding: 24px;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .mn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav .mn-close { font-size: 26px; line-height: 1; color: var(--ink); padding: 4px 8px; }
.mobile-nav a.mn-link {
  font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 13px 8px; border-bottom: 1px solid var(--line);
}
.mobile-nav a.mn-link:hover { color: var(--red); }
.mobile-nav .btn { margin-top: 18px; }
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,18,23,0.45);
  z-index: 150;
}
.nav-overlay.show { display: block; }

/* ---- Responsive (inner) ---- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.even { grid-template-columns: 1fr; gap: 36px; }
  .cap-grid { grid-template-columns: 1fr; }
  .svc-grid, .svc-grid.cols-3 { grid-template-columns: 1fr; gap: 18px; }
  .photo-band img { height: 240px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .review-grid { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .ref-wrap { display: none; }
  .ref-cards { display: flex; flex-direction: column; gap: 16px; }
  .ref-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px;
  }
  .ref-card .rc-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .ref-card .rc-num { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--red); }
  .ref-card .rc-date { font-size: 13px; color: var(--gray); }
  .ref-card .rc-work { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 12px; }
  .ref-card .rc-company { font-size: 13.5px; font-weight: 600; color: var(--ink); }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-hero { padding: 52px 0 48px; }
}
@media (max-width: 480px) {
  .stat-band { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-card { padding: 26px 22px; }
  .stat-band .sb-num { font-size: 32px; }
}
