|
| 1 | + |
| 2 | +* { margin:0; padding:0; box-sizing:border-box; } |
| 3 | + |
| 4 | +body { |
| 5 | + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; |
| 6 | + background: #0a0a0a; |
| 7 | + color: #eee; |
| 8 | + line-height: 1.7; |
| 9 | + min-height: 100vh; |
| 10 | +} |
| 11 | + |
| 12 | +/* ====================== КОНТЕЙНЕР ====================== */ |
| 13 | +.container { |
| 14 | + max-width: 860px; |
| 15 | + margin: 0 auto; |
| 16 | + background: #111; |
| 17 | + padding: 3.5rem; |
| 18 | + border-radius: 20px; |
| 19 | + box-shadow: 0 15px 50px rgba(0,255,136,.08); |
| 20 | +} |
| 21 | + |
| 22 | +/* ====================== ПОСТЫ ====================== */ |
| 23 | +h1 { |
| 24 | + font-size: 2.8rem; |
| 25 | + margin-bottom: 1.8rem; |
| 26 | + text-align: center; |
| 27 | + background: linear-gradient(90deg,#00ff88,#00d4ff); |
| 28 | + -webkit-background-clip: text; |
| 29 | + -webkit-text-fill-color: transparent; |
| 30 | +} |
| 31 | +h2 { |
| 32 | + font-size: 1.9rem; |
| 33 | + margin: 2.8rem 0 1.2rem; |
| 34 | + color: #00ff88; |
| 35 | +} |
| 36 | +p { margin: 1.3rem 0; font-size: 1.12rem; } |
| 37 | +strong { color: #00ff88; } |
| 38 | + |
| 39 | +img { |
| 40 | + max-width: 100%; |
| 41 | + border-radius: 16px; |
| 42 | + margin: 2.8rem auto; |
| 43 | + display: block; |
| 44 | + box-shadow: 0 12px 40px rgba(0,0,0,.7); |
| 45 | +} |
| 46 | + |
| 47 | +table { |
| 48 | + width: 100%; |
| 49 | + border-collapse: collapse; |
| 50 | + margin: 2rem 0; |
| 51 | + background: #1a1a1a; |
| 52 | + border-radius: 12px; |
| 53 | + overflow: hidden; |
| 54 | +} |
| 55 | +th, td { |
| 56 | + padding: 1rem; |
| 57 | + text-align: left; |
| 58 | + border-bottom: 1px solid #333; |
| 59 | +} |
| 60 | +th { |
| 61 | + background: #00ff88; |
| 62 | + color: #000; |
| 63 | + font-weight: 700; |
| 64 | +} |
| 65 | + |
| 66 | +/* Навигация между главами */ |
| 67 | +.post-nav { |
| 68 | + background: #000; |
| 69 | + padding: 2rem; |
| 70 | + border-radius: 16px; |
| 71 | + margin-top: 4rem; |
| 72 | + display: flex; |
| 73 | + justify-content: space-between; |
| 74 | + flex-wrap: wrap; |
| 75 | + gap: 1rem; |
| 76 | + text-align: center; |
| 77 | + font-size: 1.2rem; |
| 78 | +} |
| 79 | +.post-nav a { |
| 80 | + color: #00ff88; |
| 81 | + text-decoration: none; |
| 82 | + font-weight: 600; |
| 83 | +} |
| 84 | +.post-nav a:hover { text-decoration: underline; } |
| 85 | + |
| 86 | +/* ====================== ГЛАВНАЯ ====================== */ |
| 87 | +.home-hero { |
| 88 | + text-align: center; |
| 89 | + padding: 6rem 1rem 4rem; |
| 90 | + background: linear-gradient(135deg,#000,#001a0f); |
| 91 | +} |
| 92 | +.home-hero h1 { |
| 93 | + font-size: 5rem; |
| 94 | + margin-bottom: 1rem; |
| 95 | +} |
| 96 | +.home-hero h1 span { |
| 97 | + display: block; |
| 98 | + background: linear-gradient(90deg,#00ff88,#00d4ff); |
| 99 | + -webkit-background-clip: text; |
| 100 | + -webkit-text-fill-color: transparent; |
| 101 | +} |
| 102 | +.subtitle { |
| 103 | + font-size: 1.5rem; |
| 104 | + color: #aaa; |
| 105 | + max-width: 800px; |
| 106 | + margin: 0 auto; |
| 107 | +} |
| 108 | + |
| 109 | +.posts-grid { |
| 110 | + display: grid; |
| 111 | + grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); |
| 112 | + gap: 2.5rem; |
| 113 | + max-width: 1400px; |
| 114 | + margin: 4rem auto; |
| 115 | + padding: 0 2rem; |
| 116 | +} |
| 117 | +.post-card { |
| 118 | + background: #111; |
| 119 | + border-radius: 20px; |
| 120 | + overflow: hidden; |
| 121 | + transition: all .4s ease; |
| 122 | + border: 1px solid #222; |
| 123 | +} |
| 124 | +.post-card:hover { |
| 125 | + transform: translateY(-16px); |
| 126 | + box-shadow: 0 25px 50px rgba(0,255,136,.25); |
| 127 | + border-color: #00ff88; |
| 128 | +} |
| 129 | +.post-card img { |
| 130 | + width: 100%; |
| 131 | + height: 220px; |
| 132 | + object-fit: cover; |
| 133 | + transition: transform .6s ease; |
| 134 | +} |
| 135 | +.post-card:hover img { transform: scale(1.08); } |
| 136 | +.post-info { |
| 137 | + padding: 1.8rem; |
| 138 | +} |
| 139 | +.post-info h2 { |
| 140 | + font-size: 1.35rem; |
| 141 | + margin-bottom: .8rem; |
| 142 | + color: #fff; |
| 143 | + line-height: 1.3; |
| 144 | +} |
| 145 | +.post-desc { |
| 146 | + color: #aaa; |
| 147 | + font-size: 1rem; |
| 148 | + margin-bottom: 1rem; |
| 149 | +} |
| 150 | +.read-more { |
| 151 | + color: #00ff88; |
| 152 | + font-weight: 600; |
| 153 | + font-size: 1.1rem; |
| 154 | +} |
| 155 | + |
| 156 | +.made-with { |
| 157 | + text-align: center; |
| 158 | + padding: 6rem 1rem 3rem; |
| 159 | + color: #666; |
| 160 | + font-size: .95rem; |
| 161 | +} |
| 162 | + |
| 163 | +/* ====================== АДАПТИВ ====================== */ |
| 164 | +@media (max-width:768px) { |
| 165 | + .container { padding: 2rem; border-radius: 16px; } |
| 166 | + h1 { font-size: 2.3rem; } |
| 167 | + .home-hero h1 { font-size: 3.2rem; } |
| 168 | + .posts-grid { grid-template-columns: 1fr; padding: 0 1rem; } |
| 169 | + .post-card img { height: 180px; } |
| 170 | + .post-nav { flex-direction: column; font-size: 1.1rem; } |
| 171 | +} |
| 172 | + |
| 173 | +.next-chapter { |
| 174 | + margin: 4rem 0 2rem; |
| 175 | + padding: 1.5rem; |
| 176 | + background: #000; |
| 177 | + border-left: 4px solid #00ff88; |
| 178 | + border-radius: 0 12px 12px 0; |
| 179 | + font-size: 1.2rem; |
| 180 | +} |
| 181 | +.next-chapter a { color: #00ff88; text-decoration: none; font-weight: 600; } |
| 182 | +.next-chapter a:hover { text-decoration: underline; } |
0 commit comments