/* === CSS для ООО «МиассИнвест» — современный дизайн === */
:root {
  --accent: #CF960D;
  --dark: #2A4376;
  --bg: #f8f4f0;
  --text: #333;
  --border: #ddd;
}

body {
  font-family: 'WeblySleek UI', Arial, sans-serif;
  color: var(--text);
  background: #fff;
  margin: 0;
}

/* === HEADER === */
header .navbar { background: #fff; border-bottom: 3px solid var(--accent); margin-bottom: 0; }
header .navbar .container { max-width: 1200px; }

.header-top-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  position: relative;
}

/* Центральный блок */
.header-center {
  text-align: center;
}
.header-title {
  font-size: 96px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: 4px;
}
.header-subtitle {
  font-size: 68px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.0;
  margin-bottom: 8px;
}
.header-tagline {
  font-size: 28px;
  font-weight: 400;
  color: #666;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Телефон */
.header-phone-col {
  position: relative;
  text-align: right;
}
.phone-icon {
  font-size: 20px;
  display: inline;
  margin-right: 6px;
}
.phone-number {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}
.phone {
  text-decoration: none !important;
  display: inline-block;
  text-align: right;
  margin-top: 52px;
}
header .cart {
    position: absolute;
    right: 0;
    top: 12px;
    z-index: 10;
}
header .cart_small {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  display: none;
}
header .cart_small:not(:empty) { display: block; }

.navbar-nav > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark) !important;
  padding: 12px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.navbar-nav > li.active > a,
.navbar-nav > li > a:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 4px;
}

