/*
Theme Name: ICTP Automation theme.
Author: ICTP Software Development.
Description: Theme made by HTML in index.php and custom CSS in style.css
Version: 0.1
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ictp
*/
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --blue-dark: #0a1f44;
    --blue-mid: #1a56db;
    --blue-light: #2979d4;
    --blue-bg: #e6f1fb;
    --green-bg: #eaf3de;
    --green-text: #3b6d11;
    --amber-bg: #faeeda;
    --amber-text: #854f0b;
    --text-primary: #0a1f44;
    --text-secondary: #5a6a80;
    --text-muted: #8da0b8;
    --border: #e2e8f0;
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --bg-section: #f4f7fb;
    --radius: 10px;
    --shadow: 0 1px 4px rgba(10,31,68,0.07);
  }

body {
    background:
        radial-gradient(
            circle at top right,
            rgba(41,121,212,0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f9ff 100%
        );

    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;

    min-height: 100vh;
}

  a { color: var(--blue-light); text-decoration: none; }
  a:hover { text-decoration: underline; }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 48px;
    height: 68px;
}
  .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .logo-hex { width: 38px; height: 38px; flex-shrink: 0; display: block; }
  .logo-text { display: flex; flex-direction: column; line-height: 1.2; }
  .logo-ictp { font-size: 30px; font-weight: 600; color: var(--blue-dark); letter-spacing: 2px; }
  .logo-sub { font-size: 8px; font-weight: 500; color: var(--blue-light); letter-spacing: 2px; }

  .nav-links { display: flex; gap: 32px; }
  .nav-links a { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
  .nav-links a:hover { color: var(--blue-mid); text-decoration: none; }

  .btn-primary {
background: linear-gradient(
        180deg,
        #0a7cff 0%,
        #005ce6 100%
    );

    color: #ffffff;

    border: none;
    padding: 10px 20px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;

    box-shadow:
        0 10px 24px rgba(0, 92, 230, 0.22),
        0 2px 6px rgba(0, 92, 230, 0.10);

    transition:
        background .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
  }
  .btn-primary:hover {
    background: linear-gradient(
        180deg,
        #1886ff 0%,
        #0066f5 100%
    );

    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(0, 92, 230, 0.28),
        0 4px 10px rgba(0, 92, 230, 0.12);
}

.btn-outline {
    background: rgba(255,255,255,0.92);

    color: var(--text-primary);

    border: 1px solid #d8e1ec;

    padding: 10px 20px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    font-family: inherit;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.btn-outline:hover {
    background: #f7fbff;
    border-color: #c4d4e8;
    transform: translateY(-1px);
}

  /* ── HERO ── */
  .hero {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
    padding: 64px 48px 48px;
    max-width: 1200px; margin: 0 auto;
  }

  .hero-label {
    font-size: 11px; letter-spacing: 2.5px; font-weight: 600;
    color: var(--blue-light); margin-bottom: 14px;
  }

  .hero-title {
    font-size: 36px; font-weight: 600; line-height: 1.25;
    color: var(--blue-dark); margin-bottom: 16px;
  }
  .hero-title .accent { color: var(--blue-light); }

  .hero-desc {
    font-size: 15px; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 28px; max-width: 460px;
  }

  .hero-btns { display: flex; gap: 12px; margin-bottom: 32px; }

  .hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
  .trust-item { display: flex; align-items: flex-start; gap: 8px; }
  .trust-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--blue-bg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .trust-icon svg { width: 16px; height: 16px; color: var(--blue-mid); }
  .trust-label { font-size: 12px; font-weight: 600; color: var(--text-primary); }
  .trust-sub { font-size: 11px; color: var(--text-secondary); }

  /* ── FLOW BOX ── */
.flow-box {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.96) 0%,
            rgba(247,250,255,0.96) 100%
        );

    border: 1px solid rgba(226,232,240,0.9);

    border-radius: 24px;

    padding: 34px;

    box-shadow:
        0 20px 50px rgba(10,31,68,0.08),
        0 4px 12px rgba(10,31,68,0.04);

    backdrop-filter: blur(10px);
}

  .flow-steps {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 8px;
    margin-bottom: 20px; position: relative;
  }

  .flow-step { text-align: center; flex: 1; }
  .flow-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px;
  }
  .flow-icon-wrap svg { width: 20px; height: 20px; color: var(--blue-light); }
  .flow-label { font-size: 10px; color: var(--text-secondary); line-height: 1.3; }
  .flow-arrow { color: var(--text-muted); font-size: 18px; padding-top: 12px; }

  .flow-checks {
    background:
        linear-gradient(
            180deg,
            rgba(241,246,253,0.92) 0%,
            rgba(236,243,251,0.92) 100%
        );

    border: 1px solid rgba(214,224,236,0.7);

    border-radius: 18px;

    padding: 24px 28px;

    display: flex;
    flex-direction: column;

    gap: 18px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.65),
        0 6px 18px rgba(10,31,68,0.03);
}

