/* KinApps — palette aligned with /fnt/ */
:root {
  --bg: #EBECF0;
  --header-bg: #F0F2F5;
  --surface: #ffffff;
  --text: #6D7587;
  --text-heading: #5c6474;
  --accent: #1654F0;
  --accent-hover: #1246d4;
  --border-soft: rgba(109, 117, 135, 0.18);
  --shadow-header: 0 6px 28px rgba(109, 117, 135, 0.14);
  --shadow-card: 0 16px 48px rgba(109, 117, 135, 0.12);
  --shadow-lang: 0 4px 18px rgba(109, 117, 135, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Manrope, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.home main {
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header — logo | centered nav | language */
.header {
  padding: 28px 0 20px;
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px 28px;
  padding: 16px 28px;
  background: var(--header-bg);
  border-radius: 24px;
  box-shadow: var(--shadow-header);
}

.header-left {
  justify-self: start;
  min-width: 0;
}

.header-nav {
  justify-self: center;
}

.header-right {
  justify-self: end;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand:hover .brand-name {
  color: var(--accent);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 14px rgba(109, 117, 135, 0.2);
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  transition: color 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lang);
}

.flag {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #b22234 0 33%, #ffffff 33% 66%, #3c3b6e 66%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

html[lang="en"] .flag {
  background: linear-gradient(180deg, #b22234 0 33%, #ffffff 33% 66%, #3c3b6e 66%);
}

html[lang="ru"] .flag {
  background: linear-gradient(180deg, #ffffff 0 33%, #0c47a1 33% 66%, #d52b1e 66%);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  background: transparent;
  font: 600 15px/1 Manrope, system-ui, sans-serif;
  color: var(--text-heading);
  padding: 0 26px 0 2px;
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
}

.lang-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-heading);
  border-bottom: 2px solid var(--text-heading);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  opacity: 0.75;
}

.intro {
  padding: 72px 0 40px;
  text-align: center;
}

.intro-text {
  margin: 0 auto;
  max-width: 520px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
}

.feature {
  padding: 0 0 100px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 64px 72px;
  background: var(--surface);
  border-radius: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.feature-media {
  text-align: center;
}

.feature-media img {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(109, 117, 135, 0.25));
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.feature-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.feature-desc {
  margin: 0;
  max-width: 440px;
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
}

.cta {
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 12px 28px rgba(22, 84, 240, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 16px 36px rgba(22, 84, 240, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-icon {
  width: 20px;
  height: 24px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 28"><path fill="%23ffffff" d="M16.8 14.9c.03 3.3 2.9 4.3 2.93 4.3-.02.06-.46 1.6-1.5 3.1-.9 1.2-1.8 2.4-3.3 2.4-1.45 0-1.92-.8-3.57-.8-1.64 0-2.17.8-3.54.8-1.42 0-2.52-1.3-3.44-2.5C3 20.6 1.48 16 3.3 12.7c.93-1.7 2.6-2.7 4.4-2.7 1.37 0 2.67.9 3.57.9.86 0 2.46-1.1 4.15-.93.71.03 2.7.29 3.98 2.2-.1.06-2.34 1.37-2.3 3.73Zm-2.73-7.3c.75-.9 1.27-2.1 1.14-3.33-1.1.04-2.4.74-3.18 1.64-.7.8-1.3 2-1.14 3.26 1.2.09 2.43-.67 3.18-1.57Z"/></svg>') center/contain no-repeat;
}

.site-footer {
  padding: 0 0 64px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 36px 48px;
  background: var(--header-bg);
  border-radius: 24px;
  box-shadow: var(--shadow-header);
  border: 1px solid var(--border-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand-mark {
  flex-shrink: 0;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(109, 117, 135, 0.18);
}

.footer-brand-mark img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
}

.footer-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.footer-tagline {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-weight: 600;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-weight: 600;
  color: var(--text-heading);
}

.page-main {
  padding: 56px 0 100px;
}

.content-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 52px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-card h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.content-card p {
  margin: 0;
  font-size: 17px;
  color: var(--text);
  line-height: 1.65;
}

.content-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.content-card a:hover {
  text-decoration: underline;
}

.contact-line {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
}

.contact-line span {
  margin-right: 8px;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 40px;
    text-align: center;
  }

  .feature-copy {
    align-items: center;
  }

  .feature-desc {
    max-width: 520px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-meta {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 18px 20px;
  }

  .header-left {
    justify-self: center;
  }

  .header-nav {
    justify-self: center;
    order: 2;
  }

  .header-right {
    justify-self: center;
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .nav-link.is-active::after {
    bottom: -6px;
  }

  .intro {
    padding: 48px 0 28px;
  }

  .intro-text {
    font-size: 18px;
  }

  .feature-grid {
    padding: 36px 24px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    padding: 28px 24px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-card {
    padding: 32px 24px;
  }
}
