/* Официальный стиль наркологической службы — строгий синий, 2014 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #003366;
  --blue-main: #004b8d;
  --blue-mid: #1a5f9e;
  --blue-light: #e8f0f8;
  --blue-border: #2c5f8a;
  --white: #ffffff;
  --gray-bg: #f4f6f8;
  --gray-text: #333333;
  --gray-muted: #5a5a5a;
  --red-accent: #c41e3a;
  --font-serif: "PT Serif", "Times New Roman", Times, serif;
  --font-sans: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-text);
  background: var(--gray-bg);
  line-height: 1.5;
  min-width: 320px;
}

a {
  color: var(--blue-main);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* Верхняя полоса */
.top-bar {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 3px solid var(--red-accent);
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.top-bar__label {
  opacity: 0.9;
}

.top-bar__phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-bar__phone:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Шапка */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--blue-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  text-decoration: none;
}

.logo__emblem {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
}

.logo__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.25;
}

.logo__subtitle {
  font-size: 12px;
  color: var(--gray-muted);
  margin-top: 4px;
  max-width: 420px;
}

.header__cta {
  display: none;
  text-align: right;
}

.header__cta-label {
  font-size: 11px;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header__cta-phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-main);
  text-decoration: none;
  margin-top: 2px;
}

.header__cta-phone:hover {
  text-decoration: none;
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: var(--blue-main);
  color: var(--white);
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* Навигация */
.nav {
  background: var(--blue-main);
  border-bottom: 1px solid var(--blue-dark);
}

.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav__link {
  display: block;
  padding: 12px 18px;
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav__link:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

/* Герой */
.hero {
  background: var(--white);
  border: 1px solid #c5d4e3;
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hero__banner {
  background: linear-gradient(180deg, var(--blue-mid) 0%, var(--blue-main) 100%);
  color: var(--white);
  padding: 28px 24px;
  border-bottom: 4px solid var(--blue-dark);
}

.hero__banner h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero__banner p {
  font-size: 15px;
  opacity: 0.95;
  max-width: 720px;
}

.hero__body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 24px;
  align-items: start;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__list {
  list-style: none;
}

.hero__list li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px dashed #c5d4e3;
  font-size: 15px;
}

.hero__list li:last-child {
  border-bottom: none;
}

.hero__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  background: var(--blue-light);
  color: var(--blue-main);
  border: 1px solid var(--blue-border);
  text-align: center;
  line-height: 22px;
  font-weight: 700;
  font-size: 14px;
}

.hero__phone-block {
  background: var(--blue-light);
  border: 2px solid var(--blue-border);
  padding: 20px;
  text-align: center;
}

.hero__phone-block h2 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--blue-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.hero__phone {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue-main);
  text-decoration: none;
  margin-bottom: 12px;
  word-break: break-word;
}

.hero__phone:hover {
  text-decoration: none;
  color: var(--blue-dark);
}

.hero__phone-note {
  font-size: 12px;
  color: var(--gray-muted);
  line-height: 1.45;
}

.hero__badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--blue-main);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Формы заявок */
.lead-form {
  background: var(--white);
  border: 2px solid var(--blue-border);
  padding: 18px;
}

.lead-form--card {
  background: var(--blue-light);
}

.lead-form__title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--blue-dark);
  margin-bottom: 6px;
  font-weight: 700;
}

.lead-form__hint {
  font-size: 12px;
  color: var(--gray-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.lead-form__field {
  display: block;
  margin-bottom: 12px;
}

.lead-form__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.lead-form__req {
  color: var(--red-accent);
}

.lead-form__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8c9d9;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--gray-text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead-form__input:focus {
  outline: none;
  border-color: var(--blue-main);
  box-shadow: 0 0 0 2px rgba(0, 75, 141, 0.15);
}

.lead-form__input--error {
  border-color: var(--red-accent);
}

.lead-form__textarea {
  resize: vertical;
  min-height: 64px;
}

.lead-form__select {
  cursor: pointer;
}

.lead-form__submit {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: var(--blue-main);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.lead-form__submit:hover:not(:disabled) {
  background: var(--blue-dark);
}

.lead-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.lead-form__status {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.lead-form__status--success {
  color: #1a7a3a;
}

.lead-form__status--error {
  color: var(--red-accent);
}

.lead-form__privacy {
  margin-top: 10px;
  font-size: 10px;
  color: var(--gray-muted);
  line-height: 1.4;
}

.lead-form--inline {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 0;
  border: none;
  background: transparent;
}

.lead-form--inline .lead-form__submit {
  width: auto;
  white-space: nowrap;
  align-self: end;
  padding: 10px 18px;
}

.lead-form--inline .lead-form__status {
  grid-column: 1 / -1;
  margin-top: 0;
}

.callback-banner {
  margin-top: 20px;
  padding: 20px;
  background: var(--blue-light);
  border: 1px solid #c5d4e3;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.callback-banner__text h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.callback-banner__text p {
  font-size: 14px;
  color: var(--gray-muted);
  line-height: 1.45;
}

.contacts-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contacts-block__info {
  text-align: center;
  padding: 12px 0;
}

.contacts-block__lead {
  font-size: 15px;
  margin-bottom: 12px;
}

.contacts-block__phone {
  font-size: 32px;
}

.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;
}

/* Секции */
.section {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid #c5d4e3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.section__head {
  background: var(--blue-light);
  border-bottom: 2px solid var(--blue-border);
  padding: 14px 20px;
}

.section__head h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--blue-dark);
  font-weight: 700;
}

.section__body {
  padding: 20px;
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  border: 1px solid #c5d4e3;
  padding: 16px;
  background: var(--gray-bg);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--blue-main);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-muted);
}

