/* gajdar.com – 900px layout, icons from Dizajn.png */

:root {
  --bg: #f8f6eb;
  --surface: #ffffff;
  --text: #0b1b33;
  --muted: #5b6575;
  --blue: #2f84fc;
  --blue-dark: #1f6fe0;
  --green: #34a853;
  --green-dark: #2a8f46;
  --orange: #f08c1a;
  --orange-dark: #d97a10;
  --border: #e7e4da;
  --shadow: 0 12px 32px rgba(11, 27, 51, 0.08);
  --container: 900px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header { background: var(--bg); }

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 6px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  top: 5px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 42px; height: 42px; }
.lang-switch {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}
.lang-switch:hover { color: var(--blue); }

.nav > .btn-blue {
  position: relative;
  top: 5px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}

.nav-links a.is-active { color: var(--blue); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 11px 22px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 132, 252, 0.3);
}
.btn-blue:hover { background: var(--blue-dark); }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(52, 168, 83, 0.28);
}
.btn-green:hover { background: var(--green-dark); }

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 140, 26, 0.28);
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-link {
  color: var(--blue);
  font-weight: 700;
  padding: 13px 6px;
}
.btn-link:hover { opacity: 0.85; }

/* Hero - mockup: ~57px under header, ~26px to next section */
.hero {
  padding: 40px 0 12px;
  overflow: visible;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
  align-items: center;
  overflow: visible;
}

.hero-grid > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero h1 .hero-title-lead { font-size: 1.1em; }
.hero h1 .hero-title-apps { font-size: 0.9em; }
.hero h1 .android { color: var(--green); }
.hero h1 .ios { color: var(--blue); }

.hero-lead {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  list-style: none;
  margin-bottom: 18px;
  max-width: 420px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.hero-points li:nth-child(2),
.hero-points li:nth-child(4) {
  position: relative;
  left: -10px;
}

.hero-points img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  max-width: 420px;
}

.hero-actions .btn {
  transform: translateX(35px);
}
.hero-actions .btn:hover {
  transform: translateX(35px) translateY(-1px);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.hero-visual img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Sections - mockup inter-section cream ~26-45px */
.section { padding: 14px 0 16px; }

.section-head {
  text-align: center;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

.txt-short { display: none; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.why-card { text-align: center; padding: 0 2px; }

.why-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.why-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.price-card {
  position: relative;
  border-radius: 16px;
  padding: 16px 14px 14px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.price-card.android { background: linear-gradient(180deg, #eef8f0 0%, #ffffff 42%); }
.price-card.ios { background: linear-gradient(180deg, #eef4ff 0%, #ffffff 42%); }
.price-card.both { background: linear-gradient(180deg, #fff4e8 0%, #ffffff 42%); }

.badge {
  display: none;
}

.price-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 0;
}

.price-top img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.price-top .combo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.price-top .combo img {
  width: 40px;
  height: 40px;
}

.price-top .combo .plus {
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
}

.price-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.price-from {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: 0.15em;
}
.price.android { color: var(--green); }
.price.ios { color: var(--blue); }
.price.both { color: var(--orange); }

.price-list {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  flex: 1;
}

.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: #2c3648;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.check.green { background: var(--green); }
.check.blue { background: var(--blue); }
.check.orange { background: var(--orange); }

.price-card .btn { width: 100%; }

/* Process */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 6px;
}

.process-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -4px;
  top: 18px;
  color: #9db7e8;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.process-step img {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
}

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Footer */
.site-footer {
  padding: 14px 0 20px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand img { width: 32px; height: 32px; }
.footer-copy { color: var(--muted); font-size: 0.92rem; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, 0.5);
  backdrop-filter: blur(3px);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  margin: 24px auto;
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(11, 27, 51, 0.28);
  flex-shrink: 0;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f5;
  color: #334155;
  font-size: 1.15rem;
  line-height: 1;
  z-index: 2;
}
.modal-dialog h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
  padding-right: 36px;
}
.modal-lead {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  outline: none;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 132, 252, 0.18);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.form-msg {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
}
.form-msg.is-ok { display: block; background: #e8f8ee; color: #0b5c2e; }
.form-msg.is-err { display: block; background: #fdeeee; color: #8a1f1f; }
.modal-dialog .btn { width: 100%; margin-top: 4px; }
.modal-dialog .btn[disabled] { opacity: 0.7; cursor: wait; }
#contactForm.is-sent .form-group,
#contactForm.is-sent .btn,
#contactForm.is-sent .hp { display: none; }
body.modal-open { overflow: hidden; touch-action: none; }

@media (max-width: 900px) {
  .why-grid,
  .process-row { grid-template-columns: 1fr 1fr; }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
  .process-step:not(:last-child)::after { display: none; }
}

@media (max-width: 760px) {
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    z-index: 50;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links a.is-active::after { display: none; }
  .nav .btn-blue { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

@media (max-width: 560px) {
  .why-grid,
  .process-row { grid-template-columns: 1fr; }
  .hero-points {
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
    max-width: none;
  }
  .hero-points li { font-size: 0.82rem; gap: 8px; }
  .hero-points img { width: 36px; height: 36px; }
  .txt-full { display: none; }
  .txt-short { display: inline; }
}
