/* ==== Логотип ЧПО на главной ==== */
.logo-container {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== КНОПКИ ===== */
.btn,
.card-button,
.open-form,
.submit-btn,
.modal-contact,
.service-order-btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover,
.card-button:hover,
.open-form:hover,
.submit-btn:hover,
.modal-contact:hover,
.service-order-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Специфичные кнопки */
.open-form {
  display: block;
  margin: 20px auto;
  width: fit-content;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
}

/* ===== КАРТОЧКИ ===== */
/* Убираем .cards-container — он уже в layout.css */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 350px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card h3 {
  padding: 15px 15px 10px;
  color: var(--main-color);
  margin: 0;
  font-size: 1.3rem;
  text-align: center;
}

.card p {
  padding: 0 15px 15px;
  color: #666;
  flex-grow: 1;
  margin: 0;
}

.card-button {
  margin: 0;
  align-self: stretch;
  font-weight: 400;
}

.card-button:hover {
  background-color: #002d5a;
  transform: none;
}

/* ===== КАРУСЕЛЬ УСЛУГ НА ГЛАВНОЙ ===== */
.service-carousel {
  --carousel-card-width: 350px;
  --carousel-card-height: 570px;
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0 auto;
  padding: 42px 20px 12px;
  overflow: hidden;
}

.service-carousel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 150px;
  left: 50%;
  width: min(920px, 82vw);
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 91, 159, 0.13) 0%, rgba(178, 177, 255, 0.08) 48%, transparent 72%);
  filter: blur(8px);
  transform: translateX(-50%);
  pointer-events: none;
}

.service-carousel__heading {
  position: relative;
  z-index: 8;
  max-width: 760px;
  margin: 0 auto 10px;
  text-align: center;
}

.service-carousel__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 43, 92, 0.12);
  border-radius: 999px;
  color: #004a8f;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(0, 43, 92, 0.07);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-carousel__heading h2 {
  margin-bottom: 8px;
  color: #002b5c;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.service-carousel__heading p {
  margin: 0;
  color: #596675;
  text-align: center;
  font-size: 1rem;
}

.service-carousel__viewport {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.service-carousel .cards-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1280px;
  height: calc(var(--carousel-card-height) + 54px);
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.service-carousel .card {
  position: absolute;
  top: 22px;
  left: 50%;
  display: flex;
  width: min(var(--carousel-card-width), calc(100vw - 84px));
  max-width: none;
  height: var(--carousel-card-height);
  border: 1px solid rgba(0, 43, 92, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 55px rgba(0, 35, 75, 0.16);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%) scale(0.62);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    transform 720ms cubic-bezier(0.22, 0.82, 0.25, 1),
    opacity 520ms ease,
    filter 520ms ease,
    box-shadow 520ms ease;
  will-change: transform, opacity;
}

.service-carousel .card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  pointer-events: none;
}

.service-carousel .card.is-active {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateZ(105px) scale(1);
  filter: none;
  cursor: default;
}

.service-carousel .card.is-active:hover {
  box-shadow: 0 30px 70px rgba(0, 35, 75, 0.22);
  transform: translateX(-50%) translateY(-6px) translateZ(112px) scale(1.01);
}

.service-carousel .card.is-prev,
.service-carousel .card.is-next {
  z-index: 3;
  opacity: 0.72;
  pointer-events: auto;
  filter: saturate(0.78) brightness(0.94);
  cursor: pointer;
}

.service-carousel .card.is-prev {
  transform: translateX(calc(-50% - 315px)) rotateY(24deg) scale(0.82);
}

.service-carousel .card.is-next {
  transform: translateX(calc(-50% + 315px)) rotateY(-24deg) scale(0.82);
}

.service-carousel .card.is-far-prev,
.service-carousel .card.is-far-next {
  z-index: 1;
  opacity: 0.2;
  pointer-events: auto;
  filter: saturate(0.55) brightness(0.9);
  cursor: pointer;
}

.service-carousel .card.is-far-prev {
  transform: translateX(calc(-50% - 525px)) rotateY(34deg) scale(0.65);
}

.service-carousel .card.is-far-next {
  transform: translateX(calc(-50% + 525px)) rotateY(-34deg) scale(0.65);
}

.card-media {
  position: relative;
  flex: 0 0 205px;
  overflow: hidden;
}

