:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-strong: #ececee;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --link: #0066cc;
  --shadow: 0 18px 50px rgba(0, 0, 0, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dark-theme {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1d1d1f;
  --surface-strong: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --line: #424245;
  --link: #2997ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 max(24px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: inline-flex; align-items: center; }
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand-name span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 28px; font-size: 12px; }
.main-nav a { color: var(--text); opacity: .82; }
.main-nav a:hover { opacity: 1; }
.theme-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--surface); }
.theme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

main { width: 100%; }
.hero {
  width: min(1200px, calc(100% - 32px));
  min-height: 720px;
  margin: 16px auto 0;
  padding: 76px 40px 16px;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  text-align: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  justify-self: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.about-strip h2,
.dialog-content h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
.hero h1 {
  margin: 0;
  font-size: clamp(58px, 8vw, 96px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.07em;
}
.hero h1 span { color: var(--muted); }
.hero-description {
  max-width: 560px;
  margin: 22px auto 18px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  letter-spacing: -.015em;
}
.hero-link {
  color: var(--link);
  font-size: 16px;
  font-weight: 500;
}
.hero-link:hover { text-decoration: underline; }
.hero-link span { display: none; }
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.shop-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, opacity .2s ease;
}
.shop-button:hover { opacity: .88; transform: translateY(-1px); }
.shop-button span { color: #8fc5ff; }
body.dark-theme .shop-button { background: #f5f5f7; color: #1d1d1f; }
.telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.telegram-link span {
  color: var(--link);
  font-size: 16px;
}
.telegram-link:hover { color: var(--link); }
.hero-art {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  align-self: end;
}
.hero-orbit { display: none; }
.hero-phone {
  position: absolute;
  width: 175px;
  height: 340px;
  border: 5px solid #303236;
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}
.phone-back {
  transform: translate(-58px, 12px) rotate(-10deg);
  background: linear-gradient(145deg, #cfd8d5, #87969a);
}
.camera {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 4px solid #4d5658;
  border-radius: 50%;
  background: radial-gradient(circle, #111 0 32%, #69787a 36% 58%, #263033 62%);
}
.camera-a { top: 21px; left: 19px; }
.camera-b { top: 66px; left: 19px; }
.camera-c { top: 43px; left: 62px; }
.phone-flash {
  position: absolute;
  top: 25px;
  left: 69px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8e8de;
}
.phone-front {
  transform: translate(58px, 22px) rotate(8deg);
  overflow: hidden;
  background: linear-gradient(150deg, #dce8eb, #94adb7 50%, #3e626f);
}
.dynamic-island {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #0b0b0c;
}
.screen-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 65%, #ffffffaa, transparent 34%), linear-gradient(150deg, #d8e5e8, #527580);
}
.screen-time, .screen-date {
  position: absolute;
  z-index: 1;
  width: 100%;
  left: 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 5px #0007;
}
.screen-time { top: 58px; font-size: 44px; font-weight: 500; letter-spacing: -.06em; }
.screen-date { top: 108px; font-size: 9px; }
.screen-widget {
  position: absolute;
  z-index: 1;
  left: 19px;
  bottom: 34px;
  width: 128px;
  height: 58px;
  border: 1px solid #ffffff77;
  border-radius: 14px;
  background: #ffffff22;
  backdrop-filter: blur(8px);
}

.articles-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 120px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.06em;
}
.search-box {
  width: 220px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search-box svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.search-box input::placeholder { color: var(--muted); }
.filter-row { display: flex; gap: 8px; margin: 28px 0 32px; }
.filter-chip {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
}
.filter-chip:hover { background: var(--surface-strong); }
.filter-chip.is-active { background: var(--text); color: var(--bg); }
.filter-chip span { margin-left: 5px; opacity: .65; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 20px;
}
.article-card { min-width: 0; cursor: pointer; }
.card-art {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--art-bg, var(--surface));
}
.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--art-gradient);
  filter: saturate(.65);
}
.art-orb {
  position: absolute;
  width: 190px;
  height: 190px;
  left: calc(50% - 95px);
  top: 44px;
  border-radius: 50%;
  background: #ffffff66;
  filter: blur(1px);
}
.art-device {
  position: absolute;
  z-index: 2;
  top: 35px;
  left: 50%;
  width: 116px;
  height: 218px;
  transform: translateX(-50%) rotate(-7deg);
  border: 5px solid #303236;
  border-radius: 24px;
  background: var(--device-gradient);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}
.art-device::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #ffffff80;
  border-radius: 16px;
}
.art-device::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  width: 42px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #101211;
}
.art-camera {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 14px;
  width: 25px;
  height: 25px;
  border: 3px solid #59615b;
  border-radius: 50%;
  background: radial-gradient(circle, #111 0 35%, #737c76 45%, #202521 60%);
}
.art-camera.two { top: 49px; }
.art-camera.three { top: 33px; left: 44px; }
.art-device.screen-device {
  transform: translateX(-50%) rotate(7deg);
  background: var(--screen-gradient);
}
.screen-device .art-camera { display: none; }
.card-tag {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
}
.card-arrow {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  font-size: 16px;
  transition: transform .18s ease;
}
.article-card:hover .card-arrow { transform: translate(2px, -2px); }
.card-info { padding: 16px 3px 0; }
.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.card-info h3 {
  margin: 10px 0 7px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.card-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.card-price {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
}
.empty-state { padding: 40px 0; color: var(--muted); text-align: center; }

.shop-callout {
  width: min(1200px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 38px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.shop-callout > div { max-width: 650px; }
.shop-callout h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.shop-callout p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.buyer-guide {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 64px;
}
.buyer-guide .section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.buyer-guide .section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.06em;
}
.guide-intro {
  max-width: 360px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide-card {
  min-height: 220px;
  padding: 26px;
  border-radius: 20px;
  background: var(--surface);
}
.guide-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
.guide-card h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  letter-spacing: -.035em;
}
.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--link);
  font-size: 15px;
  font-weight: 600;
}
.guide-link:hover { text-decoration: underline; }

.about-strip {
  width: min(1200px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin: 0 auto 80px;
  padding: 64px 7%;
  border-radius: 28px;
  background: var(--surface);
}
.about-strip h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.about-strip > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.about-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.qr-banner {
  width: min(1200px, calc(100% - 32px));
  min-height: 230px;
  margin: 16px auto 0;
  padding: 38px 7%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  border-radius: 28px;
  background: #1d1d1f;
  color: #f5f5f7;
}
.qr-banner .eyebrow { color: #a1a1a6; }
.qr-banner h2 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.qr-banner .qr-copy > a {
  color: #2997ff;
  font-size: 15px;
  font-weight: 600;
}
.qr-banner .qr-copy > a span { margin-left: 5px; }
.qr-code {
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border: 8px solid #fff;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
}
.qr-code img {
  width: 138px;
  height: 138px;
  display: block;
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.footer-brand { color: var(--text); }

.article-dialog {
  position: fixed;
  width: min(760px, calc(100% - 28px));
  max-height: 88vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
}
.article-dialog::backdrop { background: rgba(0, 0, 0, .48); backdrop-filter: blur(10px); }
.dialog-close {
  position: sticky;
  z-index: 4;
  top: 12px;
  float: right;
  width: 36px;
  height: 36px;
  margin: 12px 12px -48px 0;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
.dialog-art {
  height: 300px;
  overflow: hidden;
  background: var(--surface);
}
.dialog-art .art-device { top: 44px; height: 230px; }
.dialog-content { padding: 38px 8% 48px; }
.dialog-content h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.dialog-lead { color: var(--muted); font-size: 16px; line-height: 1.65; }
.dialog-body { font-size: 14px; line-height: 1.8; }
.dialog-body p { margin: 0 0 14px; }
.dialog-price { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

@media (max-width: 760px) {
  .site-header { padding: 0 18px; }
  .hero { width: calc(100% - 24px); min-height: 660px; padding: 58px 20px 8px; border-radius: 22px; }
  .hero h1 { font-size: clamp(50px, 14vw, 72px); }
  .hero-description { max-width: 430px; font-size: 16px; }
  .hero-art { min-height: 330px; }
  .hero-phone { width: 150px; height: 290px; }
  .phone-back { transform: translate(-48px, 4px) rotate(-10deg); }
  .phone-front { transform: translate(48px, 12px) rotate(8deg); }
  .shop-callout { width: calc(100% - 24px); align-items: flex-start; flex-direction: column; padding: 32px 7%; }
  .buyer-guide { width: calc(100% - 24px); }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: auto; }
  .guide-card h3 { margin-top: 22px; }
  .about-strip { width: calc(100% - 24px); grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px 7%; border-radius: 22px; }
  .site-footer { width: calc(100% - 24px); }
}

@media (max-width: 480px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 11px; }
  .hero { width: calc(100% - 16px); min-height: 610px; padding-top: 48px; }
  .hero h1 { font-size: 48px; }
  .hero-description { font-size: 14px; }
  .hero-art { min-height: 280px; }
  .hero-phone { width: 128px; height: 248px; border-radius: 26px; }
  .phone-back { transform: translate(-39px, 0) rotate(-10deg); }
  .phone-front { transform: translate(39px, 8px) rotate(8deg); }
  .screen-time { top: 49px; font-size: 34px; }
  .screen-date { top: 89px; }
  .screen-widget { width: 96px; height: 44px; bottom: 28px; }
  .hero-actions { gap: 16px; }
  .shop-button { width: 100%; }
  .shop-callout { width: calc(100% - 16px); margin-top: 12px; padding: 28px 20px; border-radius: 20px; }
  .shop-callout h2 { font-size: 32px; }
  .buyer-guide { width: calc(100% - 24px); padding: 58px 0 46px; }
  .buyer-guide .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .buyer-guide .section-heading h2 { font-size: 38px; }
  .guide-card { padding: 22px; }
  .guide-link { align-items: flex-start; font-size: 14px; line-height: 1.5; }
  .about-strip { grid-template-columns: 1fr; padding: 32px 7%; }
  .about-strip > p { margin-top: 6px; }
  .site-footer { min-height: 120px; flex-wrap: wrap; gap: 10px; padding: 24px 0; }
  .site-footer p { order: 3; width: 100%; }
  .dialog-art { height: 220px; }
  .dialog-content { padding: 28px 7% 34px; }
}

@media (max-width: 760px) {
  .qr-banner {
    width: calc(100% - 24px);
    min-height: 210px;
    padding: 30px 7%;
  }
  .qr-code {
    width: 138px;
    height: 138px;
  }
  .qr-code img {
    width: 122px;
    height: 122px;
  }
}

@media (max-width: 480px) {
  .qr-banner {
    width: calc(100% - 16px);
    grid-template-columns: 1fr 112px;
    gap: 14px;
    padding: 26px 20px;
    border-radius: 20px;
  }
  .qr-banner h2 {
    margin-bottom: 14px;
    font-size: 27px;
  }
  .qr-code {
    width: 112px;
    height: 112px;
    border-width: 6px;
    border-radius: 16px;
  }
  .qr-code img {
    width: 100px;
    height: 100px;
  }
  .qr-banner .qr-copy > a {
    font-size: 13px;
  }
}

.hero-art {
  min-height: 390px;
  border-radius: 22px 22px 0 0;
  background: #e8e8ed;
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 390px;
  display: block;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(.78) contrast(.96);
}
.card-art {
  background: #ededf0;
}
.card-art::before,
.art-orb,
.art-device,
.art-camera,
.card-art .art-device {
  display: none;
}
.card-art > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(.96);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.article-card:hover .card-art > img {
  transform: scale(1.025);
}
.card-tag,
.card-arrow {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .86);
}
body.dark-theme .card-tag,
body.dark-theme .card-arrow {
  background: rgba(28, 28, 30, .88);
}

@media (max-width: 760px) {
  .hero-art { min-height: 330px; }
  .hero-art img { height: 330px; }
}
@media (max-width: 480px) {
  .hero-art { min-height: 280px; }
  .hero-art img { height: 280px; }
  .card-art { height: 270px; }
}
