body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #222;
}

header {
    background: #ffffff;
    border-bottom: 1px solid #dddddd;
    padding: 20px 40px;
}

header h1 {
    margin: 0 0 15px 0;
}

header h1 a {
    color: #1f4e79;
    text-decoration: none;
}

nav a {
    color: #1f4e79;
    text-decoration: none;
    margin-right: 15px;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1100px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

footer {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    color: #666666;
    font-size: 14px;
}

h2,
h3,
h4 {
    color: #1f2937;
}

a {
    color: #1f4e79;
}

button {
    background: #1f4e79;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background: #163a5c;
}

input,
select {
    padding: 8px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #dddddd;
    text-align: left;
}

th {
    background: #f0f3f7;
}

@media (max-width: 700px) {

    header {
        padding: 20px;
    }

    main {
        margin: 15px;
        padding: 20px;
    }

    footer {
        margin: 15px;
    }

    table {
        font-size: 14px;
    }
}
/* ========================================
   STRONA GŁÓWNA - HERO
======================================== */

.hero {
    background: linear-gradient(135deg, #1f4e79, #28689e);
    border-radius: 12px;
    padding: 45px 40px;
    margin-bottom: 30px;
    color: white;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    color: white;
    font-size: 38px;
    margin-top: 0;
    margin-bottom: 10px;
}

.hero-description {
    font-size: 19px;
    margin-bottom: 22px;
    opacity: 0.95;
}

/* ========================================
   WYSZUKIWARKA
======================================== */

.search-form {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 8px;
    border-radius: 9px;
    gap: 8px;
}

.search-form input {
    flex: 2;
    min-width: 0;
    border: none;
    padding: 14px;
    font-size: 16px;
}

.search-form select {
    flex: 1;
    border: 1px solid #dddddd;
    padding: 12px;
    font-size: 15px;
    background: white;
}

.search-form button {
    padding: 12px 22px;
    white-space: nowrap;
    font-weight: bold;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
}

.search-example {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 13px;
    opacity: 0.8;
}


/* ========================================
   KATEGORIE
======================================== */

.categories-section {
    margin-top: 30px;
}

.categories-section > h3 {
    font-size: 26px;
    margin-bottom: 25px;
}

.category-block {
    background: #f7f9fb;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.category-block h4 {
    margin-top: 0;
    font-size: 19px;
}

.category-block ul {
    margin-bottom: 0;
}


/* ========================================
   TELEFONY
======================================== */

@media (max-width: 700px) {

    .hero {
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero-description {
        font-size: 17px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
        box-sizing: border-box;
    }
}
/* ========================================
   NAGŁÓWEK PORTALU
======================================== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e1e5ea;
    padding: 0 30px;
}

.header-container {
    max-width: 1100px;
    height: 72px;
    margin: 0 auto;

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

.site-logo {
    color: #1f4e79;
    text-decoration: none;
    font-size: 27px;
    font-weight: bold;
}

.site-logo:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: #374151;
    text-decoration: none;
    margin: 0;
}

.main-nav a:hover {
    color: #1f4e79;
    text-decoration: none;
}

.main-nav .add-price-link {
    background: #1f4e79;
    color: #ffffff;
    padding: 10px 17px;
    border-radius: 6px;
    font-weight: bold;
}

.main-nav .add-price-link:hover {
    background: #163a5c;
    color: #ffffff;
}


/* TELEFONY */

@media (max-width: 700px) {

    .site-header {
        padding: 0 15px;
    }

    .header-container {
        height: auto;
        min-height: 65px;
        gap: 15px;
    }

    .site-logo {
        font-size: 21px;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .main-nav .add-price-link {
        padding: 8px 11px;
    }
}
/* ========================================
   KAFELKI KATEGORII
======================================== */

.section-heading {
    margin-bottom: 25px;
}

.section-heading h3 {
    margin-bottom: 7px;
    font-size: 27px;
}

.section-heading p {
    margin-top: 0;
    color: #667085;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.category-card h4 {
    margin: 0 0 18px 0;
    font-size: 20px;
}

.category-card ul {
    margin: 0;
    padding-left: 20px;
}

.category-card li {
    margin: 9px 0;
}

.category-card a {
    text-decoration: none;
}

.category-card a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .categories-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   PODPOWIEDZI WYSZUKIWARKI
======================================== */

.search-input-wrapper {
    position: relative;
    flex: 2;
    min-width: 0;
}

.search-input-wrapper input {
    width: 100%;
    box-sizing: border-box;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;

    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    overflow: hidden;
    text-align: left;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
    color: #222222;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f3f6f9;
}

.suggestion-item strong {
    display: block;
    font-size: 15px;
}

.suggestion-item span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 700px) {

    .search-input-wrapper {
        width: 100%;
    }
}
.category-card h4 a {
    color: #1f2937;
    text-decoration: none;
}

.category-card h4 a:hover {
    color: #1f4e79;
}
/* Strona kategorii */

.category-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.category-service-item {
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.category-service-item h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.category-service-item h3 a {
    color: #1f2937;
    text-decoration: none;
}

.category-service-item h3 a:hover {
    color: #1f4e79;
}

.category-service-item p {
    margin: 9px 0;
}

.category-service-item > p:last-child {
    margin-top: 20px;
}

.category-service-item > p:last-child a {
    font-weight: bold;
    text-decoration: none;
}

.category-service-item > p:last-child a:hover {
    text-decoration: underline;
}

.category-services > hr {
    display: none;
}

@media (max-width: 700px) {
    .category-services {
        grid-template-columns: 1fr;
    }
}
/* Dane cenowe na kartach usług */

.service-price-main {
    margin-top: 18px;
    margin-bottom: 18px;
}

.price-label {
    display: block;
    font-size: 13px;
    color: #667085;
    margin-bottom: 5px;
}

.price-value {
    display: block;
    font-size: 26px;
    color: #1f2937;
}

.service-price-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
}

.service-price-details strong {
    font-size: 15px;
}

.service-price-details span {
    font-size: 13px;
    color: #667085;
}

.no-price-data {
    margin-top: 18px;
    margin-bottom: 22px;
    padding: 14px;
    background: #f7f9fb;
    border-radius: 8px;
}

.no-price-data strong {
    display: block;
    margin-bottom: 5px;
}

.no-price-data span {
    font-size: 13px;
    color: #667085;
}

.service-details-link {
    display: inline-block;
    margin-top: auto;
    font-weight: bold;
    text-decoration: none;
}

.service-details-link:hover {
    text-decoration: underline;
}
/* Strona konkretnej usługi */

.service-page {
    max-width: 100%;
}

.service-header {
    margin-bottom: 30px;
}

.service-category {
    margin: 0 0 8px 0;
    color: #667085;
    font-size: 14px;
}

.service-header h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
}

.service-intro {
    margin: 0;
    max-width: 700px;
    color: #667085;
    font-size: 17px;
    line-height: 1.5;
}


/* Główne podsumowanie ceny */

.service-summary {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.service-main-price {
    background: #f7f9fb;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    padding: 25px;
}

.service-main-price .price-value {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 34px;
}

.price-source {
    display: block;
    color: #667085;
    font-size: 13px;
}

.service-price-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-price-range > div {
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    padding: 20px;
}

.service-price-range span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 13px;
}

.service-price-range strong {
    font-size: 19px;
}


/* Sekcje strony */

.service-section {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e1e6eb;
}

.service-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
}

.service-section > p {
    margin-top: 0;
    color: #667085;
}


/* Ostatnie ceny */

.recent-prices {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.recent-price-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1fr;
    align-items: center;
    padding: 15px;
    background: #f7f9fb;
    border-radius: 7px;
}

.recent-price-item strong {
    font-size: 17px;
}


/* Brak danych */

.no-service-prices {
    padding: 30px;
    background: #f7f9fb;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    margin-bottom: 30px;
}

.no-service-prices h3 {
    margin-top: 0;
}

.no-service-prices p {
    color: #667085;
    margin-bottom: 22px;
}


/* Dodawanie ceny */

.add-price-section {
    margin-top: 35px;
    padding: 25px;
    background: #f7f9fb;
    border-radius: 10px;
}

.add-price-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.add-price-section p {
    color: #667085;
    margin-bottom: 20px;
}

.add-price-button {
    display: inline-block;
    background: #1f4e79;
    color: #ffffff;
    padding: 11px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.add-price-button:hover {
    background: #163a5c;
    color: #ffffff;
    text-decoration: none;
}


/* Telefon */

@media (max-width: 700px) {

    .service-header h2 {
        font-size: 27px;
    }

    .service-summary {
        grid-template-columns: 1fr;
    }

    .service-price-range {
        grid-template-columns: 1fr 1fr;
    }

    .recent-price-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 450px) {

    .service-price-range {
        grid-template-columns: 1fr;
    }
}
/* Ostatnie ceny na stronie miasta */

.city-price-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 20px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e1e6eb;
}

.city-price-item:last-child {
    border-bottom: none;
}

.city-price-item strong {
    font-size: 17px;
}

.city-price-item span {
    color: #667085;
    font-size: 14px;
}

@media (max-width: 700px) {
    .city-price-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
/* Podsumowanie cen na stronie miasta */

.city-price-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 20px;
}

.city-main-price,
.city-typical-price {
    background: #f7f9fb;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    padding: 25px;
}

.city-main-price .price-value {
    display: block;
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 34px;
}

.city-typical-price strong {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 22px;
}

.city-typical-price > span:last-child {
    display: block;
    color: #667085;
    font-size: 13px;
}


/* Dodatkowe statystyki */

.city-statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.city-statistics > div {
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    padding: 18px;
}

.city-statistics span {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: 13px;
}

.city-statistics strong {
    display: block;
    font-size: 18px;
}


/* Responsywność strony miasta */

@media (max-width: 800px) {

    .city-price-summary {
        grid-template-columns: 1fr;
    }

    .city-statistics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {

    .city-statistics {
        grid-template-columns: 1fr;
    }
}
/* Dodatkowe informacje o cenie */

.recent-price-card,
.city-price-card {
    background: #f7f9fb;
    border-radius: 7px;
    overflow: hidden;
}

.recent-price-card .recent-price-item {
    background: transparent;
}

.city-price-card .city-price-item {
    padding-left: 15px;
    padding-right: 15px;
}

.price-details {
    padding: 12px 15px;
    border-top: 1px solid #e1e6eb;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}
/* Formularz dodawania ceny */

.price-form-page {
    max-width: 760px;
    margin: 0 auto;
}

.price-form-header {
    margin-bottom: 30px;
}

.price-form-header h2 {
    margin-bottom: 10px;
    font-size: 30px;
}

.price-form-header p {
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.5;
}

.price-form {
    background: #ffffff;
}

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1f2937;
}

.optional-label {
    font-weight: normal;
    color: #667085;
    font-size: 13px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #ffffff;
    font-size: 15px;
    font-family: inherit;
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1f4e79;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.10);
}

.field-help {
    margin: 7px 0 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input-wrapper input {
    flex: 1;
}

.price-input-wrapper span {
    font-weight: bold;
    color: #475467;
}

.form-submit {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e1e6eb;
}

.form-submit button {
    padding: 12px 22px;
    font-size: 16px;
    font-weight: bold;
}

.form-submit p {
    margin: 10px 0 0 0;
    color: #667085;
    font-size: 13px;
}

.field-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
}

.form-errors {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #fff1f0;
    color: #b42318;
}

@media (max-width: 700px) {
    .price-form-page {
        max-width: 100%;
    }

    .price-form-header h2 {
        font-size: 26px;
    }

    .price-input-wrapper {
        align-items: stretch;
    }

    .price-input-wrapper span {
        display: flex;
        align-items: center;
    }
}
/* Rozwijane dodatkowe informacje w formularzu */

.optional-details-section {
    margin-top: 5px;
    margin-bottom: 10px;
}

.optional-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    color: #1f4e79;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.optional-details-toggle:hover {
    background: transparent;
    color: #163a5c;
}

