/* ==========================================================================
   Налоговый Консультант — фирменные стили
   Палитра оригинала: сливово-бордовая гамма + золотой акцент
   ========================================================================== */

:root {
  --plum-900: #2b081e;
  --plum-800: #3a0d26;
  --plum-700: #4e102d;
  --plum-600: #650953;
  --plum-500: #663366;
  --plum-400: #7d2a6b;
  --berry: #993366;

  --gold: #ffcc33;
  --gold-dark: #e8b31f;
  --gold-soft: #fff4d1;

  --ink: #2b0a1e;
  --muted: #6f5366;
  --line: #ead9e3;
  --surface: #ffffff;
  --surface-alt: #faf5f8;

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(43, 8, 30, 0.06);
  --shadow-md: 0 12px 34px rgba(43, 8, 30, 0.10);
  --shadow-lg: 0 24px 60px rgba(43, 8, 30, 0.16);

  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Атрибут hidden должен всегда побеждать display из стилей */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--plum-900);
  box-shadow: 0 8px 20px rgba(232, 179, 31, 0.35);
}

.btn-gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 10px 26px rgba(232, 179, 31, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(43, 8, 30, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  color: var(--gold);
  display: grid;
  place-items: center;
}

.brand-mark img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 140px;
}

@media (max-width: 720px) {
  .brand-mark img {
    height: 38px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-text em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.is-active {
  color: var(--gold);
  background: rgba(255, 204, 51, 0.12);
}

.nav-phone {
  margin-left: 10px;
  padding: 10px 18px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(153, 51, 102, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 204, 51, 0.16), transparent 55%),
    linear-gradient(135deg, var(--plum-900) 0%, var(--plum-700) 55%, var(--plum-600) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 51, 0.5), transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.hero-stats span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.hero-card {
  position: relative;
  padding: 34px 32px 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}

.hero-card-label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-card blockquote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.96);
}

.hero-card-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--plum-900);
  font-weight: 800;
  font-size: 18px;
  flex: none;
}

.hero-card-author strong,
.hero-card-author em {
  display: block;
}

.hero-card-author strong {
  font-size: 15px;
}

.hero-card-author em {
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- Секции ---------- */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--plum-800);
}

.section-head .eyebrow {
  color: var(--berry);
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}

/* ---------- О компании ---------- */
.about {
  background: var(--surface-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: #4c3242;
  margin-bottom: 16px;
  font-size: 16.5px;
}

.check-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--plum-800);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-dark);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--plum-800);
  border-bottom: 2px solid var(--plum-800);
  transform: rotate(-45deg);
}

.about-facts {
  display: grid;
  gap: 16px;
}

.fact {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.fact strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--berry);
  line-height: 1;
  margin-bottom: 6px;
}

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

/* ---------- Услуги ---------- */
.services-stack {
  display: grid;
  gap: 26px;
}

.service-block {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-block:hover {
  border-color: rgba(153, 51, 102, 0.3);
  box-shadow: var(--shadow-md);
}

.service-block-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.service-block-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--plum-700);
  background: linear-gradient(135deg, var(--gold-soft), #ffe9b0);
}

.service-block-head h3 {
  font-size: 24px;
  color: var(--plum-800);
  margin-bottom: 6px;
}

.service-block-head p {
  max-width: 640px;
  font-size: 15.5px;
  color: var(--muted);
}

.service-items {
  display: grid;
  gap: 12px;
}

.service-item {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.service-item:hover {
  border-color: rgba(153, 51, 102, 0.3);
  background: #fff;
  transform: translateX(4px);
}

.service-item-main {
  min-width: 0;
}

.service-item-main h4 {
  font-size: 16px;
  color: var(--plum-800);
  margin-bottom: 2px;
}

.service-item-main p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.service-item-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.service-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--berry);
  white-space: nowrap;
}

.service-cta {
  padding: 9px 16px;
  font-size: 13px;
  border: 1.5px solid var(--berry);
  color: var(--berry);
  background: #fff;
}

.service-cta:hover {
  background: var(--berry);
  color: #fff;
  border-color: var(--berry);
}

.services-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Статьи (Полезное) ---------- */
.articles-list {
  display: grid;
  gap: 18px;
}

.article-card {
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.article-card:hover {
  border-color: rgba(153, 51, 102, 0.3);
  box-shadow: var(--shadow-md);
}

.article-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.article-card-text h3 {
  font-size: 18px;
  color: var(--plum-800);
  margin-bottom: 6px;
}

.article-excerpt {
  font-size: 14.5px;
  color: var(--muted);
}

.article-date {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--berry);
  white-space: nowrap;
}

.article-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #4c3242;
  font-size: 15px;
}

.article-body p {
  margin-bottom: 12px;
}

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

.article-toggle {
  margin-top: 16px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--berry);
  cursor: pointer;
}

.article-toggle:hover {
  text-decoration: underline;
}

/* ---------- Команда ---------- */
.team {
  background: var(--surface-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-alt);
}

.team-photo--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--plum-700), var(--plum-500));
}

.team-info {
  padding: 22px 22px 24px;
}

.team-info h3 {
  font-size: 17px;
  color: var(--plum-800);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.team-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.team-mail {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--berry);
}

.team-mail:hover {
  text-decoration: underline;
}

/* ---------- Партнёры ---------- */
.partners-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.partner-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  height: 100%;
  padding: 26px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--berry);
}

.partner-logo {
  display: grid;
  place-items: center;
}

.partner-logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partner-card:hover .partner-logo img {
  opacity: 1;
  filter: grayscale(0);
}

.partner-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--plum-800);
  text-align: center;
  line-height: 1.3;
}

/* ---------- Контакты ---------- */
.contacts {
  background: var(--surface-alt);
}

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

.contacts-info {
  display: grid;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--plum-700);
  color: var(--gold);
}

.contact-item h3 {
  font-size: 15px;
  color: var(--plum-800);
  margin-bottom: 4px;
}

.contact-item a {
  font-weight: 700;
  color: var(--berry);
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  font-size: 15px;
  color: #4c3242;
}

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

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-field {
  display: grid;
  gap: 6px;
}

.contact-form .form-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--plum-800);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: #2a1322;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(153, 51, 102, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .contact-form__submit {
  justify-self: start;
}

.contact-form__status {
  font-size: 14px;
  min-height: 20px;
}

.contact-form__status.ok {
  color: #1e7a46;
}

.contact-form__status.err {
  color: #b3261e;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #4c3242;
  cursor: pointer;
  line-height: 1.45;
}

.contact-form input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  accent-color: var(--berry);
  cursor: pointer;
}

.form-consent a,
.contact-form__legal a {
  color: var(--berry);
  text-decoration: underline;
}

.contact-form__legal {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--plum-900);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}

.footer-brand strong {
  display: block;
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--gold);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-nav a,
.footer-contacts a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  transition: color 0.18s ease;
}

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

.footer-contacts {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-contacts a {
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

/* Планшет */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* Мобильные */
@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: var(--plum-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 17px;
  }

  .nav-phone {
    margin: 8px 0 0;
    justify-content: center;
  }

  .hero-inner {
    padding-top: 48px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 16.5px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stats strong {
    font-size: 28px;
  }

  .hero-card {
    padding: 26px 22px;
  }

  .hero-card blockquote {
    font-size: 17px;
  }

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

  .service-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .service-item-side {
    justify-content: space-between;
    width: 100%;
  }

  .service-block {
    padding: 24px 20px;
  }

  .service-block-head {
    flex-direction: column;
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .brand-text strong {
    font-size: 15px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
