:root {
    --primary-color: #1F6132;
    --accent-color: #D8212A;
    --primary-light: rgba(31, 97, 50, 0.08);
    --accent-light: rgba(216, 33, 42, 0.08);
    --surface: #ffffff;
    --background: #f5f7fa;
    --text: #333333;
    --text-muted: #777777;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 28px rgba(31, 97, 50, 0.14);
    --radius: 12px;
    --motion-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --motion-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    animation: logoEnter 0.8s var(--motion-emphasized) both;
}

@keyframes logoEnter {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: fadeUp 0.7s var(--motion-emphasized) 0.15s both;
}

.tagline {
    color: var(--text-muted);
    margin-bottom: 24px;
    animation: fadeUp 0.7s var(--motion-emphasized) 0.25s both;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    animation: fadeUp 0.7s var(--motion-emphasized) 0.35s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition:
        transform 0.25s var(--motion-standard),
        box-shadow 0.25s var(--motion-standard),
        background-color 0.25s var(--motion-standard),
        color 0.25s var(--motion-standard);
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(31, 97, 50, 0.28);
}

.btn-primary:hover {
    background: #184f29;
    color: #fff;
    box-shadow: 0 8px 20px rgba(31, 97, 50, 0.32);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-light);
    color: var(--accent-color);
}

.card {
    background: var(--surface);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
    transition:
        transform 0.35s var(--motion-emphasized),
        box-shadow 0.35s var(--motion-emphasized),
        border-color 0.35s var(--motion-emphasized);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(31, 97, 50, 0.12);
}

.card h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s var(--motion-emphasized),
        transform 0.7s var(--motion-emphasized);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-grid {
    display: grid;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--primary-light);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.25s var(--motion-standard),
        background-color 0.25s var(--motion-standard),
        box-shadow 0.25s var(--motion-standard);
}

.contact-item:hover {
    transform: translateX(6px);
    background: rgba(31, 97, 50, 0.12);
    box-shadow: 0 4px 12px rgba(31, 97, 50, 0.1);
    text-decoration: none;
}

.contact-item-static {
    cursor: default;
}

.contact-item-static:hover {
    transform: none;
    box-shadow: none;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s var(--motion-emphasized);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item:hover .contact-icon {
    transform: scale(1.08);
    color: var(--accent-color);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.contact-text strong {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.contact-text span:last-child {
    color: var(--accent-color);
    word-break: break-word;
}

.contact-item-static .contact-text span:last-child {
    color: var(--text);
}

.contact-arrow {
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-8px);
    transition:
        opacity 0.25s var(--motion-standard),
        transform 0.25s var(--motion-standard);
}

.contact-item:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(31, 97, 50, 0.12);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s var(--motion-standard);
}

.faq-item.is-open {
    border-color: rgba(31, 97, 50, 0.28);
    box-shadow: 0 4px 14px rgba(31, 97, 50, 0.08);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: none;
    background: var(--surface);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s var(--motion-standard);
}

.faq-trigger:hover {
    background: var(--primary-light);
}

.faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--accent-color);
    border-radius: 2px;
    transition: transform 0.3s var(--motion-emphasized);
}

.faq-icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--motion-emphasized);
}

.faq-item.is-open .faq-panel {
    grid-template-rows: 1fr;
}

.faq-panel > p {
    overflow: hidden;
    padding: 0 18px;
    color: var(--text);
    transition: padding 0.35s var(--motion-emphasized);
}

.faq-item.is-open .faq-panel > p {
    padding: 0 18px 16px;
}

.developer {
    text-align: center;
    margin-top: 10px;
    padding: 28px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 97, 50, 0.08);
}

.developer-label {
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.developer-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s var(--motion-emphasized);
}

.developer-link:hover {
    transform: scale(1.04);
    text-decoration: none;
}

.developer-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 130px;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(31, 97, 50, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    transition:
        opacity 0.3s var(--motion-standard),
        transform 0.3s var(--motion-standard),
        background-color 0.25s var(--motion-standard);
    z-index: 100;
}

.scroll-top svg {
    width: 22px;
    height: 22px;
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(31, 97, 50, 0.3);
    opacity: 0;
    transition:
        opacity 0.3s var(--motion-standard),
        transform 0.3s var(--motion-standard);
    z-index: 200;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 20px auto;
    }

    .logo {
        width: 96px;
    }

    .card {
        padding: 20px;
    }

    .card:hover {
        transform: none;
    }

    .contact-item:hover {
        transform: none;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
    }

    .developer-logo {
        max-width: 110px;
    }
}

@media (min-width: 769px) {
    .developer-logo {
        max-width: 260px;
        max-height: 48px;
    }
}

@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;
    }
}
