:root {
  color-scheme: light;
  --bg-page: #f9fafb;
  --bg-card: #ffffff;
  --text-main: #1f2933;
  --text-muted: #4b5563;
  --border-color: #e5e7eb;
  --violet: #6a217d;
  --violet-light: #ae7ebc;
  --violet-pale: #f4ecfa;
  --accent: var(--violet);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 720px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
}

.site-header .container.narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-logo {
  margin: 0 auto;
  max-width: 370px;
  width: 100%;
}

.site-nav {
  margin-top: 22px;
  width: 100%;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav-link {
  display: inline-block;
  text-decoration: none;
  color: var(--violet);
  background: var(--violet-pale);
  border: 1px solid #d6b9e4;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  line-height: 1.1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-nav-link:hover {
  background: var(--violet-light);
  border-color: var(--violet-light);
  color: #fff;
}

.site-nav-link:focus-visible {
  outline: 3px solid rgba(106, 33, 125, 0.25);
  outline-offset: 2px;
}

.site-nav-link[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

main {
  padding: 64px 0 32px;
}

.section {
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 32px;
  line-height: 1.2;
  color: var(--violet);
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.title-with-badge .section-title {
  margin: 0;
  line-height: 1.1;
}

.title-badge {
  height: clamp(4rem, 6.8vw, 6rem);
  width: auto;
  flex: 0 0 auto;
}

.intro-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.bullet-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}

.bullet-sublist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.bullet-list .bullet-sublist li {
  font-size: 1rem;
  padding-left: 24px;
}

.bullet-list .bullet-sublist li::before {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.bullet-note {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.info-card {
  background: var(--violet-pale);
  border: 1px solid #d6b9e4;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 48px rgba(17, 24, 39, 0.08);
}
.info-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 18px 32px;
  margin: 0;
}

.info-grid dt {
  font-weight: 600;
  color: var(--text-main);
}

.info-grid dd {
  margin: 0;
  color: var(--text-muted);
}

.contact-card {
  text-align: left;
}

.primary-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.primary-button:hover {
  background: #551a64;
}

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 8px 0;
}

.site-footer .footer-block p,
.site-footer .emergency-block p {
  margin: 4px 0;
}

.site-footer .emergency-card {
  margin: 18px auto 0;
  padding: 16px 24px;
  max-width: 560px;
  background: var(--violet-pale);
  border: 1px solid #d6b9e4;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.06);
}

.site-footer .social-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

.site-footer .emergency-line {
  font-weight: 700;
  color: var(--violet);
  font-size: 1.15rem;
}

.site-footer .phone-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: -4px;
}

.site-footer .phone-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer .note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .site-header {
    padding: 32px 0;
  }

  .site-nav {
    margin-top: 16px;
  }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav-list li {
    width: 100%;
  }

  .site-nav-link {
    width: 100%;
    text-align: center;
  }

  main {
    padding: 48px 0 16px;
  }

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

  .section {
    margin-bottom: 56px;
  }

  .bullet-list li {
    font-size: 1rem;
  }
}
