﻿:root {
  --blue-dark: #0f2e4d;
  --blue-main: #1f4f78;
  --blue-light: #e8f3fb;
  --white: #ffffff;
  --text: #0f2233;
  --border: #c8d9e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 250px);
  line-height: 1.6;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--blue-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.site-nav a.active {
  background: #ffffff;
  color: var(--blue-dark);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.site-main {
  padding: 2rem 0 3rem;
}

.hero,
.content-page,
.benefits {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.benefits {
  margin-top: 1.5rem;
}

.hero-logo,
.page-logo {
  width: 124px;
  height: 124px;
  object-fit: contain;
  border-radius: 10px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-logo-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-logo-home {
  width: 180px;
  height: 180px;
}

h1,
h2 {
  color: var(--blue-main);
  line-height: 1.25;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.benefit-grid article {
  background: var(--blue-light);
  border: 1px solid var(--border);
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: 600;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn-icon .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-maps {
  color: #02695a;
  background: #f3f6f8;
  border-color: #bcc8d4;
}

.btn-maps:hover,
.btn-maps:focus-visible {
  background: #eaf0f4;
  border-color: #a8b8c6;
}

.btn-green,
.btn-whatsapp {
  color: var(--white);
  background: #007d3d;
}

.btn-facebook {
  color: var(--white);
  background: #0866ff;
}

.btn-whatsapp {
  background: #00d756;
}

.btn-primary {
  color: var(--white);
  background: #1c4acd;
}

.contact-card {
  background: #fdfefe;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.contact-card-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-details {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
}

.contact-details .btn {
  width: min(100%, 240px);
  justify-content: center;
}

.contact-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-logo {
  width: min(300px, 100%);
  height: auto;
  object-fit: contain;
}

.error-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.error-text {
  min-width: 0;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.error-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-logo {
  width: min(220px, 100%);
  height: auto;
  object-fit: contain;
}

.revealed-email-address {
  margin: 0.2rem 0 0.75rem 0;
}

.site-footer {
  background: #0b243d;
  color: #e4edf5;
  padding: 0.9rem 0;
}

.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active {
  color: #ffffff;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
}

.footer-actions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-self: center;
}

.footer-content > p:first-child {
  justify-self: start;
}

.footer-content > p:last-child {
  justify-self: end;
}

.footer-icon-btn {
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  justify-content: center;
  border-radius: 10px;
  border: 0;
}

.footer-actions a:last-child {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.footer-icon-btn .icon,
.footer-icon-btn svg {
  color: #ffffff;
  fill: #ffffff;
}

.footer-icon-btn,
.footer-icon-btn span {
  color: #ffffff;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 1rem;
    background: #133a5f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    min-width: 200px;
    padding: 0.5rem;
    flex-direction: column;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .error-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }

  .hero-logo-wrap {
    order: -1;
    justify-content: flex-start;
  }

  .error-logo-wrap {
    order: -1;
  }

  .contact-logo-wrap {
    justify-content: center;
    order: -1;
  }

  .contact-details {
    width: 100%;
    max-width: 640px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    justify-items: start;
  }

  .footer-actions {
    justify-self: start;
  }

  .footer-icon-btn {
    height: 36px;
  }

  .footer-content > p:last-child {
    justify-self: start;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .hero-logo,
  .page-logo {
    width: 102px;
    height: 102px;
  }

  .hero-logo-home {
    width: 120px;
    height: 120px;
  }

  .contact-logo {
    width: min(180px, 100%);
  }
}
