/**
 * Base layout shared by all front templates.
 *
 * @package CSMC
 */

.csmc-body {
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

.csmc-wrap {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.csmc-wrap a {
  color: inherit;
  text-decoration: none;
}

.csmc-wrap a:hover,
.csmc-wrap a:focus {
  text-decoration: underline;
}

.csmc-logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}

.csmc-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.csmc-sub {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin: 0 0 1.25rem;
  opacity: 0.9;
  font-weight: 500;
}

.csmc-desc {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  font-size: 1.05rem;
  opacity: 0.9;
}

.csmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.csmc-btn:hover,
.csmc-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.csmc-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.csmc-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  justify-content: center;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.csmc-social a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
}

.csmc-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: center;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.csmc-countdown li {
  min-width: 3.2rem;
}

.csmc-countdown span {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.15rem;
}

.csmc-screen-reader {
  position: absolute;
  left: -9999em;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 600px) {
  .csmc-countdown {
    font-size: 0.9rem;
  }
  .csmc-countdown li {
    min-width: 3.5rem;
  }
}