.flow-check {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    font-size: 0.98rem;
    font-weight: 500;

    line-height: 1.55;

    color: var(--text-primary);
}

.check-icon {
    width: 20px;
    height: 20px;

    min-width: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #22b45b;

    margin-top: 2px;
}

.check-icon svg {
    width: 14px;
    height: 14px;
}
  .flow-check { display: flex; align-items: center; gap: 10px; font-size: 13px; }
  .check-icon { width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .check-icon svg { width: 10px; height: 10px; color: #16a34a; }

  /* ── SECTIONS ── */
  .section { padding: 56px 48px; max-width: 1200px; margin: 0 auto; }
  .section-full { padding: 24px 48px; background: var(--bg-section); }
  .section-inner { max-width: 1200px; margin: 0 auto; }

  .section-title {
    font-size: 26px; font-weight: 600; color: var(--blue-dark);
    text-align: center; margin-bottom: 6px;
  }
  .section-line {
    width: 36px; height: 3px; background: var(--blue-mid);
    margin: 8px auto 36px; border-radius: 2px;
  }
  .section-line-left { margin-left: 0; }

  /* ── CHALLENGES ── */
  .challenge-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  }
  .challenge-item { text-align: center; }
  .challenge-icon {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--blue-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
  }
  .challenge-icon svg { width: 22px; height: 22px; color: var(--blue-light); }
  .challenge-title { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
  .challenge-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

  /* ── SOLUTIONS ── */
  .solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .solution-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow);
  }
  .sol-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .sol-icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .sol-icon svg { width: 20px; height: 20px; }
  .sol-icon.blue { background: var(--blue-bg); }
  .sol-icon.blue svg { color: var(--blue-mid); }
  .sol-icon.green { background: var(--green-bg); }
  .sol-icon.green svg { color: var(--green-text); }
  .sol-icon.amber { background: var(--amber-bg); }
  .sol-icon.amber svg { color: var(--amber-text); }
  .sol-title { font-size: 14px; font-weight: 600; color: var(--blue-dark); }
  .sol-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
  .sol-checks { display: flex; flex-direction: column; gap: 6px; }
  .sol-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-primary); }
  .sol-check svg { width: 14px; height: 14px; color: var(--blue-light); flex-shrink: 0; }
  .sol-more { text-align: center; margin-top: 28px; }

/* ── WORKING SOLUTIONS ── */
.working-solutions {
    padding: 72px 48px;
    background: rgba(255,255,255,0.72);
}

.working-solutions-header {
    max-width: 780px;
    margin: 0 auto 40px;
    text-align: center;
}

.working-solutions-label,
.working-solution-label {
    color: var(--blue-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.working-solutions-header .section-title {
    margin-top: 8px;
}

.working-solutions-header .section-line {
    margin-bottom: 20px;
}

.working-solutions-intro {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.working-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.working-solution-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(10,31,68,0.07);
}

.working-solution-visual {
    display: flex;
    aspect-ratio: 3 / 2;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #eef5fc, #f8fbff);
    border-bottom: 1px solid var(--border);
}

.working-solution-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.working-solution-card--mobile-pair .working-solution-visual--mobile-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.working-solution-card--mobile-pair .working-solution-visual--mobile-pair img {
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
}

.working-solution-card--mobile-pair .working-solution-visual--mobile-pair .solution-card-room-checks-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
}

.working-solution-card--mobile-pair .working-solution-visual--mobile-pair img.solution-card-room-checks-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
}

.working-solution-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.working-solution-placeholder svg {
    width: 44px;
    height: 44px;
    color: #9eb5cf;
}

.working-solution-placeholder small {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}