.service-carousel .card-media::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 29, 61, 0.48));
  pointer-events: none;
}

.service-carousel .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 0.82, 0.25, 1);
}

.service-carousel .card.is-active:hover img {
  transform: scale(1.045);
}

.card-icon {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  color: #002b5c;
  background: linear-gradient(135deg, #fff48b, #ffd700);
  box-shadow: 0 12px 26px rgba(0, 24, 52, 0.28);
  font-size: 1.35rem;
  transform: rotate(-4deg);
}

.card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 23px 24px 16px;
}

.service-carousel .card h3 {
  margin: 0 0 15px;
  padding: 0;
  color: #002b5c;
  font-size: 1.3rem;
  line-height: 1.18;
  text-align: left;
}

.card-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #536170;
}

.card-features li {
  display: grid;
  grid-template-columns: 19px 1fr;
  align-items: start;
  gap: 9px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.card-features i {
  margin-top: 2px;
  color: #00875a;
  font-size: 0.9rem;
}

.service-carousel .card-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  min-height: 50px;
  margin: 0 24px 22px;
  padding: 13px 17px;
  border-radius: 13px;
  background: linear-gradient(135deg, #002b5c, #005b9f);
  box-shadow: 0 10px 22px rgba(0, 43, 92, 0.18);
  font-weight: 700;
}

.service-carousel .card-button i {
  transition: transform 220ms ease;
}

.service-carousel .card-button:hover {
  color: #fff;
  background: linear-gradient(135deg, #003d7a, #0071c8);
  box-shadow: 0 13px 28px rgba(0, 43, 92, 0.25);
  transform: translateY(-2px);
}

.service-carousel .card-button:hover i {
  transform: translateX(4px);
}

.carousel-control {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 43, 92, 0.14);
  border-radius: 50%;
  color: #002b5c;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 35, 75, 0.17);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: transform 220ms ease, color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  color: #002b5c;
  background: #ffd700;
  box-shadow: 0 16px 38px rgba(0, 35, 75, 0.24);
  transform: translateY(-50%) scale(1.08);
}

.carousel-control--prev {
  left: 18px;
}

.carousel-control--next {
  right: 18px;
}

.carousel-navigation {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 36px;
  margin-top: -6px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 43, 92, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(0, 43, 92, 0.08);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #a9b5c1;
  box-shadow: none;
  transition: width 260ms ease, border-radius 260ms ease, background-color 260ms ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: #47759e;
}

.carousel-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #005b9f;
}

.carousel-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 43, 92, 0.1);
  border-radius: 50%;
  color: #536170;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(0, 43, 92, 0.08);
  font-size: 0.76rem;
}

.carousel-toggle:hover,
.carousel-toggle:focus-visible {
  color: #fff;
  background: #005b9f;
}

.service-carousel:focus-visible {
  outline: 3px solid rgba(0, 91, 159, 0.32);
  outline-offset: -3px;
}

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

@media (max-width: 1100px) {
  .service-carousel .card.is-prev {
    transform: translateX(calc(-50% - 265px)) rotateY(24deg) scale(0.8);
  }

  .service-carousel .card.is-next {
    transform: translateX(calc(-50% + 265px)) rotateY(-24deg) scale(0.8);
  }

  .service-carousel .card.is-far-prev {
    transform: translateX(calc(-50% - 445px)) rotateY(34deg) scale(0.62);
  }

  .service-carousel .card.is-far-next {
    transform: translateX(calc(-50% + 445px)) rotateY(-34deg) scale(0.62);
  }
}

