:root {
  --bg-primary: #1f3044;
  --bg-secondary: #283748;
  --text-main: #a09ce3;
  --text-light: #f5eded;
  --accent-soft: #6157e1;
  --shadow-dark: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-main);
}

body.modal-open {
  overflow: hidden;
}

main {
  min-height: 100vh;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.center-block {
  text-align: center;
  padding: 3.8rem 0 3rem;
}

.welcomeblock {
  background: radial-gradient(circle at top, #2f4360, var(--bg-secondary));
  color: var(--text-light);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-image-wrap {
  margin: 2.2rem auto 2rem;
  width: min(460px, 78vw);
  border-radius: 1000px;
  overflow: hidden;
  box-shadow: 0 24px 44px var(--shadow-dark);
}

.hero-image-wrap img {
  width: 100%;
  display: block;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 600;
}

.personblock {
  background: linear-gradient(180deg, var(--bg-primary), #172535);
  padding: 3.2rem 0 0;
}

.narrow {
  width: min(900px, calc(100% - 2rem));
}

.intro-text {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--text-main);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.focus-list {
  margin: 0 0 1.4rem 1.1rem;
  padding: 0;
  line-height: 1.7;
}

.contact-line {
  margin: 0;
  line-height: 1.7;
  font-size: 1.02rem;
}

.contact-line a {
  color: var(--text-light);
  font-weight: 600;
}

.tabs-area {
  margin-top: 3rem;
  padding-bottom: 0;
}

.software-showcase {
  margin-top: 4rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.4rem 0 3.2rem;
  border-radius: 0.8rem;
  background: radial-gradient(circle at top, #2f4360, var(--bg-secondary));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.software-title {
  margin: 0 auto 1rem;
  width: min(1100px, calc(100% - 2rem));
  color: var(--text-light);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  margin-bottom: 0;
}

.software-card {
  background: rgba(40, 55, 72, 0.92);
  border: 1px solid rgba(245, 237, 237, 0.18);
  border-radius: 0.7rem;
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.software-card h4 {
  margin: 0 0 0.4rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

.software-card p {
  margin: 0 0 0.7rem;
  line-height: 1.5;
}

.software-card a {
  color: var(--text-light);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.software-card.is-placeholder {
  border-style: dashed;
  opacity: 0.88;
}

.placeholder-label {
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tabs-title {
  margin: 0 0 1rem;
  color: var(--text-light);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.tab-btn {
  border: 0;
  background: var(--bg-secondary);
  color: var(--text-light);
  padding: 0.7rem 1.1rem;
  border-radius: 0.55rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-1px);
}

.tab-btn.active {
  background: #3a5370;
  box-shadow: 0 12px 25px rgba(7, 12, 18, 0.35);
}

.tab-panel {
  display: none;
  text-align: center;
  animation: fadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

.tab-image-wrap {
  width: min(900px, 100%);
  margin: 0 auto 1rem;
  padding: 0.75rem;
}

.tab-image-wrap img {
  max-width: 100%;
  max-height: 680px;
  object-fit: contain;
  border-radius: 0.7rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22);
}

.tab-description {
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.65;
  color: var(--text-light);
}

.footerblock {
  background: var(--bg-secondary);
  padding: 1.3rem 0 1.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-links a,
.footer-links button {
  color: var(--text-light);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.footer-links i {
  font-size: 1.3rem;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #ffffff;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  width: min(900px, calc(100% - 2rem));
  max-height: calc(100vh - 3rem);
  margin: 1.5rem auto;
  background: #f7f7fc;
  color: #202534;
  border-radius: 0.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.modal-header,
.modal-footer {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #d8d9e1;
}

.modal-footer {
  border-bottom: 0;
  border-top: 1px solid #d8d9e1;
  display: flex;
  justify-content: flex-end;
}

.modal-body {
  overflow-y: auto;
  padding: 1rem 1.2rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.close-btn,
.btn-close-modal {
  border: 0;
  background: #e8e9f5;
  color: #1d2435;
  font: inherit;
  border-radius: 0.45rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.close-btn {
  font-size: 1.3rem;
  line-height: 1;
}

.privacy-section h3 {
  margin: 1rem 0 0.4rem;
}

.privacy-section p {
  margin: 0;
  line-height: 1.55;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 1.7s ease, transform 4.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 220ms;
}

.delay-3 {
  transition-delay: 320ms;
}

.pulse-in {
  animation: pulseIn 0.9s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseIn {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  65% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .center-block {
    padding-top: 2.4rem;
  }

  .personblock {
    padding-top: 2.2rem;
  }

  .tab-image-wrap img {
    max-height: 360px;
  }

  .footer-links {
    gap: 0.75rem;
  }

  .software-grid {
    grid-template-columns: 1fr;
  }
}
