/* ОВЕН-Уфа — временная страница.
   Цвета взяты из логотипа: #009999 (бирюзовый), #9f0412 (бордовый), #767676 (серый). */

:root {
  --teal: #009999;
  --teal-bright: #00b3b3;
  --teal-dark: #007a7a;
  --teal-deep: #00605f;
  --red: #9f0412;
  --ink: #14211f;
  --text-muted: #556663;
  --bg: #f1f6f6;
  --surface: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 22px 50px -30px rgba(6, 64, 64, .55), 0 2px 10px -6px rgba(6, 64, 64, .25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(56rem 38rem at 92% -14%, rgba(0, 153, 153, .16), rgba(0, 153, 153, 0) 62%),
    radial-gradient(44rem 34rem at -12% 112%, rgba(159, 4, 18, .09), rgba(159, 4, 18, 0) 60%);
  background-repeat: no-repeat;
}

.page {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 30px);
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(16px, 2.6vw, 34px) clamp(16px, 4vw, 48px);
}

/* ---------- Шапка ---------- */

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

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
}

.brand__logo {
  display: block;
  width: clamp(168px, 21vw, 296px);
  height: auto;
}

.brand__fallback {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--teal-deep);
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(0, 153, 153, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--teal-deep);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.phone-chip:hover,
.phone-chip:focus-visible {
  background: #fff;
  border-color: rgba(0, 153, 153, .6);
  color: var(--teal-deep);
}

.phone-chip__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

/* ---------- Сетка контента ---------- */

.content {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  grid-template-areas:
    "head card"
    "body card"
    "highlight card"
    "address card"
    "contacts card";
  align-content: center;
  align-items: start;
  gap: clamp(14px, 1.8vw, 22px) clamp(22px, 3vw, 46px);
}

.intro-head {
  grid-area: head;
}

.notice {
  grid-area: body;
}

.contact-card {
  grid-area: card;
  align-self: center;
}

/* ---------- Заголовок и текст ---------- */

.title {
  margin: 0;
  font-size: clamp(27px, 3.3vw, 45px);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

.title::after {
  content: "";
  display: block;
  width: 68px;
  height: 4px;
  margin-top: clamp(12px, 1.4vw, 18px);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 58%, var(--red) 100%);
}

.notice p {
  margin: 0 0 10px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice__lead {
  font-size: clamp(17px, 1.25vw, 19.5px);
  font-weight: 600;
}

.highlight {
  grid-area: highlight;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(14px, 1.5vw, 20px) clamp(16px, 1.7vw, 22px);
  border: 1px solid rgba(159, 4, 18, .16);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 34px -28px rgba(159, 4, 18, .85);
}

.highlight__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(159, 4, 18, .08);
  color: var(--red);
}

.highlight p {
  margin: 0;
  font-weight: 500;
}

/* ---------- Адрес «Как нас найти» ---------- */

.address {
  grid-area: address;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px clamp(14px, 1.5vw, 18px) 11px 11px;
  border: 1px solid rgba(0, 153, 153, .22);
  border-radius: var(--radius-md);
  background: rgba(0, 153, 153, .06);
}

.address__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 153, 153, .12);
  color: var(--teal-dark);
}

.address__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 10px;
  min-width: 0;
}

.address__label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teal-dark);
  white-space: nowrap;
}

.address__value {
  margin: 0;
  min-width: 0;
  font-size: clamp(15.5px, 1.15vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.contacts-line {
  grid-area: contacts;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.contacts-line a {
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 96, 95, .3);
  padding-bottom: 1px;
}

.contacts-line a:hover,
.contacts-line a:focus-visible {
  border-bottom-color: var(--teal-deep);
}

/* ---------- Карточка контактов ---------- */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.1vw, 30px);
  border: 1px solid rgba(0, 153, 153, .14);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-bright) 52%, var(--red) 100%);
}

.contact-card__title {
  margin: 6px 0 10px;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.25;
  font-weight: 700;
}

.contact-card__text {
  margin: 0 0 clamp(16px, 1.8vw, 22px);
  color: var(--text-muted);
  font-size: 15.5px;
}

.contact-card__note {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn + .btn {
  margin-top: 10px;
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 153, 153, .55);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.btn__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.3;
}

.btn__label {
  font-size: 15.5px;
  font-weight: 600;
}

.btn__value {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .01em;
}

.btn--primary {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 14px 26px -16px rgba(0, 122, 122, .95);
}

.btn--primary:hover {
  background: #006e6e;
}

.btn--ghost {
  color: var(--teal-deep);
  background: #fff;
  border-color: rgba(0, 153, 153, .5);
}

.btn--ghost:hover {
  background: rgba(0, 153, 153, .07);
}

/* ---------- Подвал ---------- */

.footer {
  padding-bottom: 2px;
  text-align: center;
}

.footer p {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- Планшеты и смартфоны ---------- */

@media (max-width: 900px) {
  .content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "card"
      "body"
      "highlight"
      "address"
      "contacts";
    align-content: start;
    gap: clamp(14px, 3vw, 20px);
  }

  .contact-card {
    align-self: stretch;
  }

  .contacts-line {
    margin-top: 2px;
  }

  .page {
    /* запас снизу под штатную плавающую кнопку чата:
       значение уточняется скриптом по реальному положению кнопки */
    padding-bottom: var(--chat-safe-bottom, 128px);
  }

  .footer {
    text-align: left;
    padding-bottom: 0;
  }

  .footer p {
    margin: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .topbar {
    gap: 12px;
  }

  .brand__logo {
    width: clamp(140px, 44vw, 200px);
  }

  .phone-chip {
    padding: 0;
    width: 46px;
    height: 46px;
    min-height: 46px;
    justify-content: center;
    border-radius: 50%;
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(0, 122, 122, .9);
  }

  .phone-chip__icon {
    width: 21px;
    height: 21px;
  }

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

  .btn {
    min-height: 60px;
  }

  .address {
    gap: 10px;
    padding: 10px 12px 10px 10px;
  }

  .address__icon {
    width: 32px;
    height: 32px;
  }

  .address__text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .address__label {
    font-size: 12px;
    white-space: normal;
  }

  .address__value {
    font-size: 15.5px;
  }
}

/* ---------- Анимация появления ---------- */

@media (prefers-reduced-motion: no-preference) {
  .intro-head,
  .contact-card,
  .highlight,
  .address {
    animation: fade-up .5s ease both;
  }

  .contact-card {
    animation-delay: .06s;
  }

  .highlight {
    animation-delay: .12s;
  }

  .address {
    animation-delay: .16s;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