@media (max-width: 760px) {
  .service-carousel {
    --carousel-card-width: min(340px, calc(100vw - 62px));
    --carousel-card-height: 556px;
    padding: 30px 0 10px;
  }

  .service-carousel__heading {
    padding: 0 22px;
  }

  .service-carousel__eyebrow {
    font-size: 0.68rem;
  }

  .service-carousel__heading p {
    font-size: 0.92rem;
  }

  .service-carousel .cards-container {
    height: calc(var(--carousel-card-height) + 42px);
  }

  .service-carousel .card {
    top: 16px;
    width: var(--carousel-card-width);
  }

  .service-carousel .card.is-prev {
    opacity: 0.38;
    transform: translateX(calc(-50% - 66vw)) rotateY(22deg) scale(0.76);
  }

  .service-carousel .card.is-next {
    opacity: 0.38;
    transform: translateX(calc(-50% + 66vw)) rotateY(-22deg) scale(0.76);
  }

  .service-carousel .card.is-far-prev,
  .service-carousel .card.is-far-next {
    opacity: 0;
    pointer-events: none;
  }

  .card-media {
    flex-basis: 185px;
  }

  .card-content {
    padding: 20px 21px 14px;
  }

  .service-carousel .card h3 {
    font-size: 1.2rem;
  }

  .card-features {
    gap: 8px;
  }

  .card-features li {
    font-size: 0.87rem;
  }

  .service-carousel .card-button {
    margin: 0 21px 20px;
  }

  .carousel-control {
    top: calc(50% + 34px);
    width: 44px;
    height: 44px;
  }

  .carousel-control--prev {
    left: 7px;
  }

  .carousel-control--next {
    right: 7px;
  }
}

@media (max-width: 420px) {
  .service-carousel {
    --carousel-card-height: 548px;
  }

  .service-carousel__heading h2 {
    font-size: 1.65rem;
  }

  .service-carousel__heading p {
    max-width: 320px;
    margin: 0 auto;
  }

  .card-media {
    flex-basis: 172px;
  }

  .card-icon {
    right: 17px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .card-content {
    padding: 18px 19px 12px;
  }

  .service-carousel .card h3 {
    margin-bottom: 12px;
    font-size: 1.13rem;
  }

  .card-features li {
    grid-template-columns: 17px 1fr;
    gap: 7px;
    font-size: 0.82rem;
  }

  .service-carousel .card-button {
    min-height: 46px;
    margin: 0 19px 18px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-carousel .card,
  .service-carousel .card img,
  .carousel-control,
  .carousel-dot,
  .service-carousel .card-button i {
    transition-duration: 0.01ms !important;
  }
}

/* ===== ФОРМА ОБРАТНОЙ СВЯЗИ ===== */
.feedback-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  display: none;
}

.feedback-form.active {
  display: block;
}

.form-content {
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.close-btn:hover {
  color: var(--accent-color);
}

.feedback-form h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--main-color);
}

.feedback-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid var(--main-color);
  border-color: var(--main-color);
}

.error-message {
  color: var(--accent-color);
  font-size: 0.875rem;
  min-height: 1.2rem;
  margin-bottom: 10px;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal,
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  overflow-y: auto;
}

.modal-content,
.service-modal-content {
  background: white;
  padding: 30px;
  margin: 60px auto;
  max-width: 800px;
  width: 90%;
  border-radius: var(--radius);
  position: relative;
}

.modal-close,
.service-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-close:hover,
.service-modal-close:hover {
  color: var(--accent-color);
}

/* Список услуг в модалке */
.services-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-item {
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  position: relative;
}

.service-item:hover {
  background-color: #f0f7ff;
  color: var(--main-color);
}

.service-item i {
  width: 24px;
  text-align: center;
}

.service-tooltip {
  display: none;
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 10;
}

.service-item:hover .service-tooltip {
  display: block;
}

/* Адаптивность компонентов */
@media (max-width: 600px) {
  .feedback-form {
    width: 95%;
    padding: 20px;
  }

  .modal-content,
  .service-modal-content {
    margin: 20px auto;
    padding: 20px;
  }

  .card {
    max-width: 100%;
  }
}

/* ========== Страницы услуг =========== */

.service-page {
    padding: 60px 0;
}

.service-hero {
    background: linear-gradient(135deg, #e3bcd2 0%, #004a8f 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.service-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-hero > p {
    max-width: 820px;
    margin: 0 auto 24px;
    text-align: center;
    font-size: 1.08rem;
}

.service-description,
.service-benefits,
.service-prices,
.service-faq {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.service-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card,
.benefit-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s;
}

.service-card:hover,
.benefit-item:hover {
    transform: translateY(-5px);
}

.service-card i,
.benefit-item i {
    font-size: 3rem;
    color: #002b5c;
    margin-bottom: 20px;
}

.prices-table {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.price-row:last-child {
    border-bottom: none;
}

.price-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 20px;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
}

.faq-answer {
    padding: 15px 20px;
    display: none;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Кнопка MAX в футере */
.btn-max {
  color: #fff;
  background-color: #002b5c;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-max:hover {
  background-color: #003d7a;
  transform: translateY(-2px);
}

.btn-max {
  transform: translateY(0);
}

/* ========== Разделы, статьи и контакты =========== */
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 0;
  color: var(--light-text);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--main-color);
}

