/* ============================================
   Евгения Петрова — Психолог | psy20.eu
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0D9488;
    --primary-light: #14B8A6;
    --primary-dark: #0F766E;
    --accent: #06B6D4;
    --accent-dark: #0891B2;
    --bg: #F8FAFB;
    --bg-soft: #F0FDFA;
    --bg-dark: #1F2937;
    --text: #111827;
    --text-light: #4B5563;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --success: #10B981;
    --whatsapp: #25D366;
    --shadow-sm: 0 4px 12px rgba(13, 148, 136, 0.08);
    --shadow-md: 0 12px 32px rgba(13, 148, 136, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -48px;
    left: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 8px;
    z-index: 200;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-dark);
    outline-offset: 2px;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-family: 'Archivo', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

a.nav-cta {
    display: none;
}

@media (min-width: 900px) {
    .nav-links { display: flex; }
    a.nav-cta { display: inline-flex; }
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

@media (min-width: 900px) {
    .menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    min-height: 48px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.38);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

.btn-sm {
    padding: 9px 18px;
    min-height: 40px;
    font-size: 0.88rem;
}

.btn-block {
    width: 100%;
}

/* --- Sections --- */
main {
    margin-top: 73px;
}

section {
    padding: 72px 24px;
}

@media (min-width: 768px) {
    section { padding: 96px 24px; }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header h2 {
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* --- Hero --- */
.hero {
    min-height: calc(100vh - 73px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    top: -10%;
    right: -8%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    animation: float 7s ease-in-out infinite;
}

.hero::after {
    bottom: 5%;
    left: -6%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.09) 0%, transparent 70%);
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(22px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 64px;
    }
}

.hero-kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(13, 148, 136, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s var(--ease);
}

.hero h1 {
    margin-bottom: 22px;
    animation: fadeInUp 0.7s var(--ease) 0.08s both;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.08rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 560px;
    animation: fadeInUp 0.7s var(--ease) 0.16s both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease) 0.24s both;
}

.hero-photo {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    animation: fadeInScale 0.8s var(--ease) 0.2s both;
}

.hero-photo img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15, 118, 110, 0.22);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.18;
    filter: blur(24px);
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: -14px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-badge svg {
    color: var(--primary);
    flex-shrink: 0;
}

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Stats --- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(13, 148, 136, 0.15);
    animation: fadeInUp 0.7s var(--ease) 0.32s both;
}

.stat-number {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-top: 4px;
}

/* --- Services --- */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(6, 182, 212, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 18px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* --- About --- */
.about {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 72px;
    }
}

.about-photo {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(15, 118, 110, 0.18);
}

.about-photo img {
    width: 100%;
    transition: transform 0.7s var(--ease);
}

.about-photo:hover img {
    transform: scale(1.04);
}

.about-content h2 {
    margin-bottom: 22px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 0.98rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid rgba(13, 148, 136, 0.15);
}

.credential {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-light);
    font-size: 0.94rem;
}

.credential svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial {
    background: var(--bg);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.testimonial:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    color: #F59E0B;
    margin-bottom: 14px;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 0.92rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.88rem;
}

/* --- Pricing --- */
.pricing {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.pricing-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 48px rgba(13, 148, 136, 0.18);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    margin-bottom: 14px;
}

.pricing-amount {
    font-family: 'Archivo', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.pricing-period {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 26px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

.pricing-note {
    text-align: center;
    margin-top: 48px;
    color: var(--text-light);
    font-size: 0.94rem;
}

/* --- Contact --- */
.contact {
    background: var(--white);
}

.contact-wrapper {
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}

@media (min-width: 768px) {
    .contact-wrapper { padding: 48px; }
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.94rem;
    color: var(--text);
}

input, textarea, select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.25s, box-shadow 0.25s;
    min-height: 48px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

.field-error {
    display: none;
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #DC2626;
}

.form-group.invalid .field-error {
    display: block;
}

.required {
    color: #DC2626;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 0.88rem;
}

.form-note svg {
    color: var(--whatsapp);
    flex-shrink: 0;
}

/* --- Contact methods --- */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    max-width: 720px;
    margin: 52px auto 0;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.contact-method svg {
    color: var(--primary);
}

.contact-method strong {
    font-size: 0.95rem;
}

.contact-method span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 48px 24px 40px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

footer p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* --- Floating WhatsApp button --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
