* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #84c9e8;
    color: #11203c;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    background: #263c5b;
    color: #fff;
}

.header-inner {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
}

.logo-icon {
    color: #64a8ff;
    font-size: 34px;
}

.logo span:last-child {
    color: #6faeff;
}

.nav {
    display: flex;
    gap: 40px;
    color: #e1e7ef;
    font-size: 16px;
}

.page {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 55px 0 30px;

    flex: 1;
}

.hero {
    text-align: center;
    margin-bottom: 42px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
}

.hero p {
    color: #647391;
    font-size: 20px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow:
        0 15px 40px rgba(21, 43, 76, 0.06),
        0 1px 3px rgba(21, 43, 76, 0.05);
    border: 1px solid #edf1f7;
    margin-bottom: 24px;
}

.card-title-row {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.circle-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.circle-icon.blue {
    background: #e9f1ff;
    color: #1671ed;
}

.circle-icon.red {
    background: #ffe9e9;
    color: #df4047;
}

.card-title h2 {
    font-size: 27px;
    margin-bottom: 5px;
}

.card-title p {
    color: #66738c;
    font-size: 17px;
}

.input-wrapper {
    height: 58px;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.input-wrapper:focus-within {
    border-color: #2b75ea;
    box-shadow: 0 0 0 3px rgba(43, 117, 234, 0.1);
}

.input-icon {
    width: 35px;
    color: #6d7d96;
    font-size: 21px;
    flex-shrink: 0;
}

.input-wrapper input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
    color: #293855;
    background: transparent;
}

.input-wrapper input::placeholder {
    color: #8490a5;
}

.button {
    border: 0;
    border-radius: 7px;
    width: 100%;
    height: 55px;
    margin-top: 13px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-blue {
    color: #fff;
    background: linear-gradient(90deg, #1670ee, #2e7af0);
}

.button-blue:hover {
    box-shadow: 0 8px 20px rgba(35, 113, 235, 0.22);
}

.button-red {
    color: #fff;
    background: #d94047;
}

.button-red:hover {
    background: #c9363d;
}

.success-box {
    margin-top: 20px;
    background: #effbf3;
    border: 1px solid #c4eed2;
    border-radius: 9px;
    padding: 18px 20px;
    display: flex;
    gap: 18px;
}

.success-check {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #37ac62;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    flex-shrink: 0;
}

.success-content {
    flex: 1;
    min-width: 0;
}

.success-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.result-row {
    display: flex;
    border: 1px solid #ccd7e7;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
}

.result-url {
    flex: 1;
    padding: 15px 16px;
    color: #1570ed;
    font-weight: 700;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button {
    border: 0;
    background: #1269ea;
    color: #fff;
    font-weight: 700;
    padding: 0 25px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

.copy-button:hover {
    background: #0e5fda;
}

.destination {
    font-size: 14px;
    color: #65738a;
    margin-top: 10px;
    word-break: break-all;
}

.info-box {
    padding: 19px 23px;
    border-radius: 13px;
    background: #e9f3ff;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #176bc8;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    margin-bottom: 5px;
}

.info-text span {
    color: #586b88;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 25px 0;
}

.footer-inner {
    width: min(1080px, calc(100% - 40px));
    margin: auto;
    display: flex;
    justify-content: space-between;
    color: #6e7d96;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a:hover {
    color: #1670ee;
}

@media (max-width: 700px) {
    .header-inner {
        min-height: 64px;
    }

    .nav {
        display: none;
    }

    .logo {
        font-size: 23px;
    }

    .page {
        padding-top: 35px;
    }

    .hero {
        margin-bottom: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .card {
        padding: 20px;
    }

    .card-title-row {
        gap: 14px;
    }

    .circle-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .card-title h2 {
        font-size: 21px;
    }

    .card-title p {
        font-size: 15px;
    }

    .success-box {
        padding: 15px;
    }

    .success-check {
        display: none;
    }

    .result-row {
        display: block;
    }

    .copy-button {
        width: 100%;
        height: 45px;
    }

    .footer-inner {
        display: block;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        margin-top: 15px;
    }
}

.form-error {
    margin-top: 10px;
    color: #d94047;
    font-size: 14px;
    font-weight: 500;
}

.button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
