/* ========================================================
   Таймсис — стиль начала 2000-х
   Палитра: серый, темно-синий, бордовый, желтый, белый
   ======================================================== */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #c0c0c0;
  color: #000;
  font-family: Verdana, Arial, Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

a {
  color: #000080;
  text-decoration: underline;
}
a:visited { color: #551a8b; }
a:hover { color: #800000; background: #ffff66; }

img { max-width: 100%; border: 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Cookie bar ===== */
.cookie-bar[hidden] { display: none !important; }
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffff66;
  border-top: 3px solid #000080;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-family: Arial, sans-serif;
}
.cookie-bar__text { max-width: 800px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 13px;
  padding: 6px 14px;
  background: #d4d0c8;
  color: #000;
  border: 2px outset #ffffff;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.btn:visited { color: #000; }
.btn:hover { background: #ffff66; color: #000; }
.btn:active { border-style: inset; }
.btn--accent {
  background: #800000;
  color: #fff;
  border: 2px outset #c97070;
  font-weight: bold;
}
.btn--accent:visited { color: #fff; }
.btn--accent:hover { background: #a52a2a; color: #ffff66; }
.btn--small { padding: 3px 10px; font-size: 12px; }

/* ===== Header ===== */
.header {
  background: #000080;
  color: #fff;
  border-bottom: 4px solid #ffff66;
}
.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}
.logo:hover { background: transparent; color: #ffff66; }
.logo__mark {
  background: #ffff66;
  color: #000080;
  padding: 4px 8px;
  font-family: "Courier New", Courier, monospace;
  border: 2px solid #fff;
}
.logo__text { font-size: 14px; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.nav li { border-right: 1px solid #4040a0; }
.nav li:last-child { border-right: 0; }
.nav a {
  display: block;
  padding: 6px 12px;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.nav a:hover { background: #ffff66; color: #000080; }

/* ===== HERO ===== */
.hero {
  background: #ffffff;
  border-bottom: 2px solid #808080;
  padding: 24px 0;
}
.hero__table {
  width: 100%;
  border-collapse: collapse;
}
.hero__table td {
  vertical-align: top;
  padding: 8px;
}
.hero__left { width: 55%; }
.hero__right { width: 45%; }
.hero__title {
  font-family: Arial, sans-serif;
  font-size: 26px;
  margin: 0 0 12px;
  color: #000080;
  border-bottom: 3px double #000080;
  padding-bottom: 6px;
}
.hero__text { margin: 0 0 16px; font-size: 14px; }

.badges {
  width: 100%;
  border: 2px solid #000080;
  border-collapse: collapse;
  background: #f5f5dc;
  font-family: Arial, sans-serif;
}
.badges th, .badges td {
  border: 1px solid #808080;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.badges th {
  background: #000080;
  color: #ffff66;
  width: 35%;
  font-weight: bold;
}

/* ===== Sections ===== */
.section {
  padding: 28px 0;
  background: #c0c0c0;
}
.section--alt {
  background: #e8e8e8;
  border-top: 2px solid #808080;
  border-bottom: 2px solid #808080;
}
.section__title {
  font-family: "Courier New", Courier, monospace;
  font-size: 22px;
  margin: 0 0 18px;
  padding: 6px 10px;
  background: #800000;
  color: #ffff66;
  border: 2px solid #000;
  display: inline-block;
}
.section__lead {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: 14px;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: 14px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.block {
  background: #fff;
  border: 2px solid #000080;
  border-top: 6px solid #000080;
  padding: 12px 14px;
}
.block h3 {
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 0 0 8px;
  color: #800000;
  border-bottom: 1px dashed #808080;
  padding-bottom: 4px;
}
.block p { margin: 0; font-size: 13px; }

.block--portfolio {
  background: #f5f5dc;
  border-color: #800000;
  border-top-color: #800000;
}
.block--portfolio h3 { color: #000080; }

/* ===== Form ===== */
.form { background: #fff; border: 2px solid #000; padding: 16px; }
.form__table { width: 100%; border-collapse: collapse; }
.form__table td { padding: 6px 4px; vertical-align: top; }
.form__label {
  width: 200px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: right;
  padding-right: 10px !important;
  white-space: nowrap;
}
.form input[type=text],
.form input[type=tel],
.form input[type=email],
.form textarea,
.form input[type=file] {
  width: 100%;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
  padding: 5px 7px;
  border: 2px inset #fff;
  background: #fff;
}
.form textarea { resize: vertical; }
.form input[type=file] { padding: 3px; background: #f0f0f0; }
.form__agree { font-size: 13px; }
.form__status {
  display: inline-block;
  margin-left: 12px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.form__status.is-ok { color: #006400; font-weight: bold; }
.form__status.is-err { color: #800000; font-weight: bold; }

/* ===== Footer ===== */
.footer {
  background: #000080;
  color: #fff;
  padding: 14px 0;
  border-top: 4px solid #ffff66;
  margin-top: 24px;
  font-family: Arial, sans-serif;
  font-size: 12px;
}
.footer a, .footer a:visited { color: #ffff66; }
.footer a:hover { background: #ffff66; color: #000080; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Legal ===== */
.legal { background: #fff; border: 2px solid #000080; padding: 8px; }
.legal__item {
  border-bottom: 1px solid #808080;
}
.legal__item:last-child { border-bottom: 0; }
.legal__item summary {
  cursor: pointer;
  padding: 10px 12px;
  background: #e8e8e8;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: #000080;
  list-style: none;
}
.legal__item summary::-webkit-details-marker { display: none; }
.legal__item summary::before {
  content: "[+] ";
  color: #800000;
  font-family: "Courier New", monospace;
}
.legal__item[open] > summary::before { content: "[-] "; }
.legal__item summary:hover { background: #ffff66; }
.legal__body { padding: 12px 16px; background: #fff; }
.legal__body ul { padding-left: 22px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__table, .hero__table tr, .hero__table td { display: block; width: 100%; }
}
@media (max-width: 640px) {
  .header__inner { flex-direction: column; align-items: flex-start; }
  .nav ul { flex-direction: column; width: 100%; }
  .nav li { border-right: 0; border-bottom: 1px solid #4040a0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .form__label {
    width: auto; text-align: left; white-space: normal;
    padding-right: 0 !important; display: block;
  }
  .form__table, .form__table tr, .form__table td { display: block; width: 100%; }
  .hero__title { font-size: 20px; }
  .section__title { font-size: 18px; }
  .footer__inner { flex-direction: column; }
}
