/**
 * Welcome landing — добре дошли
 */
body[data-page="landing"] {
  background: #fff8f6;
}

body[data-page="landing"] #main {
  padding: 0;
}

.tvor-landing {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.tvor-landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(168, 28, 68, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 90%, rgba(204, 25, 57, 0.07), transparent 50%),
    linear-gradient(165deg, #fff8f6 0%, #ffe9e9 48%, #fff5f5 100%);
  pointer-events: none;
}

.tvor-landing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a81c44' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tvor-landing-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  width: min(var(--container, 1200px), calc(100% - 2rem));
}

.tvor-landing-title {
  margin: 0 0 1rem;
  font-family: var(--font-body, 'Simbal', Georgia, serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text, #3a3a3a);
  opacity: 0;
  animation: tvor-landing-rise 0.7s ease forwards;
}

.tvor-landing-text {
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.65;
  color: var(--color-muted, #54595f);
  max-width: 38rem;
  opacity: 0;
  animation: tvor-landing-rise 0.7s ease 0.12s forwards;
}

.tvor-landing-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  animation: tvor-landing-rise 0.75s ease 0.2s forwards;
}

.tvor-landing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 1.5vw, 1.1rem);
  width: 100%;
  max-width: 560px;
  background: transparent;
}

.tvor-landing-visual picture {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: 270px;
}

.tvor-landing-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: transparent;
}

/* Desktop: larger covers + crisp retina, no transform blur */
@media (min-width: 901px) {
  .tvor-landing-aside {
    animation-name: tvor-landing-fade;
  }

  .tvor-landing-visual {
    max-width: min(680px, 100%);
    gap: clamp(0.9rem, 1.6vw, 1.35rem);
  }

  .tvor-landing-visual picture {
    max-width: 320px;
  }

  .tvor-landing-visual img {
    border-radius: 16px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

.tvor-landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14rem;
  padding: 0.95rem 1.75rem;
  font-size: 1.08rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(168, 28, 68, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.tvor-landing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(168, 28, 68, 0.28);
  text-decoration: none;
}

@keyframes tvor-landing-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tvor-landing-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tvor-landing-title,
  .tvor-landing-text,
  .tvor-landing-aside {
    opacity: 1;
    animation: none;
  }

  .tvor-landing-cta {
    transition: none;
  }
}

@media (max-width: 900px) {
  .tvor-landing {
    min-height: 0;
    padding-top: 1.5rem;
  }

  .tvor-landing-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .tvor-landing-copy {
    order: 0;
    text-align: center;
    margin-inline: auto;
    max-width: 34rem;
  }

  .tvor-landing-title {
    text-align: center;
    text-wrap: balance;
    margin-inline: auto;
    max-width: 22em;
  }

  .tvor-landing-text {
    text-align: center;
    text-wrap: pretty;
    margin-inline: auto;
    max-width: 36em;
  }

  .tvor-landing-aside {
    order: 1;
  }

  .tvor-landing-visual {
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .tvor-landing-visual {
    max-width: 100%;
  }

  .tvor-landing-visual img {
    max-width: none;
  }

  .tvor-landing-cta {
    width: 100%;
    max-width: 22rem;
  }
}
