/* Існуючі стилі залишаються без змін */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

header {
    position: fixed;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #007bff;
}

.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    color: #fff;
    background: #007bff;
    border-radius: 5px;
    margin: 0 0.5rem;
}

.btn.primary {
    background: #ff6f61;
}

.portfolio-preview {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.cms-download {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f5f5;
}

.cms-download h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cms-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cms-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cms-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.cms-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cms-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #34d058);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    transition: background 0.3s, transform 0.2s;
}

.download-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.reviews {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.9rem;
    color: #555;
    background: #fafafa;
    padding: 0.8rem;
    border-radius: 8px;
}

.reviews p {
    margin: 0.5rem 0;
}

.reviews strong {
    color: #333;
}

.review-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-form input,
.review-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.review-form textarea {
    resize: vertical;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cms-item:nth-child(1) { animation-delay: 0.1s; }
.cms-item:nth-child(2) { animation-delay: 0.2s; }
.cms-item:nth-child(3) { animation-delay: 0.3s; }

.order-form {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.order-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.order-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6f61, #ff8a75);
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: scale(1.05);
}

.contacts {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f5f5f5;
}

.contacts h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contacts-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.8rem 0;
}

.contact-info strong {
    color: #007bff;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-btn {
    background: linear-gradient(135deg, #007bff, #00ddeb);
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s;
}

.contact-btn:hover {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: #fff;
}

/* Додаємо стилі для форматованого тексту */
.description-content {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
}
.description-content p {
    margin: 1rem 0;
}
.description-content b {
    font-weight: bold;
    color: #2a5298;
}
.description-content i {
    font-style: italic;
    color: #ff6f61;
}
.description-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 1rem 0;
}
.description-content ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 1rem 0;
}