.working-solution-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.working-solution-content h3 {
    margin: 7px 0 10px;
    color: var(--blue-dark);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.working-solution-description {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.working-solution-features {
    display: flex;
    margin: 0 0 26px;
    padding: 0;
    flex-direction: column;
    gap: 9px;
    list-style: none;
}

.working-solution-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.working-solution-features svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex: 0 0 16px;
    color: #16a34a;
}

.working-solution-supporting {
    margin: -8px 0 24px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.65;
}

.working-solution-actions {
    display: flex;
    min-height: 44px;
    margin-top: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
}

.working-solution-actions .btn-primary,
.working-solutions-closing .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.working-solution-actions .btn-primary {
    min-width: 180px;
    min-height: 44px;
}

.working-solution-demo.is-placeholder {
    cursor: not-allowed;
    opacity: 0.62;
}

.working-solution-demo.is-placeholder:hover {
    transform: none;
}

.working-solutions-closing {
    max-width: 720px;
    margin: 48px auto 0;
    text-align: center;
}

.working-solutions-closing h3 {
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-size: 20px;
    font-weight: 600;
}

.working-solutions-closing p {
    margin-bottom: 22px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

  /* ── PROJECTS ── */
  .projects-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px;
  }
  .project-slider-wrapper {
    position: relative;
    margin-top: 28px;
}

.project-slider {
    display: flex;
    gap: 20px;

    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding-bottom: 10px;

    scrollbar-width: none;
}

.project-slider::-webkit-scrollbar {
    display: none;
}

.project-card {
    min-width: 360px;
    max-width: 360px;

    flex-shrink: 0;

    scroll-snap-align: start;

    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 20px;

    box-shadow: var(--shadow);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.project-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(10,31,68,0.10),
        0 4px 10px rgba(10,31,68,0.06);
}

.project-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: 1px solid var(--border);

    background: rgba(255,255,255,0.92);

    backdrop-filter: blur(8px);

    color: var(--blue-mid);

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    z-index: 20;

    box-shadow:
        0 8px 24px rgba(10,31,68,0.10);

    transition:
        transform .18s ease,
        background .18s ease;
}

.project-arrow:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.project-arrow-left {
    left: -18px;
}

.project-arrow-right {
    right: -18px;
}

