:root {
    --tecd-ink: #1f2933;
    --tecd-muted: #52616f;
    --tecd-line: #d8dee6;
    --tecd-bg: #f7f9fb;
    --tecd-panel: #ffffff;
    --tecd-accent: #007c89;
    --tecd-accent-dark: #005f68;
    --tecd-warm: #f2c94c;
}

body {
    margin: 0;
    color: var(--tecd-ink);
    background: var(--tecd-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: var(--tecd-accent-dark);
}

.tecd-site-header,
.tecd-site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 64px);
    background: var(--tecd-panel);
    border-bottom: 1px solid var(--tecd-line);
}

.tecd-site-footer {
    border-top: 1px solid var(--tecd-line);
    border-bottom: 0;
}

.tecd-brand {
    color: var(--tecd-ink);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.tecd-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tecd-nav a {
    color: var(--tecd-muted);
    font-weight: 650;
    text-decoration: none;
}

.tecd-shell {
    width: min(100% - 40px, 960px);
    margin-inline: auto;
}

.tecd-page,
.tecd-form-page {
    min-height: 70vh;
}

.tecd-page {
    padding: clamp(36px, 7vw, 84px) 0;
}

.tecd-form-hero {
    padding: clamp(44px, 8vw, 92px) 0 clamp(28px, 5vw, 52px);
    background: linear-gradient(135deg, #ffffff 0%, #edf6f7 55%, #fff8db 100%);
    border-bottom: 1px solid var(--tecd-line);
}

.tecd-kicker {
    margin: 0 0 10px;
    color: var(--tecd-accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(2.15rem, 4vw, 4rem);
    line-height: 1.04;
}

.tecd-content {
    max-width: 760px;
    color: var(--tecd-muted);
    font-size: 1.08rem;
}

.tecd-form-panel {
    margin-block: clamp(28px, 5vw, 54px);
    padding: clamp(22px, 4vw, 42px);
    background: var(--tecd-panel);
    border: 1px solid var(--tecd-line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(31, 41, 51, 0.08);
}

.wpcf7 form {
    display: block;
}

.sportsfest-form-panel .wpcf7 p {
    margin: 0 0 18px;
}

.sportsfest-form-panel .wpcf7 br {
    display: none;
}

.wpcf7 label {
    display: block;
    color: var(--tecd-ink);
    font-weight: 700;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 7px;
}

.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    color: var(--tecd-ink);
    background: #fff;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    font: inherit;
}

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

.sportsfest-form-panel .wpcf7-list-item {
    display: inline-flex;
    margin: 0 14px 9px 0;
}

.sportsfest-form-panel .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.sportsfest-form-panel .wpcf7-list-item input {
    width: auto;
    margin: 0;
}

.sportsfest-form-panel .wpcf7-acceptance .wpcf7-list-item {
    display: flex;
}

.wpcf7 input[type="submit"] {
    width: fit-content;
    min-height: 44px;
    padding: 0 20px;
    color: #fff;
    background: var(--tecd-accent);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
    background: var(--tecd-accent-dark);
}

@media (max-width: 720px) {
    .tecd-site-header,
    .tecd-site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .tecd-form-panel {
        padding: 20px;
    }
}

.sportsfest-page {
    min-height: 75vh;
    padding: clamp(28px, 5vw, 64px) 0;
    background: #f7f9fb;
}

.sportsfest-shell {
    width: min(100% - 40px, 760px);
    margin-inline: auto;
}

.sportsfest-card {
    padding: clamp(22px, 5vw, 44px);
    background: #fff;
    border: 1px solid var(--tecd-line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 41, 51, 0.06);
}

.sportsfest-header {
    padding-bottom: 26px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--tecd-line);
}

.sportsfest-logo {
    display: block;
    width: min(260px, 76vw);
    height: auto;
    margin-bottom: 28px;
}

.sportsfest-header h1 {
    margin: 0 0 12px;
    color: var(--tecd-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.sportsfest-intro {
    max-width: 620px;
    color: var(--tecd-muted);
    font-size: 1rem;
}

.sportsfest-form-panel {
    margin: 0;
}

.tecd-native-form form {
    display: grid;
    gap: 18px;
}

.tecd-native-form label,
.tecd-native-form fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    color: var(--tecd-ink);
    font-weight: 700;
}

.tecd-native-form fieldset {
    padding: 0;
    border: 0;
}

.tecd-native-form legend {
    padding: 0 0 8px;
    font-weight: 700;
}

.tecd-field-note {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    margin: 8px 0 10px;
    color: #124f57;
    background: #e8f6f7;
    border-left: 4px solid var(--tecd-accent);
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.tecd-native-form input[type="text"],
.tecd-native-form input[type="email"],
.tecd-native-form input[type="tel"],
.tecd-native-form select,
.tecd-native-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    color: var(--tecd-ink);
    background: #fff;
    border: 1px solid #b8c2cc;
    border-radius: 6px;
    font: inherit;
}

.tecd-native-form textarea {
    min-height: 110px;
    resize: vertical;
}

.tecd-native-form .tecd-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    font-weight: 500;
}

.tecd-native-form .tecd-choice input {
    flex: 0 0 auto;
    margin: 0;
}

.tecd-native-form .tecd-consent {
    align-items: flex-start;
    padding-top: 4px;
}

.tecd-native-form button {
    width: fit-content;
    min-height: 44px;
    padding: 0 20px;
    color: #fff;
    background: var(--tecd-accent);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tecd-native-form button:hover,
.tecd-native-form button:focus {
    background: var(--tecd-accent-dark);
}

.tecd-form-message {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 6px;
    font-weight: 650;
}

.tecd-form-message--success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.tecd-form-message--error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}
