 :root {
     --bg: #071225;
     --bg-2: #0a1730;
     --panel: rgba(17, 28, 54, 0.88);
     --panel-2: rgba(17, 26, 49, 0.95);
     --line: rgba(85, 114, 165, 0.24);
     --text: #eef3ff;
     --muted: #aeb9d3;
     --blue: #2c6fe0;
     --blue-2: #3e90ff;
     --blue-3: #57a6ff;
     --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
     --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
     --radius: 16px;
     --radius-lg: 22px;
     --max: 1180px;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
     cursor: pointer;
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
     background:
         radial-gradient(circle at 80% 14%, rgba(50, 92, 197, 0.22), transparent 22%),
         radial-gradient(circle at 18% 0%, rgba(39, 108, 255, 0.08), transparent 24%),
         radial-gradient(circle at 50% 100%, rgba(19, 71, 160, 0.08), transparent 32%),
         linear-gradient(180deg, #030914 0%, #061123 30%, #071326 100%);
     color: var(--text);
     min-height: 100vh;
     overflow-x: hidden;
 }

 body::before,
 body::after {
     content: "";
     position: fixed;
     inset: 0;
     pointer-events: none;
     z-index: -1;
 }

 body::before {
     background:
         radial-gradient(circle at 50% 50%, rgba(51, 109, 255, 0.12), transparent 40%),
         repeating-linear-gradient(90deg,
             rgba(40, 95, 200, 0.045) 0,
             rgba(40, 95, 200, 0.045) 1px,
             transparent 1px,
             transparent 220px);
     opacity: 0.7;
 }

 a {
     color: inherit;
     text-decoration: none;
 }

 button {
     font: inherit;
     border: 0;
     cursor: pointer;
 }

 img {
     max-width: 100%;
     display: block;
 }

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

 .topbar {
     position: sticky;
     top: 0;
     z-index: 30;
     backdrop-filter: blur(14px);
     background: linear-gradient(180deg, rgba(6, 12, 28, 0.95), rgba(7, 17, 34, 0.9));
     border-bottom: 1px solid rgba(84, 114, 177, 0.2);
 }

 .topbar-inner {
     min-height: 84px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 18px;
 }

 .brand {
     display: flex;
     align-items: center;
     gap: 14px;
     font-size: 1.1rem;
     font-weight: 800;
     letter-spacing: 0.2px;
 }

 .brand-mark {
     width: 44px;
     height: 44px;
     border-radius: 12px;
     background: linear-gradient(180deg, #efb28f, #9d562f);
     box-shadow: 0 10px 24px rgba(217, 138, 88, 0.18);
     position: relative;
     display: grid;
     place-items: center;
     flex: 0 0 auto;
 }

 .brand-mark::before {
     content: "A";
     color: #fff;
     font-size: 1.5rem;
     font-weight: 900;
     transform: skewX(-8deg);
 }

 .brand-name {
     font-size: 1.15rem;
     color: #eef2ff;
 }

 .nav {
     display: flex;
     align-items: center;
     gap: 34px;
     margin-left: auto;
     margin-right: 18px;
 }

 .nav a {
     color: #dce5fa;
     font-size: 1.05rem;
     font-weight: 600;
     padding: 8px 0;
     position: relative;
     opacity: 0.88;
 }

 .nav a.active {
     color: #f6fbff;
 }

 .nav a.active::after {
     content: "";
     position: absolute;
     left: 0;
     right: 0;
     bottom: -12px;
     height: 4px;
     border-radius: 999px;
     background: linear-gradient(90deg, #2f73e8, #4ea7ff);
     box-shadow: 0 0 16px rgba(78, 167, 255, 0.35);
 }

 .auth {
     display: flex;
     gap: 12px;
 }

 .btn {
     min-height: 46px;
     padding: 0 22px;
     border-radius: 10px;
     font-weight: 700;
     transition: 0.2s ease;
 }

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

 .btn-outline {
     color: #e4edff;
     border: 1px solid rgba(113, 143, 202, 0.28);
     background: rgba(16, 28, 52, 0.56);
 }

 .btn-primary {
     color: #fff;
     background: linear-gradient(180deg, #2b6fe0 0%, #255ec4 100%);
     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 20px rgba(38, 89, 191, 0.3);
 }

 .hero {
     padding: 36px 0 22px;
     border-bottom: 1px solid rgba(86, 114, 170, 0.16);
 }

 .hero-card {
     min-height: 370px;
     border-radius: 0;
     position: relative;
     display: grid;
     grid-template-columns: 1.15fr 0.85fr;
     gap: 24px;
     align-items: center;
     padding: 26px 28px 22px;
     background:
         radial-gradient(circle at 75% 35%, rgba(48, 92, 193, 0.2), transparent 28%),
         linear-gradient(180deg, rgba(7, 18, 39, 0.3), rgba(7, 18, 39, 0.08));
     overflow: hidden;
 }

 .hero-card::before {
     content: "";
     position: absolute;
     inset: 0;
     background:
         linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 25%),
         radial-gradient(circle at 82% 50%, rgba(44, 111, 224, 0.18), transparent 30%);
     pointer-events: none;
 }

 .hero-copy {
     position: relative;
     z-index: 1;
     padding-top: 8px;
 }

 .hero h1 {
     font-size: clamp(2.3rem, 4vw, 4.2rem);
     line-height: 1.08;
     font-weight: 800;
     letter-spacing: -0.03em;
     margin-bottom: 14px;
     max-width: 760px;
 }

 .hero h1 span {
     color: #59aaff;
 }

 .hero p {
     font-size: clamp(1rem, 1.7vw, 1.2rem);
     color: #c6d0e8;
     margin-bottom: 30px;
 }

 .searchbar {
     display: grid;
     grid-template-columns: 1fr 170px;
     width: min(100%, 760px);
     border-radius: 14px;
     overflow: hidden;
     border: 1px solid rgba(110, 137, 191, 0.25);
     background: linear-gradient(180deg, rgba(15, 25, 48, 0.92), rgba(11, 19, 39, 0.92));
     box-shadow: var(--shadow);
 }

 .search-input-wrap {
     display: flex;
     align-items: center;
     gap: 14px;
     padding: 0 18px;
     min-height: 68px;
 }

 .search-icon {
     font-size: 1.25rem;
     color: #95a4c9;
     opacity: 0.92;
 }

 .search-input {
     width: 100%;
     border: 0;
     outline: 0;
     background: transparent;
     color: #edf4ff;
     font-size: 1.25rem;
 }

 .search-input::placeholder {
     color: #7c89ac;
 }

 .search-btn {
     min-height: 68px;
     color: #fff;
     font-weight: 800;
     font-size: 1.15rem;
     background: linear-gradient(180deg, #3275e6 0%, #285fc6 100%);
     border-left: 1px solid rgba(148, 175, 233, 0.18);
     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
 }

 .hero-visual {
     position: relative;
     min-height: 330px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .phone {
     width: 240px;
     aspect-ratio: 0.5;
     border-radius: 34px;
     background: linear-gradient(160deg, #0b0f18 0%, #1f2636 18%, #0d1118 60%, #1f2431 100%);
     border: 2px solid rgba(255, 255, 255, 0.08);
     box-shadow: 0 30px 40px rgba(0, 0, 0, 0.42), 18px 12px 0 rgba(255, 255, 255, 0.05);
     position: relative;
     transform: rotate(7deg);
     padding: 18px 14px;
 }

 .phone::before {
     content: "";
     position: absolute;
     top: 10px;
     left: 50%;
     transform: translateX(-50%);
     width: 84px;
     height: 8px;
     border-radius: 999px;
     background: rgba(255, 255, 255, 0.08);
 }

 .phone-screen {
     width: 100%;
     height: 100%;
     border-radius: 26px;
     padding: 42px 14px 18px;
     background: linear-gradient(180deg, #182442 0%, #10213b 28%, #0d1730 100%);
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     align-content: start;
     gap: 12px;
 }

 .app-icon-grid {
     aspect-ratio: 1;
     border-radius: 18px;
     display: grid;
     place-items: center;
     color: white;
     font-size: 1.5rem;
     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 20px rgba(0, 0, 0, 0.22);
     font-weight: 800;
 }

 .float-icon {
     position: absolute;
     width: 76px;
     height: 76px;
     border-radius: 20px;
     display: grid;
     place-items: center;
     color: #fff;
     font-size: 1.9rem;
     box-shadow: var(--card-shadow);
     border: 1px solid rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(12px);
 }

 .fi-1 {
     left: 22px;
     top: 154px;
     background: linear-gradient(180deg, #3d6fff, #294fd0);
     transform: rotate(-16deg);
 }

 .fi-2 {
     right: 6px;
     top: 196px;
     background: linear-gradient(180deg, #ff4d88, #d558ff);
     transform: rotate(10deg);
 }

 .fi-3 {
     right: -10px;
     top: 92px;
     background: linear-gradient(180deg, #374b66, #2a3550);
     transform: rotate(-4deg);
 }

 .fi-4 {
     left: 110px;
     bottom: 14px;
     background: linear-gradient(180deg, #ffb11a, #eb8607);
     transform: rotate(-10deg);
     width: 64px;
     height: 64px;
 }

 .section {
     padding: 28px 0 14px;
 }

 .section-header {
     display: flex;
     align-items: center;
     gap: 18px;
     margin-bottom: 22px;
 }

 .section-header h2 {
     font-size: clamp(1.9rem, 3vw, 2.35rem);
     line-height: 1.1;
     white-space: nowrap;
     font-weight: 800;
 }

 .section-line {
     height: 1px;
     flex: 1;
     background: linear-gradient(90deg, rgba(84, 114, 177, 0.2), rgba(84, 114, 177, 0.04));
 }

 .section-link {
     color: #51a6ff;
     font-weight: 700;
     font-size: 1.05rem;
     white-space: nowrap;
 }

 .cards {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 18px;
 }

 .card {
     background: linear-gradient(180deg, rgba(18, 29, 56, 0.95), rgba(13, 22, 43, 0.95));
     border: 1px solid rgba(92, 121, 177, 0.18);
     border-radius: 14px;
     padding: 18px 16px 16px;
     box-shadow: var(--card-shadow);
 }

 .app-head {
     display: flex;
     gap: 14px;
     align-items: center;
     margin-bottom: 12px;
 }

 .app-icon {
     width: 78px;
     height: 78px;
     border-radius: 20px;
     flex: 0 0 auto;
     overflow: hidden;
     position: relative;
     box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
 }

 .app-icon.game {
     background: linear-gradient(135deg, #6a4424, #2f1711 65%);
 }

 .app-icon.photo {
     background: conic-gradient(from 120deg, #ffb038, #fe4f7a, #6b5cff, #ffb038);
 }

 .app-icon.music {
     background: linear-gradient(135deg, #6c1dd1, #ff7ea7);
 }

 .app-icon.fit {
     background: linear-gradient(135deg, #32a336, #9fe84c);
 }

 .app-icon.speed {
     background: linear-gradient(135deg, #2aaff4, #ff5131);
 }

 .app-icon.chat {
     background: linear-gradient(135deg, #1ec7b5, #6b9cff);
 }

 .app-icon.video {
     background: linear-gradient(135deg, #ff1717, #ffa600);
 }

 .app-icon.mind {
     background: linear-gradient(135deg, #27c8a6, #d2f6e5);
 }

 .app-icon::before {
     content: attr(data-symbol);
     position: absolute;
     inset: 0;
     display: grid;
     place-items: center;
     color: rgba(255, 255, 255, 0.95);
     font-size: 2.1rem;
     font-weight: 900;
     text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
 }

 .app-icon.photo::after {
     content: "";
     position: absolute;
     width: 44px;
     height: 44px;
     border: 7px solid rgba(15, 21, 42, 0.9);
     border-radius: 50%;
     top: 17px;
     left: 17px;
 }

 .app-icon.photo::before {
     content: "";
 }

 .app-info h3 {
     font-size: 1.2rem;
     font-weight: 800;
     margin-bottom: 4px;
 }

 .app-info p {
     color: #9faecc;
     font-size: 0.98rem;
 }

 .stars {
     color: #ffbb1b;
     letter-spacing: 2px;
     font-size: 1.25rem;
     margin: 6px 0 16px;
 }

 .download-btn {
     width: 100%;
     min-height: 54px;
     border-radius: 10px;
     color: #fff;
     font-size: 1.08rem;
     font-weight: 800;
     background: linear-gradient(180deg, #3378eb 0%, #255ec4 100%);
     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 18px rgba(29, 79, 168, 0.28);
 }

 .categories {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 16px;
 }

 .category {
     min-height: 92px;
     display: flex;
     align-items: center;
     gap: 18px;
     border-radius: 14px;
     padding: 0 22px;
     background: linear-gradient(180deg, rgba(18, 29, 56, 0.95), rgba(13, 22, 43, 0.95));
     border: 1px solid rgba(92, 121, 177, 0.16);
     box-shadow: var(--card-shadow);
     font-size: 1.18rem;
     font-weight: 800;
 }

 .category-icon {
     width: 46px;
     text-align: center;
     font-size: 1.8rem;
     color: #f2f6ff;
     opacity: 0.95;
 }

 .downloads-list {
     display: grid;
     gap: 12px;
 }

 .download-row {
     display: grid;
     grid-template-columns: 54px 1.6fr 1fr 140px;
     align-items: center;
     gap: 16px;
     padding: 16px 18px;
     border-radius: 14px;
     background: linear-gradient(180deg, rgba(18, 29, 56, 0.95), rgba(13, 22, 43, 0.95));
     border: 1px solid rgba(92, 121, 177, 0.16);
     box-shadow: var(--card-shadow);
 }

 .rank {
     font-size: 1.9rem;
     font-weight: 900;
     color: #f6f9ff;
     text-align: center;
 }

 .download-app {
     display: flex;
     align-items: center;
     gap: 14px;
     min-width: 0;
 }

 .download-app-text h3 {
     font-size: 1.15rem;
     font-weight: 800;
     margin-bottom: 3px;
 }

 .download-app-text p {
     color: #a2b0cd;
     font-size: 1rem;
 }

 .rating {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     color: #ffbb1b;
     font-size: 1.2rem;
     letter-spacing: 2px;
     white-space: nowrap;
 }

 .rating span {
     color: #c6d2ec;
     letter-spacing: 0;
     font-weight: 700;
     font-size: 0.98rem;
 }

 footer {
     margin-top: 42px;
     border-top: 1px solid rgba(86, 114, 170, 0.16);
     padding: 34px 0 26px;
     background: linear-gradient(180deg, rgba(5, 10, 22, 0.1), rgba(6, 12, 25, 0.45));
 }

 .footer-grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 26px;
     align-items: start;
     padding-bottom: 26px;
     border-bottom: 1px solid rgba(86, 114, 170, 0.18);
 }

 .footer-col h4 {
     font-size: 1.35rem;
     margin-bottom: 20px;
     font-weight: 800;
 }

 .footer-line {
     width: 84%;
     height: 2px;
     background: linear-gradient(90deg, rgba(120, 149, 205, 0.28), rgba(120, 149, 205, 0));
 }

 .socials {
     display: flex;
     gap: 16px;
     margin-top: 28px;
 }

 .social {
     width: 46px;
     height: 46px;
     display: grid;
     place-items: center;
     border-radius: 10px;
     background: linear-gradient(180deg, rgba(24, 37, 66, 0.98), rgba(14, 23, 42, 0.98));
     border: 1px solid rgba(92, 121, 177, 0.2);
     color: #f2f6ff;
     font-size: 1.2rem;
     box-shadow: var(--card-shadow);
 }

 .footer-note {
     padding-top: 20px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 20px;
     color: #aab7d2;
     font-size: 0.98rem;
 }

 .copyright {
     text-align: center;
     width: 100%;
 }

 .modal {
     position: fixed;
     inset: 0;
     display: none;
     align-items: center;
     justify-content: center;
     padding: 20px;
     z-index: 100;
 }

 .modal.open {
     display: flex;
 }

 .modal-overlay {
     position: absolute;
     inset: 0;
     background: rgba(1, 7, 17, 0.74);
     backdrop-filter: blur(12px);
 }

 .modal-box {
     position: relative;
     width: min(100%, 450px);
     border-radius: 22px;
     padding: 28px 26px 24px;
     text-align: center;
     background: linear-gradient(180deg, rgba(20, 32, 59, 0.98), rgba(12, 20, 39, 0.98));
     border: 1px solid rgba(100, 133, 194, 0.24);
     box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
     animation: modalIn 0.22s ease;
 }

 @keyframes modalIn {
     from {
         opacity: 0;
         transform: translateY(8px) scale(0.98);
     }

     to {
         opacity: 1;
         transform: translateY(0) scale(1);
     }
 }

 .modal-close {
     position: absolute;
     top: 12px;
     right: 12px;
     width: 42px;
     height: 42px;
     border-radius: 999px;
     background: rgba(255, 255, 255, 0.06);
     color: #fff;
     font-size: 1.3rem;
 }

 .modal-app-icon {
     width: 96px;
     height: 96px;
     margin: 8px auto 18px;
     border-radius: 24px;
     position: relative;
     overflow: hidden;
     box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
 }

 .modal-app-icon::before {
     content: attr(data-symbol);
     position: absolute;
     inset: 0;
     display: grid;
     place-items: center;
     font-size: 2.3rem;
     color: #fff;
     font-weight: 900;
 }

 .modal h3 {
     font-size: 1.85rem;
     font-weight: 800;
     margin-bottom: 10px;
 }

 .modal p {
     color: #bac6e0;
     line-height: 1.6;
     margin-bottom: 24px;
     font-size: 1rem;
 }

 .modal-actions {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 12px;
 }

 .btn-soft {
     min-height: 52px;
     border-radius: 12px;
     color: #e6efff;
     background: linear-gradient(180deg, rgba(31, 46, 83, 0.95), rgba(17, 28, 52, 0.95));
     border: 1px solid rgba(103, 132, 191, 0.2);
     font-weight: 800;
 }

 .menu-toggle {
     display: none;
     width: 46px;
     height: 46px;
     border-radius: 12px;
     background: rgba(16, 28, 52, 0.85);
     color: white;
     font-size: 1.4rem;
     border: 1px solid rgba(113, 143, 202, 0.25);
 }

 @media (max-width: 1100px) {

     .cards,
     .categories {
         grid-template-columns: repeat(2, 1fr);
     }

     .hero-card {
         grid-template-columns: 1fr;
         padding-top: 22px;
     }

     .hero-visual {
         order: -1;
         min-height: 290px;
     }

     .nav {
         gap: 20px;
         margin-right: 8px;
     }
 }

 @media (max-width: 860px) {
     .topbar-inner {
         min-height: 78px;
         flex-wrap: wrap;
         padding: 14px 0;
     }

     .menu-toggle {
         display: inline-grid;
         place-items: center;
         margin-left: auto;
     }

     .nav,
     .auth {
         display: none;
         width: 100%;
     }

     .topbar.open .nav,
     .topbar.open .auth {
         display: flex;
         flex-direction: column;
         align-items: stretch;
         gap: 12px;
         margin: 0;
         padding-top: 12px;
     }

     .topbar.open .nav a.active::after {
         bottom: -4px;
     }

     .topbar.open .auth .btn {
         width: 100%;
     }

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

     .search-btn {
         border-left: 0;
         border-top: 1px solid rgba(148, 175, 233, 0.18);
     }

     .footer-grid {
         grid-template-columns: repeat(2, 1fr);
     }

     .download-row {
         grid-template-columns: 48px 1fr;
     }

     .rating,
     .download-row .download-btn {
         grid-column: 2;
         justify-self: start;
     }

     .download-row .download-btn {
         width: 180px;
     }
 }

 @media (max-width: 640px) {
     .container {
         width: min(calc(100% - 20px), var(--max));
     }

     .hero {
         padding-top: 18px;
     }

     .hero-card {
         padding: 8px 4px 14px;
     }

     .hero h1 {
         font-size: 2.25rem;
     }

     .hero p {
         margin-bottom: 18px;
     }

     .phone {
         width: 185px;
     }

     .float-icon {
         width: 58px;
         height: 58px;
         font-size: 1.4rem;
     }

     .fi-1 {
         left: 6px;
         top: 136px;
     }

     .fi-2 {
         right: 0;
         top: 182px;
     }

     .fi-3 {
         right: 2px;
         top: 82px;
     }

     .fi-4 {
         left: 84px;
         bottom: 6px;
         width: 54px;
         height: 54px;
     }

     .cards,
     .categories,
     .footer-grid,
     .modal-actions {
         grid-template-columns: 1fr;
     }

     .section-header {
         gap: 10px;
         flex-wrap: wrap;
     }

     .section-header h2 {
         white-space: normal;
         font-size: 1.7rem;
     }

     .section-link {
         font-size: 0.98rem;
     }

     .download-row .download-btn {
         width: 100%;
     }

     .download-app {
         align-items: flex-start;
     }

     .footer-note {
         flex-direction: column;
         text-align: center;
     }

     .modal-box {
         padding: 24px 18px 18px;
     }
 }