@media (max-width: 900px) {

    .project-card {
        min-width: 85%;
        max-width: 85%;
    }

    .project-arrow {
        display: none;
    }
}
  .project-card {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow);
  }
  .project-tag {
    display: inline-block; font-size: 10px; font-weight: 600;
    background: var(--blue-bg); color: #185fa5;
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
  }
  .project-logo-bureau { font-size: 16px; font-weight: 700; color: var(--blue-mid); margin-bottom: 8px; }
  .project-logo-staete {
    display: inline-block; background: var(--blue-mid); color: #fff;
    padding: 4px 14px; border-radius: 6px;
    font-size: 15px; font-weight: 600; margin-bottom: 8px;
  }
  .project-logo-vtb { font-size: 12px; font-weight: 700; color: #15803d; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
  .project-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
  .project-checks { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
  .project-check { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-primary); }
  .project-check svg { width: 13px; height: 13px; color: var(--blue-light); flex-shrink: 0; }
  .project-link { font-size: 12px; color: var(--blue-light); font-weight: 500; }
  .project-link:hover { text-decoration: underline; }

  /* ── BOTTOM SPLIT ── */
  .bottom-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
    padding: 56px 48px; max-width: 1200px; margin: 0 auto;
  }

  .faq-title { font-size: 26px; font-weight: 600; color: var(--blue-dark); margin-bottom: 6px; }
  .faq-line { width: 28px; height: 3px; background: var(--blue-mid); border-radius: 2px; margin-bottom: 20px; }
  .faq-item {
    border-top: 1px solid var(--border); padding: 14px 0;
    display: flex; justify-content: space-between; align-items: flex-start;
    cursor: pointer; gap: 12px;
  }
  .faq-item:last-child { border-bottom: 1px solid var(--border); }
  .faq-q { font-size: 13px; font-weight: 500; color: var(--text-primary); }
  .faq-q.open { color: var(--blue-mid); }
  .faq-answer { font-size: 12px; color: var(--text-secondary); line-height: 1.6; padding: 0 0 8px; }
  .faq-toggle { font-size: 20px; color: var(--text-muted); flex-shrink: 0; line-height: 1; }
  .faq-toggle.minus { color: var(--blue-mid); }

  .contact-title { font-size: 26px; font-weight: 600; color: var(--blue-dark); margin-bottom: 6px; }
  .contact-line { width: 28px; height: 3px; background: var(--blue-mid); border-radius: 2px; margin-bottom: 10px; }
  .contact-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
  .form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 13px; font-family: inherit;
    color: var(--text-primary); background: var(--bg-white);
    outline: none; transition: border-color 0.15s;
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--blue-light); }
  .form-input::placeholder, .form-textarea::placeholder { color: #aab4be; }
  .form-select { color: #aab4be; margin-bottom: 10px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238da0b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
  .form-textarea { height: 90px; resize: vertical; margin-bottom: 14px; }
  .btn-submit {
    width: 100%; background: var(--blue-mid); color: #fff;
    border: none; padding: 13px; border-radius: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer;
    font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .btn-submit:hover { background: #1446c0; }
  .form-privacy {
    font-size: 11px; color: var(--text-muted); text-align: center;
    margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 5px;
  }

  /* ── FOOTER ── */
  footer {
    background: var(--blue-dark); color: var(--text-muted);
    padding: 48px 48px 24px;
  }
  .footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
    margin-bottom: 32px;
  }
  .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .footer-ictp { font-size: 30px; font-weight: 600; color: #fff; letter-spacing: 2px; }
  .footer-sub { font-size: 8px; color: var(--blue-light); letter-spacing: 2px; }
  .footer-desc { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
  .footer-tech { display: flex; gap: 12px; }
  .footer-tech svg { width: 18px; height: 18px; color: #4a6080; }
  .footer-heading { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px; }
  .footer-links { display: flex; flex-direction: column; gap: 8px; }
  .footer-links a { font-size: 12px; color: var(--text-muted); }
  .footer-links a:hover { color: #fff; text-decoration: none; }
  .footer-contact { display: flex; flex-direction: column; gap: 10px; }
  .footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
  .footer-contact-item[href^="mailto:"], .footer-contact-item[href^="tel:"] { color: var(--text-muted); }
  .footer-contact-item svg { width: 15px; height: 15px; color: var(--blue-light); flex-shrink: 0; margin-top: 1px; }
  .footer-social { display: flex; gap: 10px; margin-top: 6px; }
  .footer-social a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(93, 173, 255, 0.45); background: rgba(73, 168, 255, 0.08); color: #58b2ff; transition: all 0.2s ease; }
  .footer-social a svg { width: 15px; height: 15px; }
  .footer-social a:hover { color: #fff; border-color: #7ec5ff; background: rgba(73,168,255,0.18); text-decoration: none; }
  .footer-bottom {
    max-width: 1200px; margin: 0 auto;
    border-top: 1px solid #1e3a5f; padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px;
  }
  .footer-bottom a { color: var(--text-muted); }
  .footer-bottom a:hover { color: #fff; text-decoration: none; }
  .footer-legal { display: flex; gap: 20px; }

  @media (max-width: 900px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; padding: 32px 20px; }
    .section { padding: 40px 20px; }
    .section-full { padding: 40px 20px; }
    .challenge-grid { grid-template-columns: repeat(3, 1fr); }
    .solution-grid, .project-grid { grid-template-columns: 1fr; }
    .bottom-split { grid-template-columns: 1fr; padding: 40px 20px; gap: 40px; }
    footer { padding: 40px 20px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .working-solutions { padding: 56px 20px; }
    .working-solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 680px) {
    .working-solutions-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 560px) {
    nav > .nav-logo .logo-text { display: none; }
    nav > .btn-primary { padding-right: 12px; padding-left: 12px; font-size: 12px; }
    .working-solutions { padding: 44px 20px; }
    .working-solutions-header { margin-bottom: 30px; }
    .working-solutions-header .section-title { font-size: 24px; }
    .working-solution-content { padding: 22px; }
    .working-solution-actions { align-items: stretch; flex-direction: column; gap: 14px; }
    .working-solution-actions .btn-primary { width: 100%; }
    .working-solutions-closing { margin-top: 38px; }
  }

  .cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 980px;
    margin: 0 auto;
    padding: 22px 24px;
    border-radius: 18px;

    background: rgba(7, 31, 73, 0.96);
    backdrop-filter: blur(14px);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;

    box-shadow:
        0 18px 50px rgba(7, 31, 73, 0.28),
        0 2px 12px rgba(0, 0, 0, 0.15);

    border: 1px solid rgba(255,255,255,0.08);

    z-index: 9999;
}

.cookie-banner p {
    margin: 0;
    max-width: 620px;

    font-size: 0.95rem;
    line-height: 1.6;

    color: rgba(255,255,255,0.82);
}

.cookie-banner a {
    color: #6bb6ff;
    font-weight: 700;
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btns button {
    border: none;
    cursor: pointer;

    padding: 13px 18px;
    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 800;

    transition:
        transform .18s ease,
        background .18s ease,
        opacity .18s ease;
}

.cookie-btns button:hover {
    transform: translateY(-1px);
}

.cookie-accept {
    background: linear-gradient(
        180deg,
        #0a7cff,
        #005ce6
    );

    color: #ffffff;

    box-shadow:
        0 10px 24px rgba(0, 102, 255, 0.32);
}

.cookie-decline {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);

    border: 1px solid rgba(255,255,255,0.12);
}

.cookie-decline:hover {
    background: rgba(255,255,255,0.12);
}

@media (max-width: 768px) {

    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;

        padding: 20px;
    }

    .cookie-btns {
        width: 100%;
    }

    .cookie-btns button {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .cookie-btns { flex-direction: column; }
    .cookie-btns button { width: 100%; }
}

/* Homepage rules defined after legacy page styles in the WordPress theme. */
.footer-version {
    font-size: 12px;
    opacity: .6;
    margin-left: 8px;
    letter-spacing: 0.5px;
}

.project-tag {
    display: inline-block;
    background: #eef6ff;
    color: #2563eb;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .challenge-grid {
        grid-template-columns: 1fr;
    }
}

.recent-projects {
    margin: 100px 0;
}

.recent-projects h2 {
    text-align: center;
    margin-bottom: 10px;
}

.recent-projects-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #64748b;
}

.recent-projects-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
}

.recent-project-filter {
    border: 1px solid #dfe6ef;
    background: #f8fafc;
    color: #0f2447;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.recent-project-filter.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.recent-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recent-project {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
}

.recent-year {
    display: inline-block;
    background: #eef6ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.recent-project h3 {
    margin-bottom: 12px;
    color: #0f2447;
    font-size: 22px;
}

.recent-project p {
    color: #64748b;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .recent-projects {
        margin: 56px 0 64px;
    }

    .recent-projects h2 {
        margin-bottom: 12px;
    }

    .recent-projects-intro {
        margin: 0 auto 24px;
    }

    .recent-projects-filters {
        gap: 10px;
        margin: 0 auto 28px;
    }

    .recent-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recent-project {
        padding: 20px;
    }

    .recent-year {
        margin-bottom: 12px;
    }
}

/* Main solutions and service pages migrated for Task 2. */
.projects-page { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }
.projects-page .case-page, .case-page { max-width: 1180px; margin: 0 auto; padding: 90px 20px; }
.case-hero { max-width: 820px; margin-bottom: 50px; }
.case-label { margin-bottom: 16px; color: #2563eb; font-size: 14px; font-weight: 700; }
.case-hero h1 { margin-bottom: 22px; color: #0f2447; font-size: 52px; line-height: 1.1; }
.case-hero p { color: #64748b; font-size: 20px; line-height: 1.7; }
.case-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 70px; }
.case-summary > div { padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-white); }
.case-summary span { display: block; margin-bottom: 8px; color: #64748b; font-size: 13px; }
.case-summary strong { color: #0f2447; font-size: 16px; }
.case-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; margin-bottom: 90px; }
.case-content h2 { margin: 0 0 16px; color: #0f2447; font-size: 28px; }
.case-content p { margin-bottom: 36px; color: #64748b; font-size: 17px; line-height: 1.8; }
.case-content ul { margin: 24px 0 40px 24px; padding: 0; }
.case-content li { margin-bottom: 4px; color: var(--text-secondary); font-size: 18px; line-height: 2; }
.case-sidebar { display: flex; flex-direction: column; gap: 22px; }
.case-card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-white); }
.case-card h3 { margin-bottom: 18px; color: #0f2447; }
.case-card ul { margin: 0; padding-left: 18px; }
.case-card li { margin-bottom: 10px; color: #334155; }
.case-card.case-highlight { margin: 60px 0; padding: 40px; border-left: 4px solid #2563eb; border-radius: 12px; background: #f8fafc; }
.case-highlight p { color: #64748b; line-height: 1.7; }
.case-projects { margin: 80px 0; }
.case-projects > h2 { margin-bottom: 40px; color: #0f2447; text-align: center; }
.case-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.case-project-card { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-white); transition: transform .3s ease, box-shadow .3s ease; }
.case-project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
.case-project-card h3 { margin: 16px 0; color: #0f2447; font-size: 24px; line-height: 1.3; }
.case-project-card p { margin-bottom: 20px; color: #64748b; line-height: 1.8; }
.case-project-card li { margin-bottom: 10px; color: #334155; }
.related-solutions { margin: 90px 0; }
.related-solutions h2 { margin-bottom: 32px; text-align: center; }
.related-solutions .project-solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-solutions .solution-card { display: block; padding: 35px; border-radius: 16px; background: var(--bg-white); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); color: inherit; text-decoration: none; }
.related-solutions .solution-card:hover { transform: translateY(-3px); transition: transform .2s ease; }
.related-solutions .solution-tag, .case-project-card .project-tag { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: #eef4ff; color: var(--blue-light); font-size: 13px; font-weight: 600; }
.related-solutions .solution-card h3 { margin: 16px 0 12px; }
.related-solutions .solution-card p { margin-bottom: 24px; color: var(--text-secondary); }
.future-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px; margin: 34px 0 48px; }
.future-step { flex: 1; min-width: 220px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-white); box-shadow: var(--shadow); color: #0f2447; font-weight: 600; }
.future-step h3 { margin-bottom: 10px; color: var(--blue-dark); }
.future-step p { margin: 0; color: var(--text-secondary); font-size: 15px; }
.future-arrow { display: flex; align-items: center; color: var(--blue-light); font-size: 28px; font-weight: 700; }
.case-cta { padding: 80px 0; border-radius: 26px; background: #f8fafc; text-align: center; }
.case-cta h2 { margin-bottom: 14px; color: #0f2447; }
.case-cta p { max-width: 700px; margin: 20px auto 35px; color: #64748b; line-height: 1.7; }
.projects-page .solution-journey { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin: 80px 0; }
.projects-page .journey-step { flex: 1; text-align: center; }
.projects-page .journey-step img { width: 96px; height: 96px; margin-bottom: 20px; object-fit: contain; }
.projects-page .journey-step h3 { margin-bottom: 10px; }
.projects-page .journey-arrow { color: var(--blue-light); font-size: 32px; font-weight: 700; }
.projects-page .solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 80px 0; }
.projects-page .solution-card { padding: 35px; border-radius: 16px; background: var(--bg-white); box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.projects-page .solution-card p { color: var(--text-secondary); }
.projects-page .solution-card h2 { margin-top: 0; }
.projects-page .solution-card ul { margin-top: 20px; }
.projects-page .solution-card li { margin-bottom: 8px; color: #475569; }
.solution-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 30px; }
.example-card { padding: 25px; border: 1px solid #e5e7eb; border-radius: 12px; background: var(--bg-white); }
.projects-page .case-highlight { margin: 60px 0; padding: 40px; border-left: 4px solid #2563eb; border-radius: 12px; background: #f8fafc; }
.projects-page .case-highlight h2 { margin-top: 0; }
.projects-page .hero-title { color: #0f2447; }
.projects-page .case-cta h2 { color: #0f2447; }
.projects-page .case-cta p { color: #64748b; }
.faq-section { max-width: 900px; margin: 80px auto 0; }
.faq-section .faq-item { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; text-align: left; font: inherit; }
.faq-section .faq-item:focus-visible { outline-offset: -2px; }

@media (max-width: 900px) {
    .case-hero h1 { font-size: 38px; }
    .case-summary, .case-content-grid { grid-template-columns: 1fr; }
    .case-content-grid { gap: 28px; }
    .related-solutions .project-solutions-grid { grid-template-columns: 1fr; }
    .future-flow { flex-direction: column; }
    .future-arrow { justify-content: center; transform: rotate(90deg); }
}

@media (max-width: 1024px) {
    .case-project-grid { grid-template-columns: 1fr; }
    .projects-page .solution-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 10px; }
    .projects-page .journey-arrow { display: none; }
}

@media (max-width: 768px) {
    .projects-page .solution-grid, .solution-examples, .case-project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .projects-page .journey-step img { width: 76px; height: 76px; }
}

@media (max-width: 560px) {
    .recent-projects {
        margin: 48px 0 56px;
    }

    .recent-projects h2 {
        margin-bottom: 8px;
    }

    .recent-projects-intro {
        margin: 0 auto 20px;
    }

    .recent-projects-filters {
        gap: 8px;
        margin: 0 auto 24px;
    }

    .recent-projects-grid {
        gap: 16px;
    }

    .recent-project {
        padding: 18px 18px 20px;
    }

    .recent-year {
        margin-bottom: 12px;
    }
}

/* Existing production contact form states. */
.hidden-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.form-success {
    display: none;
    background: #e6f5ee;
    border: 1px solid #a3d9b8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #1a6639;
    font-weight: 600;
    margin-top: 1rem;
  }
.bottom-split .form-input { min-width: 0; }
