:root {
  --color-bg: #ecebe5;
  --color-bg-soft: #faf9f5;
  --color-bg-deep: #e4e2da;
  --color-surface: rgba(255, 255, 252, 0.94);
  --color-surface-strong: rgba(252, 255, 251, 0.98);
  --color-surface-alt: rgba(242, 241, 235, 0.92);
  --color-text: #08271d;
  --color-muted: #50675d;
  --color-border: rgba(72, 84, 76, 0.14);
  --color-primary: #0b5d3e;
  --color-primary-dark: #063b2a;
  --color-accent: #2f8f6b;
  --color-indigo: #587df5;
  --color-success: #4F7942;
  --color-warning: #d6953a;
  --color-error: #d65a73;
  --highlight-red: #d65a73;
  --highlight-accent: #7aa865;
  --gradient-ai: linear-gradient(135deg, #063b2a 0%, #0b5d3e 52%, #2f8f6b 100%);
  --gradient-panel: linear-gradient(180deg, rgba(255, 255, 252, 0.97), rgba(244, 243, 237, 0.98));
  --gradient-panel-alt: linear-gradient(180deg, rgba(252, 252, 248, 0.98), rgba(235, 234, 228, 0.98));
  --glow-cyan: 0 0 18px rgba(11, 93, 62, 0.12);
  --shadow-sm: 0 18px 34px rgba(43, 48, 45, 0.08);
  --shadow-md: 0 24px 52px rgba(43, 48, 45, 0.12), 0 0 18px rgba(47, 143, 107, 0.06);
  --radius: 8px;
  --section-space: 84px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 7%, rgba(47, 143, 107, 0.05), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(126, 138, 126, 0.06), transparent 30%),
    linear-gradient(180deg, #fdfcf8, var(--color-bg-soft) 36%, var(--color-bg) 72%, var(--color-bg-deep));
  color: var(--color-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration-color: rgba(79, 121, 66, 0.18);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: rgba(54, 92, 47, 0.26);
}

.page-content,
main {
  flex: 1 0 auto;
  min-width: 0;
}

.container {
  width: min(100% - 32px, 1180px);
}

.container > *,
.services-section > *,
.forms-content-container > *,
.form-grid > *,
.contact-grid > *,
.placeholder-grid > * {
  min-width: 0;
}

:where(a, button, label, span, strong, small, li, dd, dt) {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.14;
  margin-top: 0;
}

body :is(div, p, a, span, strong, b, button, label, small, li, dt, dd, blockquote, cite, time, th, td, legend, input, textarea, select, option, h1, h2, h3, h4, h5, h6) {
  font-weight: 400 !important;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  overflow-wrap: anywhere;
}

h3,
.card-title {
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

p {
  color: var(--color-muted);
  overflow-wrap: anywhere;
}

li,
td,
th,
small,
dd,
dt,
blockquote,
cite,
time {
  color: var(--color-muted);
}

.lead {
  color: inherit;
  font-size: 1.12rem;
  line-height: 1.72;
  max-width: 700px;
  overflow-wrap: anywhere;
}

.highlight-red {
  background: linear-gradient(180deg, #ef9a6f 0%, #d65a73 52%, #b94864 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #d65a73;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.highlight-accent,
.metric-highlight {
  color: var(--highlight-accent);
}

.hero-first-line {
  color: var(--color-primary) !important;
}

.btn {
  border-radius: var(--radius);
  letter-spacing: 0;
  padding: 0.8rem 1.2rem;
  white-space: normal;
}

.btn-primary {
  background: var(--gradient-ai);
  border-color: rgba(79, 121, 66, 0.18);
  box-shadow: 0 14px 28px rgba(53, 64, 84, 0.12);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #365c2f 0%, #5f944f 46%, #24795a 100%);
  border-color: rgba(79, 121, 66, 0.26);
  box-shadow: 0 18px 34px rgba(53, 64, 84, 0.14);
}

.form-control,
.form-select {
  background-color: rgba(255, 253, 249, 0.96);
  border-color: var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  min-height: 46px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(79, 121, 66, 0.12), var(--glow-cyan);
}

.form-control::placeholder {
  color: var(--color-muted);
}

.form-label,
label {
  color: var(--color-text);
  font-size: 0.92rem;
}

.card,
.service-card,
.process-card,
.result-card,
.ai-container,
.empty-container,
.consultation-panel,
.contact-card,
.placeholder-card {
  background: var(--gradient-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.card,
.service-card,
.process-card,
.result-card,
.placeholder-card,
.contact-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover,
.service-card:hover,
.process-card:hover,
.result-card:hover,
.placeholder-card:hover,
.contact-card:hover {
  border-color: rgba(79, 121, 66, 0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-body {
  padding: 30px;
}

.table {
  color: var(--color-text);
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
}

.table thead th {
  background: rgba(239, 233, 223, 0.98);
  color: var(--color-text);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.table td,
.table th {
  border-color: var(--color-border);
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.text-primary,
.bi.text-primary {
  color: var(--color-primary) !important;
}

.text-success,
.bi.text-success {
  color: var(--color-success) !important;
}

.text-warning,
.bi.text-warning {
  color: var(--color-warning) !important;
}

.text-danger,
.bi.text-danger {
  color: var(--color-error) !important;
}

.page-heading,
.section-intro {
  margin-bottom: 34px;
  max-width: 780px;
}

.page-heading p,
.section-intro p {
  font-size: 1.05rem;
  margin: 14px 0 0;
}

.hero-section {
  position: relative;
  min-height: 76vh;
  background:
    linear-gradient(100deg, rgba(250, 246, 239, 0.72), rgba(239, 233, 223, 0.3)),
    url("../img/home/bg.jpg") no-repeat center top;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 108px 0 92px;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(250, 246, 239, 0.6));
  pointer-events: none;
}

.hero-section .container.hero-text {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  color: var(--color-text);
  text-align: left;
}

.hero-section h1 {
  color: var(--color-text);
  max-width: 820px;
  margin-bottom: 16px;
  text-shadow: 0 10px 24px rgba(53, 64, 84, 0.12);
}

.hero-section .lead,
.hero-section p {
  color: rgba(36, 48, 66, 0.78);
}

.services-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin: 0 auto var(--section-space);
  max-width: 1180px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.service-card {
  color: var(--color-text);
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  isolation: isolate;
  background:
    linear-gradient(150deg, rgba(255, 255, 252, 0.94), rgba(246, 245, 239, 0.9) 54%, rgba(237, 236, 230, 0.84)),
    var(--card-image, url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=900&q=70")) center/cover;
  background-blend-mode: normal, soft-light;
  border-color: rgba(78, 91, 82, 0.14);
  box-shadow: 0 22px 48px rgba(43, 48, 45, 0.12);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(11, 93, 62, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08) 58%, rgba(20, 28, 24, 0.06));
  opacity: 0.92;
  z-index: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0b5d3e, #7aa865 48%, rgba(11, 93, 62, 0.2));
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:focus-visible {
  outline: 3px solid rgba(79, 121, 66, 0.18);
  outline-offset: 3px;
}

.service-card-header,
.process-card-header,
.icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-card-header i,
.process-card-header i,
.icon-title i,
.card-body > i {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(79, 121, 66, 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.45rem !important;
}

.service-card-header i {
  background: rgba(11, 93, 62, 0.08);
  color: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(11, 93, 62, 0.12);
  backdrop-filter: blur(10px);
}

.service-card-header h3,
.process-card-header h4,
.icon-title h3 {
  color: inherit;
  font-size: 1.05rem;
  margin: 0;
}

.service-card-header h3::after,
.process-card-header h4::after,
.icon-title h3::after,
.card-title::after,
.forms-column form h2::after,
.ai-container .ai-text h2::after,
.placeholder-card h3::after {
  background: linear-gradient(90deg, rgba(79, 121, 66, 0.42), rgba(79, 121, 66, 0.16), transparent);
  content: "";
  display: block;
  height: 1px;
  margin: 8px 0 4px;
  width: 74px;
}

.service-card p,
.process-card p {
  margin: 0;
}

.service-card p {
  color: var(--color-muted);
}

.card-link-label {
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-top: auto;
}

.service-card-data {
  --card-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=70");
}

.service-card-ai {
  --card-image: url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=900&q=70");
}

.service-card-iot {
  --card-image: url("https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=900&q=70");
}

.service-card-constructai {
  --card-image: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=900&q=70");
}

.service-card-constructai .service-card-header i {
  background: rgba(11, 93, 62, 0.08);
}

.process-section {
  padding: var(--section-space) 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 121, 66, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(248, 243, 235, 0.92), rgba(236, 229, 217, 0.92));
  text-align: center;
}

.process-section .process-title {
  margin-bottom: 10px;
}

.process-section .process-subtitle {
  color: var(--color-accent);
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.process-section .process-description {
  max-width: 680px;
  margin: 0 auto 38px;
}

.process-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  text-align: left;
}

.form-section-wrapper {
  padding: var(--section-space) 16px;
  background:
    radial-gradient(circle at 82% 15%, rgba(79, 121, 66, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(250, 246, 239, 0.9), rgba(236, 229, 217, 0.96));
}

.forms-content-container {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(320px, 560px);
  gap: 32px;
  justify-content: center;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.forms-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forms-column form,
.consultation-panel {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.forms-column form h2,
.consultation-panel h1 {
  color: var(--color-text);
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.consultation-panel {
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.forms-column form label {
  margin-top: 12px;
  margin-bottom: 6px;
}

.forms-column form button {
  align-self: flex-start;
  background: var(--gradient-ai);
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  cursor: pointer;
  padding: 11px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.forms-column form button:hover {
  background: linear-gradient(135deg, #365c2f, #5f944f 50%, #24795a);
  transform: translateY(-1px);
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-container {
  display: grid;
  overflow: hidden;
}

.ai-container .ai-image {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.ai-container .ai-text {
  padding: 30px;
  text-align: left;
}

.ai-container .ai-text h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.ai-container .ai-text p {
  margin: 0;
}

.empty-container {
  background: var(--gradient-panel-alt);
  min-height: 170px;
  padding: 30px;
}

.empty-container::before {
  content: "Cloud-native delivery, automation, and managed optimization from one team.";
  color: var(--color-text);
  display: block;
  font-size: 1.2rem;
  line-height: 1.35;
  max-width: 420px;
}

.page-shell {
  padding: var(--section-space) 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(79, 121, 66, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(250, 246, 239, 0.88), rgba(237, 229, 217, 0.72));
}

.services-page-grid {
  row-gap: 24px;
}

.services-page-grid .card {
  height: 100%;
}

.services-page-grid .card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.services-page-grid .card-title,
.services-page-grid .card-text {
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.35fr);
  gap: 32px;
  align-items: start;
}

.contact-card {
  padding: 30px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.placeholder-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.placeholder-card {
  padding: 28px;
}

.placeholder-card i {
  align-items: center;
  background: rgba(79, 121, 66, 0.08);
  border-radius: var(--radius);
  color: var(--color-primary);
  display: inline-flex;
  font-size: 1.4rem;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

.placeholder-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.placeholder-card p {
  margin: 0;
}

footer {
  background: rgba(244, 238, 230, 0.96) !important;
  border-top: 1px solid rgba(92, 107, 129, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

footer a {
  color: var(--color-primary);
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

footer a:hover {
  color: var(--color-primary-dark);
  opacity: 1;
}

@media (max-width: 1200px) {
  .services-section {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  :root {
    --section-space: 64px;
  }

  .forms-content-container,
  .form-grid,
  .placeholder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-section {
    min-height: auto;
    padding: 82px 0 64px;
  }

  .services-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card,
  .process-card,
  .forms-column form,
  .consultation-panel,
  .card-body,
  .contact-card,
  .placeholder-card {
    padding: 24px;
  }

  .page-heading,
  .section-intro,
  .hero-section h1,
  .hero-section .lead,
  .hero-section p,
  .empty-container::before {
    max-width: 100%;
  }

  .service-card,
  .process-card,
  .result-card,
  .placeholder-card {
    min-height: 0;
  }

  .service-card-header,
  .process-card-header,
  .icon-title {
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-section {
    padding: 76px 0 56px;
  }

  .hero-section::after {
    height: 96px;
  }

  .btn {
    max-width: 100%;
    width: 100%;
  }

  .card-body,
  .service-card,
  .process-card,
  .forms-column form,
  .consultation-panel,
  .contact-card,
  .placeholder-card {
    padding: 18px;
  }
}