.content-section {
  padding: 54px 0;
  border-bottom: 1px solid #e5e9ef;
}

.content-section:last-child {
  border-bottom: 0;
}

.content-intro {
  max-width: 820px;
  margin: 0 auto 32px;
  color: #4a5563;
  font-size: 1.06rem;
}

.content-intro,
.content-section > .container > h2 {
  text-align: center;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.content-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.content-card i {
  margin-bottom: 18px;
  color: var(--main-color);
  font-size: 2.4rem;
}

.content-card h2,
.content-card h3 {
  color: var(--main-color);
}

.content-card p {
  flex-grow: 1;
}

.content-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-content h2 {
  margin-top: 1.6em;
  color: var(--main-color);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin-top: 1.3em;
}

.article-content p,
.article-content li {
  font-size: 1.02rem;
}

.article-content ul,
.article-content ol,
.check-list {
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}

.article-content ul,
.check-list {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li,
.check-list li {
  margin-bottom: 0.65em;
}

.article-meta {
  margin-bottom: 24px;
  color: var(--light-text);
  font-size: 0.92rem;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--main-color);
  border-radius: 0 8px 8px 0;
  background: #eef5fc;
}

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

.page-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-list i {
  width: 24px;
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.template-box {
  margin: 20px 0;
  padding: 22px;
  background: #f8f9fa;
  border: 1px dashed #aeb8c4;
  border-radius: 10px;
}

/* ========== Конфиденциальность и согласие =========== */
.footer-privacy {
  display: inline;
  font-size: 0.9rem !important;
}

.footer-privacy a,
.cookie-settings-button {
  color: #002b5c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings-button {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}

.footer-privacy a:hover,
.footer-privacy a:focus-visible,
.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  color: #fff;
}

.form-privacy-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 16px;
  color: #263342;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}

.form-privacy-consent input[type="checkbox"] {
  flex: 0 0 19px;
  width: 19px !important;
  height: 19px;
  margin: 1px 0 0 !important;
  accent-color: var(--main-color);
}

.form-privacy-consent a {
  color: var(--main-color);
  font-weight: 600;
}

.form-security-note {
  margin: -4px 0 14px;
  color: #536273;
  font-size: 0.82rem;
  line-height: 1.4;
}

[data-analytics-src]:not([src]),
#informer {
  display: none;
}

html.analytics-consent-granted #informer.show {
  display: block;
}

.cookie-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100% - 32px));
  padding: 22px 54px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #001d3d, #003d7a);
  box-shadow: 0 18px 50px rgba(0, 20, 45, 0.35);
  transform: translateX(-50%);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.22rem;
}

.cookie-consent p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.cookie-consent a {
  color: #fff4a8;
  font-weight: 700;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent__actions button {
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cookie-consent__actions button:hover {
  transform: translateY(-1px);
}

.cookie-consent__actions .cookie-consent__accept {
  color: #002b5c;
  background: #ffd700;
}

.cookie-consent__actions .cookie-consent__accept:hover {
  color: #002b5c;
  background: #ffe14a;
}

.cookie-consent__deny {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: transparent;
}

.cookie-consent__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible,
.form-privacy-consent a:focus-visible,
.form-privacy-consent input:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 3px;
}

.privacy-details dt {
  margin-top: 18px;
  color: var(--main-color);
  font-weight: 700;
}

.privacy-details dd {
  margin: 4px 0 0;
}

.table-container {
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid #dce3eb;
  border-radius: 10px;
}

.table-container table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.table-container th,
.table-container td {
  padding: 13px 15px;
  border-bottom: 1px solid #e5e9ef;
  text-align: left;
  vertical-align: top;
}

.table-container th {
  color: #fff;
  background: var(--main-color);
}

.table-container tr:last-child td {
  border-bottom: 0;
}

.table-container code {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 22px 18px;
  }

  .cookie-consent {
    left: 0;
    bottom: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    padding: 20px 20px 18px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    transform: none;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions button {
    width: 100%;
  }

  .cookie-consent__close {
    top: 5px;
    right: 5px;
    width: 34px !important;
  }
}