/* Лицензия и реквизиты */
.license-section {
  margin-top: 24px;
  padding: 40px 0 48px;
  background: #f4f7f9;
}

.license-section__header {
  text-align: center;
  margin-bottom: 28px;
}

.license-section__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 14px;
  background: var(--blue-light);
  border: 1px solid #c5d9eb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-main);
}

.license-section__tag-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.license-section__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.25;
}

.license-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.license-card {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.08);
  border: 1px solid #e3ebf2;
}

.license-details {
  margin: 0;
}

.license-details__row {
  margin-bottom: 18px;
}

.license-details__row:last-child {
  margin-bottom: 0;
}

.license-details dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.license-details dd {
  margin: 0;
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.45;
}

.license-docs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e8eef3;
}

.license-docs__btn {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  background: transparent;
  border: 1px solid #cfd8e0;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.license-docs__btn:hover {
  text-decoration: none;
  border-color: var(--blue-main);
  color: var(--blue-main);
  background: var(--blue-light);
}

.license-section .disclaimer {
  max-width: 900px;
  margin: 24px auto 0;
}

.disclaimer {
  margin-top: 16px;
  padding: 14px;
  background: #fff8e6;
  border: 1px solid #e6d9a8;
  font-size: 12px;
  color: var(--gray-muted);
  line-height: 1.5;
}

/* Инфо-блок */
.info-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-strip__item {
  background: var(--white);
  border: 1px solid #c5d4e3;
  padding: 16px;
  text-align: center;
}

.info-strip__item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.info-strip__item span {
  font-size: 13px;
  color: var(--gray-muted);
}

/* Подвал */
.footer {
  margin-top: 32px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 28px 0;
  border-top: 4px solid var(--red-accent);
}

.footer__inner {
  text-align: center;
}

.footer__phone {
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin: 12px 0;
}

.footer__phone:hover {
  text-decoration: none;
  opacity: 0.9;
}

.footer__text {
  font-size: 13px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.footer__copy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  opacity: 0.7;
}

/* Мобильная панель звонка */
.mobile-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blue-dark);
  border-top: 3px solid var(--red-accent);
  padding: 12px 16px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-call a:hover {
  text-decoration: none;
  opacity: 0.95;
}

.mobile-call__icon {
  font-size: 22px;
}

/* Адаптив */
@media (min-width: 768px) {
  .header__cta {
    display: block;
  }

  .hero__banner h1 {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .logo__title {
    font-size: 15px;
  }

  .logo__subtitle {
    font-size: 11px;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__link {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .hero__body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .lead-form--inline {
    grid-template-columns: 1fr;
  }

  .lead-form--inline .lead-form__submit {
    width: 100%;
  }

  .callback-banner {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .contacts-block {
    grid-template-columns: 1fr;
  }

  .contacts-block__phone {
    font-size: 26px;
  }

  .hero__banner {
    padding: 20px 16px;
  }

  .hero__banner h1 {
    font-size: 22px;
  }

  .hero__phone {
    font-size: 22px;
  }

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

  .license-section {
    padding: 28px 0 36px;
  }

  .license-section__title {
    font-size: 22px;
  }

  .license-section__grid {
    grid-template-columns: 1fr;
  }

  .license-card {
    padding: 20px;
  }

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

  .mobile-call {
    display: block;
  }

  body {
    padding-bottom: 64px;
  }

  .top-bar__phone {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .hero__phone {
    font-size: 20px;
  }

  .footer__phone {
    font-size: 22px;
  }
}
