/* ============================================================
   Юридический Центр «Архипова & Партнёры»
   Тёмная тема с золотыми акцентами
   ============================================================ */

:root {
  --bg: #1B1C20;
  --bg-alt: #212227;
  --panel: #26282E;
  --field: #17181C;
  --gold: #E4AA4F;
  --gold-dark: #C98F35;
  --cream: #FAE5C4;
  --text: #EAEAEA;
  --muted: #C4C4C4;
  --faint: #9A9A9A;
  --line: rgba(228, 170, 79, 0.16);
  --line-strong: rgba(228, 170, 79, 0.45);
  --serif: "Playfair Display", "Noto Serif SC", serif;
  --sans: "Montserrat", "Noto Sans SC", sans-serif;
  --nav-h: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

/* Общие стили */
body {
  font-family: var(--serif);
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  text-wrap: balance;
}

p {
  line-height: 1.75;
  color: var(--muted);
  margin: 10px 0;
}

/* Более аккуратные переносы строк там, где браузер это умеет */
p, li {
  text-wrap: pretty;
}

/* Телефонные номера не разрываются при переносе */
a[href^="tel:"] {
  white-space: nowrap;
}

ul {
  color: #ffffff;
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(228, 170, 79, 0.35);
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Стили для прокрутки */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(228, 170, 79, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(228, 170, 79, 0.55);
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

/* ============================================================
   Навбар
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(22, 23, 27, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

nav .logo img {
  display: block;
  width: 46px;
  height: auto;
}

nav .name {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  margin-left: 12px;
  margin-right: auto;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 30px;
}

nav .nav-links a {
  position: relative;
  font-family: var(--serif);
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.3s;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

nav .nav-links a:hover {
  color: #ffffff;
}

nav .nav-links a:hover::after {
  transform: scaleX(1);
}

/* Переключатель языка */
.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid rgba(228, 170, 79, 0.35);
  border-radius: 30px;
  overflow: hidden;
  margin-left: 26px;
  flex-shrink: 0;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.lang-switch button:not(.active):hover {
  color: #ffffff;
}

.lang-switch button.active {
  background: linear-gradient(135deg, #E9B45C, #D3963B);
  color: #1E1E1E;
  font-weight: 600;
}

/* Контакты в навбаре */
nav .contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 26px;
  color: var(--cream);
}

nav .contacts a {
  display: inline-flex;
  color: var(--cream);
  transition: color 0.3s, transform 0.3s;
}

nav .contacts a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

nav .contacts svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

nav .contacts .phone-icon {
  width: 15px;
  height: 15px;
  fill: var(--gold);
}

nav .contacts span {
  font-size: 15px;
  font-family: var(--sans);
  color: var(--cream);
  font-weight: 600;
  white-space: nowrap;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--cream);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 28px 24px;
  background: rgba(20, 21, 25, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 999;
}

.mobile-menu a {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 20px;
  text-decoration: none;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.mobile-menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media screen and (min-width: 769px) {
  .mobile-menu {
    display: none;
  }
}

/* ============================================================
   Хедер
   ============================================================ */

header {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  padding-left: max(24px, calc((100vw - 1120px) / 2));
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  background:
    linear-gradient(100deg, rgba(18, 18, 23, 0.93) 5%, rgba(18, 18, 23, 0.68) 55%, rgba(18, 18, 23, 0.38)),
    url('./images/background.webp') center/cover no-repeat;
  color: #FFFFFF;
}

header h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.14;
  max-width: 880px;
  margin: 0 0 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

header p {
  font-family: var(--sans);
  font-size: clamp(16px, 1.8vw, 20px);
  color: #F2E7D4;
  max-width: 640px;
  margin: 6px 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

header .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* Кнопки */
.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #221803;
  background: var(--gold);
  border: none;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #ECB55E;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
}

.button[disabled] {
  opacity: 0.65;
  cursor: default;
  transform: none;
  background: var(--gold);
}

.button2 {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(250, 229, 196, 0.55);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.button2:hover {
  background: rgba(250, 229, 196, 0.1);
  border-color: var(--cream);
  color: #ffffff;
}

/* ============================================================
   Секции
   ============================================================ */

section {
  padding: 88px 24px;
}

#about {
  background: var(--bg);
}

#about2 {
  background: var(--bg-alt);
}

#services {
  background: var(--bg);
}

/* Предложение для китайских партнёров */
#partners {
  background: var(--bg);
}

.partners-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(228, 170, 79, 0.28);
  border-radius: 18px;
  padding: clamp(38px, 5vw, 58px) clamp(24px, 5vw, 70px) clamp(36px, 4vw, 52px);
  text-align: center;
}

