:root {
  --ink: #263457;
  --muted: #314262;
  --soft: #f4f4f4;
  --blue-soft: #eaf6ff;
  --accent: #3582a8;
  --accent-dark: #2d7699;
  --danger: #f44949;
  --dark: #323241;
  --line: #e7e7e7;
  --max: 1760px;
  --content: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}

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

.site-header {
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 114px;
}

.brand img {
  width: 176px;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex: 1 1 auto;
  font-size: 14px;
  color: #000;
}

.nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #000;
}

.header-button,
.cta-button,
.submit-button,
.subscribe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
}

.header-button {
  width: 218px;
  height: 50px;
  font-size: 14px;
  font-weight: 500;
}

.contact-section {
  background: var(--dark);
  color: #fff;
  padding: 26px 0 34px;
}

.contact-grid {
  width: min(calc(100% - 72px), 1780px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.contact-visual img {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  object-fit: contain;
}

.contact-form-wrap {
  padding-top: 14px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-form-wrap h2 {
  margin: 0 0 36px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form label,
.newsletter label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

.contact-form input,
.newsletter input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  color: #fff;
  padding: 0 0 10px;
  outline: none;
}

.contact-form .phone-row {
  max-width: 265px;
}

.submit-button {
  width: 210px;
  height: 39px;
  margin-top: 10px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.footer {
  background: var(--dark);
  color: #fff;
  padding: 18px 0 28px;
}

.footer-title {
  margin: 0 0 28px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
}

.footer-grid {
  width: min(calc(100% - 72px), 1840px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.newsletter {
  max-width: 660px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 34px;
  font-size: 13px;
  line-height: 1.55;
  color: #fff;
}

.check-row input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.subscribe-button {
  width: 136px;
  height: 32px;
  background: #ff4646;
  font-size: 13px;
  font-weight: 500;
}

.footer-col h3 {
  margin: 22px 0 14px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.footer-col p,
.footer-col a {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #fff;
}

.footer-bottom {
  width: min(calc(100% - 72px), 1840px);
  margin: 160px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copyright {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.legal-links a {
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  transition: opacity 0.2s ease;
}

.socials a:hover {
  opacity: 0.75;
}

.socials svg {
  width: 28px;
  height: 28px;
  display: block;
}

@media (max-width: 1280px) {
  .site-header .container {
    min-height: auto;
    padding: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-visual img {
    margin: 0 auto;
  }

  .submit-button {
    margin-left: 0;
  }

  .footer-bottom {
    margin-top: 56px;
  }
}

@media (max-width: 900px) {
  .site-header .container {
    gap: 18px;
  }

  .brand img {
    width: 152px;
  }

  .container,
  .section-shell,
  .contact-grid,
  .footer-grid,
  .footer-bottom {
    width: min(calc(100% - 28px), var(--max));
  }

  .footer-title {
    font-size: 24px;
  }

  .contact-section {
    padding: 32px 0 40px;
  }

  .contact-form-wrap h2 {
    margin-bottom: 28px;
    font-size: 22px;
  }

  .contact-form {
    gap: 20px;
  }

  .newsletter {
    max-width: none;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-col h3 {
    margin-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
  }

  .legal-links {
    gap: 8px 16px;
  }

  .socials {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .site-header .container {
    padding: 16px 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand img {
    width: 136px;
  }

  .menu-toggle {
    display: inline-block;
    order: 2;
  }

  .nav {
    display: none;
    order: 4;
    width: 100%;
    padding-top: 12px;
    flex-direction: column;
    gap: 8px;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .header-button {
    display: none;
    order: 3;
    width: 100%;
  }

  .site-header.menu-open .nav,
  .site-header.menu-open .header-button {
    display: inline-flex;
  }

  .site-header.menu-open .nav {
    display: flex;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact-section {
    padding: 24px 0 34px;
  }

  .contact-grid,
  .footer-grid,
  .footer-bottom {
    gap: 24px;
  }

  .contact-form label,
  .newsletter label,
  .footer-col p,
  .footer-col a {
    font-size: 15px;
  }

  .check-row {
    margin: 18px 0 26px;
    font-size: 12px;
  }

  .submit-button,
  .subscribe-button {
    width: 100%;
  }

  .socials {
    gap: 12px;
  }

  .socials a {
    width: 32px;
    height: 32px;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }
}