.optional-details-toggle .optional-label {
    color: #667085;
    font-size: 13px;
    font-weight: normal;
}

.optional-details-content {
    display: none;
    margin-top: 22px;
    padding: 20px;
    background: #f7f9fb;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
}

.optional-details-content.is-open {
    display: block;
}

.optional-details-content .form-field:last-child {
    margin-bottom: 0;
}
.price-statistics-note {
    margin-top: -15px;
    margin-bottom: 35px;
    padding: 12px 15px;
    background: #f7f9fb;
    border-left: 3px solid #1f4e79;
    border-radius: 4px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}
/* Statystyki według rodzaju ceny */

.price-type-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.price-type-card {
    padding: 22px;
    background: #f7f9fb;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
}

.price-type-label {
    display: block;
    margin-bottom: 10px;
    color: #667085;
    font-size: 14px;
    line-height: 1.4;
}

.price-type-average {
    display: block;
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 26px;
}

.price-type-range {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475467;
}

.price-type-count {
    color: #667085;
    font-size: 13px;
}

@media (max-width: 800px) {

    .price-type-stats {
        grid-template-columns: 1fr;
    }

}
/* Wykres porównania cen */

.price-chart-container {
    position: relative;
    height: 330px;
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
}

.city-table-details {
    margin-top: 15px;
}