.partners-card ul {
  width: fit-content;
  margin: 30px auto 38px;
  text-align: left;
  display: grid;
  gap: 16px;
}

.partners-card ul li {
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.9vw, 19px);
  line-height: 1.55;
  color: var(--text);
  position: relative;
  padding-left: 30px;
}

.partners-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold);
  font-size: 0.8em;
}

.about,
.about2,
.services,
.map-container {
  max-width: 1120px;
  margin: 0 auto;
}

#about h2,
#about2 h2,
#services h2,
#partners h2,
.map-container h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--cream);
  text-align: center;
  margin: 0 0 16px;
}

#about h2::after,
#about2 h2::after,
#services h2::after,
#partners h2::after,
.map-container h2::after {
  content: '';
  display: block;
  width: 74px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 20px auto 0;
}

/* --- О компании: слоганы --- */

/* Блок по центру секции, но строки — по общей левой кромке,
   чтобы маркеры выстраивались в ровную колонку */
.about ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
  margin: 34px auto 38px;
}

.about ul li {
  font-family: var(--serif);
  font-size: clamp(19px, 2.3vw, 26px);
  color: #ffffff;
}

.about ul li::before {
  content: '✦';
  color: var(--gold);
  margin-right: 14px;
  font-size: 0.8em;
}

.about p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
}

.about p strong {
  display: inline-block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* --- Поможем вам: сетка ситуаций --- */

.about2 ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 40px;
}

.about2 ul li {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 18px 22px;
  /* Переходы (появление + ховер) задаются в .reveal — здесь transition
     не объявляется, иначе он по специфичности перебьёт анимацию появления */
}

.about2 ul li:hover {
  border-color: var(--line-strong);
  background: rgba(228, 170, 79, 0.05);
}

/* --- Услуги --- */

.services > p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto;
}

/* Карточки */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 26px;
  margin-top: 52px;
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

.card div[class$="_img"] {
  height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column-reverse;
}

.card1_img { background-image: url(./images/card1.webp); }
.card2_img { background-image: url(./images/card2.webp); }
.card3_img { background-image: url(./images/card3.webp); }
.card4_img { background-image: url(./images/card4.webp); }
.card5_img { background-image: url(./images/card5.webp); }
.card6_img { background-image: url(./images/card6.webp); }
.card7_img { background-image: url(./images/card7.webp); }
.card8_img { background-image: url(./images/card8.webp); }
.card9_img { background-image: url(./images/card9.webp); }

.card_header {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  padding: 40px 18px 14px;
  background: linear-gradient(0deg, rgba(14, 14, 18, 0.92) 0%, rgba(14, 14, 18, 0.55) 60%, transparent 100%);
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
  margin: 0;
}

.card ul li {
  position: relative;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 24px;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================================
   Форма заявки
   ============================================================ */

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 24px;
  background:
    linear-gradient(rgba(16, 17, 21, 0.9), rgba(16, 17, 21, 0.93)),
    url('./images/background2.webp') center/cover no-repeat;
}

.form_h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--cream);
  text-align: center;
  margin-bottom: 10px;
}

.form_h2 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 38px;
}

#contactForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 660px;
  background: rgba(30, 31, 37, 0.92);
  border: 1px solid rgba(228, 170, 79, 0.22);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: #F3EADA;
  background: var(--field);
  border: 1px solid #3A3C44;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #8B8B8B;
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(228, 170, 79, 0.16);
}

#contactForm textarea {
  resize: vertical;
  min-height: 120px;
}

/* Поле-ловушка для ботов: спрятано от людей */
#contactForm .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#contactForm .message,
#contactForm .form_p,
#contactForm .button,
#contactForm .form-note {
  grid-column: 1 / -1;
}

.form_p {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--faint);
  margin: 2px 0 4px;
}

.form_p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s;
}

.form_p a:hover {
  color: var(--cream);
}

#contactForm .button {
  justify-self: center;
  min-width: 240px;
  text-align: center;
}

/* Ошибка отправки — просто строка текста, без плашек */
.form-note {
  display: none;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #D8A69C;
}

.form-note.show {
  display: block;
}

.form-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* Сообщение после успешной отправки — вместо формы */
.form-success {
  width: 100%;
  max-width: 660px;
  background: rgba(30, 31, 37, 0.92);
  border: 1px solid rgba(228, 170, 79, 0.22);
  border-radius: 22px;
  padding: 64px 34px 56px;
  text-align: center;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: form-success-in 0.6s ease both;
}

@keyframes form-success-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-success__rule {
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 0 auto 26px;
}

.form-success__title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.form-success__text {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 30px;
}

