:root {
  color-scheme: light;
  --ogk-dark: #003121;
  --ogk-green: #009a66;
  --ogk-green-deep: #007a4d;
  --ogk-soft: #f6fff9;
  --ogk-line: #e0f2ea;
  --danger: #c70e00;
  --question: #e5e505;
  --page-width: 440px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@font-face {
  font-family: "Framework7 Icons";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/Framework7Icons-Regular.woff2") format("woff2");
}

.f7-icons {
  display: inline-block;
  font-family: "Framework7 Icons" !important;
  font-size: 26px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: linear-gradient(90deg, var(--ogk-dark), var(--ogk-green)); color: var(--ogk-dark); }
body { min-width: 320px; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page { min-height: 100dvh; }
.page-home {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(90deg, var(--ogk-dark), var(--ogk-green));
  padding-bottom: env(safe-area-inset-bottom);
}

.hero {
  position: relative;
  height: 355px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: calc(38px + env(safe-area-inset-top)) 18px 0;
  overflow: hidden;
}

.brand-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 150px;
  height: auto;
}

.hero-cut { display: none; }

.content-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-width);
  min-height: calc(100dvh - 140px);
  margin: -215px auto 0;
  padding: 0 14px 44px;
  background: transparent;
}

.content-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 185px;
  right: -1px;
  bottom: 0;
  left: -1px;
  background: #fff;
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 100%);
}

