:root {
  --ink: #17253b;
  --muted: #637083;
  --line: #e3e9f1;
  --navy: #0b2d4d;
  --blue: #123b63;
  --cyan: #2aa5d6;
  --gold: #f1c232;
  --green: #16a75c;
  --surface: #ffffff;
  --canvas: #f3f7fb;
  --shadow: 0 18px 48px rgba(15, 37, 63, .12);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.app { min-height: 100vh; }
.hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(42,165,214,.28), transparent 30%),
    linear-gradient(135deg, #071f37, var(--blue));
}
.topbar, .hero-grid, .main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand img {
  width: 190px;
  height: 58px;
  display: block;
  object-fit: contain;
  padding: 4px 9px;
  border: 1px solid rgba(241,194,50,.28);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  position: relative;
}
.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.09);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s, opacity .18s;
}
.topbar-actions.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar-actions.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar-actions.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: #e7f0f8;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .18s, background .18s, border-color .18s;
}
.nav-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.13);
  transform: translateY(-1px);
}
.nav-link--volume {
  color: #eaf8fb;
  border-color: rgba(42,165,214,.36);
  background: rgba(42,165,214,.13);
}
.nav-link--volume:hover {
  color: #fff;
  border-color: rgba(145,225,255,.58);
  background: rgba(42,165,214,.22);
}
.nav-link--contact {
  color: #17253b;
  border-color: #f0c548;
  background: linear-gradient(135deg, #ffd95a, #e7af23);
  box-shadow: 0 7px 18px rgba(217,139,29,.22);
}
.nav-link--contact:hover {
  color: #17253b;
  border-color: #ffe18a;
  background: linear-gradient(135deg, #ffe078, #efbd3f);
}
.hero-grid {
  padding: 54px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 42px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 14px;
  color: #91e1ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 760px;
  margin: 21px 0 0;
  color: #d0dfec;
  font-size: 17px;
  line-height: 1.65;
}
.trust-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.trust-card span { color: #91e1ff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.trust-card strong { display: block; margin-top: 9px; font-size: 24px; letter-spacing: -.03em; }
.trust-card p { margin: 12px 0 0; color: #d5e4ef; line-height: 1.55; font-size: 13px; }

.main { padding: 0 0 58px; }
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
  margin-top: -46px;
}
.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  gap: 16px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}
.panel-head > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.panel h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.panel-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 24px 26px 0;
}
.form-grid.compact { padding-top: 18px; padding-bottom: 26px; }
label span {
  display: block;
  margin-bottom: 7px;
  color: #526175;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid #d5dee9;
  border-radius: 12px;
  background: #f8fafc;
  outline: none;
  transition: .18s;
}
textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
  line-height: 1.45;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42,165,214,.13);
}
input[readonly] {
  cursor: not-allowed;
  color: #123b63;
  border-color: #c8d7e6;
  background: #eef5fb;
  font-weight: 900;
}
.wide { grid-column: 1 / -1; }
.section-title {
  margin: 22px 26px 0;
  padding: 11px 14px;
  border-left: 4px solid var(--cyan);
  border-radius: 10px;
  color: var(--blue);
  background: #eef8fd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}
label b {
  margin-left: 6px;
  color: #b42318;
  font-size: 10px;
  font-weight: 900;
}
.input-suffix { position: relative; }
.input-suffix input { padding-right: 76px; }
.input-suffix em {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 26px 0;
}
.options label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #334155;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 750;
}
.options small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.options input { width: 16px; height: 16px; accent-color: var(--blue); }