.form-success__again {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.3s;
}

.form-success__again:hover {
  color: var(--cream);
}

/* Прямые контакты под формой */
.direct-label {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--faint);
  margin-top: 34px;
}

.direct-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.direct-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgba(250, 229, 196, 0.35);
  border-radius: 999px;
  padding: 11px 20px;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}

.direct-contacts a:hover {
  border-color: var(--gold);
  background: rgba(228, 170, 79, 0.08);
  color: #ffffff;
  transform: translateY(-2px);
}

.direct-contacts svg {
  width: 17px;
  height: 17px;
  fill: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   Карта
   ============================================================ */

#map-section {
  background: var(--bg-alt);
  padding: 88px 24px 96px;
}

.map-container h2 {
  margin-bottom: 44px;
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 26px;
  align-items: stretch;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: clamp(340px, 48vw, 500px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

/* Карточка с контактами рядом с картой */
.map-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.map-card__row + .map-card__row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 18px;
}

.map-card__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.map-card__value {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: #F1E8D8;
  text-decoration: none;
}

a.map-card__value {
  transition: color 0.3s;
}

a.map-card__value:hover {
  color: var(--gold);
}

.map-card__value small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--faint);
}

.map-card__route {
  margin-top: auto;
  text-align: center;
  font-size: 14px;
  padding: 13px 24px;
}

@media screen and (min-width: 901px) {
  .map-container iframe {
    height: 100%;
    min-height: 480px;
  }
}

@media screen and (max-width: 900px) {
  .map-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .map-card {
    order: -1;
    padding: 22px;
  }

  .map-card__route {
    margin-top: 6px;
  }
}

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

footer {
  background: #141519;
  border-top: 1px solid var(--line);
  padding: 46px 24px 34px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  width: 44px;
  height: auto;
  margin-bottom: 20px;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contacts a:hover {
  color: var(--gold);
}

.footer-contacts svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  flex-shrink: 0;
}

.footer-rule {
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  opacity: 0.55;
  margin: 24px 0 20px;
}

.footer-tagline {
  max-width: 720px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
}

.footer-privacy {
  margin-top: 10px;
  text-align: center;
}

.footer-privacy a {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.footer-privacy a:hover {
  color: var(--cream);
}

.footer-requisites {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 12px;
  color: #7B7B7B;
  text-align: center;
}

/* ============================================================
   Появление при прокрутке
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Лёгкий каскад для карточек и списка ситуаций.
   Задержка — только на появление (первые два значения),
   рамка при наведении реагирует без задержки. */
.cards .card:nth-child(3n+2),
.about2 ul li:nth-child(3n+2) {
  transition-delay: 0.08s, 0.08s, 0s, 0s;
}

.cards .card:nth-child(3n+3),
.about2 ul li:nth-child(3n+3) {
  transition-delay: 0.16s, 0.16s, 0s, 0s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .about2 ul li,
  .button,
  .button2 {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Адаптивность
   ============================================================ */

@media screen and (max-width: 1120px) {
  nav .contacts span {
    display: none;
  }

  nav .contacts .phone-icon {
    display: none;
  }

  .nav-links {
    gap: 20px;
  }
}

@media screen and (max-width: 900px) {
  nav .contacts {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  nav .name {
    font-size: 12.5px;
    margin-left: 8px;
  }

  nav .logo img {
    width: 40px;
  }

  .lang-switch {
    margin-left: 10px;
  }

  .lang-switch button {
    padding: 7px 11px;
    font-size: 12px;
  }

  header {
    padding-bottom: 64px;
  }

  header .btns {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 64px 18px;
  }

  .about p,
  .services > p {
    font-size: 15.5px;
  }

  .about p strong {
    font-size: 22px;
  }

  .about2 ul li {
    font-size: 14.5px;
    padding: 16px 18px;
  }

  #contactForm {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .footer-contact {
    padding: 72px 18px;
  }

  #map-section {
    padding: 64px 18px 72px;
  }

  .footer-contacts {
    gap: 12px 22px;
  }
}

@media screen and (max-width: 480px) {
  .direct-contacts a {
    width: 100%;
    justify-content: center;
  }

  #contactForm .button {
    width: 100%;
  }
}

/* Очень узкие экраны: ужимаем шапку, чтобы всё гарантированно поместилось */
@media screen and (max-width: 400px) {
  nav {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  nav .name {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    margin-left: 6px;
  }

  nav .logo img {
    width: 36px;
  }

  .lang-switch {
    margin-left: 6px;
  }

  .lang-switch button {
    padding: 6px 9px;
    font-size: 11.5px;
  }

  .burger {
    margin-left: 8px;
  }
}
