/* ==========================================================================
   Agent.Target v2 — section-specific styles
   Dark premium feel matching original
   ========================================================================== */

/* ============ HERO ============ */
.hero {
  padding: 100px 0 80px;
  background: var(--color-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: left;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 700;
}
.hero-title .accent {
  color: var(--color-accent);
}
.hero-lead {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 560px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .hero { padding: 48px 0; min-height: auto; }
  .hero-actions { margin-bottom: 36px; }
  .hero-stats { gap: 16px; padding-top: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ============ CASES — dark theme (unified) ============ */
.cases {
  background: var(--color-bg);
  color: var(--color-text);
}
.cases .section-title { color: var(--color-text); }
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.case-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  background: var(--color-card-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s var(--ease);
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  border-color: var(--color-accent);
}
.case-img {
  background: var(--color-bg-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.case-title {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--color-text);
  font-weight: 700;
}
.case-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}
.case-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.case-link:hover { color: var(--color-accent-h); }

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
  }
  .case-card {
    grid-template-columns: 240px 1fr;
  }
}

/* ============ WHY US ============ */
.why-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-text .section-title { margin-bottom: 24px; }
.why-lead {
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.5;
}
.why-body {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
.why-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.why-platforms img {
  max-height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: all .3s var(--ease);
}
.why-platforms img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .why-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .why-platforms { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .why-platforms img { max-height: 36px; }
}

/* ============ CLIENTS ============ */
.clients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
.client-card {
  position: relative;
  padding: 28px;
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}
.client-num {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
  letter-spacing: 0.15em;
}
.client-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 700;
}
.client-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ============ COMFORT ============ */
.comfort-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.comfort-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  max-height: 400px;
}
.comfort-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comfort-text .section-title { margin-bottom: 24px; }
.comfort-text p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.comfort-text p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .comfort-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

/* ============ SERVICES ============ */
.services-lead {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin-bottom: 40px;
  line-height: 1.5;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: rgba(250, 182, 31, 0.5);
  transform: translateY(-2px);
}
.service-card h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #fff;
  font-weight: 700;
}
.service-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.service-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}
.service-card--cta {
  background: transparent;
  border: 1px dashed var(--color-line);
  text-align: center;
  align-items: center;
  justify-content: center;
}
.service-card--cta h3 { color: #fff; }
.service-card--cta p { color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 32px auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-line);
}
.faq-item:first-child {
  border-top: 1px solid var(--color-line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 0;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  position: relative;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
  transition: transform .25s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--color-accent); }
.faq-answer {
  padding: 0 0 20px;
}
.faq-answer p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.faq-more {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .faq-item summary { font-size: 14px; padding: 16px 40px 16px 0; }
  .faq-item summary::after { font-size: 22px; }
}

/* ============ FORM SECTION ============ */
.form-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.form-text .section-title { margin-bottom: 20px; }
.form-text > p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.form-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.form-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
.form-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
}
.form-card {
  background: var(--color-card-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}
.form-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #fff;
  font-weight: 700;
}
.form-row { margin-bottom: 14px; }
.form-card input,
.form-card textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}
.form-card input::placeholder,
.form-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-card textarea { resize: vertical; min-height: 80px; }

@media (min-width: 768px) {
  .form-inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ============ CONTACTS ============ */
.contacts {
  text-align: center;
  background: var(--color-bg-alt);
}
.contacts .section-title { margin: 0 auto 16px; text-align: center; }
.contacts-lead {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  transition: all .3s var(--ease);
}
.contact-card:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}
.contact-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .contacts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 56px 0 28px;
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  font-size: 13px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--color-accent); }
.footer-col p {
  margin: 0 0 8px;
  line-height: 1.5;
  font-size: 13px;
}
.footer-logo {
  height: 28px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-note { font-size: 12px; line-height: 1.5; }
.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}