.section-block { margin: 0 0 24px; }
.section-title {
  margin: 0 0 12px;
  color: var(--ogk-green);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.section-icon { width: 28px; margin-right: 2px; text-align: center; vertical-align: -4px; }

.card {
  padding: 18px 16px;
  background: var(--ogk-soft);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 49, 33, .05);
}
.profile-card p { margin: 0 0 10px; line-height: 1.35; }
.profile-card p:last-child { margin-bottom: 0; }
.profile-card strong { font-weight: 650; }
.profile-card span { color: var(--ogk-green); font-weight: 750; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-tile {
  position: relative;
  min-height: 126px;
  padding: 15px 13px 13px;
  border: 1px solid rgba(0, 154, 102, .08);
  border-radius: 13px;
  background: var(--ogk-soft);
  color: var(--ogk-dark);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 49, 33, .05);
  cursor: pointer;
}
.service-tile:active { transform: translateY(1px); }
.service-tile:focus-visible { outline: 3px solid rgba(0, 154, 102, .3); outline-offset: 2px; }
.service-tile-icon { display: block; margin-bottom: 11px; color: var(--ogk-green); font-size: 30px; }
.service-tile-title { display: block; padding-right: 3px; font-size: 15px; font-weight: 780; line-height: 1.2; }
.service-tile-description { display: block; margin-top: 6px; color: #61746c; font-size: 11px; line-height: 1.35; }
.service-tile-badge { position: absolute; top: 10px; right: 10px; max-width: 75px; padding: 3px 6px; border-radius: 5px; background: #eaf5d5; color: #537a16; font-size: 9px; font-weight: 850; text-transform: uppercase; }

.service-page { width: 100%; max-width: var(--page-width); margin: 0 auto; background: #f3f7f5; }
.service-navbar { display: grid; grid-template-columns: 85px 1fr 85px; align-items: center; min-height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0; background: var(--ogk-green); color: #fff; }
.service-navbar h1 { grid-column: 2; margin: 0; overflow: hidden; font-size: 18px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.service-page-heading { display: grid; grid-template-columns: 56px 1fr; gap: 13px; align-items: center; padding: 22px 17px 18px; background: #fff; }
.service-page-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--ogk-soft); color: var(--ogk-green); font-size: 31px; }
.service-page-heading p { margin: 0; color: #61746c; font-size: 14px; line-height: 1.4; }
.service-page-badge { width: fit-content; margin-bottom: 6px; padding: 3px 7px; border-radius: 5px; background: #eaf5d5; color: #537a16; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.service-auth-note { display: flex; gap: 10px; align-items: center; margin: 13px 14px 0; padding: 12px 13px; border-radius: 10px; background: #edf5f1; color: #426258; font-size: 12px; line-height: 1.4; }
.service-auth-note .f7-icons { flex: 0 0 auto; color: var(--ogk-green); font-size: 22px; }
.service-content { display: grid; gap: 13px; padding: 14px 14px calc(34px + env(safe-area-inset-bottom)); }
.service-block { padding: 17px 16px; border-radius: 13px; background: #fff; box-shadow: 0 2px 9px rgba(0, 49, 33, .06); }
.service-block h2 { margin: 0 0 11px; color: var(--ogk-dark); font-size: 17px; }
.service-block p { margin: 0; line-height: 1.5; white-space: pre-line; }
.service-notice { border-left: 4px solid var(--ogk-green); }
.service-notice-warning { border-left-color: #efb424; background: #fffaf0; }
.service-notice-secure { border-left-color: #4c7f70; background: #f1f7f4; }
.service-list { margin: 0; padding-left: 21px; line-height: 1.55; }
.service-list li + li { margin-top: 6px; }
.service-record { padding: 12px 0; border-top: 1px solid var(--ogk-line); }
.service-record:first-of-type { padding-top: 0; border-top: 0; }
.service-record:last-child { padding-bottom: 0; }
.service-record h3 { margin: 0; font-size: 15px; }
.service-record p { margin-top: 5px; color: #61746c; font-size: 13px; }
.service-record-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.service-record-meta span { padding: 3px 6px; border-radius: 5px; background: var(--ogk-soft); color: var(--ogk-green); font-size: 10px; font-weight: 750; }
.service-record-details { margin: 12px 0 0; padding-top: 11px; border-top: 1px dashed var(--ogk-line); }
.service-record-action { margin-top: 12px; padding: 8px 10px; border: 1px solid var(--ogk-green); border-radius: 8px; background: #fff; color: var(--ogk-green); font-size: 12px; font-weight: 750; cursor: pointer; }
.service-empty { padding: 14px; border-radius: 9px; background: var(--ogk-soft); color: #66766f; font-size: 13px; line-height: 1.45; }
.service-key-value { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 8px 12px; }
.service-key-value dt { color: #61746c; font-size: 12px; }
.service-key-value dd { margin: 0; font-size: 13px; font-weight: 700; text-align: right; }
.service-action { width: 100%; padding: 12px 14px; border: 0; border-radius: 9px; background: var(--ogk-green); color: #fff; font-weight: 750; cursor: pointer; }
.service-action:disabled { opacity: .55; cursor: default; }
.service-form-description { margin-bottom: 14px !important; color: #61746c; font-size: 13px; }
.service-demo-form { display: grid; gap: 13px; }
.service-demo-form label { color: var(--ogk-dark); font-size: 12px; font-weight: 700; }
.service-demo-form input, .service-demo-form textarea, .service-demo-form select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--ogk-line); border-radius: 8px; background: #fff; color: var(--ogk-dark); font: inherit; }
.service-demo-form textarea { resize: vertical; }
.service-demo-form input:focus, .service-demo-form textarea:focus, .service-demo-form select:focus { outline: 3px solid rgba(0, 154, 102, .16); border-color: var(--ogk-green); }
.service-form-status { min-height: 17px; color: var(--ogk-green); font-size: 12px; font-weight: 700; }
.service-survey { display: grid; gap: 9px; }
.service-survey label { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--ogk-line); border-radius: 9px; background: var(--ogk-soft); cursor: pointer; }
.service-survey input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--ogk-green); }
.service-survey span { font-size: 13px; line-height: 1.35; }

.referral-card { padding: 18px 16px; }
.referral-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.news-list { display: grid; gap: 10px; }
.news-card { padding: 15px 16px; }
.news-image { display: block; width: calc(100% + 32px); max-height: 220px; margin: -15px -16px 14px; object-fit: cover; border-radius: 12px 12px 0 0; }
.news-card h3 { margin: 0; color: var(--ogk-dark); font-size: 17px; }
.news-card time { display: block; margin-top: 4px; color: var(--ogk-green); font-size: 12px; font-weight: 700; }
.news-card p { margin: 9px 0 0; line-height: 1.45; white-space: pre-line; }
.news-empty { color: #66766f; }

.important-popup {
  width: min(92vw, 410px);
  max-height: min(88dvh, 720px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--ogk-dark);
  box-shadow: 0 22px 70px rgba(0, 24, 16, .42);
}
.important-popup::backdrop { background: rgba(0, 31, 21, .72); backdrop-filter: blur(3px); }
.important-popup article { position: relative; }
.important-popup-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid rgba(0, 49, 33, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ogk-dark);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
  cursor: pointer;
}
.important-popup-close:focus-visible { outline: 3px solid rgba(0, 154, 102, .35); outline-offset: 2px; }
.important-popup-image { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.important-popup-content { padding: 28px 25px 30px; }
.important-popup-label { width: fit-content; margin-bottom: 12px; padding: 5px 9px; border-radius: 6px; background: #eff8d9; color: #507b0c; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.important-popup-date { display: block; margin-bottom: 7px; color: var(--ogk-green); font-size: 13px; font-weight: 750; }
.important-popup h2 { margin: 0; padding-right: 20px; color: var(--ogk-dark); font-size: 25px; line-height: 1.15; }
.important-popup p { margin: 15px 0 0; font-size: 16px; line-height: 1.55; white-space: pre-line; }

.accordion {
  overflow: hidden;
  border-radius: 12px;
  background: var(--ogk-soft);
  box-shadow: 0 2px 8px rgba(0, 49, 33, .05);
}
.accordion-title {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px;
  color: var(--ogk-green);
  text-align: left;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
}
.accordion-title:focus-visible { outline: 3px solid rgba(0, 154, 102, .35); outline-offset: -3px; }
.accordion-arrow { transition: transform .2s ease; }
.accordion-title[aria-expanded="true"] .accordion-arrow { transform: rotate(180deg); }
.accordion-content { padding: 0 16px 16px; }

.contact-entry { padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--ogk-line); }
.contact-entry:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.contact-position { font-weight: 700; }
.contact-name, .contact-phone, .contact-comment { margin-top: 4px; }
.contact-email { display: inline-block; margin-top: 4px; color: var(--ogk-green); word-break: break-word; }
.contact-comment { color: var(--ogk-green); font-size: 14px; }

.nested-document { margin-bottom: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--ogk-line); }
.nested-document summary { padding: 14px; color: var(--ogk-green); font-weight: 700; cursor: pointer; }
.nested-document ul { margin: 0; padding: 0 34px 16px; line-height: 1.45; }
.floating-actions {
  position: fixed;
  z-index: 20;
  top: calc(50px + env(safe-area-inset-top));
  right: max(10px, calc((100vw - var(--page-width)) / 2 + 10px));
  display: grid;
  gap: 8px;
}
.floating-action {
  width: 82px;
  min-height: 47px;
  padding: 5px 8px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.05;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  cursor: pointer;
  white-space: pre-line;
}
.floating-action-danger { background: #ff3e3e; }
.floating-action-question { background: var(--question); color: #fff; }
.floating-action-assistant { background: var(--ogk-green); }
.floating-action:active { transform: translateY(1px); }

.app-dialog {
  width: min(92vw, 390px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, .28);
}
.app-dialog::backdrop { background: rgba(0, 0, 0, .42); }
.app-dialog form { position: relative; padding: 24px 20px; }
.app-dialog h2 { margin: 0 28px 20px 0; color: var(--ogk-green); font-size: 21px; text-align: center; }
.app-dialog-danger h2 { color: var(--danger); }
.dialog-note { margin: -9px 0 18px; color: #61746c; font-size: 12px; line-height: 1.45; text-align: center; }
.dialog-close { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 29px; color: #66766f; cursor: pointer; }
.app-dialog label { display: block; margin: 0 0 15px; color: var(--ogk-dark); font-size: 14px; font-weight: 700; }
.app-dialog input, .app-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1.5px solid var(--ogk-line);
  border-radius: 8px;
  background: var(--ogk-soft);
  color: var(--ogk-dark);
  outline: 0;
}
.app-dialog textarea { min-height: 110px; resize: vertical; }
.app-dialog input:focus, .app-dialog textarea:focus { border-color: var(--ogk-green); background: #fff; }
.app-dialog-danger input[name="site"]:focus { border-color: var(--danger); }
.file-field { font-weight: 600 !important; }
.file-field input { padding: 8px; font-weight: 400; }
.submit-button { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: var(--ogk-green); color: #fff; font-weight: 700; cursor: pointer; }
.submit-button-danger { background: var(--danger); }
.submit-button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 18px; margin: 12px 0 0; color: #54655e; font-size: 13px; text-align: center; }
.form-status.error { color: var(--danger); }

.assistant-page { display: grid; grid-template-rows: auto auto 1fr auto; width: 100%; max-width: var(--page-width); margin: 0 auto; background: #f3f6f4; }
.assistant-navbar { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; min-height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; background: var(--ogk-green); color: #fff; }
.assistant-navbar h1 { grid-column: 2; margin: 0; font-size: 18px; text-align: center; }
.back-button { grid-column: 1; grid-row: 1; border: 0; background: transparent; color: #fff; font-size: 28px; text-align: left; cursor: pointer; }
.back-button span { font-size: 15px; vertical-align: 3px; }
.assistant-intro { padding: 14px 16px; background: #e9f8f1; color: var(--ogk-dark); font-size: 14px; }
.assistant-messages { overflow-y: auto; padding: 16px; }
.message { display: flex; margin-bottom: 10px; }
.message-user { justify-content: flex-end; }
.message-bubble { max-width: 82%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 4px rgba(0, 49, 33, .09); white-space: pre-wrap; overflow-wrap: anywhere; }
.message-user .message-bubble { border-radius: 14px 14px 4px 14px; background: var(--ogk-green); color: #fff; }
.assistant-input-bar { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: end; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 9px rgba(0, 49, 33, .08); }
.file-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ogk-soft); cursor: pointer; }
.assistant-input-bar textarea { min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--ogk-line); border-radius: 12px; resize: none; outline: 0; }
.assistant-input-bar textarea:focus { border-color: var(--ogk-green); }
.assistant-input-bar button { height: 42px; padding: 0 13px; border: 0; border-radius: 10px; background: var(--ogk-green); color: #fff; font-weight: 700; cursor: pointer; }

[hidden] { display: none !important; }

@media (max-width: 460px) {
  .hero { height: 355px; padding-left: 18px; }
  .brand-logo { width: 150px; }
  .content-shell { padding-left: 14px; padding-right: 14px; }
  .floating-actions { right: 9px; }
  .floating-action { width: 74px; font-size: 11px; }
  .section-title, .accordion-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
