:root {
  --bg-main: #f5f6f7;
  --bg-footer: #333333;
  --text-primary: #262626;
  --text-muted: #757575;
  --border: #d9d9d9;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Exo 2", Arial, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
}

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

h1,
h2,
h3,
p,
dt,
dd {
  text-wrap: balance;
}

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

.hero {
  color: #ffffff;
  background:
    linear-gradient(rgba(1, 46, 94, 0.22), rgba(1, 46, 94, 0.22)),
    url("../assets/img/cover.png"),
    linear-gradient(145deg, #003d7a 0%, #012d5a 55%, #01254a 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-size: cover, cover, cover;
}

.hero-nav {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
  border-radius: 6px;
}

.brand-logo {
  display: block;
  width: 211px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.phone-btn {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.045em;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.phone-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.phone-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-content {
  padding: 40px 0 60px;
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.hero-content p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.landing-main {
  background: var(--bg-main);
}

.section-stack {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.block h2 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

.card-grid {
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card h3 {
  margin: 16px 0 8px;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 24px;
}

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

.product-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.legal-grid {
  margin: 0;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.legal-item {
  margin: 0;
}

.legal-item dt {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
}

.legal-item dd {
  margin: 0;
  color: #000;
  font-family: "Exo 2", Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.site-footer {
  background: #333333;
  padding: 32px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer-pair {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  color: #fff;
  font-size: 16px;
  line-height: 20px;
}

.footer-label {
  color: rgba(255, 255, 255, 0.6);
}

.footer-link {
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}

.footer-right p {
  margin: 0;
}

/* 480-639 */
@media (min-width: 480px) {
  .container {
    width: min(100% - 40px, 460px);
  }

  .footer-right {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
  }
}

/* 640-959 */
@media (min-width: 640px) {
  .container {
    width: min(100% - 40px, 620px);
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 40px 0 70px;
  }

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

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

  .legal-item-wide {
    grid-column: 1 / 2;
  }

  .site-footer {
    padding: 28px 0;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .footer-left {
    flex-direction: row;
    flex: 1 0 0;
    gap: 24px;
    align-items: center;
  }

  .footer-pair {
    align-items: flex-start;
  }

  .footer-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    text-align: right;
  }
}

/* 960-1199 */
@media (min-width: 960px) {
  .container {
    width: min(100% - 40px, 940px);
  }

  .hero-nav {
    justify-content: space-between;
  }

  .phone-btn {
    display: inline-flex;
  }

  .hero-content {
    width: 620px;
    padding-top: 40px;
  }

  .block h2 {
    font-size: 20px;
    line-height: 26px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
  }

  .legal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
  }

  .site-footer {
    padding: 28px 0;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .footer-left {
    flex-direction: row;
    flex: 1 0 0;
    gap: 24px;
    align-items: center;
  }

  .footer-pair {
    align-items: flex-start;
  }

  .footer-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    text-align: right;
  }
}

/* 1200+ */
@media (min-width: 1200px) {
  .container {
    width: min(100% - 80px, 1160px);
  }

  .hero {
    min-height: 480px;
  }

  .hero-content {
    width: 760px;
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .hero-content p {
    font-size: 18px;
    line-height: 24px;
  }

  .section-stack {
    gap: 80px;
    padding: 80px 0;
  }

  .block h2 {
    font-size: 28px;
    line-height: 36px;
    padding-bottom: 20px;
  }

  .card-grid {
    padding-top: 40px;
    gap: 40px;
  }

  .legal-grid {
    padding-top: 40px;
    gap: 40px;
  }

  .service-card h3,
  .service-card p,
  .legal-item dt,
  .legal-item dd {
    font-size: 18px;
    line-height: 24px;
  }

  .product-icon {
    width: 60px;
    height: 60px;
  }

  .site-footer {
    padding: 28px 0;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }

  .footer-left {
    flex-direction: row;
    flex: 1 0 0;
    gap: 24px;
    align-items: center;
  }

  .footer-pair {
    align-items: flex-start;
  }

  .footer-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    text-align: right;
  }

  .footer-link {
    font-size: 18px;
    line-height: 24px;
  }
}
