* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background: #0b0b0b;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: block;
}
.wrapper {
    width: 100%;
    max-width: 460px;
    padding: 24px 16px 64px;
    text-align: center;
}
.logo {
    width: 144px;
    height: 144px;
    margin: 0 auto 24px;
}
h1 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 32px;
}
.review-section {
    margin-bottom: 40px;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 15px;
    resize: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
input::placeholder, textarea::placeholder {
    color: #888;
    opacity: 0.7;
}
.char-count {
    font-size: 13px;
    color: #facc15;
    margin-top: 5px;
    text-align: right;
}
.btn {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: #22c55e;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #16a34a;
}
.btn.secondary {
    background-color: #ef4444;
}
.btn.secondary:hover {
    background-color: #dc2626;
}
.review-list {
    margin-top: 0;
}
.review {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: left;
    transition: box-shadow 0.3s ease;
}
.review:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.review-header {
    display: block;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}
.review-name {
    font-weight: bold;
    color: #facc15;
}
.review-date {
    color: #888;
}
.review-text {
    font-size: 15px;
    line-height: 1.4;
}
.pagination {
    display: block;
    gap: 10px;
    margin-top: 20px;
}
.pagination button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.pagination button:hover {
    transform: translateY(-2px);
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.pagination-info {
    padding: 8px 16px;
    color: #888;
}
.error {
    color: #f87171;
    margin-top: 16px;
}
.hidden {
    display: none;
}
@media (max-width: 480px) {
    .wrapper {
        padding-top: 12px;
    }
    h1 {
        font-size: 24px;
    }
    .btn {
        font-size: 15px;
        padding: 14px;
    }
    .pagination button {
        padding: 6px 12px;
        font-size: 13px;
    }
}
/* center fix */
.wrapper{ margin:0 auto !important; }

/* === Pager layout fix === */
#pagination, .pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Кнопки в строке, не на всю ширину */
#pagination .btn, .pagination .btn{
  width:auto;
  margin:0;
  flex:1 1 45%;
  min-width:120px;
}

/* Текст "Страница X из Y" по центру */
#pagination .pagination-info, .pagination .pagination-info{
  flex:0 0 auto;
  white-space:nowrap;
}
@media (max-width:480px){
  #pagination .btn, .pagination .btn{ min-width:100px; padding:12px; }
}
