/* ===== ЛИПКИЙ ПОДВАЛ ===== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main.content {
    flex: 1;
}

/* ===== FOOTER ===== */
/* ===== FOOTER (АНИМАЦИЯ ПОЯВЛЕНИЯ) ===== */
.footer {
    /*background-color: var(--footer-bg, #111);*/
   /* color: var(--footer-text, #ccc);*/

    opacity: 0;
    transform: translateY(60px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1),
                transform .8s cubic-bezier(.16,1,.3,1);
    will-change: transform, opacity;
}

/* финальное состояние */
.footer.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== КОНТЕЙНЕР ===== */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;

    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* tablet */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* desktop */
@media (min-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* mobile */
@media (max-width: 480px) {
    .footer-container {
        padding: 2rem 1.25rem;
    }
}

/* ===== БЛОКИ ===== */
.footer-block h3 {
    margin-bottom: 1rem;
}

.footer-block ul {
    list-style: none;
    padding: 0;
}

.footer-block li {
    margin-bottom: 0.6rem;
}

/* ===== FOOTER LINKS (ОБЩИЕ) ===== */
.footer a {
    /*color: var(--footer-text, #ccc);*/
    text-decoration: none;
    transition: color .2s ease;
}

.footer a:hover {
    color: #3498db;
}

/* ===== FOOTER NAV ===== */
.footer-nav a {
    display: inline-block;
    position: relative;
    padding: 0.25rem 0.25rem;
}

/* ===== ACTIVE LINK ===== */
.footer-nav a.active,
.footer-nav a.active:hover {
    color: #ffffff;
    font-weight: 600;

    background: rgba(52, 152, 219, 0.18);
    border-left: 3px solid #3498db;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.footer-nav a.active {
    background: rgba(52, 152, 219, 0.95);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}

/* ================= FOOTER BOTTOM ================= */
.footer-bottom {
  /*background: #000;*/
  /*color: #cbd5e1;*/
  padding: 2.5rem 1rem 1.5rem;
  font-size: 0.75rem;
}

.footer-bottom .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== OWNER LINE ===== */

.owner {
  text-align: center;
  /*margin-bottom: 1.8rem;*/
}

.owner strong {
  /*color: #ffffff;*/
  font-weight: 600;
  letter-spacing: 0.5px;
}

.owner span {
  color: #475569;
  margin: 0 0.4rem;
}

.owner a {
  color: #60a5fa;
  text-decoration: none;
  transition: 0.3s ease;
}

.owner a:hover {
  color: #93c5fd;
}

/* ===== SECOND LEVEL GRID ===== */

.second_level {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ===== LEFT ===== */

.Left_side {
  text-align: left;
  font-size: 0.65rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

/* ===== CENTER ===== */

.Center {
  text-align: center;
  font-size: 0.65rem;
  color: #64748b;
  /*line-height: 1.6;*/
}

.Center p {
  margin: 0.0rem 0;
}

.Center a {
  color: #fbbf24;
  text-decoration: none;
  transition: 0.3s ease;
}

.Center a:hover {
  opacity: 0.8;
}

/* ===== PHONE ===== */

.time_call {
  margin-top: 0.0rem;
  font-size: 0.65rem;
}

.time_call span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.6rem;
  opacity: 0.7;
}

/* ===== RIGHT ===== */

.Right_side {
  text-align: right;
  font-size: 0.65rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ===== COPYRIGHT ===== */

.footer-copy {
  margin-top: 0rem;
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0rem;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .second_level {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .Left_side,
  .Right_side {
    text-align: center;
  }
}