/* /timeweb/ — страница с советами, где разместить проект. Подключается только на этой странице. */

.tw-choices {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.2rem);
  max-width: 64rem;
  margin: 0 0 clamp(2rem, 4.5vw, 3rem);
  padding: 0;
}

.tw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.15rem, 2.4vw, 1.5rem);
  border: 1px solid var(--surface-border);
  border-radius: .45rem;
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.tw-card:hover,
.tw-card:focus-within {
  border-color: #ffcc0066;
  background: var(--surface-raised);
}

/* Скриншот сервиса с постоянной маркировкой рекламы и ссылкой на реквизиты. */
.tw-card__shot {
  margin: 0 0 1.1rem;
  border: 1px solid var(--surface-border);
  border-radius: .35rem;
  background: var(--bg-deep);
  overflow: hidden;
}

.tw-card__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem .4rem;
  min-height: 2rem;
  padding: .25rem .6rem;
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-raised);
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}

.tw-card__bar a {
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #ffffff40;
  text-underline-offset: .2em;
}

.tw-card__bar a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.tw-card__bar a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: .1rem;
}

.tw-card__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 416;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.tw-card:hover .tw-card__shot img {
  transform: scale(1.03);
}

.tw-card__kicker {
  margin: 0;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tw-card h2,
.tw-card h3 {
  margin: .35rem 0 0;
  color: #fff;
  font-size: clamp(1.25rem, 2.1vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.tw-card__text {
  margin: .7rem 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.6;
}

.tw-card__list {
  list-style: none;
  display: grid;
  gap: .45rem;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.45;
}

.tw-card__list li {
  position: relative;
  padding-left: 1.5rem;
}

.tw-card__list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffcc00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.3 2.3 2.2 4.7-5'/%3E%3C/svg%3E") center / .75rem no-repeat,
    #ffcc001f;
}

.tw-card__spacer {
  flex: 1 1 auto;
  min-height: 1.25rem;
}

/* «Можно попробовать бесплатно» над кнопкой. */
.tw-card__trial {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .6rem;
  color: #9fe0a8;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}

.tw-card__trial:before {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #5fd16e;
  box-shadow: 0 0 0 3px #5fd16e2e;
}

.tw-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .55rem 1.1rem;
  border-radius: .25rem;
  background: var(--gold);
  color: #111;
  font-size: .92rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}

.tw-card__cta:hover {
  background: #ffe066;
}

.tw-card__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Вся карточка кликабельна, кнопка остаётся главной целью для клавиатуры. */
.tw-card__cta:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tw-card__cta svg {
  flex: none;
}

/* «Ещё советую»: сервис не по теме хостинга, поэтому отдельно и компактнее. */
.tw-more {
  max-width: 64rem;
  margin: 0 0 clamp(2.2rem, 5vw, 3.4rem);
}

.tw-more__title {
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tw-extra {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  height: auto;
  padding: 1rem;
}

.tw-extra .tw-card__shot {
  margin: 0;
}

.tw-extra .tw-card__text {
  margin-top: .45rem;
  font-size: .9rem;
}

.tw-extra h3 {
  font-size: 1.15rem;
}

.tw-extra__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 52rem) {
  .tw-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .tw-choices {
    row-gap: 1.6rem;
  }

  .tw-extra {
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
    padding: clamp(1.15rem, 2.4vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tw-card,
  .tw-card__cta,
  .tw-card__shot img {
    transition: none;
  }

  .tw-card:hover .tw-card__shot img {
    transform: none;
  }
}