.photo-upload {
  padding: 22px 26px 28px;
}
.photo-drop {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 22px;
  text-align: center;
  border: 1px dashed #a9c7dc;
  border-radius: 16px;
  background: linear-gradient(145deg, #f7fbfd, #eef8fd);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.photo-drop:hover {
  border-color: var(--cyan);
  background: #f3fbfe;
  transform: translateY(-1px);
}
.photo-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.photo-drop__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.photo-drop strong {
  color: var(--blue);
  font-size: 15px;
}
.photo-drop small {
  max-width: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.photo-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d5e4ee;
  border-radius: 12px;
  color: #4b6178;
  background: #f8fbfd;
  font-size: 12px;
  font-weight: 800;
}
.photo-status.is-warning {
  color: #8a4b00;
  border-color: #f4d28f;
  background: #fff8e5;
}
.photo-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.photo-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #334155;
  background: #fff;
  font-size: 12px;
}
.photo-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-list b {
  flex: 0 0 auto;
  color: var(--muted);
}
.photo-help {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.summary-panel { position: sticky; top: 18px; }
.summary-head {
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, #071f37, var(--blue));
}
.summary-head span { display: block; color: #91e1ff; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.summary-head strong { display: block; margin-top: 12px; font-size: 39px; letter-spacing: -.05em; }
.summary-head p { margin: 8px 0 0; color: #d1dfeb; font-size: 13px; }
.summary-lines { padding: 18px 22px 4px; }
.validation {
  margin: 16px 22px 0;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}
.validation.is-ok {
  color: #116149;
  border: 1px solid #b9eadb;
  background: #ecfbf5;
}
.validation.is-warning {
  color: #8a4b00;
  border: 1px solid #f4d28f;
  background: #fff8e5;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.line span { color: var(--muted); }
.line strong { text-align: right; }
.note {
  margin: 16px 22px 0;
  padding: 14px;
  border: 1px solid #f1dfad;
  border-radius: 14px;
  background: #fff8df;
}
.note strong { display: block; margin-bottom: 5px; font-size: 13px; }
.note p { margin: 0; color: #755d19; font-size: 12px; line-height: 1.55; }
.actions { display: grid; gap: 9px; padding: 18px 22px 22px; }
.actions button, .actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.actions a { background: linear-gradient(135deg, #25d366, #128c4a); }
.actions svg { width: 18px; height: 18px; fill: currentColor; }
.actions button:hover { background: var(--navy); }
.actions a:hover { filter: brightness(1.05); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.info-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.info-grid span { color: var(--blue); font-weight: 900; }
.info-grid p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; font-size: 13px; }
.site-footer {
  color: #8b98a8;
  background: #eaf0f5;
  border-top: 1px solid #dae2ea;
}
.site-footer__inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #8b98a8;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
}
.site-footer span {
  color: inherit;
  font: inherit;
}
.site-footer small {
  color: inherit;
  font: inherit;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: #12243b;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 920px) {
  .hero-grid, .calculator { grid-template-columns: 1fr; }
  .calculator { margin-top: -38px; }
  .summary-panel { position: static; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar, .hero-grid, .main { width: min(100% - 24px, 560px); }
  .site-footer__inner { width: min(100% - 24px, 560px); display: grid; gap: 5px; }
  .topbar { min-height: 74px; position: relative; }
  .brand img { width: 160px; height: 50px; }
  .menu-toggle { display: inline-grid; }
  .nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 10px);
    right: 0;
    width: min(245px, calc(100vw - 24px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(11,45,77,.98);
    box-shadow: 0 18px 38px rgba(0,0,0,.22);
  }
  .topbar-actions.is-menu-open .nav { display: flex; }
  .nav-link { width: 100%; min-width: 0; justify-content: flex-start; padding: 0 12px; font-size: 12px; }
  .hero-grid { padding: 38px 0 72px; }
  h1 { font-size: 34px; }
  .hero-copy { font-size: 15px; }
  .form-grid, .options { grid-template-columns: 1fr; padding-left: 18px; padding-right: 18px; }
  .photo-upload { padding-left: 18px; padding-right: 18px; }
  .panel-head { padding: 20px 18px; }
  .form-grid.compact { padding-bottom: 20px; }
  .summary-head, .summary-lines, .actions { padding-left: 18px; padding-right: 18px; }
  .note { margin-left: 18px; margin-right: 18px; }
}
