:root{
  /* iOS-like light theme (grouped background) */
  --bg: #f2f2f7;            /* iOS systemGray6 */
  --panel: #ffffff;         /* card background */
  --text: #111113;
  --muted: rgba(17,17,19,.62);
  --line: rgba(60,60,67,.18); /* iOS separator */
  --chip: rgba(120,120,128,.12);
  --accent: #ff9f0a;        /* iOS systemOrange */
  --accentSoft: rgba(255,159,10,.16);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadowSoft: 0 6px 18px rgba(0,0,0,.08);
  --radius: 22px;
  --radius2: 16px;
  --max: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html{ scroll-behavior: smooth; }
html,body{ margin:0; padding:0; font-family: var(--font); background: var(--bg); color: var(--text); }
a{ color: inherit; text-decoration: none; }
code{ background: rgba(0,0,0,.04); padding: 2px 6px; border-radius: 8px; border: 1px solid var(--line); }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(242,242,247,.78);
  border-bottom: 1px solid rgba(60,60,67,.16);
  padding-top: env(safe-area-inset-top);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding: 14px 0;
  gap: 12px;
}

.topbar__left{
  display:flex;
  align-items:center;
  gap: 12px;
  width: 100%;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang{ display:flex; align-items:center; }
.lang__select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(255,159,10,.35);
  background: rgba(255,255,255,.92);
  color: var(--text);
  padding: 10px 38px 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: .1px;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.65) 50%),
    linear-gradient(135deg, rgba(0,0,0,.65) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 54%,
    calc(100% - 12px) 54%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.lang__select:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,159,10,.18);
}

.brand{ display:flex; align-items:center; gap: 12px; }
.brand__logo{
  width: 38px; height: 38px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: var(--accentSoft);
  border: 1px solid rgba(255,159,10,.35);
  font-weight: 700;
}
.brand__title{ font-weight: 800; letter-spacing: .2px; }
.brand__subtitle{ color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.topbar__actions{ display:flex; gap:10px; flex-wrap: wrap; }

.btn{
  border: 1px solid rgba(255,159,10,.35);
  background: var(--accent);
  color: #111113;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .05s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  font-weight: 650;
  letter-spacing: .1px;
}
.btn:hover{ opacity: .92; }
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline: none; box-shadow: 0 0 0 4px rgba(255,159,10,.18); }
.btn--ghost{ background: rgba(255,159,10,.18); }

.hero{
  padding: 26px 0 14px;
}
.hero h1{ margin: 10px 0 8px; font-size: 36px; letter-spacing: -.2px; }
.hero p{ margin: 0 0 16px; color: var(--muted); line-height: 1.55; }

.search{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(60,60,67,.16);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadowSoft);
}
.search input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  padding: 10px 8px;
}
.search input::placeholder{ color: rgba(17,17,19,.45); }
.search__hint{
  color: var(--muted);
  font-size: 12.5px;
  padding: 0 8px 8px;
}

.quicknav{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 6px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,159,10,.32);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
}
.chip:hover{ background: var(--accentSoft); }

.cards{
  display:grid;
  gap: 14px;
  padding: 10px 0 40px;
}

.card{
  background: var(--panel);
  border: 1px solid rgba(60,60,67,.16);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadowSoft);
}
.card__head{
  display:flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.step{ display:none; }
.card h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: .1px;
}
.card p{
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.6;
}

.list{
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.6;
}
.list li{ margin: 6px 0; }

.shots{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.shots .shot{ margin: 0; }

.shot{
  margin: 12px 0 0;
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(60,60,67,.16);
  background: rgba(255,255,255,.9);
  cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.shot img{
  width: 100%;
  display:block;
}
.shot figcaption{
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12.5px;
  border-top: 1px solid rgba(60,60,67,.16);
}

.card.is-hidden{ display:none; }
.card.is-highlight{ outline: 2px solid rgba(255,159,10,.28); }

.footer{
  padding: 18px 0 40px;
  color: var(--muted);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footer__link{
  color: var(--text);
  opacity: .9;
}

.footer__note{
  margin-top: 12px;
  max-width: 80ch;
  font-size: 13px;
  line-height: 1.45;
}

.footer__note a{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__note a:hover{
  color: var(--text);
}

.lightbox{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 50;
}
.lightbox.is-open{ display:block; }
.lightbox__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.lightbox__content{
  position: relative;
  width: min(1100px, calc(100% - 24px));
  margin: 42px auto 0;
  background: #fff;
  border: 1px solid rgba(60,60,67,.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.lightbox.is-open .lightbox__content{
  transform: translateY(0);
  opacity: 1;
}
.lightbox__content img{
  width: 100%;
  display:block;
}
.lightbox__bar{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}

/* Mobile */
@media (max-width: 520px){
  .container{
    width: calc(100% - 24px);
  }

  .topbar__inner{
    padding: 10px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .topbar__left{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .lang{ width: 100%; }
  .lang__select{ width: 100%; }

  .brand__subtitle{ display:none; }

  .topbar__actions{
    width: 100%;
    gap: 8px;
  }
  .topbar__actions .btn{
    flex: 1 1 auto;
    width: 100%;
    padding: 10px 12px;
  }

  .hero{
    padding: 18px 0 10px;
  }
  .hero h1{
    font-size: 26px;
    line-height: 1.15;
  }

  .search{
    border-radius: 16px;
    padding: 8px;
  }
  .search input{
    font-size: 16px; /* комфортно на мобилке, меньше зума iOS */
    padding: 10px 8px;
  }

  .quicknav{
    gap: 8px;
    padding: 12px 0 4px;
  }
  .chip{
    font-size: 12.5px;
    padding: 8px 10px;
  }

  .cards{
    gap: 12px;
    padding: 8px 0 28px;
  }
  .card{
    padding: 14px 14px 12px;
  }
  .card__head{
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  .card h2{
    font-size: 18px;
  }
  .step{
    padding: 6px 9px;
  }

  .shot figcaption{
    padding: 10px;
  }

  .footer__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__note{
    font-size: 12.5px;
    max-width: none;
  }

  .lightbox__content{
    width: calc(100% - 16px);
    margin: 16px auto 0;
  }
  .lightbox__bar{
    flex-direction: column;
    align-items: flex-start;
  }
  #lightboxBtnClose{
    width: 100%;
  }
}