.city-table-details summary {
    display: inline-block;
    color: #1f4e79;
    font-weight: bold;
    cursor: pointer;
}

.city-table-details summary:hover {
    text-decoration: underline;
}

.city-table-wrapper {
    margin-top: 20px;
    overflow-x: auto;
}

@media (max-width: 700px) {

    .price-chart-container {
        height: 280px;
        padding: 12px;
    }

}
/* Ulepszone karty kategorii */

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 170px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 12px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #c9d5df;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.category-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #f0f5f9;
    border-radius: 10px;
    font-size: 21px;
}

.category-card h4 {
    margin: 0;
    font-size: 20px;
}

.category-card h4 a {
    color: #1f2937;
    text-decoration: none;
}

.category-card h4 a:hover {
    color: #1f4e79;
}

.category-services-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.category-service-link {
    color: #1f4e79;
    text-decoration: none;
    font-size: 15px;
}

.category-service-link:hover {
    text-decoration: underline;
}

.category-empty {
    color: #667085;
    font-size: 14px;
}

.category-more-link {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eef1f4;
    color: #1f4e79;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.category-more-link:hover {
    text-decoration: underline;
}
/* Jednolite ikony kategorii */

.category-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #1f4e79;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Strona potwierdzenia dodania ceny */

.success-page {
    max-width: 700px;
    margin: 30px auto;
}

