/* Colors and fonts */
:root {
  --navy: #14305a;
  --navy-dk: #0d2342;
  --or: #c94d07;
  --or-dk: #a83f04;
  --grey: #f1f4f8;
  --line: #d5dce6;
  --text: #1c2636;
  --soft: #54617a;
  --head: "Rubik", "Segoe UI", Arial, sans-serif;
  --body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

a { color: inherit; }

img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}

.wrap {
  width: min(1140px, 100% - 40px);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

/* Top strip with the email */
.strip {
  background: var(--navy-dk);
  color: #c9d5e8;
  font-size: 14px;
}

.strip-in {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.strip a { color: #fff; font-weight: 700; text-decoration: none; }
.strip a:hover { text-decoration: underline; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--head);
  font-weight: 700;
  font-size: 22px;
}

.name {
  font-family: var(--head);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
}

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.nav a:hover { color: var(--or); }

.nav .nav-btn {
  padding: 8px 20px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
}

.nav .nav-btn:hover { background: var(--or); color: #fff; }

.burger {
  display: none;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--navy);
}

/* Hero */
.hero {
  padding: 76px 0 84px;
  background: var(--grey);
}

.hero-in {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 700;
}

.lead {
  max-width: 33em;
  margin-top: 20px;
  font-size: 19px;
  color: var(--soft);
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.btn-or { background: var(--or); color: #fff; }
.btn-or:hover { background: var(--or-dk); }

.btn-ln { border-color: var(--navy); color: var(--navy); }
.btn-ln:hover { background: var(--navy); color: #fff; }

/* Contact note in the hero */
.note {
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--or);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 48, 90, 0.1);
}

.note-h {
  font-family: var(--head);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
}

.note-mail {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--or);
  word-break: break-all;
}

/* Who we work with */
.who { background: var(--navy); color: #fff; }

.who-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 20px 0;
}

.who-h { font-family: var(--head); font-weight: 600; }

.who ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.who li { color: #d7e1f0; font-size: 16px; }

/* Sections */
.sec { padding: 80px 0; }
.grey { background: var(--grey); }

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

.sub { max-width: 36em; margin-top: 10px; color: var(--soft); }

/* Services */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  background: #fff;
}

.grid h3 { font-size: 1.2rem; margin-bottom: 8px; }
.grid p { color: var(--soft); font-size: 16px; }

.grid .grid-cta {
  border-color: var(--or);
  background: #fff6f0;
}

.grid-cta a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--or);
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: n;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 38px;
}

.steps li { counter-increment: n; }

.steps li::before {
  content: counter(n);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--or);
  color: #fff;
  font-family: var(--head);
  font-weight: 600;
}

.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--soft); font-size: 16px; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p { margin-top: 16px; max-width: 36em; }

.promise {
  list-style: none;
  padding: 10px 26px;
  border-left: 4px solid var(--or);
  background: var(--grey);
}

.promise li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.promise li:last-child { border-bottom: 0; }

/* FAQ */
.faq-wrap { max-width: 820px; }

details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-wrap h2 { margin-bottom: 22px; }

summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

details[open] summary { border-bottom: 1px solid var(--line); }
details p { padding: 14px 20px 18px; color: var(--soft); }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }

.contact-in {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-text p { margin-top: 12px; color: #cdd9ec; max-width: 30em; }

.big-mail {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--head);
  font-weight: 500;
  font-size: 1.3rem;
  color: #fff;
  text-decoration-color: var(--or);
  text-underline-offset: 6px;
  word-break: break-all;
}

.form {
  padding: 28px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.form label { display: block; margin: 14px 0 4px; font-weight: 700; font-size: 15px; }
.form label:first-child { margin-top: 0; }

.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #9aa8bd;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.form textarea { resize: vertical; }

.err { min-height: 1.5em; margin: 10px 0; font-size: 15px; color: #b3261e; }

/* Footer */
.foot { background: var(--navy-dk); color: #b9c6dc; font-size: 16px; }

.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 52px;
}

.foot .name { color: #fff; }

.foot-brand p { margin-top: 16px; max-width: 22em; }

.foot h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #fff;
}

.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; }

.foot a { text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }

.foot-col li:first-child a[href^="mailto"] { word-break: break-all; }

.foot-bottom {
  padding: 20px 0;
  border-top: 1px solid #25406a;
  text-align: center;
  font-size: 15px;
}

/* Laptops and tablets */
@media (max-width: 960px) {
  .hero-in, .about, .contact-in { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .note { max-width: 420px; }
}

/* Phones */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .strip-in { flex-direction: column; gap: 0; text-align: center; }
  .strip span { display: none; }

  .burger { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--grey); }
  .nav .nav-btn { margin-top: 12px; text-align: center; border: 0; }

  .hero { padding: 48px 0 56px; }
  .note { max-width: none; }
  .btn { width: 100%; text-align: center; }
  .sec { padding: 56px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .who-in { padding: 16px 0; }
}

@media (max-width: 960px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
}