/* ============================================================
   nazva-na-choven.css  v4
   Зміни: новий grid (name-block + settings-block),
          мобільний порядок через CSS order,
          6 шрифтів
   ============================================================ */

/* ---- HERO ---- */
.boat-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}
.boat-hero .hero-text {
    padding: 20px 30px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.boat-hero .hero-title {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(-30px);
    animation: heroSlideIn 0.6s ease forwards;
}
.boat-hero .hero-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--red);
    margin-top: 12px;
    border-radius: 2px;
}
.boat-hero .hero-title span { color: var(--red); }
.boat-hero .hero-description {
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-20px);
    animation: heroSlideIn 0.6s ease 0.2s forwards;
}
.boat-hero .hero-image {
    position: relative;
    min-height: 170px; max-height: 300px;
    overflow: hidden;
    opacity: 0;
    animation: heroFadeScale 0.8s ease 0.15s forwards;
}
.boat-hero .hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boat-hero .hero-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 80px; height: 100%;
    background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
    z-index: 1;
}
@keyframes heroSlideIn { to { opacity: 1; transform: translateX(0); } }
@keyframes heroFadeScale { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   CONSTRUCTOR — GRID
   Desktop: 2 columns, 3 rows
   Col 1: [controls-name-block] [controls-settings-block]
   Col 2: [preview-container] [controls-bottom]
   Row 3: [boat-specs-wrapper full width]
   ============================================================ */
.constructor-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}
.constructor-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    grid-template-rows: auto auto auto;
    gap: 16px 30px;
    align-items: start;
}

/* LEFT COL, ROW 1 */
.controls-name-block {
    grid-column: 1; grid-row: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 22px 25px;
    box-shadow: 0 10px 40px rgba(30,58,95,0.1);
}

/* RIGHT COL, ROW 1 */
.preview-container {
    grid-column: 2; grid-row: 1;
}

/* LEFT COL, ROW 2 */
.controls-settings-block {
    grid-column: 1; grid-row: 2;
    background: var(--white);
    border-radius: 20px;
    padding: 22px 25px;
    box-shadow: 0 10px 40px rgba(30,58,95,0.1);
}

/* RIGHT COL, ROW 2 */
.controls-bottom {
    grid-column: 2; grid-row: 2;
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(30,58,95,0.1);
}

/* FULL WIDTH, ROW 3 */
.boat-specs-wrapper {
    grid-column: 1 / -1; grid-row: 3;
}

/* ---- CONTROL GROUP ---- */
.control-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}
.control-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.control-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.control-label i { font-size: 0.95rem; color: var(--cyan); }

/* ---- NAME INPUT ---- */
.boat-number-input-wrapper {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.boat-number-input-wrapper:focus-within { border-color: var(--cyan); background: #f0f7ff; }
.boat-number-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--white);
    border-radius: 8px;
    font-family: 'Open Sans', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--white);
    color: var(--navy);
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}
.boat-number-input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(58,175,217,0.15); }
.boat-number-input::placeholder { color: #b0b8c4; font-weight: 500; }

/* ---- FONT OPTIONS ---- */
.font-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
}
.font-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px 7px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: center;
    overflow: hidden;
}
.font-option:hover {
    background: #e8eef5;
    border-color: rgba(58,175,217,0.5);
    transform: translateY(-1px);
}
.font-option.selected {
    background: linear-gradient(135deg, #1a6fa0 0%, var(--cyan) 100%);
    border-color: var(--cyan);
    box-shadow: 0 4px 14px rgba(58,175,217,0.3);
}
.font-preview-text {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
    transition: color 0.22s;
    /* Природна ширина — не обрізати, не стискати, але і не розтягувати контейнер */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Якщо текст довший за кнопку — зменшуємо, але не деформуємо */
    display: block;
}
.font-option.selected .font-preview-text { color: #fff; }
.font-style-label {
    font-size: 0.6rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: 'Inter', sans-serif;
    transition: color 0.22s;
}
.font-option.selected .font-style-label { color: rgba(255,255,255,0.75); }

/* ---- COLOR BUTTONS ---- */
.color-options { display: flex; gap: 12px; flex-wrap: wrap; }
.color-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 0; outline: none;
}
.color-btn:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.color-btn.selected {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(28,59,111,0.2), 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.1);
}
.color-btn .color-check {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) scale(0);
    width: 20px; height: 20px;
    transition: transform 0.2s ease;
    pointer-events: none;
}
.color-btn.selected .color-check { transform: translate(-50%,-50%) scale(1); }

