:root {
  --ink: #082735;
  --muted: #4e6874;
  --border: #d0dde2;
  --surface: #f0f0f0;
  --display: Sora, Arial, sans-serif;
}

body { background: var(--surface); }
.home-section, .stats-band { color: var(--ink); line-height: 24px; }
.home-section { padding-block: 112px; }
.home-section h2, .home-section h3, .site-footer h4, .stats dd {
  font-family: var(--display);
}
.home-section p, .site-footer p { margin: 0; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.stats-band { background: white; border-bottom: 1px solid var(--border); }
.stats {
  padding-block: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
.stats dd { margin: 0; color: var(--blue); font-weight: 700; font-size: 36px; line-height: 40px; }
.section-heading { max-width: 672px; }
.section-heading h2 {
  color: var(--blue);
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -.025em;
  margin: 16px 0 0;
}
.section-heading p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 26px; }
.service-grid, .benefit-grid, .client-grid, .project-grid, .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.service-grid, .client-grid, .project-grid { margin-top: 48px; }
.service-grid { gap: 24px; }
.service-card, .project-card, .client-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.service-card {
  padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 22px #0f4b660c; }
.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0f4b660d;
  transition: background .3s;
}
.service-card:hover .service-icon { background: var(--orange); }
.service-icon img { object-fit: contain; }
.service-card h3, .project-card h3 {
  color: var(--blue);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.service-card h3 { margin: 20px 0 0; }
.service-card p, .benefit-card p { margin-top: 8px; font-size: 14px; line-height: 22.75px; }
.service-card p { color: var(--muted); }
.section-action { margin-top: 48px; }
.blue-button { color: white; background: var(--blue); padding: 14px 28px; }
.blue-button:hover { background: #195871; }

.split { gap: 56px; }
.why-section {
  background: radial-gradient(50% 60% at 100% 100%, #ff7a1a1a, transparent 70%), var(--blue);
  color: white;
}
.why-section .split { align-items: center; }
.why-section h2, .contact-section h2 { text-wrap: balance; }
.why-section h2 { color: inherit; }
.why-section .section-heading p, .benefit-card p, .rating { color: #ffffffb3; }
.rating { display: flex; gap: 12px; align-items: center; margin-top: 32px; font-size: 14px; line-height: 20px; }
.rating span { color: var(--orange); white-space: nowrap; }
.benefit-grid { gap: 20px; }
.benefit-card {
  min-height: 172px;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  background: #ffffff0d;
  padding: 24px;
}
.benefit-card img { display: block; width: 28px; height: 28px; }
.benefit-card h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 16px 0 0; }

.client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.client-card { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.client-card img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.client-card span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: white;
  background: #0f4b66d9;
  opacity: 0;
  font-size: 14px;
  font-weight: 600;
  transition: opacity .3s;
}
@media (hover: hover) { .client-card:hover span { opacity: 1; } }
.section-top { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 14px; font-weight: 600; line-height: 20px; }
.text-link:hover { gap: 10px; }
.project-grid { gap: 28px; }
.project-card { display: block; overflow: hidden; height: 100%; transition: box-shadow .3s; }
.project-card:hover { box-shadow: 0 12px 24px #0f4b660c; }
.project-image { aspect-ratio: 3/2; overflow: hidden; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.05); }
.project-details { padding: 24px; }
.project-details span, .contact-form label span { font-size: 12px; font-weight: 600; letter-spacing: .025em; line-height: 16px; }
.project-details span { color: var(--orange); }
.project-card h3 { margin: 8px 0 0; }

.contact-section { background: white; border-top: 1px solid var(--border); }
.contact-section .split { align-items: start; }
.contact-section h2 { font-size: 32px; line-height: normal; }
.contact-section h2 span, .contact-form b { color: var(--orange); }
.contact-points { display: grid; gap: 12px; margin-top: 32px; color: #0f4b66cc; font-size: 14px; line-height: 20px; }
.contact-points li::before { content: '→'; color: var(--orange); margin-right: 8px; }
.contact-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.field-pair { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; min-width: 0; }
.contact-form label span { text-transform: uppercase; color: var(--blue); }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10.4px;
  background: white;
  color: var(--ink);
  font: 400 14.4px/21.6px Inter, Arial, sans-serif;
  padding: 11.2px 14.4px;
}
.contact-form select { line-height: normal; }
.contact-form textarea { resize: none; min-height: 111px; }
.contact-form :is(input, textarea)::placeholder { color: var(--muted); }
.contact-form :is(input, select, textarea):focus { outline: 1px solid var(--blue); border-color: var(--blue); }
.send-button { margin-top: 4px; padding: 14px 28px; color: white; border: 0; cursor: pointer; font-family: inherit; }
.form-feedback { color: var(--blue); font-size: 14px; line-height: 20px; }
.form-feedback a { text-decoration: underline; }

.site-footer { background: var(--blue); color: #fffc; font-size: 14px; line-height: 20px; }
.site-footer h4 { margin: 0 0 16px; color: white; font-size: 14px; line-height: 20px; font-weight: 600; }
.footer-grid { padding-block: 56px; display: grid; gap: 40px; }
.footer-brand img { display: block; height: 36px; }
.footer-brand p { margin-top: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--orange); }
.footer-contacts li { display: flex; gap: 10px; }
.footer-contacts img { flex: none; margin-top: 2px; }
.footer-contacts a { overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid #ffffff1a; }
.footer-bottom .wrap {
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: #ffffff80;
}
@media (min-width: 640px) {
  .service-grid, .benefit-grid, .field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
}
@media (max-width: 639.98px) {
  .home-section { padding-block: 80px; }
  .section-heading h2, .stats dd { font-size: 30px; line-height: 36px; }
  .contact-section h2 { font-size: 32px; line-height: normal; }
  .contact-form { padding: 24px; }
  .footer-brand img { height: 32px; }
  .footer-bottom .wrap { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-section * { transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .section-enter { animation: section-enter .45s ease-out; }
  @keyframes section-enter {
    from { opacity: .55; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
  }
}

.contact-trap {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
.service-icon img { width: 28px; height: 28px; }
.send-button:disabled { opacity: .65; cursor: wait; }