.success-card {
    padding: 50px 35px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 12px;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #eef6f0;
    border-radius: 50%;
    color: #287a3e;
    font-size: 30px;
    font-weight: bold;
}

.success-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.success-description {
    max-width: 520px;
    margin: 0 auto;
    color: #667085;
    font-size: 16px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.success-primary-button,
.success-secondary-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.success-primary-button {
    background: #1f4e79;
    color: #ffffff;
}

.success-primary-button:hover {
    background: #183e61;
    color: #ffffff;
}

.success-secondary-button {
    background: #ffffff;
    color: #1f4e79;
    border: 1px solid #d0d5dd;
}

.success-secondary-button:hover {
    background: #f7f9fb;
    text-decoration: none;
}

@media (max-width: 600px) {

    .success-card {
        padding: 35px 20px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-primary-button,
    .success-secondary-button {
        width: 100%;
        box-sizing: border-box;
    }

}
/* Usługi bez danych na stronie kategorii */

.category-service-empty {
    background: #fafbfc;
    border-color: #e5e7eb;
}

.category-service-empty h3 a {
    color: #475467;
}

.no-price-data {
    margin-top: 18px;
}

.no-price-data p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.no-price-badge {
    display: inline-block;
    padding: 5px 9px;
    background: #eef1f4;
    color: #667085;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.add-first-price-link {
    display: inline-block;
    margin-top: 20px;
    color: #1f4e79;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.add-first-price-link:hover {
    text-decoration: underline;
}
/* Porównanie miasta, województwa i Polski */

.regional-comparison {
    margin-top: 40px;
}

.regional-comparison h3 {
    margin-bottom: 8px;
}

.regional-comparison p {
    margin-top: 0;
    color: #667085;
}

.regional-chart-container {
    position: relative;
    height: 300px;
    margin-top: 22px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
}

@media (max-width: 700px) {

    .regional-chart-container {
        height: 260px;
        padding: 12px;
    }

}
/* Breadcrumbs */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #1f4e79;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #98a2b3;
}

.breadcrumb-current {
    color: #667085;
}
/* Korekta odstępów na stronie miasta */

.city-main-price {
    margin-bottom: 22px;
}

.typical-price-range {
    margin-top: 0;
    margin-bottom: 22px;
}

.city-statistics {
    margin-top: 0;
    margin-bottom: 34px;
}

.regional-comparison {
    margin-top: 0;
}

.regional-comparison h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.regional-comparison p {
    margin-top: 0;
    margin-bottom: 22px;
}
/* Tabela porównania miast */

.city-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.city-comparison-table th,
.city-comparison-table td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.city-comparison-table th {
    background: #f7f9fb;
    color: #475467;
    font-size: 13px;
    font-weight: bold;
}

.city-comparison-table td {
    font-size: 15px;
}

.city-comparison-table tbody tr:hover {
    background: #f9fafb;
}

.city-comparison-table td a {
    color: #1f4e79;
    font-weight: bold;
    text-decoration: none;
}

.city-comparison-table td a:hover {
    text-decoration: underline;
}


/* Ukryty wykres */

.city-chart-details {
    margin-top: 22px;
}

.city-chart-details summary {
    display: inline-block;
    color: #1f4e79;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.city-chart-details summary:hover {
    text-decoration: underline;
}

.city-chart-details .price-chart-container {
    margin-top: 20px;
}
/* Poprawki dla telefonów */

@media (max-width: 600px) {

    main {
        margin: 15px;
        padding: 15px;
        border-radius: 8px;
    }


    /* Nagłówek */

    .header-container {
        padding: 10px 15px;
        gap: 12px;
    }

    .site-logo {
        font-size: 19px;
        line-height: 1.05;
    }

    .main-nav {
        gap: 8px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .add-price-link {
        padding: 9px 12px;
    }


    /* Hero */

    .hero {
        padding: 34px 20px;
        margin-bottom: 25px;
        border-radius: 10px;
    }

    .hero h2 {
        font-size: 30px;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 22px;
    }


    /* Wyszukiwarka */

    .search-form {
        width: 100%;
    }

    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .search-example {
        margin-top: 16px;
        font-size: 13px;
        line-height: 1.25;
    }


    /* Nagłówek sekcji kategorii */

    .categories-section .section-heading h3 {
        font-size: 27px;
        line-height: 1.15;
    }

}
/* Karty kategorii */

.category-card {
    min-height: 0;
    padding: 20px 24px;
}

.category-card-header {
    margin-bottom: 16px;
}

.category-services-list {
    margin-bottom: 16px;
}

.category-more-link {
    margin-top: 4px;
    padding-top: 14px;
}
/* Strona usługi na telefonie */

.breadcrumbs {
    gap: 6px;
    margin-bottom: 22px;
    line-height: 1.5;
}

/* Separator ma pozostać razem z elementem po prawej */
.breadcrumb-separator {
    margin: 0 2px;
}


/* Główna cena */

.service-summary {
    gap: 14px;
}

.service-main-price {
    padding: 22px 20px;
}

.service-main-price .price-value {
    font-size: 34px;
}


/* Najniższa / najwyższa cena */

.service-price-range {
    gap: 14px;
}

.service-price-range > div {
    padding: 20px;
}


/* Notatka pod statystykami */

.price-statistics-note {
    margin-top: 18px;
    padding: 14px 15px;
    line-height: 1.5;
}
.breadcrumb-last {
    display: inline-flex;
    gap: 6px;
    white-space: nowrap;
}
/* Tabela cen miast na telefonie */

.city-comparison-table th,
.city-comparison-table td {
    padding: 13px 8px;
}

.city-comparison-table th {
    font-size: 12px;
}

.city-comparison-table td {
    font-size: 14px;
}

.city-comparison-table td:nth-child(2),
.city-comparison-table td:nth-child(3) {
    white-space: nowrap;
}
/* Wyszukiwarka miasta na stronie głównej */

.city-search-wrapper {
    flex: 1;
    border-left: 1px solid #dddddd;
}

.city-search-wrapper input {
    border-radius: 0;
}

@media (max-width: 700px) {

    .city-search-wrapper {
        border-left: none;
        border-top: 1px solid #dddddd;
    }
}