/*
 * Shared angular design language for the two cadastral services.
 * Matches the existing GOSKADASTR palette: #303F9F, #1976D2, #FF5252.
 * All selectors scoped to .gk-service to keep legacy pages untouched.
 */
.gk-service {
    --gk-blue: #1976d2;
    --gk-indigo: #303f9f;
    --gk-accent: #ff5252;
    --gk-line: #d9dce3;
    --gk-subtle: #f2f3f5;
    --gk-text: #30343c;
    color: var(--gk-text);
    padding-bottom: 34px;
    min-width: 0;
}
.gk-service [hidden] { display: none !important; }
.gk-service, .gk-service * { box-sizing: border-box; }
.gk-service__intro {
    margin: 2px 0 19px;
    padding: 0 0 17px;
    border-bottom: 2px solid var(--gk-indigo);
}
.gk-service__intro h2 {
    font-family: Scada, "Open Sans", sans-serif;
    font-size: 26px;
    line-height: 1.22;
    font-weight: 700;
    color: #303f9f;
    margin: 0 0 10px;
}
.gk-service__intro p {
    font-size: 15px;
    line-height: 1.65;
    color: #555b64;
    margin: 0;
}
.gk-service__hint {
    margin: 0 0 18px;
    padding: 13px 16px;
    background: #e9edf8;
    border: 1px solid #d1d6e8;
    border-left: 4px solid var(--gk-indigo);
    color: #353d51;
    font-size: 14px;
    line-height: 1.55;
}
.gk-service__hint a { color: #303f9f; text-decoration: underline; }
.gk-service__panel,
.gk-service .gk-service__panel.panel {
    border: 1px solid var(--gk-line);
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    overflow: visible;
    margin: 0 0 20px;
}
.gk-service .gk-service__panel > .panel-heading,
.gk-service .gk-service__panel.panel > .panel-heading {
    border-radius: 0;
    border: 0;
    border-top: 3px solid var(--gk-indigo);
    border-bottom: 1px solid var(--gk-line);
    background: #e9eaf0;
    padding: 13px 16px;
}
.gk-service .gk-service__panel .panel-title,
.gk-service .gk-service__panel .panel-title a {
    font-family: Scada, "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    text-decoration: none;
    color: #303f9f;
}
.gk-service .gk-service__panel .panel-title a:hover { color: #1976d2; }
.gk-service .gk-service__panel .panel-heading i { color: var(--gk-indigo); }
.gk-service .gk-service__panel .panel-body {
    padding: 20px;
    background: var(--gk-subtle);
}
.gk-service .gk-service__panel .search-box.gray-bg {
    margin: 0;
    padding: 0;
    background: transparent;
}
.gk-service .search-form-section { opacity: 1; }
.gk-service .search-form-section label {
    font-size: 14px;
    font-weight: 700;
    color: #3c4150;
    text-align: left;
}
.gk-service .form-control {
    color: #222;
    background: #fff;
    border: 1px solid #bfc3cd;
    border-radius: 0;
    box-shadow: none;
    min-height: 42px;
}
.gk-service .form-control:focus {
    border-color: var(--gk-blue);
    box-shadow: none;
    outline: 2px solid rgba(25,118,210,.12);
    outline-offset: 0;
}
.gk-service .btn,
.gk-service .button {
    border-radius: 0;
    box-shadow: none;
    font-family: Scada, "Open Sans", sans-serif;
    font-weight: 600;
}
.gk-service .btn-primary { color: #fff; background: var(--gk-blue); border-color: var(--gk-blue); }
.gk-service .btn-primary:hover,
.gk-service .btn-primary:focus { background: #145ca4; border-color: #145ca4; color: #fff; }
.gk-service .btn-default { color: #333; border-color: #bfc3cd; }
.gk-service .btn:focus-visible,
.gk-service a:focus-visible,
.gk-service button:focus-visible { outline: 2px solid var(--gk-indigo); outline-offset: 3px; }
.gk-service .help-block { color: #686d77; font-size: 13px; margin: 9px 0 0; }
.gk-service .alert { border-radius: 0; }

/* One reusable sign-in invitation, rendered only for guests. */
.gk-service-auth {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 19px;
    border: 1px solid #d5d7df;
    background: #f7f7f8;
    padding: 16px 17px;
}
.gk-service-auth__symbol {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gk-accent);
    font-size: 26px;
}
.gk-service-auth__copy { flex: 1 1 auto; min-width: 0; }
.gk-service-auth__copy h3 {
    color: #303f9f;
    font-family: Scada, "Open Sans", sans-serif;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0 0 5px;
}
.gk-service-auth__copy p { font-size: 13px; line-height: 1.5; color: #555b63; margin: 0; }
.gk-service-auth__actions { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.gk-service .gk-service-auth__login,
.gk-service .gk-service-auth__login:visited {
    background: var(--gk-blue);
    padding: 10px 25px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    min-width: 121px;
}
.gk-service .gk-service-auth__login:hover,
.gk-service .gk-service-auth__login:focus { background: #145ca4; color: #fff; }
.gk-service-auth__register {
    color: #303f9f;
    font-size: 13px;
    text-decoration: underline;
    white-space: nowrap;
}
.gk-service-auth__register i { margin-left: 3px; }

/* Legacy object-search results inherit the same flat geometry. */
.gk-service--objects #search-result .search_objects-header {
    background: #e9eaf0;
    border-color: #cdd0da;
    color: #303f9f;
    font-weight: 700;
}
.gk-service--objects #search-result .search_objects-item {
    background: #fff;
    border-color: #d9dce3;
    border-radius: 0;
}
.gk-service--objects #search-result .obj_info {
    border-radius: 0;
    background: #f3f3f5;
}
.gk-service--objects .captcha-frame img,
.gk-service--objects .captcha-loader,
.gk-service--objects .search-loading-panel { border-radius: 0; }
.gk-service--objects .search-loading-panel {
    border-left: 4px solid var(--gk-blue);
    background: #f2f3f5;
}
.gk-service--objects #submit-button { font-weight: 700; }
.gk-service--objects #search-result .search_objects-item-actions .btn { border-radius: 0; }

@media (max-width: 767px) {
    .gk-service__intro h2 { font-size: 23px; }
    .gk-service__panel .panel-heading { padding: 12px 14px; }
    .gk-service .gk-service__panel .panel-body { padding: 15px; }
    .gk-service-auth { align-items: flex-start; flex-wrap: wrap; padding: 14px 13px; gap: 11px; }
    .gk-service-auth__symbol { flex-basis: 36px; width: 36px; height: 36px; font-size: 18px; }
    .gk-service-auth__copy { flex: 1 1 calc(100% - 47px); }
    .gk-service-auth__copy h3 { font-size: 17px; }
    .gk-service-auth__actions { flex: 1 1 100%; display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .gk-service .gk-service-auth__login { flex: 1 1 125px; min-width: 0; }
    .gk-service-auth__register { flex: 1 1 auto; text-align: center; }
    .gk-service--objects #search-result .search_objects-item { border-radius: 0; }
}
