/* style.css — стили для Gatto Extension */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
    color: #333;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 3rem 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 100px; /* Фиксированная высота — обрезание по вертикали */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('pix/cover.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.9); /* Темнее фон для читаемости */
    z-index: 1;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.9), rgba(85, 85, 85, 0.7));
    z-index: 2;
}

header h1,
header p {
    position: relative;
    z-index: 3; /* Чтобы текст был поверх фона */
    margin: 0.5rem 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

main {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

ul li {
    margin-bottom: 0.5rem;
}

a {
    color: #007bff;
    text-decoration: none;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    margin: 1rem 0;
}

.download-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0);
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: block;
}

video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #eee;
    color: #666;
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
}

#copy-address {
    cursor: pointer;
    color: white;
    font-weight: bold;
    text-decoration: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.icon-pix {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.3));
}

/* --- Аккордеон (FAQ) --- */

.accordion {
    margin: 1rem 0;
}

.accordion-item {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background-color: #f0f0f0;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.accordion-header:hover {
    background-color: #e8e8e8;
}

.accordion-header[aria-expanded="true"] {
    background-color: #e0e7ff;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    transition: transform 0.2s ease;
    margin-left: 8px;
    width: 18px;
    text-align: center;
}

.accordion-panel {
    padding: 16px 18px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    border-top: 1px solid #eee;
}

.accordion-panel p {
    margin: 0 0 0.8rem 0;
}

.accordion-panel p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    header p {
        font-size: 1rem;
    }
    main {
        padding: 1rem;
    }
}
