/* atidetas — pure HTML + TS frontend */

:root {
  --ink: #1f2430;
  --muted: #5f6775;
  --line: #dfe3e8;
  --bg: #ffffff;
  --soft: #f6f8fa;
  --accent: #1f9fbd;
  --accent-dark: #157e97;
  --error: #c0392b;
  --radius: 6px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.6 "Open Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 1.6em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 54px; height: auto; }
.brand strong { color: var(--accent); font-weight: 700; }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; color: var(--ink); font-size: 15px; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); text-decoration: none; color: var(--accent-dark); }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

/* hero */
.hero { background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding: 48px 0 56px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 400; margin-bottom: 12px; }
.hero-lead { font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); margin-bottom: 24px; }
.hero-art { justify-self: center; }
.hero .button { margin-right: 8px; }

.button {
  display: inline-block;
  padding: 13px 26px;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.button:disabled { opacity: 0.6; cursor: default; }

/* sections */
.section { padding: 48px 0; }
.section > h2 { text-align: center; margin-top: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; background: var(--soft); border-radius: var(--radius); padding: 18px; }
.step img { margin: 0 auto 10px; max-height: 130px; object-fit: contain; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.step p { margin: 0; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

.figure { margin: 24px 0; }
.figure img { margin: 0 auto; }

.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }

.testimonial {
  margin: 0 auto;
  max-width: 760px;
  padding: 26px 30px;
  background: var(--soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-style: italic;
}
.testimonial footer { margin-top: 12px; font-style: normal; color: var(--muted); }

.muted { color: var(--muted); font-size: 14px; }

/* article pages */
.article { max-width: 860px; padding: 44px 0 64px; }
.article h1 { margin-bottom: 24px; }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article li { margin-bottom: 0.4em; }
.article .claim-intro { margin-bottom: 32px; }

.table-scroll { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--soft); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item summary::marker { color: var(--accent); }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* contact form */
.form { max-width: 640px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
  color: inherit;
}
.form input:focus, .form textarea:focus { outline: 2px solid rgba(31, 159, 189, 0.3); border-color: var(--accent); }
.form-status { margin: 0; color: var(--muted); }

/* footer */
.site-footer { margin-top: 40px; background: #2f3336; color: #d6d9dc; padding: 40px 0 20px; }
.site-footer a { color: #eaf6f9; }
.site-footer .footer-grid a { display: block; margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.site-footer p { margin: 0 0 6px; }
.footer-copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 13px; }

/* claim form */
.claim-form { margin-top: 8px; }
.at-progress { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.at-progress-item { flex: 1 1 150px; padding: 10px 12px; border-top: 3px solid var(--line); color: var(--muted); font-size: 13px; counter-increment: step; }
.at-progress-item::before { content: counter(step) ". "; font-weight: 700; }
.at-progress-item.is-active { border-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.at-step-title { margin: 0 0 20px; font-size: 22px; }
.at-field { margin-bottom: 18px; }
.at-label { display: block; margin-bottom: 6px; font-weight: 600; }
.at-req { color: var(--accent); }
.at-control { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; color: inherit; }
.at-control:focus { outline: 2px solid rgba(31, 159, 189, 0.35); border-color: var(--accent); }
.at-field.has-error .at-control { border-color: var(--error); }
.at-error { margin: 6px 0 0; color: var(--error); font-size: 13px; }
.at-files { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.at-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.at-consent input { margin-top: 4px; }
.at-nav { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.at-btn { padding: 11px 22px; border: 1px solid transparent; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }
.at-btn[hidden] { display: none; }
.at-btn-primary { background: var(--accent); color: #fff; }
.at-btn-primary:hover { background: var(--accent-dark); }
.at-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.at-btn:disabled { opacity: 0.6; cursor: default; }
.at-status { margin: 16px 0 0; color: var(--muted); }
.at-success { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.at-success h3 { margin: 0 0 8px; color: var(--accent-dark); }

/* responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; max-width: 520px; }
  .steps, .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; margin: 0 0 12px; }
  .nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .steps, .cards, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
}
