:root {
  --page: #FFFFFF;
  --gray: #E8F1FB;
  --ink: #1A2332;
  --accent: #1565C0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--page);
  border-bottom: 1px solid var(--gray);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--gray);
  border-radius: 50%;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

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

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--page);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--ink);
}

.refusal,
.request-section,
.services,
.contact {
  scroll-margin-top: 96px;
}

.refusal {
  padding: 96px 0 88px;
  background: var(--page);
}

.refusal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.16;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 3.5vw, 40px);
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

p {
  margin-bottom: 16px;
}

.lead {
  max-width: 620px;
  margin-bottom: 13px;
  font-size: 19px;
  font-weight: 500;
}

.refusal-grid > div > p:not(.eyebrow):not(.lead) {
  max-width: 620px;
}

.refusal-card {
  padding: 35px;
  background: var(--accent);
  color: var(--page);
  border-radius: 26px;
}

.refusal-card h2,
.refusal-card p {
  color: var(--page);
}

.refusal-card h2 {
  margin-top: 20px;
  font-size: 27px;
}

.icon-round {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--page);
  border-radius: 50%;
}

.icon-round svg {
  width: 28px;
  height: 28px;
}

.text-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--page);
  color: var(--page);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.request-section {
  padding: 86px 0;
  background: var(--gray);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: 80px;
}

.form-intro {
  padding-top: 12px;
}

.form-intro > p:not(.eyebrow) {
  max-width: 470px;
}

.small-note {
  max-width: 440px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
  padding: 17px;
  background: var(--page);
  border-radius: 18px;
}

.small-note p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.small-note-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.small-note-icon svg {
  width: 26px;
  height: 26px;
}

.request-form {
  padding: 33px;
  background: var(--page);
  border-radius: 26px;
}

.field {
  margin-bottom: 19px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--page);
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea::placeholder {
  color: var(--ink);
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.services {
  padding: 96px 0;
  background: var(--page);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 320px;
  margin-bottom: 4px;
  font-size: 15px;
}

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

.service-card {
  min-height: 250px;
  padding: 26px;
  background: var(--gray);
  border: 1px solid var(--gray);
  border-radius: 22px;
  transition: background 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  background: var(--page);
  border-color: var(--accent);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  background: var(--page);
  color: var(--accent);
  border-radius: 16px;
}

.service-card:hover .service-icon {
  background: var(--gray);
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.service-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

.contact {
  padding: 88px 0 0;
  background: var(--gray);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.85fr);
  gap: 80px;
  padding-bottom: 78px;
}

.contact-copy {
  max-width: 470px;
}

.contact-panel {
  padding: 12px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--accent);
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--page);
  border-radius: 50%;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.contact-item p {
  margin-bottom: 0;
  font-size: 14px;
}

.site-footer {
  padding: 30px 0 27px;
  background: var(--ink);
  color: var(--page);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.social-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--page);
  color: var(--page);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.privacy {
  margin-top: 27px;
  padding-top: 22px;
  border-top: 1px solid var(--page);
}

.privacy h2 {
  margin-bottom: 8px;
  color: var(--page);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.privacy p {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--page);
  font-size: 12px;
  line-height: 1.65;
}

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

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

  .refusal-grid,
  .form-layout,
  .contact-layout {
    gap: 44px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 14px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .header-cta {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .refusal,
  .services {
    padding: 64px 0;
  }

  .request-section,
  .contact {
    padding-top: 64px;
  }

  .refusal-grid,
  .form-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .refusal-card,
  .request-form {
    padding: 25px;
  }

  .section-heading,
  .footer-inner {
    display: block;
  }

  .section-heading > p {
    margin-top: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .footer-inner p {
    margin-bottom: 16px;
  }

  .contact-layout {
    padding-bottom: 58px;
  }
}
