* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}
body {
  font-family:Arial, sans-serif;
  background:#f6f7f9;
  color:#111;
  line-height:1.6;
  scroll-behavior:smooth;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container {
  max-width:1100px;
  margin:0 auto;
  padding:0 15px;
  width:100%;
}
header {
  background:#fff;
  box-shadow:0 0 10px rgba(0,0,0,0.05);
  position:sticky;
  top:0;
  z-index:9999;
  width:100%;
}
.header-wrap {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
  flex-wrap:wrap;
}
.logo {
  font-size:24px;
  font-weight:bold;
  color:#1d4ed8;
  text-decoration:none;
  display:inline-block;
  margin-bottom:10px;
  transition:color 0.2s ease;
}
.logo:hover {
  color:#1e40af;
}
.logo span {
  color:#111;
}
nav ul {
  display:flex;
  list-style:none;
  gap:15px;
  flex-wrap:wrap;
  justify-content:center;
  width:100%;
}
nav a {
  text-decoration:none;
  color:#222;
  font-weight:500;
  font-size:14px;
  padding:5px 8px;
  border-radius:4px;
  transition:all 0.2s ease;
  position:relative;
}
nav a:hover {
  color:#1d4ed8;
  background:rgba(29,78,216,0.05);
}
nav a[aria-current="page"] {
  color:#1d4ed8;
  font-weight:600;
}
nav a[aria-current="page"]::after {
  content:"";
  position:absolute;
  bottom:2px;
  left:8px;
  width:calc(100% - 16px);
  height:2px;
  background:#1d4ed8;
  border-radius:1px;
}
.ad-unit {
  display:flex;
  justify-content:center;
  margin:20px 0;
  width:100%;
  overflow:hidden;
  min-height:90px;
}
.ad-unit ins {
  display:block;
  width:100%;
  max-width:100%;
  height:auto !important;
}
.ad-unit-top {
  margin-top:0;
}
.ad-unit-footer {
  margin-bottom:0;
}
.hero-section {
  text-align:center;
  margin:30px 0;
  padding:20px 0;
}
.hero-section h1 {
  font-size:28px;
  color:#111;
  margin-bottom:15px;
  line-height:1.3;
  font-weight:700;
}
.hero-section .hero-intro {
  font-size:16px;
  color:#555;
  max-width:800px;
  margin:0 auto;
}
.tools-section h2 {
  text-align:center;
  margin:30px 0;
  font-size:26px;
  color:#111;
  font-weight:600;
}
.tools-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(270px,1fr));
  gap:20px;
  margin-bottom:40px;
  width:100%;
}
.tool-card {
  background:#fff;
  border-radius:12px;
  padding:25px;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,0.04);
  transition:all 0.2s ease;
  width:100%;
  border:1px solid transparent;
}
.tool-card:hover {
  transform:translateY(-4px);
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  border-color:rgba(29,78,216,0.1);
}
.tool-icon {
  font-size:42px;
  margin-bottom:10px;
  color:#1d4ed8;
}
.tool-card h2 {
  font-size:18px;
  margin-bottom:8px;
  font-weight:600;
}
.tool-card p {
  font-size:14px;
  color:#555;
  margin-bottom:16px;
}
.tool-btn {
  display:inline-block;
  background:#1d4ed8;
  color:#fff;
  padding:10px 18px;
  border-radius:6px;
  text-decoration:none;
  font-size:14px;
  width:100%;
  max-width:200px;
  transition:all 0.2s ease;
  font-weight:500;
  border:none;
  cursor:pointer;
}
.tool-btn:hover {
  background:#1e40af;
  transform:translateY(-1px);
  box-shadow:0 2px 4px rgba(29,78,216,0.2);
}
.tool-benefits {
  margin:40px 0;
  padding:20px 0;
}
.tool-benefits h2 {
  text-align:center;
  font-size:24px;
  margin-bottom:25px;
  font-weight:600;
}
.benefits-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:15px;
  width:100%;
}
.benefit-card {
  background:#fff;
  padding:20px;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.03);
  transition:box-shadow 0.2s ease;
}
.benefit-card:hover {
  box-shadow:0 4px 10px rgba(0,0,0,0.06);
}
.benefit-card h3 {
  color:#1d4ed8;
  margin-bottom:8px;
  font-size:16px;
  font-weight:600;
}
.benefit-card p {
  font-size:14px;
  color:#555;
}
.count-tool-panel {
  background:#fff;
  padding:25px;
  border-radius:10px;
  box-shadow:0 2px 8px rgba(0,0,0,0.05);
  margin:30px 0;
  width:100%;
  transition:box-shadow 0.2s ease;
}
.count-tool-panel:hover {
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}
.count-tool-panel h2 {
  font-size:22px;
  margin-bottom:20px;
  color:#1d4ed8;
  font-weight:600;
}
.text-input textarea {
  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:14px;
  resize:vertical;
  min-height:150px;
  margin-bottom:15px;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
  font-family:inherit;
}
.text-input textarea:focus {
  outline:none;
  border-color:#1d4ed8;
  box-shadow:0 0 0 3px rgba(29,78,216,0.1);
}
.action-btn {
  background:#1d4ed8;
  color:#fff;
  border:none;
  padding:10px 20px;
  border-radius:6px;
  font-size:14px;
  cursor:pointer;
  transition:all 0.2s ease;
  font-weight:500;
}
.action-btn:hover {
  background:#1e40af;
  transform:translateY(-1px);
  box-shadow:0 2px 4px rgba(29,78,216,0.2);
}
.action-btn:focus {
  outline:none;
  box-shadow:0 0 0 3px rgba(29,78,216,0.2);
}
.result-area {
  margin-top:20px;
  padding:15px;
  background:#f9fafb;
  border-radius:6px;
  border:1px solid #e5e7eb;
}
.result-item {
  margin-bottom:8px;
  font-size:14px;
  display:flex;
  justify-content:space-between;
  padding:4px 0;
}
.result-item strong {
  color:#111;
  font-weight:600;
  min-width:180px;
  text-align:left;
}
.result-item span {
  color:#1d4ed8;
  font-weight:500;
}
.date-inputs {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:15px;
  margin-bottom:15px;
  width:100%;
}
.date-inputs input, .date-inputs select {
  padding:10px;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:14px;
  width:100%;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
  font-family:inherit;
}
.date-inputs input:focus, .date-inputs select:focus {
  outline:none;
  border-color:#1d4ed8;
  box-shadow:0 0 0 3px rgba(29,78,216,0.1);
}
.error-message {
  color:#dc2626;
  font-size:13px;
  margin-top:10px;
  padding:8px 12px;
  background:rgba(220,38,38,0.05);
  border-radius:4px;
  border-left:3px solid #dc2626;
}
.sitemap-list {
  list-style:none;
  padding:0;
  margin:20px 0;
}
.sitemap-list li {
  margin-bottom:10px;
  font-size:14px;
  padding:6px 0;
  border-bottom:1px solid #f3f4f6;
}
.sitemap-list li:last-child {
  border-bottom:none;
}
.sitemap-list a {
  color:#1d4ed8;
  text-decoration:none;
  transition:color 0.2s ease;
}
.sitemap-list a:hover {
  color:#1e40af;
  text-decoration:underline;
}
footer {
  background:#1f2937;
  color:#fff;
  padding:50px 0 20px;
  margin-top:50px;
  width:100%;
}
.footer-wrap {
  display:flex;
  flex-wrap:wrap;
  gap:30px;
  justify-content:space-between;
  width:100%;
  margin-bottom:30px;
}
.footer-col {
  flex:1;
  min-width:150px;
}
.footer-col h3 {
  margin-bottom:16px;
  font-size:15px;
  color:#e5e7eb;
  font-weight:600;
  position:relative;
  padding-bottom:8px;
}
.footer-col h3::after {
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:30px;
  height:2px;
  background:#1d4ed8;
  border-radius:1px;
}
.footer-col ul {
  list-style:none;
}
.footer-col li {
  margin-bottom:8px;
}
.footer-col a {
  color:#d1d5db;
  text-decoration:none;
  font-size:14px;
  transition:all 0.2s ease;
  display:inline-block;
}
.footer-col a:hover {
  color:#fff;
  transform:translateX(2px);
}
.copyright {
  text-align:center;
  padding-top:20px;
  margin-top:20px;
  border-top:1px solid #374151;
  font-size:13px;
  color:#9ca3af;
  width:100%;
  line-height:1.8;
}
@media (max-width:1024px) {
  .container {
    max-width:900px;
  }
  .hero-section h1 {
    font-size:26px;
  }
  .tools-grid {
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  }
  .ad-unit {
    min-height:80px;
  }
}
@media (max-width:768px) {
  .container {
    max-width:700px;
  }
  .header-wrap {
    flex-direction:column;
    align-items:center;
    padding:12px 0;
  }
  .logo {
    margin-bottom:15px;
    font-size:22px;
  }
  nav ul {
    gap:10px;
  }
  nav a {
    font-size:13px;
  }
  .hero-section h1 {
    font-size:24px;
  }
  .hero-section .hero-intro {
    font-size:15px;
  }
  .tools-grid {
    grid-template-columns:repeat(2,1fr);
    gap:15px;
  }
  .tool-card {
    padding:20px;
  }
  .tool-icon {
    font-size:36px;
  }
  .benefits-grid {
    grid-template-columns:repeat(2,1fr);
  }
  .date-inputs {
    grid-template-columns:1fr 1fr;
  }
  .ad-unit {
    min-height:70px;
    margin:15px 0;
  }
  .result-item {
    flex-direction:column;
  }
  .result-item strong {
    min-width:0;
    margin-bottom:2px;
  }
}
@media (max-width:480px) {
  .container {
    max-width:100%;
    padding:0 10px;
  }
  .header-wrap {
    padding:10px 0;
  }
  .logo {
    font-size:20px;
  }
  nav ul {
    gap:8px;
  }
  nav a {
    font-size:12px;
    padding:4px 6px;
  }
  .hero-section h1 {
    font-size:20px;
  }
  .hero-section .hero-intro {
    font-size:14px;
  }
  .tools-grid {
    grid-template-columns:1fr;
  }
  .tool-btn {
    max-width:100%;
  }
  .benefits-grid {
    grid-template-columns:1fr;
  }
  .date-inputs {
    grid-template-columns:1fr;
  }
  .count-tool-panel {
    padding:20px 15px;
  }
  .text-input textarea {
    min-height:120px;
    padding:10px;
  }
  .footer-wrap {
    flex-direction:column;
    gap:25px;
  }
  .footer-col {
    min-width:100%;
  }
  .ad-unit {
    margin:15px 0;
    min-height:60px;
  }
  .footer-col h3::after {
    width:20px;
  }
}
@media (max-width:360px) {
  .hero-section h1 {
    font-size:18px;
  }
  .tool-card {
    padding:15px;
  }
  .tool-icon {
    font-size:32px;
  }
  .count-tool-panel {
    padding:15px 10px;
  }
  .ad-unit {
    min-height:50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
}
::selection {
  background:rgba(29,78,216,0.15);
  color:#1d4ed8;
}
::-moz-selection {
  background:rgba(29,78,216,0.15);
  color:#1d4ed8;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance:none;
  margin:0;
}
input[type=number] {
  -moz-appearance:textfield;
}