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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    background-image: url('/static/hatter_desktop.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    padding: 0;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0.1) 55%,
        rgba(0, 0, 0, 0.4) 85%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 2.5rem 2.5rem 2rem;
}

.hero-top {
    text-align: center;
    padding: 0 2.5rem;
    flex-shrink: 0;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f5c518;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero-middle {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem 2.5rem 0;
    padding-left: 20%;
    width: 100%;
}

.demo-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.8rem 2.2rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 3;
    min-width: 220px;
}

.demo-card-avatar-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    padding: 3px;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.35);
}

.demo-card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.demo-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.15rem;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.demo-card-status {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.demo-call-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.demo-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(46, 204, 113, 0.5);
}

.pulse-green {
    animation: pulse-green-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-green-glow {
    0% { box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4), 0 0 0 14px rgba(46, 204, 113, 0.1); }
    100% { box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4); }
}

.hero-bottom {
    flex-shrink: 0;
    padding: 0 2.5rem;
    margin-top: auto;
}

.subtitle-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0.8rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f5c518;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    text-align: center;
    letter-spacing: 0.04em;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 520px;
    width: 100%;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-yellow {
    background: #f5c518;
    color: #1a1a1a;
}

.btn-with-avatar {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    gap: 1rem;
}

.btn-with-avatar .btn-text {
    flex: 1;
    text-align: center;
}

.btn-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e6b800;
    flex-shrink: 0;
}

.btn-green {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
}

.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.6); }
    50% { box-shadow: 0 0 20px 10px rgba(245, 197, 24, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); }
}

.block {
    padding: 4rem 2rem;
}

.block-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.block-empathy {
    background: linear-gradient(180deg, #fff8e1 0%, #fff3cd 100%);
    padding: 4rem 2rem;
}

.empathy-content {
    max-width: 720px;
}

.empathy-questions {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(245, 197, 24, 0.3);
}

.empathy-questions p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    border-left: 3px solid #f5c518;
}

.empathy-lead {
    font-size: 1.35rem !important;
    font-weight: 700;
    color: #1a1a1a !important;
}

.empathy-warning {
    margin-bottom: 2.5rem;
    padding: 1.8rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
}

.empathy-warning p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.empathy-warning p:last-child {
    margin-bottom: 0;
}

.empathy-personal {
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-style: italic;
}

.empathy-personal p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.empathy-link {
    color: #2ecc71;
    text-decoration: underline;
    font-weight: 600;
}

.empathy-ilona {
    margin-bottom: 1rem;
}

.empathy-ilona h2 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    text-align: center;
}

.empathy-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
    text-align: center;
}

.ilona-traits {
    padding: 2rem;
    background: rgba(46, 204, 113, 0.08);
    border-radius: 14px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.ilona-traits p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 3px solid #2ecc71;
}

.ilona-traits p:last-child {
    margin-bottom: 0;
}

.trait-highlight {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: #1a1a1a !important;
}

.trait-closing {
    font-size: 1.15rem !important;
    font-weight: 700;
    color: #2ecc71 !important;
    border-left-color: #f5c518 !important;
    margin-top: 0.5rem;
}

.block-how {
    background: #ffffff;
    padding: 4rem 2rem;
}

.how-intro {
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: left;
}

.how-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1rem;
}

.how-intro p:last-child {
    margin-bottom: 0;
}

.how-subtitle {
    font-size: 1.3rem;
    color: #1a1a1a;
    text-align: center;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.how-closing {
    margin-top: 2.5rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0faf0 0%, #e8f5e9 100%);
    border-radius: 14px;
}

.closing-highlight {
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #333 !important;
    margin-bottom: 0.8rem;
}

.closing-promise {
    font-size: 1.15rem !important;
    font-weight: 600;
    color: #2ecc71 !important;
    margin-bottom: 1rem;
}

.closing-cta {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: #1a1a1a !important;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #f5c518;
    color: #1a1a1a;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.step p {
    font-size: 1.05rem;
    color: #333;
    padding-top: 0.4rem;
}

.steps-note {
    margin-top: 1rem;
    font-weight: 600;
    color: #2ecc71 !important;
    font-size: 1.05rem !important;
}

.block-offer {
    background: #f0faf0;
    padding: 5rem 2rem;
}

.block-offer .block-inner {
    max-width: 960px;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.offer-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.offer-card-featured {
    border-color: #2ecc71;
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.2);
}

.offer-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.offer-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.offer-minutes {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e2d;
    margin-bottom: 0.3rem;
    margin-top: 0.5rem;
}

.offer-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.offer-list li {
    font-size: 1rem;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.offer-list li:last-child {
    border-bottom: none;
}

.offer-card .btn-green {
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
}

@media (max-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .offer-card-featured {
        transform: none;
        order: -1;
    }

    .offer-card-featured:hover {
        transform: translateY(-4px);
    }
}

.chat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.chat-overlay.active {
    display: flex;
}

.chat-container {
    background: #fff;
    width: 90%;
    max-width: 460px;
    height: 70vh;
    max-height: 600px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background: #f5c518;
    color: #1a1a1a;
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fafafa;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.ilona {
    background: #e8f5e9;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background: #f5c518;
    color: #1a1a1a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.typing {
    font-style: italic;
    color: #999;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 0.75rem;
    gap: 0.5rem;
    background: #fff;
}

.chat-input-area input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.chat-input-area input:focus {
    border-color: #f5c518;
}

.send-btn {
    padding: 0.7rem 1.2rem;
    background: #f5c518;
    color: #1a1a1a;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.send-btn:hover {
    background: #e6b800;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('/static/hatter_mobile.jpg');
        background-attachment: scroll;
        align-items: flex-start;
        justify-content: center;
    }

    .hero-layout {
        padding: 1.5rem 1rem;
    }

    .service-title {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 1.55rem;
    }

    .hero-middle {
        padding: 0.5rem 1rem 0;
        align-items: flex-start;
        justify-content: center;
        padding-left: 1rem;
    }

    .demo-card {
        padding: 1rem 1.8rem 0.9rem;
        border-radius: 20px;
        min-width: 180px;
    }

    .demo-card-avatar-wrap {
        width: 60px;
        height: 60px;
    }

    .demo-card-name {
        font-size: 1rem;
    }

    .demo-card-status {
        margin-bottom: 0.6rem;
    }

    .demo-call-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.8rem;
    }

    .hero-bottom {
        padding: 0 0.5rem;
    }

    .subtitle-box {
        padding: 0.7rem 1rem;
        border-radius: 14px;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }

    .block {
        padding: 3rem 1.5rem;
    }

    .block h2 {
        font-size: 1.4rem;
    }

    .chat-container {
        height: 85vh;
        max-height: none;
        width: 95%;
    }
}

.site-footer {
    background: #2c3e2d;
    padding: 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}
