:root {
    --accent: #cf4d35;
    --accent-soft: #fff1ee;
    --ink: #1f2933;
    --muted: #68727f;
    --line: #e8eaee;
    --surface: #ffffff;
    --soft: #fafafa;
    --footer: #2f3338;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

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

img {
    display: block;
    max-width: 100%;
}

.test-notice {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    background: #fff7ed;
    color: #7a3d12;
    border-bottom: 1px solid #fed7aa;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.test-notice a {
    color: #9a3412;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(232, 234, 238, .9);
    backdrop-filter: blur(16px);
}

.topbar,
.main-nav,
.section,
.contact-section,
.site-footer {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.brand img {
    width: 174px;
    height: auto;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    padding: 9px 14px;
    font: inherit;
    font-weight: 700;
}

.main-nav {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #46505c;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a {
    padding: 8px 0;
}

.main-nav a:hover,
.language-switch a.active {
    color: var(--accent);
}

.language-switch {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.language-switch a {
    min-width: 36px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff;
}

.language-switch a.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.hero {
    width: min(1160px, calc(100% - 36px));
    min-height: 380px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 455px);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
}

.hero-copy {
    padding: 24px 0 30px;
}

.hero-compact {
    min-height: 0;
    margin-top: 18px;
    display: block;
}

.hero-compact .hero-copy {
    max-width: 860px;
    padding: 22px 0 12px;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--accent);
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    line-height: 1.16;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
}

.hero-compact h1 {
    font-size: clamp(34px, 4vw, 48px);
}

h2 {
    font-size: clamp(27px, 4vw, 38px);
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 18px;
}

.hero-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
}

.hero-media {
    position: relative;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 24px 70px rgba(31, 41, 51, .11);
}

.button,
.contact-form button {
    width: fit-content;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 13px 20px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(207, 77, 53, .18);
}

.button:hover,
.contact-form button:hover {
    filter: brightness(.96);
}

.flags,
.card-flags {
    margin-bottom: 20px;
    font-size: 28px;
}

.section {
    padding: 44px 0;
}

.hero-compact + .section {
    padding-top: 18px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 42px;
    align-items: start;
}

.split > div:first-child,
.article article {
    color: var(--muted);
}

.split h2,
.article h2,
.section-head h2,
.section > h2 {
    color: var(--ink);
}

.panel,
.card,
.service-card,
.contact-section {
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel {
    padding: 30px;
    box-shadow: 0 18px 55px rgba(31, 41, 51, .06);
}

.process-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.process-columns ol {
    margin: 0;
    padding-left: 22px;
}

.process-columns li,
.check-list li {
    margin: 12px 0;
}

.check-list {
    margin: 24px 0 0;
    padding-left: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft);
}

.article {
    display: grid;
    gap: 20px;
}

.article article {
    max-width: 880px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.article article:last-child {
    border-bottom: 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head a {
    color: var(--accent);
    font-weight: 800;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-height: 260px;
    padding: 24px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.card:hover,
.service-card:hover {
    border-color: rgba(207, 77, 53, .45);
    box-shadow: 0 18px 45px rgba(31, 41, 51, .08);
    transform: translateY(-3px);
}

.card p {
    color: var(--muted);
    margin: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    overflow: hidden;
    font-weight: 800;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.service-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-card span {
    display: block;
    padding: 18px 20px 20px;
}

.contact-section {
    margin-bottom: 62px;
    padding: 34px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 36px;
    box-shadow: 0 18px 55px rgba(31, 41, 51, .06);
}

.contact-section p {
    color: var(--muted);
}

.tool-section {
    padding-top: 0;
}

.tool-card {
    display: grid;
    gap: 18px;
    max-width: 980px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(31, 41, 51, .06);
}

.tool-grid,
.password-controls,
.password-options {
    display: grid;
    gap: 16px;
}

.tool-grid,
.password-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.tool-card label,
.password-controls label,
.password-options label {
    display: grid;
    gap: 7px;
    color: #3a4450;
    font-weight: 800;
}

.password-options label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.counter-grid div {
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.counter-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
}

.counter-grid span {
    color: var(--muted);
    font-weight: 800;
}

.lookup-result {
    min-height: 42px;
}

.lookup-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.lookup-table th,
.lookup-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.lookup-table tr:last-child th,
.lookup-table tr:last-child td {
    border-bottom: 0;
}

.lookup-table th {
    width: 210px;
    color: var(--ink);
    background: var(--soft);
}

.lookup-table td {
    color: var(--muted);
    word-break: break-word;
}

.lookup-error {
    margin: 0;
    color: var(--accent);
    font-weight: 800;
}

.robots-table {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.robots-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(240px, .55fr);
    border-bottom: 1px solid var(--line);
}

.robots-row:last-child {
    border-bottom: 0;
}

.robots-row > div {
    padding: 16px;
}

.robots-row > div:first-child {
    border-right: 1px solid var(--line);
}

.robots-row strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 17px;
}

.robots-row:first-child strong {
    color: var(--ink);
}

.robots-row p {
    margin: 0;
    color: var(--muted);
}

.robots-row select,
.robots-row input,
.robots-extra select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 12px 14px;
    font: inherit;
}

.robots-extra {
    margin-top: 4px;
}

.tool-card input,
.tool-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
    font: inherit;
}

.tool-card .password-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0 9px 0 0;
    padding: 0;
    flex: 0 0 16px;
}

.tool-card textarea {
    resize: vertical;
}

.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.tool-actions button {
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tool-actions button + button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.alias-field,
.chars-field {
    flex: 1 1 320px;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #3a4450;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent-soft);
    border-color: rgba(207, 77, 53, .55);
}

.form-status {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    padding: 34px 0;
    color: #f9f9f9;
    background: var(--footer);
    box-shadow: 0 0 0 100vmax var(--footer);
    clip-path: inset(0 -100vmax);
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    max-width: 340px;
}

.site-footer img {
    width: 142px;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
}

.footer-group {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 190px;
}

.footer-group + .footer-group {
    margin-left: 24px;
}

.footer-group strong {
    margin-bottom: 4px;
    color: #fff;
}

.site-footer a:hover {
    color: #fff;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        padding: 14px 0 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav.open {
        display: flex;
    }

    .language-switch {
        margin-left: 0;
    }

    .hero,
    .split,
    .contact-section,
    .tool-grid,
    .password-controls {
        grid-template-columns: 1fr;
    }

    .password-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .counter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lookup-table th,
    .lookup-table td {
        display: block;
        width: 100%;
    }

    .robots-row {
        grid-template-columns: 1fr;
    }

    .robots-row > div:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero {
        margin-top: 16px;
        min-height: 0;
    }

    .hero-media {
        max-width: 560px;
    }

    .hero-image {
        aspect-ratio: 16 / 10;
    }

    .card-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .test-notice {
        flex-direction: column;
        gap: 2px;
    }

    .topbar,
    .main-nav,
    .section,
    .contact-section,
    .site-footer,
    .hero {
        width: min(100% - 28px, 1160px);
    }

    .brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .brand img {
        width: 160px;
    }

    .hero-copy {
        padding: 20px 0 22px;
    }

    h1 {
        font-size: 36px;
    }

    .card-grid,
    .service-grid,
    .process-columns,
    .password-options,
    .counter-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 24px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-group,
    .footer-group + .footer-group {
        margin-left: 0;
    }
}
