/* ------------------- COMMON ------------------- */

* {
    box-sizing: border-box;
}

html body {
    min-width: 359px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    height: 100%;
    min-height: 100vh;
    background: var(--background);
}

main {
    flex: 1;
}

h2 {
    margin: 0 0 20px;
    line-height: 1.3;
    font-weight: 700;
}

/* ------------------- INPUT ------------------- */

input,
input:focus,
input:active {
    color: var(--text);
    outline: none !important;
    box-shadow: none !important;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #CCC;
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
    color: rgba(0, 0, 0, .2);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    box-shadow: none !important;
}

input:focus-visible {
    border: 1px solid var(--primary) !important;
}

label {
    display: inline-block;
    font-weight: 400;
    margin-bottom: 10px;
}

/* ------------------- BUTTON ------------------- */

button {
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 12px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: "PT Sans", sans-serif;
}

button:hover {
    background: rgb(from var(--primary) r g b / 90%);
}

button.button-link {
    padding: 5px;
    color: var(--primary);
    background: unset;
}

a.button-link {
    padding: 0;
    color: var(--primary);
    background: unset;
    text-decoration: none;
}

button.button-link.button-link--error,
a.button-link.button-link--error {
    color: var(--error);
}

button.button-link.button-link--bold,
a.button-link.button-link--bold {
    font-weight: 700;
}

button.button-link:hover {
    color: rgb(from var(--primary) r g b / 90%);
}

button.button-link:disabled {
    opacity: .5;
}

/* ------------------- HEADER ------------------- */

header.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 10px 10px;
}

header.container.container-wide {
    max-width: 1144px;
}

.header-content {
    margin: 0 auto;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 1px 4px 0 #0000001A;
}

.header-inner {
    width: 100%;
}

.header-content.top-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.header-content.top-block + div {
    margin-top: 10px;
}

.header-content.top-block .logo {
    display: inline-block;
    width: 75px;
    height: 19px;
}

.header-content.top-block .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.header-content.top-block .controllers {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.header-content.top-block .menu-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary);
}

.header-content.top-block .menu-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.header-content.top-block .menu-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    color: var(--primary);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgb(from var(--primary) r g b / 5%);
    font-size: 16px;
    font-weight: 400;
    color: var(--primary);
    text-decoration: none;
}

/* Второй блок */
.header-content .image-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 5px;
    max-height: 120px;
    min-height: 90px;
    border-radius: 16px;
    overflow: hidden;
}

.header-content .image-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.header-content .image-block .background {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.header-content .image-block .gdti-logo {
    max-height: 110px;
    z-index: 1;
}

/* ------------------- FOOTER ------------------- */

footer {
    padding: 20px 10px;
    font-size: 14px;
    text-align: center;
    color: var(--text-secondary);
}

footer p {
    margin: 0 0 5px;
}

footer img {
    margin-top: 5px;
}

.footer-phone {
    display: inline-block;
    padding-left: 3px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all .3s ease-in-out;
}

.footer-phone:hover {
    color: var(--primary);
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-version {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.footer-version::before {
    content: "";
    width: 1px;
    height: 16px;
    margin-right: 10px;
    background: var(--text-secondary);
}

/* ------------------- NAVIGATION ------------------- */

nav {
    background: #eaeaea;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 15px;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

nav a:hover {
    background: #dcdcdc;
}

/* ------------------- SECTION ------------------- */

section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
}

section.container {
    padding: 0 10px;
}

section.container.container-wide {
    max-width: 1144px;
}

/* ------------------- FORM ------------------- */

.form-block {
    background: var(--white);
    padding: 20px;
    margin: 0 auto 10px;
    border-radius: 16px;
    box-shadow: 0 1px 4px 0 #0000001A;
}

.form-title + .form-text {
    margin-top: -10px;
}

.form-text {
    margin: 0 0 20px;
}

.form-text span {
    font-weight: 700;
    color: var(--primary);
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row button {
    width: 70%;
}

/* ------------------- BANNER & BANNER ERROR ------------------- */

.banner {
    position: relative;
    font-size: 16px;
    line-height: 1.2;
    padding: 16px;
    border-radius: 12px;
    color: var(--primary);
    border: 1px solid rgb(from var(--primary) r g b / 10%);
    background: rgb(from var(--primary) r g b / 10%);
}

.banner.banner-icon {
    padding: 16px 16px 16px 52px;
}

.banner.banner-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.banner.banner-error {
    color: var(--error);
    border: 1px solid rgb(from var(--error) r g b / 10%);
    background: rgb(from var(--error) r g b / 10%);
}

.banner.banner-error.banner-icon::after {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='22' viewBox='0 0 20 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0C15.523 0 20 4.477 20 10C20 15.523 15.523 20 10 20C4.477 20 0 15.523 0 10C0 4.477 4.477 0 10 0ZM10 2C7.87827 2 5.84344 2.84285 4.34315 4.34315C2.84285 5.84344 2 7.87827 2 10C2 12.1217 2.84285 14.1566 4.34315 15.6569C5.84344 17.1571 7.87827 18 10 18C12.1217 18 14.1566 17.1571 15.6569 15.6569C17.1571 14.1566 18 12.1217 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84285 12.1217 2 10 2ZM10 13C10.2652 13 10.5196 13.1054 10.7071 13.2929C10.8946 13.4804 11 13.7348 11 14C11 14.2652 10.8946 14.5196 10.7071 14.7071C10.5196 14.8946 10.2652 15 10 15C9.73478 15 9.48043 14.8946 9.29289 14.7071C9.10536 14.5196 9 14.2652 9 14C9 13.7348 9.10536 13.4804 9.29289 13.2929C9.48043 13.1054 9.73478 13 10 13ZM10 4C10.2652 4 10.5196 4.10536 10.7071 4.29289C10.8946 4.48043 11 4.73478 11 5V11C11 11.2652 10.8946 11.5196 10.7071 11.7071C10.5196 11.8946 10.2652 12 10 12C9.73478 12 9.48043 11.8946 9.29289 11.7071C9.10536 11.5196 9 11.2652 9 11V5C9 4.73478 9.10536 4.48043 9.29289 4.29289C9.48043 4.10536 9.73478 4 10 4Z' fill='%23DC3545'/%3E%3C/svg%3E%0A");
}

/* ------------------- INFO PANEL ------------------- */

.info-panel__list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.info-panel__item {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid rgba(18, 90, 205, 0.1);
}

.info-panel__icon {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.info-panel__icon svg {
    width: 18px;
    height: 18px;
}

.info-panel__icon--blue {
    color: #125acd;
}

.info-panel__icon--green {
    color: #179a59;
}

.info-panel__icon--amber {
    color: #e68d18;
}

.info-panel__icon--red {
    color: #d64636;
}

.info-panel__text {
    color: #2b2f38;
    line-height: 1.5;
}


@media (max-width: 480px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .header-content.top-block {
        padding: 10px;
    }

    .form-block {
        padding: 20px 10px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row button {
        width: 100%;
    }
}