/* === SECTION === */
section { padding: 30px 0; }
h1 { color: var(--dark); font-size: 26px; margin-bottom: 20px; }
h2 { color: var(--dark); font-size: 22px; }
a { color: var(--accent); }
a:hover { color: #b8860b; text-decoration: none; }

/* === PRODUCT CARDS === */
/* Catalog grid — equal height per row (all sizes) */
.container.margin20 > .row {
    display: flex;
    flex-wrap: wrap;
}
.container.margin20 > .row > [class*='col-xs-12'] {
    flex: 0 0 100%;
}
.container.margin20 > .row > [class*='col-xs-6'],
.container.margin20 > .row > [class*='col-sm-4'],
.container.margin20 > .row > [class*='col-md-3'] {
    display: flex;
}
.itemblock {
    margin-bottom: 25px;
}
.item {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.item img {
  width: 100px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}
.item .txt {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.item .txt p { margin: 4px 0; overflow: hidden; }
.item .txt p:last-child { margin-top: auto; padding-top: 8px; }
.item .txt a { text-decoration: none; }

/* Price */
.item .txt p span[style*="font-size:20px"],
.item .txt p > span { 
  color: #000 !important; 
  font-weight: 700 !important; 
}

/* Quantity controls on product cards */
.item .tdminus,
.item .tdplus {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    margin: 0 1px;
}
.item .tdminus:hover,
.item .tdplus:hover {
    border-color: #999;
    color: #000;
}

.item .quan {
    width: 30px;
    height: 22px;
    text-align: center;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    vertical-align: middle;
    margin: 0 1px;
    padding: 0 2px;
}

/* Add to cart link */
.item .add2cart {
    display: inline-block;
    margin-left: 4px;
    padding: 3px 9px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
    transition: background 0.2s;
}
.item .add2cart:hover { background: #b8860b; }

/* === CENTRAL BLOCK (min order banner) === */
.onetwo {
    display: block;
    padding: 18px 24px;
    background: var(--bg);
    border-left: 5px solid var(--accent);
    border-radius: 6px;
    font-size: 17px;
    color: #c00;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.onetwo:hover { text-decoration: none; }

/* === CART TABLE === */
#cart_interface table.ct {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
#cart_interface table.ct th {
    background: var(--dark);
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}
#cart_interface table.ct td {
    padding: 14px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
#cart_interface table.ct td.tdcaption { width: 35%; }
#cart_interface table.ct td.tdcaption a { font-size: 15px; color: var(--dark); font-weight: 500; }
#cart_interface table.ct td.tdprice { width: 15%; text-align: right; font-size: 16px; font-weight: 500; }
#cart_interface table.ct td.tdquantity { width: 160px; text-align: center; font-size: 16px; padding: 4px 30px; position: relative; }
#cart_interface table.ct td.tdcost { width: 15%; text-align: right; font-size: 18px; font-weight: 500; }
#cart_interface table.ct td.tddelete { width: 30px; text-align: right; }
#cart_interface table.ct td.tddelete a { color: #999; font-size: 18px; text-decoration: none; }
#cart_interface table.ct td.tddelete a:hover { color: #c0392b; }
#cart_interface table.ct td .tdminus {
    color: var(--accent);
    float: left;
    width: 20px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
}
#cart_interface table.ct td .tdplus {
    color: var(--accent);
    float: right;
    width: 20px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
}

input[type=text].kovo {
    width: 36px;
    height: 24px;
    line-height: 14px;
    font-size: 14px;
    padding: 4px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* === ORDER FORM MODAL === */
#order_modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55); z-index: 9999;
}
.order-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 440px;
    width: 90%;
    margin: 80px auto 0 auto;
    padding: 30px 30px 25px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity:0; transform: translateY(-30px); }
    to   { opacity:1; transform: translateY(0); }
}
.order-modal-close {
    position: absolute; top: 10px; right: 14px;
    font-size: 22px; color: #888; cursor: pointer;
}
.order-modal-close:hover { color: #000; }
.order-modal-content h2 {
    margin: 0 0 20px 0; font-size: 22px; font-weight: 600;
    text-align: center; color: #2A4376;
}
.order-modal-content label {
    display: block; margin: 12px 0 4px 0;
    font-size: 14px; font-weight: 500; color: #555;
}
.order-modal-content input[type="text"],
.order-modal-content input[type="tel"] {
    width: 100%; padding: 10px 12px;
    font-size: 15px; border: 1px solid #ccc;
    border-radius: 5px; box-sizing: border-box;
    transition: border-color 0.2s;
}
.order-modal-content input:focus {
    outline: none; border-color: var(--accent);
}

/* Order button in cart */
.order-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.order-btn:hover { background: #b8860b; }

.order-submit-btn {
    width: 100%; margin-top: 20px;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.order-submit-btn:hover { background: #b8860b; }

/* === FOOTER === */
footer { background: #f5f5f5; padding: 20px 0; margin-top: 30px; border-top: 1px solid #eee; }
footer .copy { color: #999; font-size: 13px; }

/* === ADD SUCCESS === */
#addsuccess {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #27ae60;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 15px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === MISC === */
.margin20 { margin-top: 20px; }
.clear { clear: both; }
.text-center { text-align: center; }

/* === CENTRAL NOTICE === */
.central-notice {
    background: linear-gradient(135deg, #2A4376, #3a5590);
    color: #fff;
    text-align: center;
    padding: 24px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(42,67,118,0.25);
    margin-bottom: 0;
}
.central-notice p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 6px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.central-notice p:last-child { margin-bottom: 0; }
.central-notice .min-party {
    font-size: 19px;
    background: rgba(207,150,13,0.15);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 6px;
    border: 1px solid rgba(207,150,13,0.3);
    margin: 6px 0;
}
.central-notice .min-party span {
    color: #CF960D;
    font-weight: 700;
    font-size: 20px;
}
.central-notice strong {
    font-size: 18px;
    color: #CF960D;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .item {
        flex-direction: column;
        align-items: center;
    }
    .item img { width: 100%; max-width: 200px; }
    header .navbar-nav > li > a { padding: 8px 15px; font-size: 13px; }
    .header-title { font-size: 48px; }
    .header-subtitle { font-size: 36px; }
    .header-tagline { font-size: 16px; }
    .phone-number { font-size: 14px; }
    #cart_interface table.ct td.tdquantity { width: 90px; padding: 4px 10px; }
    #cart_interface table.ct td .tdminus,
    #cart_interface table.ct td .tdplus { font-size: 16px; }
    input[type=text].kovo { width: 24px; }
}

/* === ABOUT PAGE === */
#about_content h1 {
    text-align: center;
    color: var(--dark);
    font-size: 30px;
    margin: 20px 0 30px;
}
.about-section {
    margin-bottom: 30px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.about-section h2 {
    font-size: 20px;
    color: var(--dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}
.about-section p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 8px;
}
.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 15.5px;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
    top: 14px;
}
.about-stage {
    background: var(--bg);
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
}
.about-stage:last-child { margin-bottom: 0; }
.about-stage h3 {
    font-size: 16px;
    color: var(--dark);
    margin: 0 0 6px;
    font-family: 'WeblySleek UI', Arial, sans-serif;
}
.about-stage p {
    font-size: 15px;
    margin: 0;
}

/* === SORTING BLOCK === */
#elsemenu.sort-visible {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 15px;
}
#elsemenu.sort-visible::before {
    content: "Сортировка:";
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 8px;
}
#elsemenu.sort-visible a {
    display: block;
    font-size: 14px;
    padding: 4px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.15s;
}
#elsemenu.sort-visible a:hover { color: var(--accent); }
#elsemenu.sort-visible a.currentsort {
    color: var(--accent);
    font-weight: 600;
}

/* Единые стили полей формы заказа */
#order_modal input[type="text"],
#order_modal input[type="tel"],
#order_modal input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    margin: 4px 0 14px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
#order_modal input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(207, 150, 13, 0.15);
}