/* ---- WIDTH INPUT ---- */
.width-input-row { display: flex; align-items: center; gap: 10px; }
.width-input-wrapper {
    flex: 1;
    background: var(--gray-light);
    border-radius: 12px;
    padding: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.width-input-wrapper:focus-within { border-color: var(--cyan); background: #f0f7ff; }
.width-input {
    flex: 1;
    padding: 12px 10px;
    border: 2px solid var(--white);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--white);
    color: var(--navy);
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    -moz-appearance: textfield;
    min-width: 0;
}
.width-input::-webkit-outer-spin-button,
.width-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.width-input:focus { border-color: var(--cyan); outline: none; }
.width-unit { font-size: 0.9rem; font-weight: 700; color: #6c757d; padding-right: 8px; white-space: nowrap; }
.height-auto-display {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    border: 2px solid rgba(58,175,217,0.3);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    min-width: 90px;
    white-space: nowrap;
}
.height-auto-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 2px;
    opacity: 0.7;
}
.height-auto-value { font-family: 'Open Sans', sans-serif; font-size: 1.15rem; font-weight: 800; color: #1a6fa0; }
.width-hint { font-size: 0.78rem; color: #888; margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.width-hint i { color: var(--cyan); font-size: 0.85rem; }
.size-info-box {
    margin-top: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
    border-radius: 10px;
    border-left: 3px solid var(--cyan);
    font-size: 0.85rem;
    color: var(--navy);
    line-height: 1.5;
}
.size-info-box strong { color: var(--red); }

/* ---- PRICE / QTY / TERMS ---- */
.price-quantity-block { display: flex; align-items: center; gap: 15px; }
.price-display {
    flex: 1;
    background: linear-gradient(135deg, var(--yellow) 0%, #e6b34d 100%);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}
.price-label { font-size: 0.75rem; color: var(--navy); text-transform: uppercase; margin-bottom: 5px; }
.price-value { font-family: 'Open Sans', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.price-per-unit { font-size: 0.85rem; color: rgba(30,58,95,0.7); margin-top: 4px; }
.quantity-controls { display: flex; align-items: center; gap: 5px; background: var(--gray-light); border-radius: 12px; padding: 8px; }
.qty-btn {
    width: 40px; height: 40px;
    border: none; background: var(--white); color: var(--navy);
    border-radius: 8px; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.qty-btn:hover { background: var(--cyan); color: var(--white); }
.qty-btn i { font-size: 0.9rem; }
.qty-input {
    width: 50px; text-align: center; border: none; background: transparent;
    font-family: 'Open Sans', sans-serif; font-size: 1.2rem; font-weight: 700;
    color: var(--navy); -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.term-selection-block { margin: 15px 0; }
.term-selection-label {
    display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; text-align: center;
}
.term-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.term-option {
    display: flex; flex-direction: column; align-items: center; padding: 12px 8px;
    background: var(--gray-light); border: 2px solid transparent; border-radius: 10px;
    cursor: pointer; transition: all 0.25s ease;
}
.term-option:hover { background: #e8eef5; border-color: rgba(58,175,217,0.4); }
.term-option.selected {
    background: linear-gradient(135deg, #1a6fa0 0%, var(--cyan) 100%);
    border-color: var(--cyan); box-shadow: 0 4px 12px rgba(58,175,217,0.2);
}
.term-icon { font-size: 1rem; color: var(--navy); margin-bottom: 4px; transition: color 0.25s; }
.term-option.selected .term-icon { color: rgba(255,255,255,0.9); }
.term-time { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; transition: color 0.25s; }
.term-price { font-family: 'Open Sans', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--red); transition: color 0.25s; }
.term-option.selected .term-time { color: #fff; }
.term-option.selected .term-price { color: #FFC857; }
.term-badge { font-size: 0.6rem; padding: 2px 6px; background: rgba(218,26,50,0.12); color: var(--red); border-radius: 10px; margin-top: 4px; font-weight: 600; transition: all 0.25s; }
.term-option.selected .term-badge { background: rgba(255,255,255,0.2); color: #fff; }
.order-sticker-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 30px;
    background: linear-gradient(135deg, var(--red) 0%, #c41528 100%);
    color: var(--white); border: none; border-radius: 12px;
    font-family: 'Open Sans', sans-serif; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px;
}
.order-sticker-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(218,26,50,0.3); }
.order-sticker-btn i { font-size: 1.1rem; }

/* ---- PREVIEW ---- */
.boat-preview-wrapper {
    background: transparent; border-radius: 16px; padding: 10px 5px; margin-bottom: 10px;
}
.preview-label {
    font-size: 0.8rem; font-weight: 600; color: var(--navy);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; text-align: center;
}
.boat-number-display {
    /* Контейнер зберігає пропорції (встановлюються JS через padding-bottom trick або aspect-ratio) */
    background: transparent;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    overflow: hidden;
}
.boat-number-display svg { display: block; width: 100%; height: auto; }
.preview-size-label { text-align: center; font-size: 0.85rem; color: #888; margin-top: 6px; }
.preview-note { text-align: center; font-size: 0.75rem; color: #aaa; margin-top: 4px; font-style: italic; }

/* ---- SPECS ---- */
.boat-specs { background: var(--white); border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(30,58,95,0.06); }
.boat-specs h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.boat-specs ul { list-style: none; padding: 0; margin: 0; }
.boat-specs li { padding: 8px 0 8px 24px; position: relative; font-size: 0.88rem; color: var(--gray-dark); border-bottom: 1px solid rgba(0,0,0,0.04); }
.boat-specs li:last-child { border-bottom: none; }
.boat-specs li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }

/* ============================================================
   PRICING / SEO / FAQ / EXPERT / SERVICES
   ============================================================ */
.pricing-section { padding: 50px 20px; background: var(--white); }
.section-container { max-width: 1200px; margin: 0 auto; }
.pricing-section .section-title { text-align: center; position: relative; padding-bottom: 15px; }
.pricing-section .section-title::after { content: ''; display: block; width: 80px; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--yellow)); border-radius: 2px; margin: 12px auto 0; }
.pricing-card-desc { text-align: center; color: var(--gray-dark); margin-bottom: 25px; }
.section-title { font-family: 'Open Sans', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 30px; line-height: 1.3; }
.pricing-table-wrapper { overflow-x: auto; margin-bottom: 20px; }
.pricing-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; }
.pricing-table thead th { background: var(--navy); color: white; padding: 14px 20px; font-size: 0.9rem; text-transform: uppercase; text-align: center; }
.pricing-table tbody td { padding: 14px 20px; border-bottom: 1px solid #e9ecef; text-align: center; font-size: 0.9rem; }
.pricing-table tbody tr:hover { background: #f8fbff; }
.pricing-table tbody td:first-child { text-align: left; font-weight: 600; }
.pricing-note { font-size: 0.85rem; color: #888; margin-top: 10px; text-align: center; }

.order-section { background: var(--gray-light); padding: 60px 20px; }
.order-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1100px; margin: 0 auto; }
.order-summary-block { background: var(--white); border-radius: 20px; padding: 30px; box-shadow: 0 5px 20px rgba(30,58,95,0.1); }
.vectorized-badge { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); border-radius: 10px; color: #155724; font-weight: 600; font-size: 0.95rem; margin-bottom: 20px; }
.vectorized-badge i { font-size: 1.2rem; color: #28a745; flex-shrink: 0; }
.order-elements-block h3 { font-size: 1rem; color: var(--navy); margin-bottom: 12px; }
.order-details-line { padding: 14px 16px; background: var(--gray-light); border-radius: 10px; }
.order-details-main { font-size: 0.95rem; color: var(--navy); font-weight: 600; line-height: 1.5; margin: 0; }
.order-price-final { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); border-radius: 12px; padding: 20px; margin: 20px 0; }
.order-final-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.order-final-row:first-child { border-bottom: 1px dashed #ccc; padding-bottom: 12px; margin-bottom: 8px; }
.order-final-row span { color: #666; font-size: 0.95rem; }
#orderFinalQty { font-size: 1.1rem; color: var(--navy); background: rgba(30,58,95,0.1); padding: 4px 12px; border-radius: 6px; }
.order-final-total span { font-size: 1.1rem; font-weight: 500; }
#orderTotalPrice { font-size: 1.6rem; color: var(--red); }

.order-form-block { background: var(--white); border-radius: 20px; padding: 30px; box-shadow: 0 5px 20px rgba(30,58,95,0.1); }
.form-section-title { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; margin: 20px 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-light); }
.form-section-title:first-child { margin-top: 0; }
.form-section-title i { font-size: 0.95rem; color: var(--cyan); }
.delivery-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.delivery-option { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--gray-light); border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; }
.delivery-option:hover { border-color: var(--cyan); }
.delivery-option.selected { border-color: var(--cyan); background: #f0f9ff; }
.delivery-option-icon { font-size: 1.5rem; color: var(--cyan); display: flex; align-items: center; width: 36px; justify-content: center; }
.delivery-option-text { flex: 1; }
.delivery-option-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.delivery-option-desc { font-size: 0.8rem; color: #888; margin-top: 2px; }
.pickup-info { padding: 15px; background: #e8f4f8; border-radius: 10px; font-size: 0.9rem; color: var(--navy); line-height: 1.7; }
.pickup-info i { color: var(--red); margin-right: 5px; }
.order-form-group { margin-bottom: 15px; position: relative; }
.order-form-group label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.order-form-group label i { font-size: 0.85rem; color: var(--cyan); }
.order-form-group input, .order-form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid #e5e9f0; border-radius: 10px; font-size: 0.95rem; color: var(--navy); transition: all 0.3s ease; background: #fff; box-sizing: border-box; font-family: 'Inter', sans-serif; }
.order-form-group input:focus, .order-form-group textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(58,175,217,0.12); }
.order-form-group textarea { resize: vertical; min-height: 60px; }
.np-form-group { position: relative; }
.np-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border: 2px solid var(--cyan); border-radius: 10px; max-height: 200px; overflow-y: auto; display: none; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.np-suggestions.active { display: block; }
.np-suggestion-item { padding: 12px 15px; cursor: pointer; font-size: 0.9rem; border-bottom: 1px solid #f0f0f0; transition: background 0.15s ease; }
.np-suggestion-item:hover { background: #f0f9ff; }
.np-suggestion-item:last-child { border-bottom: none; }
.np-selected-warehouse { display: none; gap: 10px; padding: 12px 15px; background: #d4edda; border-radius: 10px; font-size: 0.88rem; color: #155724; align-items: flex-start; }
.np-selected-warehouse.active { display: flex; }
.np-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.np-tab { flex: 1; padding: 8px; background: var(--gray-light); border: 2px solid transparent; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--navy); text-align: center; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 6px; }
.np-tab i { font-size: 0.85rem; }
.np-tab.active { background: #f0f9ff; border-color: var(--cyan); color: var(--cyan); }
.order-submit-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; background: linear-gradient(135deg, var(--red) 0%, #c41528 100%); color: #fff; border: none; border-radius: 12px; font-family: 'Open Sans', sans-serif; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; margin-top: 20px; }
.order-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(218,26,50,0.3); }
.order-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.order-submit-btn i, #submitOrderBtn i { font-size: 1rem; }

.seo-section { padding: 60px 20px; background: var(--gray-light); }
.seo-content p { font-size: 1rem; line-height: 1.7; color: var(--gray-dark); margin-bottom: 15px; }
.seo-content h3 { color: var(--navy); font-size: 1.2rem; margin: 30px 0 15px; }
.advantages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin: 30px 0; }
.advantage-item { background: var(--white); border-radius: 16px; padding: 25px; text-align: center; box-shadow: 0 5px 20px rgba(30,58,95,0.08); transition: all 0.3s ease; }
.advantage-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(30,58,95,0.15); }
.advantage-icon { width: 60px; height: 60px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cyan) 0%, #2a9ab8 100%); border-radius: 50%; }
.advantage-item h4 { color: var(--navy); margin-bottom: 10px; }
.advantage-item p { font-size: 0.9rem; color: #666; line-height: 1.5; }

.faq-section { padding: 60px 20px; background: var(--white); }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e9ecef; }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 20px 0; background: none; border: none; cursor: pointer; text-align: left; font-size: 1rem; font-weight: 600; color: var(--navy); transition: color 0.3s ease; gap: 12px; }
.faq-question:hover { color: var(--cyan); }
.faq-icon { font-size: 1.1rem; flex-shrink: 0; transition: transform 0.3s ease; color: var(--cyan); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { color: #555; line-height: 1.6; font-size: 0.95rem; }

.expert-boat-guide { background: var(--white); padding: 70px 20px; }
.expert-title { text-align: center; font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 30px; }
.expert-content { max-width: 1000px; margin: 0 auto; }
.expert-intro { text-align: center; font-size: 16px; line-height: 1.7; color: var(--gray-dark); margin-bottom: 40px; }
.expert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.expert-item { background: var(--gray-light); padding: 25px; border-radius: 8px; border-top: 4px solid var(--cyan); box-shadow: 0 6px 18px rgba(0,0,0,0.04); }
.expert-item h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.expert-item h3 i { font-size: 1rem; color: var(--cyan); }
.expert-item p { font-size: 15px; line-height: 1.6; color: var(--gray-dark); }
.expert-highlight { display: flex; gap: 10px; margin-top: 40px; padding: 20px 25px; background: var(--gray-light); border-left: 5px solid var(--red); font-size: 15px; line-height: 1.6; color: var(--gray-dark); border-radius: 6px; }
.expert-highlight i { color: var(--red); font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.expert-highlight a { color: var(--navy); font-weight: 600; }



@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes slideUp { from { opacity: 1; transform: translateX(-50%) translateY(0); } to { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Medium screens — narrower left col */
@media (max-width: 1100px) {
    .constructor-grid { grid-template-columns: 360px 1fr; }
    .font-options { grid-template-columns: 1fr 1fr 1fr; }
}

/* Mobile — flex column, CSS order for correct sequence */
@media (max-width: 900px) {
    .boat-hero { grid-template-columns: 1fr; }
    .boat-hero .hero-text { padding: 20px; }
    .boat-hero .hero-image { min-height: 140px; max-height: 180px; }

    .constructor-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile order: Назва → Preview → Шрифти/Колір/Розмір → Ціна/Терміни → Специфікація */
    .controls-name-block     { order: 1; }
    .preview-container       { order: 2; }
    .controls-settings-block { order: 3; }
    .controls-bottom         { order: 4; }
    .boat-specs-wrapper      { order: 5; }

    .controls-name-block,
    .controls-settings-block,
    .controls-bottom { width: 100%; box-sizing: border-box; }

    .order-layout { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    #otherPrintSubcategories { grid-template-columns: repeat(2,1fr); }
    .expert-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .font-options { grid-template-columns: 1fr 1fr 1fr; }
    .font-preview-text { font-size: 0.85rem; }
    .font-style-label { font-size: 0.55rem; }
}

@media (max-width: 480px) {
    .constructor-section { padding: 15px 12px 40px; }
    .controls-name-block,
    .controls-settings-block,
    .controls-bottom { padding: 16px; }
    .price-quantity-block { flex-direction: column; }
    .quantity-controls { width: 100%; justify-content: center; }
    .color-options { justify-content: center; }
    .width-input-row { flex-direction: column; align-items: stretch; }
    .height-auto-display { min-width: unset; text-align: center; }
}

.boat-name-preview-stage {
    /* Фіксована висота — достатня для будь-якого шрифту */
    height: 140px;
    display: flex;
    align-items: center;      /* SVG вирівняно по вертикалі */
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    /* Subtle background to show sticker boundaries */
    background: repeating-linear-gradient(
        -45deg,
        #f5f5f5 0px, #f5f5f5 4px,
        #fafafa 4px, #fafafa 8px
    );
    border: 1px dashed #d8dde6;
}

/* SVG займає 100% ширини, висота обмежена контейнером */
.boat-number-display {
    width: 100%;
    max-width: 580px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.boat-number-display svg {
    display: block;
    width: 100%;
    /* SVG height керується viewBox + preserveAspectRatio,
       не задаємо height: 100% щоб не розтягувати по висоті без потреби */
    height: auto;
    max-height: 140px;
}

/* ----------------------------------------------------------------
   2. ТАБЛИЦЯ ЦІН — мобільна версія без горизонтального скролу
   ---------------------------------------------------------------- */
.pricing-table-wrapper {
    overflow-x: hidden;   /* забороняємо скрол */
    margin-bottom: 20px;
}

.pricing-table {
    width: 100%;
    table-layout: fixed;   /* рівномірний розподіл стовпців */
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    word-break: break-word;
}

.pricing-table thead th {
    background: var(--navy);
    color: white;
    padding: 12px 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
}

.pricing-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Стовпець "Габарити" — ліворуч */
.pricing-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
}

@media (max-width: 480px) {
    .pricing-table thead th,
    .pricing-table tbody td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    .pricing-table tbody td:first-child {
        font-size: 0.78rem;
    }
    .boat-name-preview-stage {
        height: 110px;
    }
    .boat-number-display svg {
        max-height: 110px;
    }
}
@media (max-width: 900px) {
    .preview-container {
        display: flex;
        justify-content: center;
    }
    .boat-preview-wrapper {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
}


.other-services-section {
    padding: 50px 0 20px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-light) 100%);
}

.other-services-section .section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

#otherPrintSubcategories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border-radius: 16px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
    transition: all 0.3s ease;
}

.subcategory-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 12px 32px rgba(58, 175, 217, 0.2);
}

.subcategory-card:hover .subcategory-icon {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--navy) 100%);
}

.subcategory-card:hover .subcategory-icon svg .st0 {
    fill: var(--white);
}

.subcategory-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: 50%;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.subcategory-icon svg {
    width: 36px;
    height: 36px;
}

.subcategory-icon svg .st0 {
    fill: var(--navy);
    transition: fill 0.3s ease;
}

.subcategory-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}

/* Responsive subcategories */
@media (max-width: 900px) {
    #otherPrintSubcategories {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 600px) {
    #otherPrintSubcategories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 16px;
        margin: 40px auto;
    }
    
    .subcategory-card {
        padding: 18px 12px;
    }
    
    .subcategory-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 10px;
    }
    
    .subcategory-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .subcategory-name {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    #otherPrintSubcategories {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Mobile preview — повна ширина, центрування */
@media (max-width: 900px) {
    .preview-container {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
        display: flex !important;
        justify-content: center;
        padding: 0;
    }
    .boat-preview-wrapper {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    .boat-name-preview-stage {
        width: 100%;
        box-sizing: border-box;
    }
    .boat-number-display {
        max-width: none !important;
        width: 100%;
    }
    .boat-number-display svg {
        max-height: 140px;
    }
}

@media (max-width: 480px) {
    .boat-name-preview-stage {
        height: 110px;
    }
    .boat-number-display svg {
        max-height: 110px;
    }
}


