body {
    font-family: 'Comfortaa', 'Nunito', Arial, sans-serif;
    background: #fff8f0;
    color: #4d3c2d;
    margin: 0;
    padding: 0;
}
.hero {
    background: linear-gradient(120deg, #ffe0e9 0%, #fff8f0 100%);
    text-align: center;
    padding: 40px 20px 20px 20px;
    position: relative;
}
.hero-cat {
    width: 120px;
    margin-bottom: 10px;
}
.hero h1 {
    font-size: 2.2em;
    margin: 0 0 20px 0;
}
.hero button {
    background: #ffb6b9;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 32px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 2px 8px #ffd6e0;
    transition: background 0.2s;
}
.hero button:hover {
    background: #ff8fab;
}
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 20px;
    background: #fff0f6;
    border-radius: 30px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 2px 16px #ffe0e9;
}
.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px #ffd6e0;
}
.services {
    padding: 40px 20px;
    text-align: center;
}
.service-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}
.service {
    background: #fff8f0;
    border-radius: 20px;
    box-shadow: 0 2px 8px #ffe0e9;
    padding: 20px;
    width: 220px;
}
.service img {
    width: 60px;
    margin-bottom: 10px;
    background: #ffe0e9;
    border-radius: 50%;
    padding: 16px;
    box-shadow: 0 2px 8px #ffd6e0;
}
.problems, .methods, .prices, .soul-collage, .certificates, .gallery, .signup, .test {
    padding: 40px 20px;
    max-width: 900px;
    margin: 30px auto;
    background: #fff0f6;
    border-radius: 30px;
    box-shadow: 0 2px 16px #ffe0e9;
}
.method-list {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.method {
    flex: 1;
    min-width: 220px;
}
.cert-list, .gallery-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.cert-list img, .gallery-list img, .soul-collage-img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 2px 8px #ffd6e0;
}
.soul-collage-img {
    width: 320px;
    height: 220px;
    margin-bottom: 16px;
}
.signup form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}
.signup input, .signup textarea {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ffd6e0;
    font-size: 1em;
}
.signup button {
    background: #ffb6b9;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 0;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 2px 8px #ffd6e0;
    transition: background 0.2s;
}
.signup button:hover {
    background: #ff8fab;
}
footer {
    background: #ffe0e9;
    text-align: center;
    padding: 30px 10px 10px 10px;
    border-radius: 30px 30px 0 0;
    margin-top: 40px;
}
.contacts a {
    margin: 0 10px;
    color: #ff8fab;
    text-decoration: none;
    font-weight: bold;
}
.contacts a:hover {
    text-decoration: underline;
}
.soul-collage-flex {
    display: flex;
    align-items: center;
    gap: 32px;
}
.soul-collage-flex ul {
    margin: 0;
    padding-left: 20px;
}
@media (max-width: 800px) {
    .about, .service-list, .method-list, .cert-list, .gallery-list {
        flex-direction: column;
        align-items: center;
    }
    .about {
        gap: 16px;
    }
    .service-list, .method-list {
        gap: 16px;
    }
    .soul-collage-flex {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
} 
.image-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 2px 16px #fff0f6;
}
.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
} 
.subtitle-center {
    text-align: center;
    font-size: 1.2em;
    color: #b48a78;
    margin-bottom: 10px;
    font-style: italic;
}
.flip-card {
    background: none;
    perspective: 1000px;
    width: 220px;
    height: 270px;
    margin-bottom: 0;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(.4,2,.6,1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner, .flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    box-shadow: 0 2px 8px #ffe0e9;
    background: #fff8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.flip-card-front {
    z-index: 2;
}
.flip-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    color: #4d3c2d;
    font-size: 1em;
    text-align: center;
}
@media (max-width: 800px) {
    .flip-card {
        width: 90vw;
        min-width: 220px;
        max-width: 350px;
        height: 270px;
    }
} 
.flip-tip {
    text-align: center;
    font-size: 0.95em;
    color: #b48a78;
    opacity: 0.7;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    position: relative;
}
.flip-tip::after {
    content: '⤵️';
    display: inline-block;
    margin-left: 6px;
    font-size: 1.1em;
    vertical-align: middle;
    animation: tip-arrow 1.2s infinite alternate;
}
@keyframes tip-arrow {
    0% { transform: translateY(0); }
    100% { transform: translateY(5px); }
} 
.signup-message {
    display: none;
    margin: 20px auto 0 auto;
    max-width: 400px;
    background: #e6ffe6;
    color: #267a2b;
    border-radius: 16px;
    box-shadow: 0 2px 8px #c6e6c6;
    padding: 18px 20px 18px 60px;
    font-size: 1.1em;
    position: relative;
    min-height: 40px;
    align-items: center;
    animation: fadeIn 0.7s;
}
.signup-message.error {
    background: #ffe6e6;
    color: #a82a2a;
    box-shadow: 0 2px 8px #e6c6c6;
}
.signup-message::before {
    content: '✔️';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
}
.signup-message.error::before {
    content: '❌';
    color: #a82a2a;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} 
.test-block {
    max-width: 420px;
    margin: 0 auto;
    background: #fff8f0;
    border-radius: 20px;
    box-shadow: 0 2px 12px #ffe0e9;
    padding: 32px 24px 24px 24px;
    text-align: center;
    min-height: 180px;
    position: relative;
    margin-bottom: 20px;
}
.test-progress {
    width: 100%;
    height: 8px;
    background: #ffe0e9;
    border-radius: 6px;
    margin-bottom: 24px;
    overflow: hidden;
}
.test-progress-bar {
    height: 100%;
    background: #ffb6b9;
    border-radius: 6px;
    transition: width 0.4s cubic-bezier(.4,2,.6,1);
}
.test-question {
    font-size: 1.15em;
    margin-bottom: 18px;
    color: #4d3c2d;
}
.test-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
.test-answer-btn {
    background: #ffe0e9;
    color: #4d3c2d;
    border: none;
    border-radius: 12px;
    padding: 12px 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px #ffd6e0;
}
.test-answer-btn:hover, .test-answer-btn:focus {
    background: #ffb6b9;
    color: #fff;
}
.test-result {
    font-size: 1.2em;
    color: #267a2b;
    margin-top: 18px;
    min-height: 60px;
    animation: fadeIn 0.7s;
}
.test-restart-btn {
    margin-top: 18px;
    background: #b48a78;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.test-restart-btn:hover {
    background: #a06c4e;
} 