/* ==================================================
   slam.lt — Main Stylesheet
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #276fd1;
    color: #ffffff;
    font-family: Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==================================================
   Header
   ================================================== */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
}

.site-logo {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}


/* ==================================================
   Homepage
   ================================================== */

.home-main {
    min-height: 500px;
}

.home-container {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}

.home-intro {
    padding: 55px 0 30px;
    text-align: center;
}

.home-intro h1 {
    margin: 0;
    font-size: 28px;
}

.home-intro p {
    margin: 10px 0 0;
    color: #c5e3fa;
    font-size: 15px;
    line-height: 1.8;
}


/* Services */

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 10px 0 10px;
}

.service {
    min-height: 160px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    transition:
        transform .15s ease,
        border-color .15s ease;
}

.service:hover {
    transform: translateY(-2px);
    border-color: #c9cdd3;
}

.service-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f3f4f6;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: #165cbc;
}

.service-content {
    min-width: 0;
}

.service h2 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #165cbc;
}

.service p {
    margin: 0;
    color: #71717a;
    font-size: 14px;
    line-height: 1.8;
}

.empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    color: #71717a;
}


/* ==================================================
   Footer
   ================================================== */

.site-footer {
    width: 100%;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.site-footer-inner {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
    text-align: center;
}

.site-footer p {
    margin: 13px 0 0 0;
    color: #71717a;
    font-size: 12px;
    line-height: 1.8;
}
.site-footer-inner a {
    color: #276fd1;
}

.footer-links {
    color: #276fd1;
}

/* ==================================================
   Mobile
   ================================================== */

@media (max-width: 650px) {

    .site-header-inner {
        padding: 18px 0;
    }

.site-logo img {
    width: 135px;
}

    .home-container {
        width: min(100% - 24px, 920px);
    }

    .home-intro {
        padding: 38px 0 22px;
    }

    .home-intro h1 {
        font-size: 23px;
    }

    .home-intro p {
        font-size: 14px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 40px;
    }

    .service {
        min-height: 130px;
        padding: 20px;
        border-radius: 16px;
    }

    .site-footer {
        margin-top: 35px;
    }

    .site-footer-inner {
        padding: 20px 0;
    }
}




/* ==================================================
   Service Pages
   ================================================== */

.service-main {
    min-height: auto;
}

.service-page {
    width: min(680px, calc(100% - 28px));
    margin: 50px auto 0;
}

.tool-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.tool-card h1 {
    margin: 0 0 8px;
    font-size: 27px;
    color: #000;
}

.description {
    margin: 0 0 25px;
    color: #71717a;
    font-size: 14px;
    line-height: 1.8;
}

.url-input {
    direction: ltr;
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #18181b;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: left;
}

.url-input:focus {
    border-color: #18181b;
}

main.legal-main {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}


.submit,
.download {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 14px;
    border: 0;
    border-radius: 11px;
    background: #2d87f4;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.submit {
    margin-top: 12px;
}

.error {
    margin-bottom: 18px;
    padding: 13px 15px;
    background: #ff0012;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.result {
    margin-top: 22px;
    padding: 18px;
    background: #f5f6f7;
    border-radius: 12px;
}

.result-title {
    margin-bottom: 10px;
    color: #71717a;
    font-size: 13px;
}

.result-row {
    display: flex;
    gap: 8px;
}

.short-url {
    direction: ltr;
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #d4d4d8;
    border-radius: 9px;
    background: #ffffff;
    color: #18181b;
    font-family: Arial, sans-serif;
    font-size: 15px;
    text-align: left;
}

.copy {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: #18181b;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.video-info {
    margin-bottom: 15px;
    line-height: 1.8;
}

.author {
    margin-bottom: 7px;
    font-weight: bold;
}

.video-description,
.post-text {
    color: #71717a;
    font-size: 13px;
    line-height: 1.8;
}

.video-description {
    margin-top: 6px;
}

.post-text {
    margin-bottom: 15px;
}

.quality {
    margin-bottom: 15px;
    color: #71717a;
    font-size: 12px;
}

.privacy {
    margin: 18px 0 0;
    color: #a1a1aa;
    font-size: 12px;
    line-height: 1.8;
}

.back {
    display: block;
    width: max-content;
    margin: 22px auto 0;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

.placeholder-card {
    text-align: center;
}


/* Service Pages — Mobile */

@media (max-width: 650px) {

    .service-page {
        margin-top: 28px;
    }

    .tool-card {
        padding: 24px 18px;
        border-radius: 15px;
    }

    .tool-card h1 {
        font-size: 23px;
    }

    .result-row {
        display: block;
    }

    .short-url {
        width: 100%;
    }

    .copy {
        width: 100%;
        margin-top: 8px;
    }
}

/* ==================================================
   PDF Upload
   ================================================== */

.file-picker {
    display: block;
    padding: 24px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
}

.file-picker-title {
    display: block;
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: bold;
}

.file-picker-note {
    display: block;
    color: #71717a;
    font-size: 12px;
    line-height: 1.7;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.file-summary {
    margin-top: 10px;
    color: #71717a;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}
