* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #f8fafc;
  color: #172033;
  line-height: 1.6;
}

a {
  color: inherit;
}

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


/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8edf3;
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #172033;
}

.logo::before {
  content: "◆";
  display: inline-block;
  margin-right: 8px;
  font-size: 15px;
  color: #2563eb;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navigation a {
  text-decoration: none;
  color: #526075;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.navigation a:hover {
  color: #2563eb;
}


/* =========================
   HERO
========================= */

.hero {
  padding: 90px 20px 75px;
  text-align: center;
  background:
    radial-gradient(circle at top, #eaf2ff 0, #f8fafc 52%);
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto 20px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -2px;
  color: #111827;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 30px;
  color: #5d6b80;
  font-size: 18px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18);
  transition: 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}


/* =========================
   SECTIONS
========================= */

.tools-section {
  padding: 70px 0;
}

.tools-section > .container > h2,
.tools-section h2 {
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 40px;
  color: #111827;
}

.category-title {
  margin: 50px 0 20px;
  font-size: 21px;
  color: #172033;
}


/* =========================
   TOOLS GRID
========================= */

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

.tool-card {
  display: block;
  min-height: 175px;
  padding: 25px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #c9d8f7;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.09);
}

.tool-card h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: 19px;
}

.tool-card h3::after {
  content: " →";
  color: #2563eb;
}

.tool-description {
  margin: 0;
  color: #69778c;
  font-size: 15px;
}


/* =========================
   CONTENT
========================= */

.intro-section,
.info-section {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
}

.intro-section {
  padding: 20px 0 30px;
}

.intro-section h2,
.info-section h2 {
  color: #111827;
  margin-bottom: 18px;
}

.info-section {
  margin-top: 65px;
  margin-bottom: 65px;
}


/* =========================
   FAQ
========================= */

.faq-item {
  margin-top: 15px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
}

.faq-item h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 17px;
}

.faq-item p {
  margin: 0;
  color: #64748b;
}


/* =========================
   FORMS
========================= */

input,
textarea,
select {
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 70px;
  padding: 45px 0 30px;
  background: #111827;
  color: #ffffff;
}

.footer-logo {
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer p {
  color: #aeb8c7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 25px 0;
}

.footer-links a {
  color: #dbe3ef;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #263244;
  font-size: 13px;
}


/* =========================
   BUTTONS
========================= */

button {
  font-family: inherit;
  transition: 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}


/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 850px) {

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navigation {
    gap: 15px;
  }

  .hero {
    padding-top: 70px;
  }

}


/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 650px) {

  .container {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    min-height: 65px;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
    gap: 8px;
  }

  .logo {
    font-size: 23px;
  }

  .navigation {
    width: 100%;
    justify-content: center;
    gap: 13px;
    flex-wrap: wrap;
  }

  .navigation a {
    font-size: 13px;
  }

  .hero {
    padding: 65px 10px 55px;
  }

  .hero h1 {
    font-size: 39px;
    letter-spacing: -1.4px;
  }

  .hero p {
    font-size: 16px;
  }

  .tools-section {
    padding: 50px 0;
  }

  .tools-section > .container > h2,
  .tools-section h2 {
    font-size: 28px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-card {
    min-height: auto;
    padding: 21px;
  }

  .category-title {
    margin-top: 38px;
  }

  .info-section {
    margin-top: 45px;
    margin-bottom: 45px;
  }

  .footer {
    margin-top: 45px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

}


/* =========================
   ACCESSIBILITY
========================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
